[RELEASE]RDB to SQL PerResource C++ Source code

11/18/2012 20:59 gr4ph0s#1
Hey I give you the very hard source code*trololololo* for read rdb in C++
After you just have to change the structure and the SQL query for other RDB

[Only registered and activated users can see links. Click Here To Register...]
11/19/2012 00:56 marekrndr#2
It's actually not 'very hard source code', it's just a dark forest for some people.
11/19/2012 03:01 gr4ph0s#3
Quote:
Originally Posted by marekrndr View Post
It's actually not 'very hard source code', it's just a dark forest for some people.
I know is for that i say trolololo :p
every people can do it in less than 1/2 day if they don't know programming...
11/21/2012 15:28 Strange2010#4
I don't know much about programming , I don't even know if this code is right or not , but can this be modified for reading other rdb files ?
11/21/2012 16:00 gr4ph0s#5
Yes this is the base... In exemple for CharachterMotion (is the same base just look what is changed) => [Only registered and activated users can see links. Click Here To Register...] (the last one i release ^^)
11/21/2012 23:44 glandu2#6
good start. Now use classes to just have to change a structure to read another rdb (and not any sql/file reading related code) :D

Then use a lua vm and move all structures in lua so you don't have to recompile your rdb tool to read a new rdb or update a structure :p (lua because some rdb are not just simple structure, they need some data processing unfortunately, and because some people there should know how to make that)
11/22/2012 09:09 gr4ph0s#7
I know it i have done a class who just asking the struct and the rdb/sql file but not for the lua ^^
I will done it and release it :p
11/22/2012 16:41 j0k3r91#8
AutoIt
11/22/2012 18:21 gr4ph0s#9
De quoi donc? Si tu veux je peux mettre aussi une source en autoit mais c'est assez crade(enfin comme la quoi sans prog objet ^^) enfin en autoit quoi... x)
12/09/2012 12:35 xxexx#10
Hello could you help me to find the fault?
The IDE shows 0 error bot if I start the .exe it show that the program does not work anymore (Windows error message) and the .sql file is empty.

Here my code:

12/09/2012 13:11 glandu2#11
if you compile a 64bits program, RDB.read((char *) &nbloop,4) is not enough, as an integer will be 64bits (8 bytes), you have to add nbloop = 0 in this case before the read.
And (string)data[i].model should not be necessary, your data is already typed, why casting them all ? And for ' " ', it should be ' \' ' (without spaces) as the " is for column names and ' for values

If with that you still have the problem, try commenting out some part of code (or use a debugger)
12/09/2012 17:31 xxexx#12
Hm thx for you help but i think i should stop working on in cause i don't know what i do at all xD
Well, then i just wait for a release of a new resource editor =/