|
You last visited: Today at 02:46
Advertisement
RDB structure
Discussion on RDB structure within the Rappelz Private Server forum part of the Rappelz category.
12/17/2013, 15:50
|
#1
|
elite*gold: 0
Join Date: Mar 2012
Posts: 14
Received Thanks: 0
|
RDB structure
Hello everyone! I apologize for my importunity, but let's create a separate topic with RDB (structure) and fix it! since a lot of forum posts and so on, all of them to sort out a very long and tedious!
I apologize for my English, I translate using 
Personally for me, difficult to implement a tool for C + + or C # I am more familiar with Delphi,but without knowing the structure of the file, I can not write a script to open it!
|
|
|
12/17/2013, 16:12
|
#2
|
elite*gold: 0
Join Date: Oct 2010
Posts: 2,555
Received Thanks: 2,460
|
I wish you wouldn't act like this information is super hard to find, cause I could point out several posts. But you know what I'mma give you an in-depth play by play AGAIN :3
ALL RDB follow the following (with few exceptions)
.rdb are hex files, they store the same information as their respective database without the column names. (meaning you have to know what data is where in order to read it) for the most part these file structures follow their database schema (not always exactly the same sometimes the order is diff) with the exception of the file header.
For example, to begin reading the rdb you need to read the header first:
Header Structure:
128 Bytes = FILE_DATE
4 Bytes = ROW_COUNT
now you begin reading the file with a binary reader, using a while loop that ends at the end of the file (e.g. while(br.PeekChar() != -1) )
If you have the first rows structure defined correctly the program will loop through all remaining results as it reads to the end of the file. If you did not get the header + first row structure down properly then it will give a "cannot read beyond end of stream (end of file)" exception.
Almost all rdb work this way, good luck.
|
|
|
12/17/2013, 16:35
|
#3
|
elite*gold: 0
Join Date: Mar 2012
Posts: 14
Received Thanks: 0
|
Quote:
Originally Posted by ismokedrow
I wish you wouldn't act like this information is super hard to find, cause I could point out several posts. But you know what I'mma give you an in-depth play by play AGAIN :3
ALL RDB follow the following (with few exceptions)
.rdb are hex files, they store the same information as their respective database without the column names. (meaning you have to know what data is where in order to read it) for the most part these file structures follow their database schema (not always exactly the same sometimes the order is diff) with the exception of the file header.
For example, to begin reading the rdb you need to read the header first:
Header Structure:
128 Bytes = FILE_DATE
4 Bytes = ROW_COUNT
now you begin reading the file with a binary reader, using a while loop that ends at the end of the file (e.g. while(br.PeekChar() != -1) )
If you have the first rows structure defined correctly the program will loop through all remaining results as it reads to the end of the file. If you did not get the header + first row structure down properly then it will give a "cannot read beyond end of stream (end of file)" exception.
Almost all rdb work this way, good luck.
|
Competent answer =) Thanks
|
|
|
 |
Similar Threads
|
MagicType Structure
07/21/2012 - CO2 Private Server - 4 Replies
well i was asking about Magictype structure of client patch 5517 - 5527
NB :-
Structure in All sources Arent Completed
Regards
shadowman123
|
[Help] File structure
04/25/2012 - CO2 Private Server - 1 Replies
Hello, does anyone has the file structure for Tips.dat?
I know it might be a stupid question but I don't know how to find out the structure so if anyone can help me trough it I will greatly appreciate it!
|
Xml Database Structure
02/28/2012 - CO2 PServer Guides & Releases - 11 Replies
Alright, this is still unfinished, At the moment it only supports MYSQL, but I will finish rest later, if I get time. It's untested so far and so, but looks like it would work.
Anyways, when I get home I will test it and fix whatever I find of bugs etc.
It also still contains the xml converter as it's under solution.
The XmlLib is a DLL, which you just add as reference to your project, however there is some major things you need to do, before you actually use it.
First of all you...
|
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;
|
All times are GMT +1. The time now is 02:46.
|
|