Jump to content

Newbie Modder Questions


dkt0404

Recommended Posts

I've been poking around the forum here and some seem to deal with a ini file that no longer works and others with hex editing the upk files

 

Seems to leave out the middle step in what I've found.

 

I want to edit just one value at the moment.

 

The recovery time for soilders.

 

But I'm not sure what it's called in the upk files or even if thats where to look.

 

Can someone point me to where to look for directions on how to edit one value?

 

Just looking for a step by step set of directions. I can expand on it from that point.

Link to comment
Share on other sites

There's one ini file that contains many interesting things you can edit. This ini file has been moved by the developers to the EXE. You can edit it by different ways. The Modpatcher is right now the easiest way:

http://forums.nexusmods.com/index.php?/topic/804882-modpatcher/

 

Download the latest version.

 

Extract it to (game folder) \ Binaries \ Win32

 

Open the ".mod" file with a text editor and change some numbers. Save the file when you are done.

 

Run "patcher.bat". Afterwards, it will create a backup file of the EXE, that's how you know it has finished.

 

Start Steam in offline mode, then start the game.

 

 

The values you want to change are:

BASE_DAYS_INJURED

RAND_DAYS_INJURED

 

Base_Days is a fixed number, so if you put it on 10, it will always be 10. Rand_Days is randomized, so if you put it on 20, it will pick a random number between 0 and 20. Then it will add Base_Days and Rand_Days together to get the total recovery days.

 

For gravely injured recovery days, it will do the calculation two times and then combine the numbers.

 

Here's the formulas:

Injured days total = (base days + random days)

Gravely injured days total = (base days + random days) + (base days + random days)

 

 

You can also edit the UPK files to change the way the days are calculated, but I guess that's more advanced stuff that you should only try later, when you feel confident you can do it.

Edited by BlackAlpha
Link to comment
Share on other sites

1. Make sure your game is patched and up to date. Try deleting the .exe, verifying game cache from Steam to re-update it.

2. Start a game, then quit (it does some final processing on start up).

3. Run the mod patcher, having changed BASE_DAYS_INJURED and RAND_DAYS_INJURED to the values you desire (it's in days - so 2 and 1 respectively would give you 2-3 days injured).

 

Should work after that. If it still doesn't... well, ask and someone more knowledgeable than me should be able to help you out.

Link to comment
Share on other sites

Right click the file - properties - details tab and there should be file version. My 2nd update XComGame.exe version is 1.0.0.14565.
Link to comment
Share on other sites

I'm not sure Steam updated it to the latest patch. I did the verify and it did redownload what I'm assuming was the EXE.

 

Is there a way to check version number in XCOM?

 

On Steam, whenever you update/install/reinstall/verify you need to start the original game and quit the game to finish the installation process. If you do not do that, some files will not be up to date.

Link to comment
Share on other sites

I'm not sure Steam updated it to the latest patch. I did the verify and it did redownload what I'm assuming was the EXE.

 

Is there a way to check version number in XCOM?

 

On Steam, whenever you update/install/reinstall/verify, you need to start the original game and quit the game to finish the installation process. If you do not do that, some files will not be up to date, and some games like this one might even crash.

Edited by BlackAlpha
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...