Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Florensia
You last visited: Today at 06:20

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

Advertisement



.dat & .bin -> MySQL Converter

Discussion on .dat & .bin -> MySQL Converter within the Florensia forum part of the MMORPGs category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2008
Posts: 88
Received Thanks: 97
.dat & .bin -> MySQL Converter

Heya!

In the pak files you will find .dat and .bin files containing mostly string data and monster data.. I will now provide you with two tools of mine that can convert these files into MySQL queries..
I used this technique to create an online monster and item database I'm running locally

Download:





Usage:
bin2sql.exe <input file> <output file> [korean columns] [auto-translate]

- input file: The .bin file to read
- output file: The .sql/.txt you wanna write to
- korean columns: This will use Unicode column captions and therefore displays correct korean words
- auto-translate: This option will translate some of the columns into matching english captions, but dont expect too much (requires korean columns to be '1')

dat2sql.exe <input file> <output file>

- input file: The .bin file to read
- output file: The .sql/.txt you wanna write to

Have fun!
two_laid is offline  
Thanks
5 Users
Old 11/21/2009, 21:48   #2


 
Cholik's Avatar
 
elite*gold: 4
Join Date: Aug 2008
Posts: 6,783
Received Thanks: 4,992
#pinned
Cholik is offline  
Old 11/24/2009, 12:43   #3
 
elite*gold: 0
Join Date: Sep 2009
Posts: 138
Received Thanks: 14
nice one but one question ..
you call this tool like this:
bin2sql.exe <input file> <output file> [korean columns] [auto-translate]
is there an arg to automatically assign the <input file> arg to <output file> ?
cuz its annoying to write the name of the input file twice xD (i know im a lazy fool :P)

regs


Edit:
just found a possible bug in the Dat converter.. at some files the converter creates the output file, and then crashes with a Windows Error ("Caused a Problem blah") for a simple example the ColorTable.dat causes this error .. i know you can open it with the Editor and there is almost nothing in it, but the converter should convert it instead of crashing .. right? ^^
Neyoel is offline  
Old 11/24/2009, 15:59   #4
 
elite*gold: 0
Join Date: Oct 2008
Posts: 88
Received Thanks: 97
first of all, no there is no option for that. I myself used a simple batch file to parse every dat bin file ;O

and there a few tables (three or four) that, for some reason, do now work in the normal way.. and thats why my converter will crash on these. I thinks it's colortable and some exptables

thank you for your feedback
two_laid is offline  
Old 11/24/2009, 16:07   #5
 
elite*gold: 0
Join Date: Sep 2009
Posts: 138
Received Thanks: 14
ah okay .. mmh but writing a batch file takes some time too =P nah .. anyways think ill just do that too
again, nice tool =)

regs
Neyoel is offline  
Old 11/24/2009, 19:29   #6
 
LemoniscooL's Avatar
 
elite*gold: 0
Join Date: Sep 2006
Posts: 1,100
Received Thanks: 397
nett ^^
is ne ziemliche erleichterung =P
LemoniscooL is offline  
Old 11/24/2009, 22:28   #7
 
elite*gold: 0
Join Date: Oct 2008
Posts: 88
Received Thanks: 97
Little update!
Fixed a encoding problem with dat2sql and also fixed file generation for inputfiles containing a path (like "path\to\file.dat")
two_laid is offline  
Old 11/25/2009, 12:05   #8
 
LemoniscooL's Avatar
 
elite*gold: 0
Join Date: Sep 2006
Posts: 1,100
Received Thanks: 397
wollt ma anmerken .. die bin2sql.exe hat den selben fehler wie die dat2sql.exe (die, btw ich gefunden hab ).. der fehler mit dem Pfad als Tablenamen mein ich, die codierung stimmt aber ^^

greetz

//Edit:
oh der fehler is auch schon gefixxt kk .. sry hab nichts gesagt ^^
LemoniscooL is offline  
Old 11/25/2009, 14:03   #9
 
elite*gold: 0
Join Date: Sep 2009
Posts: 138
Received Thanks: 14
Thanks for fixing those errors ^^
i was fixing the encoding error with simply re-saving the file in utf8, but now it works without doing that =D

regs,
Neyoel
Neyoel is offline  
Old 11/25/2009, 15:16   #10
 
LemoniscooL's Avatar
 
