- AURORUS wrote:
- dude, all we wanted was a simple change of the number to get the specials
You have a false impression that this is a simple change. If HEX (Hexadecimal base 16) editing was simple then more people would be doing it.
Here's an example, all of the addresses for unlocking classes are preceded by four bytes "
63 24 4B 71" (Looks like "
c$Kq" in plain ASCII text)
Locate the 4 bytes that precede the value for one instance of the Bothan in the excerpt of the all.lvl file
FC 01 00 00 42 41 53 45 10 00 00 00 61 6C 6C 5F
69 6E 66 5F 64 65 66 61 75 6C 74 00 54 59 50 45
18 00 00 00 61 6C 6C 5F 69 6E 66 5F 64 65 66 61
75 6C 74 5F 6F 66 66 69 63 65 72 00 50 52 4F 50
06 00 00 00
63 24 4B 71 38 00 00 00 50 52 4F 50
0E 00 00 00 5E 7A 55 98 62 6F 74 68 61 6E 73 70
79 00 00 00 50 52 4F 50 09 00 00 00 01 D3 2E 94
31 32 2E 30 00 00 00 00 50 52 4F 50 09 00 00 00
FB 09 59 46 33 30 2E 30 00 00 00 00 50 52 4F 50
0A 00 00 00 76 0A 46 EB 33 30 30 2E 30 00 00 00
The value itself, "38" represents the ASCII character "8" in HEX
FC 01 00 00 42 41 53 45 10 00 00 00 61 6C 6C 5F
69 6E 66 5F 64 65 66 61 75 6C 74 00 54 59 50 45
18 00 00 00 61 6C 6C 5F 69 6E 66 5F 64 65 66 61
75 6C 74 5F 6F 66 66 69 63 65 72 00 50 52 4F 50
06 00 00 00 63 24 4B 71
38 00 00 00 50 52 4F 50
0E 00 00 00 5E 7A 55 98 62 6F 74 68 61 6E 73 70
79 00 00 00 50 52 4F 50 09 00 00 00 01 D3 2E 94
31 32 2E 30 00 00 00 00 50 52 4F 50 09 00 00 00
FB 09 59 46 33 30 2E 30 00 00 00 00 50 52 4F 50
0A 00 00 00 76 0A 46 EB 33 30 30 2E 30 00 00 00
Some of the values are single byte, some are double byte. You cannot just replace a single byte value with a double, the game will freeze or crash. So in this case you cannot just change the unlock of the Bothan to anything higher than 9
In order to change a single byte to a double byte you first need to have a minimum of 2 null bytes (HEX 00) after the single byte value. If you only have a single null you cannot change it, period. There has to be at least one null terminating the value.
FC 01 00 00 42 41 53 45 10 00 00 00 61 6C 6C 5F
69 6E 66 5F 64 65 66 61 75 6C 74 00 54 59 50 45
18 00 00 00 61 6C 6C 5F 69 6E 66 5F 64 65 66 61
75 6C 74 5F 6F 66 66 69 63 65 72 00 50 52 4F 50
06 00 00 00 63 24 4B 71 38
00 00 00 50 52 4F 50
0E 00 00 00 5E 7A 55 98 62 6F 74 68 61 6E 73 70
79 00 00 00 50 52 4F 50 09 00 00 00 01 D3 2E 94
31 32 2E 30 00 00 00 00 50 52 4F 50 09 00 00 00
FB 09 59 46 33 30 2E 30 00 00 00 00 50 52 4F 50
0A 00 00 00 76 0A 46 EB 33 30 30 2E 30 00 00 00
If you do have the minimum of 2 null bytes, you then need to edit the eighth bye preceding the value and increase it in HEX to allow additional bytes.
FC 01 00 00 42 41 53 45 10 00 00 00 61 6C 6C 5F
69 6E 66 5F 64 65 66 61 75 6C 74 00 54 59 50 45
18 00 00 00 61 6C 6C 5F 69 6E 66 5F 64 65 66 61
75 6C 74 5F 6F 66 66 69 63 65 72 00 50 52 4F 50
06 00 00 00 63 24 4B 71 38 00 00 00 50 52 4F 50
0E 00 00 00 5E 7A 55 98 62 6F 74 68 61 6E 73 70
79 00 00 00 50 52 4F 50 09 00 00 00 01 D3 2E 94
31 32 2E 30 00 00 00 00 50 52 4F 50 09 00 00 00
FB 09 59 46 33 30 2E 30 00 00 00 00 50 52 4F 50
0A 00 00 00 76 0A 46 EB 33 30 30 2E 30 00 00 00
The edits below change the unlock for this instance of the Bothan to 999, which is the highest you can do within the limitations given.
FC 01 00 00 42 41 53 45 10 00 00 00 61 6C 6C 5F
69 6E 66 5F 64 65 66 61 75 6C 74 00 54 59 50 45
18 00 00 00 61 6C 6C 5F 69 6E 66 5F 64 65 66 61
75 6C 74 5F 6F 66 66 69 63 65 72 00 50 52 4F 50
08 00 00 00 63 24 4B 71
39 39 39 00 50 52 4F 50
0E 00 00 00 5E 7A 55 98 62 6F 74 68 61 6E 73 70
79 00 00 00 50 52 4F 50 09 00 00 00 01 D3 2E 94
31 32 2E 30 00 00 00 00 50 52 4F 50 09 00 00 00
FB 09 59 46 33 30 2E 30 00 00 00 00 50 52 4F 50
0A 00 00 00 76 0A 46 EB 33 30 30 2E 30 00 00 00
Every edit needs to be tested. You cannot take anything for granted that it's supposed to work because you are not supposed to be editing these files. Some edits just don't work.
Here are the names of the files and the exact HEX addresses location for each of the special classes. Notice that many classes have multiple instances in lvl file due to variations in the classes (i.e. white clad infantry on Hoth, cammo on Endor).
in all.lvl file
Bothan
0C09AA8
0C91F5C
0D1A418
Wookiee
14BCA34
152B538
in cis.lvl file
Droideka
089F484
Magnagaurd
0BE05A4
0C8824C
in imp.lvl file
Dark Trooper
0565394
060DFCC
Officer
08061CC
085E838
08B6EBC
090F530
in rep.lvl file
Jet Trooper
0BCC930
0C47220
0CC1B28
0D6E82C
11E62B4
Clone Commander
1292BACSimple?
It's probably easier to eliminate the specials altogether, replace them in the mission.lvl file with "soldier" so a grunt will spawn instead.