![]() |
|
[AutoIt]Read .lod files - Printable Version +- LCKB (https://lckb.dev/forum) +-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109) +--- Forum: Programmers Gateway (https://lckb.dev/forum/forumdisplay.php?fid=196) +---- Forum: Coders Talk (https://lckb.dev/forum/forumdisplay.php?fid=192) +---- Thread: [AutoIt]Read .lod files (/showthread.php?tid=1030) |
- Sentence - 08-18-2012 Hey, I have searched searched but not find any help ^^ So I ask here, I want to read out the .lod files anyone know a way to do this with auto it? I think it can work with binary read and stringsplit so I tried it but only fails.. Greetz. - Wizatek - 08-18-2012 try to start with a simple file like mobname.lod int MaxID repeat until end of file { int id int namelength string name } - Blackfire - 08-18-2012 Edited : oops misread - someone - 08-18-2012 Its not done but updating it from time to time: 2 - Sentence - 08-18-2012 Okay I had tested a little bit and got this : #include <array.au3> Dim $MobName[1] $number = 1 $File = FileOpen('mobname_usa.lod', 16) $Read = FileRead($File) FileClose($File) $result = StringTrimLeft($Read, 18) Do $num = StringLeft($result, 2) $result = StringTrimLeft($result, 8) _ArrayAdd($MobName, BinaryToString("0x" & StringLeft($result, $num*2))) $result = StringTrimLeft($result, $num *2 +8) $number = $number +1 Until $number = 500 _ArrayDisplay($MobName) not my work it's from fabi202cool copied - Sentence - 08-19-2012 Your going to have to make your own classes for AutoIt as it doesn't read files by a specific criteria. Hmm I don't know but I fail everytime, can you help me please how to do? any example would be great |