Sep | OCT | FEB
| 22 |
2003 | 2004 | 2009

4 captures 22 Oct 04 - 26 Oct 09 |

Close Help

Adding Objects in the hex editor

As most of you probably know, the information on red warriors site of hex editing HERE, isnt too informative on object editing, so i will try to explain it in better detail.

As red warrior stated, objects start at row 00014040 in the last pair of column 2 and always are 37 pairs long. (hex values are always in pairs equal to 1 full byte, 1 character of hex is equal to 4 characters in binary, so 2 hex characters is like 1 byte of binary) i do not know what the 1C0F 20 value does, but i recommend putting it in at the least for formatting purposes. you start imediately after this point with the first object. personally i like to start out with the reincarnation sites first so i type 1C0F 2007 0101 000X 000X. X and Y = the coodinates i want for the reincarnation site. 07 01 is equal to the reincarnation site itself, the following 01 is the tribe color. 01 = red, 02 = yellow, 03 = green. the entire formula would look like 1C0F 0207 0101 0013 0013 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000, which = 37 hex pairs. you can save your map now, and restart it in the game, if you entered the values right the red shamans base will appear on the map at the location you specified. the next object would come immediately after the 37 hex pair mark. So next i will add the blue shamans reincarnation site. which is 0701 00. the entire object line will then look like this: 1C0F 0207 0101 0013 0013 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0701 0000 0100 0100 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 . 0100 0100 is equal to the location at which the base will appear. save your map and restart the game and see if your blue shamans base appeared at the location specified. NOTE: it is important to remember something in hex, when your changing the location data DONT FORGET you're writing in Hex, like i want to take the location of something 1 step from 0019 0029, i wouldnt make it 0020 0030, it would be 001A 002A, as A is the next greatest value in Hex. next lets add a tree, once again the first value will follow immediately after the 37'th pair value of the blue shamans base values. trees are 0205 and 0405, 0205 is an oak tree and 0405 is a pine tree. lets try to add an oak tree, i would type 0205 0000 1700 1700, if you will notice the location of your coorinates in the hex editor automatically alternates, as red warrior stated. the entire string for all objects will then look like this: 1C0F 0207 0101 0013 0013 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0701 0000 0100 0100 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0205 0000 1700 1700 0000 0100 0100 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000. make sure when adding objects that belong to no tribe that you dont mistakenly put the coorinates too close to the object, there should be 2 pairs of 00 following those objects. the coorinates begin immediately after the 2 pairs of 00's. i have made this mistake before and put something like 0205 0017 0020. this tree is going to appear at coordinates 0000 0000 as this is not correct. 0205 0000 0017 0020 is correct.