Getting Client structure
#6

What Wizatek said, open a hex editor(I prefer Hex WorkShop because it has the menu on the right, abd calculates  integer values from hex bytes automatically).

 

Just compare the values from the database with a item from the client then create a structure.

All lc binary files start with the first 4 bytes that represent the number of rows.

Each row has a index(another 4 bytes), every time before any string is specified 4 bytes that represents the string length

 

the data is stored in little endian so 1 in 32bit hex is 01 00 00 00(in big endian is 00 00 00 01)

 

59 26 00 00  02 00 00 00 0D 00 00 00 4C6561746865722041726D6F72 01 00 00 00 ....03 00 00 00 0D 00 00 00 4C6561746865722050616E7473  01 00 00 00 ...

 

As you can see:

- Nr of rows to read(last index actually)

- item index

- upcomming string size

- the actual string "Leather Armor", "Leather Pants"

- level

.. and so on(check the database to see what the rest mean)

 

Dont forget there are sometime loops inside, a row for example when reading skills, it contains the skill level.



Messages In This Thread
[No subject] - by Nikolee - 03-30-2013, 11:38 PM
[No subject] - by Maxes727 - 07-01-2013, 07:30 AM
[No subject] - by filix_93 - 07-01-2013, 07:38 AM
[No subject] - by Maxes727 - 07-01-2013, 07:46 AM
[No subject] - by Wizatek - 07-01-2013, 07:58 AM
[No subject] - by someone - 07-01-2013, 09:08 AM
[No subject] - by Maxes727 - 07-01-2013, 09:14 AM
[No subject] - by HateMe - 07-01-2013, 11:28 AM
[No subject] - by someone - 07-01-2013, 03:20 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)