elite*gold: 0
Join Date: Sep 2006
Posts: 1,100
Received Thanks: 397
Hey hatte grad noch ne idee wie wär es it nem arg, das angibt ob die zu beschreibende datei (arg2) überschrieben werden soll, oder ob das was reingeschrieben werden soll einfach an das ende angefügt wird? soweit ich weiss geht das hab mich noch nich viel mitm filestream auseinander gesetzt, aber ich meine mal gelesen zu haben, dass man das iwi auswählen kann ^^

fänd ich gut, dann könnte man nämlich wenn man mehrere files nacheinander konvertieren will alles in eine sql datei schreiben lassen und dann einfach eine sql datei importen statt für jede dat/bin datei eine sql datei ^^ (ich weiss dass man mit tools wie navicat auch alle auf einmal importen kann, aber es gibt eben leute die mögen solche remote programme nich und greifen lieber über nen WebCP drauf zu und bei z.B. phpMyAdmin kann man nich mehrere dateien gleichzeitig importen ^^)

greetz
LemoniscooL is offline  
Thanks
1 User
Old 11/26/2009, 14:50   #11
 
elite*gold: 0
Join Date: Sep 2009
Posts: 138
Received Thanks: 14
Hey there!
Would it be possible that you make two tools that do exactly the same as this two, but reversed? i mean .. Sql2Dat and Sql2Bin? editing the .dat & .bin files would be much more easier then =)

regs,
Neyoel
Neyoel is offline  
Old 11/26/2009, 15:04   #12
 
elite*gold: 0
Join Date: Oct 2008
Posts: 88
Received Thanks: 97
@emale: i will try to make that in the near future..

@neyoel: interesting idea.. i will look into that
two_laid is offline  
Old 03/08/2011, 15:56   #13
 
elite*gold: 0
Join Date: Dec 2010
Posts: 109
Received Thanks: 62
ehm kann mal jemand erklären worums geht?
Kann kein englisch
Kann jemand übersetzen?
noob9875545 is offline  
Old 03/08/2011, 19:08   #14
 
elite*gold: 0
Join Date: Jan 2010
Posts: 486
Received Thanks: 162
Du kannst files mit der endug .bin oder .dat in eine mysql datenbank kopiren. So habs ich verstanden. Und geb mal bei google übersetzer ein, da kannst du alles übersetzen, zwar in schlechtes deutsch aber immerhin :-P
Blut-Engel is offline  
Old 05/28/2011, 19:20   #15
 
elite*gold: 0
Join Date: Sep 2009
Posts: 94
Received Thanks: 8
I don't understand why when I open .exe, it closes at the moment.
elaltavoz is offline  
Reply


Similar Threads Similar Threads
MySQL Navicat 1130-Host'5.xxx.xx.xxx' is not allowed to connect to the MySQL Server
08/07/2010 - Metin2 Private Server - 14 Replies
Hallo com, ich habe ein Problem mit Navicat. Undzwar habe ich diesen Fehler hier : "1130-Host'5.xxx.xx.xxx' is not allowed to connect to the MySQL Server" seid gestern. Ich dachte mir mal ich änder mein Navicat Passwort um... Als ich dies getan habe, und meinen Server rebootet habe und Navicat neugestartet habe, und ich mich wieder in Navicat einloggen wollte kam diese Fehlermeldung. Nun habe ich das Problem das ich mich nicht mehr mit Navicat connecten kann. Habe schon alles versucht...
[Converter] Free Music Converter
07/19/2010 - Music - 1 Replies
Moin, ich hab für euch mal einen kleinen Musik Converter gemacht! Mit dem Converter könnt ihr die standart files convetieren, wie *.mp3 , *.wav , *.wma und noch mehr! hier ein pic: http://i30.tinypic.com/dy9mqe.png
[Release] MySql Converter (Items & Mobs)
07/30/2009 - CO2 PServer Guides & Releases - 10 Replies
Items -> MySqlConvert.rar -------------------------------- This will convert the itemdata file to a MySql table Its a bit old but thought i would release it. Might come in handy, just a basic tool. If you want the source just pm me or decompile the exe. Also got one for monsters. Database connection -> Config.ini Drag the itemtype.dat from client folder/ini onto the exe to begin initialization



All times are GMT +1. The time now is 06:21.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.