Home » MODDING HQ 1.13 » v1.13 Modding, Customising, Editing » v1.13 Modding, Customising, Editing » Merging INI Files?
Merging INI Files?[message #331712] Fri, 11 April 2014 07:09 Go to next message
Azure_Repeater

 
Messages:152
Registered:March 2014
Location: Philippines
As the title says, how does MERGE_INI_FILES actually work? What does it do? What happens when it's enabled?

Does that mean the game will check the other file when one of the options are missing (i.e. an error report containing X is neither set to TRUE or FALSE. The value Y will be used)?

If so, that means I will have to customize my game using both files, right?
Re: Merging INI Files?[message #331713] Fri, 11 April 2014 10:05 Go to previous messageGo to next message
JMich

 
Messages:580
Registered:January 2011
Location: Greece
Let's start with the basics.

The vfs config file you are using tells the game the locations it should look for files in. Those usually are Data, Data-1.13, Data-mod, Profile folder, and the game looks from right to left, so if it finds the required file in Profile folder it will use that one, if not it will look in the Data-mod folder, then the Data-1.13, then Data.
Let's assume you have in your profile folder a JA2_Options.ini which contains only the data for the starting cash. If MERGE_INI_FILES is off, the game will find data for starting cash, but each and every other option it looks for will not be found in the ini file, thus it will produce the red warning about no value, and use the defaults. If on the other hand the MERGE_INI_FILES is set for JA2_Options.ini, the game will use the starting cash values defined in the profile folder ini and the values defined in the Data-mod ini for the others, or if it can't find them there either, in Data-1.13 or Data. If it fails to find them anywhere, then the red warning will appear again.

So, do you need to customize both files? No, you only need to customize the one in the profiles folder, and only the settings you want to modify. Those will override the ones in the other folders, but replacing the one in Data-1.13 with a newer ini file will prevent the red warnings from appearing, without invalidating your own changes.
Re: Merging INI Files?[message #331715] Fri, 11 April 2014 11:29 Go to previous message
pheloncab

 
Messages:265
Registered:August 2004
Location: So. Cal. or texas
JMich
Let's start with the basics.

The vfs config file you are using tells the game the locations it should look for files in. Those usually are Data, Data-1.13, Data-mod, Profile folder, and the game looks from right to left, so if it finds the required file in Profile folder it will use that one, if not it will look in the Data-mod folder, then the Data-1.13, then Data.
Let's assume you have in your profile folder a JA2_Options.ini which contains only the data for the starting cash. If MERGE_INI_FILES is off, the game will find data for starting cash, but each and every other option it looks for will not be found in the ini file, thus it will produce the red warning about no value, and use the defaults. If on the other hand the MERGE_INI_FILES is set for JA2_Options.ini, the game will use the starting cash values defined in the profile folder ini and the values defined in the Data-mod ini for the others, or if it can't find them there either, in Data-1.13 or Data. If it fails to find them anywhere, then the red warning will appear again.

So, do you need to customize both files? No, you only need to customize the one in the profiles folder, and only the settings you want to modify. Those will override the ones in the other folders, but replacing the one in Data-1.13 with a newer ini file will prevent the red warnings from appearing, without invalidating your own changes.



I like your explanation. You should update the Wiki with it if its not there already.
Previous Topic: German conversion of Jagged Alliance 2
Next Topic: Psycho and its properties
Goto Forum:
  


Current Time: Thu Mar 23 22:05:48 EET 2017

Total time taken to generate the page: 0.00793 seconds