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
- 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
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? ^^
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
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 ^^
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 ^^)
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 =)
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
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