Jump to content
XCOMUFO & Xenocide

Fun Editing Stuff...


Recommended Posts

Okay there is one thing I want to do, that is modify the equipment in game. And the caps. Like the 80 item cap going int obattle, the storage cap (make one store hold like 9999999 or something). And so on.

 

I found a hex editor for terror of the deep that was glorious, it always you to upgrade and downgrade equipment. I was hoping I could do similar here "like make pistol and rifle have 200% accuracy or something for kicks" and maybe make grenades as strong as blaster launchers.

 

- Tue -

Link to comment
Share on other sites

Note the xc2me2 editor (the one you're referring to) works with UFO as well. Just put it in the ufo directory and run it. Well, not all the editing options will work, but some do, and the weapon stat editor does exactly what you want - with some limitations. It cannot edit how many hands the gun uses, the melee damage/cost/type (all weapons have this - only the stun rod and the TFTD drills have a melee attack option that you can use) and a few other stats as well, such as whether or not the item is a grenade or a gun. But for modiying weapon damage type, damage level, accuracy, firing costs and ammo type this editor works fine.

 

Editing the item capacity to take huge amounts of items would require a serious undertaking indeed - you'd have to recompile the source code and modify all the savegames (well, mainly, the files for ships and base stores will have to be almost twice as large). As it is, it's only using a signed short integers for each and every item, which allows -32, 768 to +32, 767 items of any given type in storage (including scientists and engineers!) (Or was it unsigned? Either way, it's a 16-bit value). That's still quite a lot for most game purposes.

 

The game can indeed hold these many items - it's just the general store's upper limit that defines how many items you can buy or transfer (not store - even with the plain vanilla game, you can have as much of any ite as you want - notice how you can continue to collect aliens alloys and alien weapons and even build objects even when you're well past your storage limit). To change this, you'd need to be able to edit the stores so that each store can hold... well, 255 or 65,535 items or whatever. But this value may be stored deep within the executable files, thus will be tricky to find, and even trickier still, will be in different locations depending on what version of the game you're looking at.

 

Same goes for troop transports - they can hold as much as you want, it's just the 80-item cut-off point imposed by the game that you need to tweak. Just remember that the game has 170 item slots for the battlescape missions. Half of this is for the aliens and the other half is for you (90 slots each side). Also note that bodies (unconscious or dead) need space in the item table, which is why you don't get the full 90 items (it's used up pretty fast anyway, once you start to see corpses disappearing).

 

- NKF

Link to comment
Share on other sites

Note the xc2me2 editor (the one you're referring to) works with UFO as well. Just put it in the ufo directory and run it. Well, not all the editing options will work, but some do, and the weapon stat editor does exactly what you want - with some limitations. It cannot edit how many hands the gun uses, the melee damage/cost/type (all weapons have this - only the stun rod and the TFTD drills have a melee attack option that you can use) and a few other stats as well, such as whether or not the item is a grenade or a gun. But for modiying weapon damage type, damage level, accuracy, firing costs and ammo type this editor works fine.

 

Editing the item capacity to take huge amounts of items would require a serious undertaking indeed - you'd have to recompile the source code and modify all the savegames (well, mainly, the files for ships and base stores will have to be almost twice as large). As it is, it's only using a signed short integers for each and every item, which allows -32, 768 to +32, 767 items of any given type in storage (including scientists and engineers!) (Or was it unsigned? Either way, it's a 16-bit value). That's still quite a lot for most game purposes.

 

The game can indeed hold these many items - it's just the general store's upper limit that defines how many items you can buy or transfer (not store - even with the plain vanilla game, you can have as much of any ite as you want - notice how you can continue to collect aliens alloys and alien weapons and even build objects even when you're well past your storage limit). To change this, you'd need to be able to edit the stores so that each store can hold... well, 255 or 65,535 items or whatever. But this value may be stored deep within the executable files, thus will be tricky to find, and even trickier still, will be in different locations depending on what version of the game you're looking at.

 

Same goes for troop transports - they can hold as much as you want, it's just the 80-item cut-off point imposed by the game that you need to tweak. Just remember that the game has 170 item slots for the battlescape missions. Half of this is for the aliens and the other half is for you (90 slots each side). Also note that bodies (unconscious or dead) need space in the item table, which is why you don't get the full 90 items (it's used up pretty fast anyway, once you start to see corpses disappearing). 

 

- NKF

 

Thank you for the well thought out reply :)

 

- Tue -

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...