Register for your free account! | Forgot your password?

You last visited: Today at 00:35

  • Please register to post and access all features, it's quick, easy and FREE!

 

Need help with dmap files

Closed Thread
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2005
Posts: 664
Received Thanks: 13
Ok I am going to quote the post off of the Qonquer forums by the admin. I have no clue how to do this, and not sure anyone else does. So I figured it'll get done faster here.

Quote:
Originally posted by "Admin"
I REALLY need to decode the .DMap files. I have made some progress on this but still not cracked it fully. The data I have atm is rather messy so I'm going to try to arrange it into something suitable for posting here.

Ok here we go
Each DMap file seems to contain much information, not all of the info in it is needed by the server, just the cell levels (height) and accesssibility. I.e. a map cell can either be inaccessible or have a height value. Hex editing the files I've come up with what I think the basic structure is.

Bytes 268 to 271 = map x limit in cells (low endian 32 bit)
Bytes 272 to 275 = map y limit in cells (low endian 32 bit)

from that point on, each cell appears to be defined by 6 bytes. The problem I am having is the arrangement of these bytes. They don't seem to simply start from 0,0 and work down, it looks like they start mid way somewhere, plus the height value of each cell is proving difficult to narrow down.

I picked a relatively simple map, arena.DMap, to run a few tests on. In this test output a 0 represents a cell in which all 6 bytes are 0. If any of the 6 bytes are not 0, then the cell is represented by a 1.
Code:
111111111111111111111111111111111111111100000000000000000000000000000000011111111111111111111111
111111111111111111111111111111111111111111000000000000000000000000000000000111111111111111111111
111111111111111111111111111111111111111111100000000000000000000000000000000011111111111111111111
111111111111111111111111111111111111111111111000000000000000000000000000000011111111111111111111
111111111111111111111111111111111111111111111100000000000000000000000000000011111111111111111111
111111111111111111111111111111111111111111111111000000000000000000000000000011111111111111111111
111111111111111111111111111111111111111111111111100000000000000000000000100011111111111111111111
111111111111111111111111111111111111111111111111111000000000000000000000111011111111111111111111
111111111111111111111111111111111111111111111111111100000000000000000000111111111111111111111111
111111111111111111111111111111111111111111111111111111000000000000000000111111111111111111111111
111111111111111111111111111111111111111111111111111111100000000000000000111111111111111111111111
111111111111111111111111111111111111111111111111111111111000000000000000111111111111111111111111
111111111111111111111111111111111111111111111111111111111100000000000000111111111111111111111111
111111111111111111111111111111111111111111111111111111111111000000000000111111111111111111111111
111111111111111111111111111111111111111111111111111111111111100000000000111111111111111111111111
111111111111111111111111111111111111111111111111111111111111111000000000111111111111111111111111
111111111111111111111111111111111111111111111111111111111111111100000000111111111111111111111111
111111111111111111111111111111111111111111111111111111111111111111000000111111111111111111111111
111111111111111111111111111111111111111111111111111111111111111111100000111111111111111111111111
111111111111111111111111111111111111111111111111111111111111111111111000111111111111111111111111
111111111111111111111111111111111111111111111111111111111111111111111100111111111111111111111111
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
111111111111111111111111111111100111111111111111111111111111111111111111111111111111111111111111
111111111111111111111111111111100001111111111111111111111111111111111111111111111111111111111111
111111111111111111111111111111100000111111111111111111111111111111111111111111111111111111111111
111111111111111111111111111111100000001111111111111111111111111111111111111111111111111111111111
111111111111111111111111111111100000000111111111111111111111111111111111111111111111111111111111
111111111111111111111111111111100000000011111111111111111111111111111111111111111111111111111111
111111111111111111111111111111100000000001111111111111111111111111111111111111111111111111111111
111111111111111111111111111111100000000000111111111111111111111111111111111111111111111111111111
111111111111111111111111111111100000000000001111111111111111111111111111111111111111111111111111
111111111111111111111111111111100000000000000111111111111111111111111111111111111111111111111111
111111111111111111111111111111100000000000000001111111111111111111111111111111111111111111111111
111111111111111111111111111111100000000000000000001111111111111111111111111111111111111111111111
111111111111111111111111111111100000000000000000000111111111111111111111111111111111111111111111
111111111111111111111111111111100000000000000000000001111111111111111111111111111111111111111111
111111111111111111111111111111100000000000000000000000111111111111111111111111111111111111111111
111111111111111111111111111111100000000000000000000000011111111111111111111111111111111111111111
111111111111111111111111111111110000000000000000000000001111111111111111111111111111111111111111
111111111111111111111111111111110000000000000000000000000101111111111111111111111111111111111111
111111111111111111111111111111110000000000000000000000000000111111111111111111111111111111111111
111111111111111111111111111111110000000000000000000000000000001111111111111111111111111111111111
111111111111111111111111111111110000000000000000000000000000000111111111111111111111111111111111
111111111111111111111111111111110000000000000000000000000000000001111111111111111111111111111111
111111111111111111111111111111110000000000000000000000000000000001111111111111111111111111111111
111111111111111111111111111111110000000000000000000000000000000000111111111111111111111111111111
111111111111111111111111111111100000000000000000000000000000000000001111111111111111111111111111
111111111111111111111111111111100000000000000000000000000000000000000111111111111111111111111111
111111111111111111111111111111100000000000000000000000000000000000000111111111111111111111111111
111111111111111111111111111111100000000000000000000000000000000000000111111111111111111111111111
111111111111111111111111111111100000000000000000000000000000000000000111111111111111111111111111
111111111111111111111111111111100000000000000000000000000000000000000001111111111111111111111111
111111111111111111111111111111100000000000000000000000000000000000000001111111111111111111111111
111111111111111111111111111111100000000000000000000000000000000000000001111111111111111111111111
111111111111111111111111111111100000000000000000000000000000000000000001111111111111111111111111
111111111111111111111111111111110000000000000000000000000000000000000001111111111111111111111111
111111111111111111111111111111110000000000000000000000000000000000000001111111111111111111111111
111111111111111111111111111111110000000000000000000000000000000000000001111111111111111111111111
111111111111111111111111111111100000000000000000000000000000000000000001111111111111111111111111
111111111111111111111111111111110000000000000000000000000000000000000001111111111111111111111111
111111111111111111111111111111110000000000000000000000000000000000000001111111111111111111111111
111111111111111111111111111111110000000000000000000000000000000000000001111111111111111111111111
111111111111111111111111111111111000000000000000000000000000000000000001111111111111111111111111
111111111111111111111111111111111110000000000000000000000000000000000001111111111111111111111111
111111111111111111111111111111111111000000000000000000000000000000000001111111111111111111111111
111111111111111111111111111111111111110000000000000000000000000000000001111111111111111111111111
As you can see, the 0's seem to represent accessible areas of the map, whereas the 1's are inaccessible. This suggests that a cell that has all 0's in its 6 bytes is a ground level accessible cell. Seeing as there is only 1 level, the ground level, on Arena.DMap , this seems to make sense. There also appears to be a hell of a lot of "space" around the edges of a map, I suspect that a great deal of the map file is unused white space, probably something to do with the angled nature of the cells.

