Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

OLST Editing

Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

OLST editing

As an example for this tutorial I am going to be adding a new character to the


clonewars_minifig.apj the character I will be adding is RebelFriend (made by
Jmelton100) first I need to open clonewars_minifig.apj in hxd

Press Control and F and search for OLST

Go to the last OLST after this is where the minifig entries start
Look for a character’s who folder and filename have the same amount of characters as
the character you want to add, for this character I want a character who’s folder and file
size names are both the same length as the word RebelFriend (11 characters), the
character I found who is perfect for this is Galen_Marek

You will need to copy this character entry the entries starts at the byte 8 bytes before
the mobj ( the < , 3C in hex ) and ends one byte after the final k for his name ( the dot
that is 00 in hex) highlight and copy all of this

Scroll to the end of the file

Paste the entry after 00 making sure not to replace anything


Change the text for Galen_Marek to RebelFriend the first one is the folder name and the
second is the file name itself

Scroll back up to the last OLST in the file

Make sure you have the data inspector tool bar turned on

The 2 bytes that are 8 and 7 bytes before the OLST respectively represent how long
between this OLST and the next one (though because this is the last OLST it represents
how long is left in the file)
In the inspector you should be able to see what this value is in Uint16 / int16

To figure out what value this should be you will need to highlight the byte 8 byte before
the olst and press control + e , in the length section enter a length that is far bigger than
how much is in the file for example 999999999 (this will not work if you’re not using the
final olst and you will have to slowly drag to end point of the olst )

All the hex beginning at the point 8 bytes for the olst and ending at the end of the hex
should now be highlighted

Switch the offset base to decimal


HXD should now tell you the length of all the hex selected at bottom toolbar of the
program.

Write the Length(d) value into the uint (16) dataviewer (make sure the data viewer is in
little endian)

Now go back to last OLST, highlight the value 4 bytes after it

change the uint 8 value to be higher by however many mobj entries you added higher
since I only added one character (and therefore one MOBj) it only needs to be one
value higher

Go to the first OLST in the file

The value seven eight bytes before the olst is how much hex is in the file starting from
the value eight bytes before the olst itself and ending at the end of all the hex.

Reuse the method that was done for the value eight bytes before the last OLST but
don’t take other OLSTs in the file into account.
Repeat this process on the values 5 and 6 bytes after the olst

Your file should now be done

Make sure to save it and keep a backup.

You might also like