|
You last visited: Today at 06:53
Advertisement
.DMAP File Structure
Discussion on .DMAP File Structure within the CO2 Programming forum part of the Conquer Online 2 category.
01/22/2009, 02:36
|
#1
|
elite*gold: 0
Join Date: Apr 2006
Posts: 64
Received Thanks: 32
|
.DMAP File Structure
I'm looking for the .DMAP file structure. Based on existing source code I have been able to determine the following:
Skip the first 268 bytes (anyone know what this is).
Next 4 bytes contain the length of X.
Next 4 bytes contain the length of Y.
public struct DMAP {
public uint32 MapX;
public uint32 MapY;
}
Once you have that, you can use a loop to grab the X,Y information as follow (Taken from CO Reloaded Source):
Binary.ReadBytes(268);
MapX = Binary.ReadUInt32();
MapY = Binary.ReadUInt32();
DMapInfo = new DMAPPiece[MapX, MapY];
byte[] Buffer2 = new byte[MapY * MapX];
for (int y = 0; y < MapY; y++)
{
for (int x = 0; x < MapX; x++)
{
Buffer2[y + x] = Binary.ReadByte();
Binary.ReadBytes(5);
}
Binary.ReadInt32();
}
Binary.Close();
The are a couple of pieces that need explaining and more information. During the loop for the x, it reads a total of 6 bytes.
1) The first read does a single byte. What is this for. Does it mean that a character can be on this location (accessable)?
2) The next five bytes. It is just skipping over it, but exactly are these five bytes for (the ID of the tile/DDS/etc)?
3) Once it has finished the x loop, it reads 4 more bytes (Binary.ReadInt32) in the Y loop. What is this for?
4) What I'm trying to do is build a simple client that recreates the map on the screen of my program. I need to know which .DDS (i'm assuming this is the file I will end up reading) to load for the X,Y coordinate.
Any help is appreciated. Thank you.
|
|
|
01/22/2009, 03:41
|
#2
|
elite*gold: 20
Join Date: Jun 2005
Posts: 1,013
Received Thanks: 381
|
I can give you answers to all that, but had a few to drink now. I'll post tomorrow. PM me your MSN addy if you want.
|
|
|
 |
Similar Threads
|
SQL-DB structure
05/29/2010 - Silkroad Online - 0 Replies
Hey folks,
does anyone happen to have the structure of the official SRO SQL-DB? I need no more than the column names and their associated table names (usually located in the DB "INFORMATION_SCHEMA").
|
[C] Player Structure [PW-MS]
03/16/2010 - PW Hacks, Bots, Cheats, Exploits - 5 Replies
Hi everyone. Just wanna share the stuff i found out when reversing the game.
Assuming you are using dll injectiong and you have the base pointer to all player stats, you can simply access all the data from a nice and userfriendly structure.
Here how to read from memory:
VARBASE *Stats = 0xBASEPOINTER;
printf("Player HP: %d/%d", Stats->p_Player->Current_HP, Stats->p_Player->Maximum_HP);
And here the structure you need to make this available:
typedef unsinged char BYTE;
|
TQ Database Structure
10/16/2009 - CO2 Private Server - 1 Replies
INSERT INTO `cq_generator` VALUES ('6102', '1075', '0493', '0563', '0021', '0038', '0015', '0001', '0010', '0011', '0000', '0000', '0000', '0000');
index0 = spawnUID
index 1 = mapID
index 2 = X
index 3 = Y
index 4 = (not 100%, but i think it's X spawn radius)
index 5 = (not 100%, but i think it's Y spawn radius)
index 6 = amount to spawn?
index 7 = ?
|
packet structure
03/09/2008 - Conquer Online 2 - 16 Replies
For what I'd like to do, I think packets are the place to start. After that, probably java then C and VB. This is a question for the people here who are self-taught... what resources would you recommend for...
1. understanding packet structure
2. learning some programming language without enrolling at the local university
I'm mainly interested in packet structure and how to capture/decipher/edit/send them, and eventually I'd like to "automate" these functions by writing some programs. ...
|
DMap File Parsing
03/02/2008 - Conquer Online 2 - 12 Replies
I finished the app, it correctly parses the DMap files and renders them to the screen (from what i could tell on the ones i tried, its slow because its using PSet plus its in vb, but at this point, i dont care about efficiency, i'll worry about that later, the fact is it works.
Refer to: http://www.elitepvpers.com/forum/co2-main-discussio ns-questions/112647-new-bot-development.html for the COBot Project which this is part of.
I took this from my reply i made on my new bot i'm developing,...
|
All times are GMT +1. The time now is 06:53.
|
|