Talk:Tank/Cannon

From UFOpaedia
Jump to navigation Jump to search

Does anyone know where the ammo number is held for the Tanks? I've been told its in Geoscape.exe, but it's hard to find. KingMob4313 10:37, 25 April 2010 (EDT)

Tank Ammo Change

There are 5 places in GEOSCAPE that must be changed to alter the ammo amount of a tank without causing problems with base inventory. Three are simply changing a bit to reflect the new ammo amount you want and having that amount passed to TACTICAL. The real problem is the two sections of code that handle equipping your craft after a battle. In each of these sections, there is a field that checks if you have enough ammo for all the tanks of the same type and two others that deal with subtracting enough ammo from the total to equip a tank and passing the remainder to your base stores along with the number of tanks that couldn't be fully equipped. These areas are a somewhat obfuscated so a casual glance with a hex editor will not help you. They also require you to rewrite the code to implement the changes. (There are two similar segments: I don't know when one of the segments is actually referenced by the program. Base Defense?...But since it is exactly the same as the other...CYA).

Morgan525 13:55, 4 January 2012 (EST)