Post tutorial Report RSS Assign Separate Saved-game File To Your Mod

In this thread I will be discussing the editing of trtext files so that your mod can use a separate saved-game file to the base game.

Posted by on - Basic Client Side Coding

WHERE TO BEGIN?Firstly open the file 'tt01.pc' with Notepad++. The file is located within the 'trtext' folder, see one of my other guides detailing the file structure and formats for FUEL.


To get the text displayed as above, I selected the closest resembling language - javascript.

-------------------------------------------------

WHAT DOES THIS ALL MEAN?

Within this file I am only going to be focusing on line 9. This is the name of the saved-game value.

code:
TT 8 "FUEL_SAVE_V14"

code:
TT

calls for a new TT to be created.

code:
8

is the reference number for the TT

code:
"FUEL_SAVE_V14"

sets the text string for the name of the saved-game.

-------------------------------------------------

CHANGING THE SAVED-GAME NAME
To do this simply change the value

code:
"FUEL_SAVE_V14"

to whatever you want. For instance

code:
"FUEL_SAVE_MY_MOD"

.

Next time you start up the game it will look for a file with the name

code:
"FUEL_SAVE_MY_MOD"

and if it doesn't find one, it will just create a new saved-game with the same name.

If you develop a mod with content changes then it is essential you set a different saved-game name as it could cause damage to the user(s) saved games.

Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: