Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Rappelz > Rappelz Private Server
You last visited: Today at 01:03

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

Advertisement



[Free-Project]RDB with INI

Discussion on [Free-Project]RDB with INI within the Rappelz Private Server forum part of the Rappelz category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2012
Posts: 320
Received Thanks: 264
[Free-Project]RDB with INI

Hello everybody i'm working a project for made easy the conversion between RDB and SQL file.

For that I will use a INI file like that it will be easy to update if the structure of RDB is updated.

My project is already started here =>
The main functions for read/write will be made in C++ and used in Autoit.
The main core will be made in autoit POO.

For the moment just the INI class is finnished and I have to made the main function in C++ but the base is finnished ^^

V1 will be able to do RDB => SQL
V2 will be able to do SQL => RDB
V3 will be able to edit in real-time the file


PS: don't spam me I will not answered, I do this project just for fun so don't say you are slow....
gr4ph0s is offline  
Thanks
8 Users
Old 03/08/2013, 15:57   #2
 
M>M's Avatar
 
elite*gold: 0
Join Date: Jul 2011
Posts: 264
Received Thanks: 240
thanks dude for the project

really nice idea
M>M is offline  
Old 03/08/2013, 16:02   #3


 
Xijezu's Avatar
 
elite*gold: 0
Join Date: May 2011
Posts: 5,086
Received Thanks: 3,471
Quote:
Originally Posted by gr4ph0s View Post
For that I will use a INI file like that it will be easy to update if the structure of RDB is updated.
I was planning to do something similar some weeks ago, but remember that not everybody knows how to get the structure when it gets changed.
Xijezu is offline  
Old 03/08/2013, 16:09   #4
 
elite*gold: 0
Join Date: Aug 2012
Posts: 320
Received Thanks: 264
Quote:
Originally Posted by Xijezu View Post
I was planning to do something similar some weeks ago, but remember that not everybody knows how to get the structure when it gets changed.
Hahaha you are moderator now... I hope you will be more active than other moderator

For that I think I can does it very easy moreover to convert .pdb to .h is not hard...
gr4ph0s is offline  
Old 03/09/2013, 13:16   #5
 
elite*gold: 0
Join Date: Apr 2012
Posts: 463
Received Thanks: 838
Nice idea, better than using binaries, ini is easy to modify.

How you will manage the case of SkillJpResource in database ? sql generated files will be compatible with rappelz database out of the box ?
There is also the case of SkillTree rdb which has not the same layout as others (don't remember if it's this file, but there is at least a file with it's line count equal to group of line instead of just one line), how it's case will be managed ?

The way I managed these case is to add a special field indicating how this file should be converted. Using a better solution was too much coding for just 2 files for me, but it's a bit ugly.

I see the init will have:
Code:
[1LOOP]
ID=INT64
TEXT=STR[258]
The way the data will be proceed will be like that ? :
for each field in 1LOOP which is a structure do
for each field in 2LOOP which is a structure do
for each field in 3LOOP which is a structure do
....

?

I would have managed this way the special case:
Code:
[root]
sbustruct=STRUCT(aname)

[aname]
field1=INT64
field2=...
...
having root as a STRUCT and each structure containing these fields:
Code:
elements_count_in_struct=INT32
contents as described in [aname]
and the full rdb file would be:
Code:
timestamp=CHAR[128]
content=STRUCTURE(root)
A good idea would be the possibility to add modifiers, for example to indicate that a field should not be in the database, or is a bit that is concatened in a group of 8 bits.

The advantage of doing this (the use of a text file as a rdb describer file and not using hard coded things) is the fact that you don't have to recompile the binary after each change in rdb structures, and you don't need to add a bunch of code when gala create a new rdb file. just enough to describe the new file.

Also Gr4ph0s, i saw that you separated the version string with 0s after this string, but I think it's not needed, it can be seen as a whole string of 128 bytes which is zero-terminated (many zeroes, but it does not matter )
glandu2 is offline  
Thanks
1 User
Old 03/10/2013, 17:48   #6
 
elite*gold: 0
Join Date: Aug 2012
Posts: 320
Received Thanks: 264
Thanks a lot glandu2 for all of their idea.

Use syntaxe like that is more easy for manage loop and some special RDB like SkillJpResource or SkillTree
Code:
 
[header]
version=byte[4]

[Main]
id=int
!Not_present_in_DB = int // Symbol ! for say is not present in DB
1stloop=[Loop]

[Loop]
text=char[128]
union=int[myUnion]

[myUnion]
useless_bit=byte[4]
is_deva=byte[1]
is_asura=byte[1]
Where header will be read before the main part.

Ans yes 0 is not problem in char but is just an exemple of ini is not a real one ^^
gr4ph0s is offline  
Old 03/11/2013, 11:19   #7
 
Skamorzo's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 47
Received Thanks: 10
How can I help you?

Ska...
Skamorzo is offline  
Old 03/15/2013, 19:39   #8
 
elite*gold: 0
Join Date: Aug 2012
Posts: 320
Received Thanks: 264
Quote:
Originally Posted by Skamorzo View Post
How can I help you?

Ska...
Sorry for the late I was not here this week and I will be in Poland the next week so I will rework on the project in 1 week ^^

If you want you can add my skype(send me a pm) for speak or any others things
gr4ph0s is offline  
Reply


Similar Threads Similar Threads
Elysion Online # 90 Cap Project # JSro Files # Open-Beta # Free Silk # 8 Character
06/06/2014 - SRO PServer Advertising - 334 Replies
http://i.epvpimg.com/NIe1f.png SERVER WILL BE ONLINE AT 20.01.2013 - 12:00(24h time) Server Features Capture The Flag Box Event 5 Million silk for each account Reborn System Reset Stats System
Hack free vip Project Blackout, Point Blank, TH, BR, US
10/24/2011 - General Gaming Discussion - 3 Replies
Menu D3D Wallhack and CrossHair. 1- Open Injector ( PerX ) 2- Process> PointBlank.exe or PBlackout.exe 3- Select dll. 4- Open Project Blackout or Point Blank. 5- Insert open Menun Hack. Download: -
New Project : L2Walker Free
05/21/2007 - Lineage 2 - 1 Replies
Hi i make a new Project to Mod The L2Walker free to use it as a Full L2 walker Need maybe Help from some Scripter note : someone know if the source code of L2Walker was leaked somewere? so i could built my own oog ^^ atm i have a team of 5 members c+/c++/java scripter



All times are GMT +1. The time now is 01:04.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.