Jump to content

About The Savegames


sigget

Recommended Posts

im having trouble making sense of the stuff in store.txt, each item has a name that identifies it, looks like AR-LAZR for the Alien Laser Gun, i was trying to find the names the game uses for this entry, so i looked in localizationpack.vfs and found most of them there, but not all, and some names doesnt match, in savegames there's an entry called MGS-PUMP and in localizationpack its S-PUMP, and the whole range of stuff starting with TIT is totally missing, and ive looked in the configs of gamedata.vfs and there is config file that matches these strings together, was hoping for something like:

 

WEAPON

localization_string_name ""

id_name ""

 

but i cant make sense of this... has anyone of you looked at this?

Link to comment
Share on other sites

I'm not sure how much of this is relevant to the save games, but this is what I know.

 

AR-LAZR is the ID for the weapon, it's recorded in tactical\configs\gamelistofweapon.txt in gamedata.vfs.

For example, the ID for the Desert Eagle is P-EAGLE.

 

The file strategic\configs\ufopedia\listofglossary.txt in gamedata.vfs links the weapon ID to the glossary entry. Here is the record for the Desert Eagle:

     SUB_GLOSSARY
     ITEM P-EAGLE
     LONG_PACKAGE FIGHT
     LONG_TEXT P-EAGLE-DETAILED_DESCRIPTION
     PACKAGE FIGHT
     TEXT P-EAGLE
     VIDEO1 "strategic/models/interface/ufopedia/video/p-eagle.txt"
     VIDEO2 "strategic/models/interface/ufopedia/video/small_universal_sum_01.txt"
     VIDEO3 "strategic/models/interface/ufopedia/video/small_universal_sum_01.txt"
     VIDEO4 "strategic/models/interface/ufopedia/video/small_universal_05.txt"
   END_OF_SUB_GLOSSARY

ITEM matches to ID in listofweapon.txt

 

LONG_PACKAGE and PACKAGE I think tell the game which subset of localized strings to search in. In this case it's FIGHT

 

LONG_TEXT is the entry in fight.txt (in localization) with the long description shown in the Glossary (note "FIGHT/"):

  STR_RES
   ID FIGHT/P-EAGLE-DETAILED_DESCRIPTION
   LOCALE "The Desert Eagle, an extremely heavy weapon, offers a degree of stopping power few other pistols can match. Often referred to as a \"hand cannon,\" its extraordinary ability to inflict damage almost completely offsets its soft ammunition type, allowing it to be used against more heavily armored targets. In heavy combat, however, its seven-round capacity and long reload time can become liabilities."
 END_OF_STR_RES

TEXT is the short description shown in the list box in the Glossary and in the equipment screen. This is stored in listoflocal.txt in localization:

  STR_RES
   ID FIGHT/P-EAGLE
   LOCALE "Desert Eagle Mark XIX .357"
 END_OF_STR_RES

 

MGS-PUMP is the MaGazine for S-PUMP, another common one is MGBT-XXX which is a magazine battery for an energy weapon. Down the bottom of store.txt in the savegame are a group of 999 quantity magazines for items that don't take magazines. This is presumably to make them work when you do get the items. Items without magazines still need an entry in listofmagazine.txt to work IFAIK, so they wouldn't work if the magazine wasn't available in the store - I assume.

 

So:

In store.txt in the savagame get the string value for the key TEMPLATE.

Remove the speech marks and match it against:

ID in listofweapon.txt

ITEM in listofglossary.txt

WEAPON in listofmagazine.txt (which associates a magazine with a weapon).

Get the values for LONG_TEXT and TEXT from listofglossary.txt and match them in fight.txt and listoflocal.txt respectively to get the displayed text for the item.

 

I don't know what the TI* entries are for, but since they are marked as UNAVAILABLE like the corpses, alien armours etc they might be to do with R&D.

 

Fulby

Link to comment
Share on other sites

Sigget,I'm not sure how much use this'll be, but a while back I made a list of all the item/ammo/armour types in my savegame, it was fairly late-game, so it should be reasonably comprehensive, but if I'm missing anything please let me know:

 

https://www.ufoaftermath.co.uk/?c=Mods&p=mods

 

Yeah, the TI* items are transgenant armours, the RG* & ME* items are transgenant weapons.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...