You can take a look at the arena map in game by typing
@mm 1005 50 50 (WARNING: Don't go through the warp portal in there)



MrTeenie is offline  
Old   #2
 
elite*gold: 0
Join Date: Mar 2005
Posts: 413
Received Thanks: 2
So what exactly you want us to do? Crack it? Btw, if we switch the 1 to 0s on client side, i suppose it would read invalid coords and dc u.


DeathWalker is offline  
Old   #3
 
elite*gold: 20
Join Date: Jun 2005
Posts: 1,013
Received Thanks: 379
I can help. Waiting for account activation on qonquer forums.
unknownone is offline  
Old   #4
 
elite*gold: 0
Join Date: Oct 2005
Posts: 295
Received Thanks: 339
Quote:
Originally posted by DeathWalker@Oct 7 2005, 07:53
So what exactly you want us to do? Crack it? Btw, if we switch the 1 to 0s on client side, i suppose it would read invalid coords and dc u.
The 1's and 0's in that post is a debug test output generated by the PServer software so I had some way of posting a visible representation of the data it is analizing., it doesn't have anything to do with the client. But yea, I do need to try to crack exactly how the files are arranged.


Qonquer is offline  
Old   #5
 
elite*gold: 0
Join Date: Aug 2005
Posts: 507
Received Thanks: 1
dumb bastards, i told you exactly how to do map work and you blocked me off your **** site. hopefully, you dumn ***** will realize how idiotic you've really been...coulda saved months of work

-einhornchen
einhornchen is offline  
Old   #6
 
elite*gold: 0
Join Date: Oct 2005
Posts: 295
Received Thanks: 339
This topic can be closed now, we've done it.
Qonquer is offline  
Old   #7
 
elite*gold: 0
Join Date: Jul 2005
Posts: 664
Received Thanks: 13
you were blocked because we are reverse engineering the client, not building a new one. Only way we could had done your way was if we were making new. We have to figure out how TQ did it.


MrTeenie is offline  
Closed Thread



« Previous Thread | Next Thread »

Similar Threads
[Request]Dis.dmap
Well I have a problem with dis since where ever I jump I get sent to were I started, I'm assuming this is because there's no dmap for dis so has...
2 Replies - CO2 PServer - Discussions / Questions
Dmap viewer
So i quickly whipped this up and was curious to see what else dmaps contained that could be of use, got bored and ClassicCO got the better half of...
10 Replies - CO2 Programming
CO2 .DMAP....
Does anyone have any idea how to edit/open the files in the map folder? (theyre .dmap) I searched google and windows live and found nothing.
4 Replies - CO2 Main - Discussions / Questions
.DMap
Hello, It is my first post here I usually just read topics and learn from them ect.. Thank you elitepvpers for all these weeks of help but now i...
10 Replies - CO2 Main - Discussions / Questions
DMAP
Ok i checked on forum i couldn't find anything base on this so i'm want to know if there any program open dmap files so i can edit the maps if so...
5 Replies - CO2 Main - Discussions / Questions



All times are GMT +2. The time now is 00:35.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy
Copyright ©2017 elitepvpers All Rights Reserved.