Register for your free account! | Forgot your password?

You last visited: Today at 10:47

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

 

RDB structure

Reply
 
Old   #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!



Bsodik76 is offline  
Old   #2
 
elite*gold: 0
Join Date: Oct 2010
Posts: 2,557
Received Thanks: 2,412
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.


ismokedrow is offline  
Thanks
1 User
Old   #3
 
elite*gold: 0
Join Date: Mar 2012
Posts: 14
Received Thanks: 0
Quote:
Originally Posted by ismokedrow View Post
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
Bsodik76 is offline  
Reply



« Previous Thread | Next Thread »

Similar Threads
MagicType Structure
well i was asking about Magictype structure of client patch 5517 - 5527 NB :- Structure in All sources Arent Completed Regards shadowman123
4 Replies - CO2 PServer - Discussions / Questions
[Help] File structure
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...
1 Replies - CO2 PServer - Discussions / Questions
Xml Database Structure
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,...
11 Replies - CO2 PServer Guides & Releases
SQL-DB structure
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...
0 Replies - SRO Main - Discussions / Questions
[C] Player Structure [PW-MS]
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...
5 Replies - PW Hacks, Bots, Cheats, Exploits



All times are GMT +2. The time now is 10:47.


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

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