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.
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)
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.
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
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.
[Request]Dis.dmap 04/07/2010 - CO2 Private Server - 2 Replies 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 anyone got one.
Dmap viewer 03/10/2010 - CO2 Programming - 10 Replies 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 me. This is somewhat useless but i'm sure someone will find it useful in a way.
Note: this might take awhile for your maps to load, as it's not hardware accelerated or multithreaded. Takes 2-3 seconds on my computer, most likely more on yours.
http://i47.tinypic.com/11bmcg7.png
http://i50.tinypic.com/1z4gyae.png
The colored picture was...
CO2 .DMAP.... 02/04/2008 - Conquer Online 2 - 4 Replies 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.
.DMap 06/29/2006 - Conquer Online 2 - 10 Replies 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 need something not found..
I want to make costum little map the ones at the top right of your screen i wanted to make an edited one with lets say a star where the ganaderma spawns but i dont know how to open or save as .DMap can someone help m with this? are there any specifications when doing this? filesize ect..
DMAP 04/09/2006 - Conquer Online 2 - 5 Replies 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 could you let me know I appreciate it.