[AutoIt]Read .lod files
#1

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.

#2

try to start with a simple file like mobname.lod

 

 

int MaxID

 

repeat until end of file {

int id

int namelength

string name

}

#3
Edited : oops misread

#4

Its not done but updating it from time to time:

2

#5

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

#6


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



Forum Jump:


Users browsing this thread: 1 Guest(s)