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.
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,...