Home » MODDING HQ 1.13 » v1.13 Modding, Customising, Editing » v1.13 Modding, Customising, Editing » QOL question about the .INI editor. (Solved.)
QOL question about the .INI editor.[message #366098] Wed, 22 May 2024 11:38 Go to next message
Marcus is currently offline Marcus

 
Messages:123
Registered:November 2014
A quality of life question about the INI editor: We're developping the mod using the 2024-03-19 version. Each time we want to run the mod we must set the vfs.ini because the editor does not save this setting. It's a totally minor issue, but it would be nice to get it working. Is it possible?

[Updated on: Mon, 27 May 2024 01:07]

Report message to a moderator

Sergeant
Re: QOL question about the .INI editor.[message #366099 is a reply to message #366098] Wed, 22 May 2024 19:09 Go to previous messageGo to next message
Kitty

 
Messages:505
Registered:October 2017
Location: Germany
In ja2.ini (= not ja2_options.ini),

there is:

;******************************************************************************************************************************
; Define here the correct vfs_config.XYZ.ini for the MOD you would like to play
; If you would like to play a different MOD, you only need to change this line with the correct vfs_config.XYZ.ini
;******************************************************************************************************************************

; JA2 1.13
 VFS_CONFIG_INI = vfs_config.JA2113.ini

; JA2 1.13 - Vanilla (JA2 Classic)
; VFS_CONFIG_INI = vfs_config.JA2Vanilla.ini

; JA2 Unfinished Business 1.13
; VFS_CONFIG_INI = vfs_config.UB113.ini

; JA2 Unfinished Business 1.13 - Vanilla (JA2UB Classic)
; VFS_CONFIG_INI = vfs_config.UBVanilla.ini
-

You can comment out 1.13-vfs-ini with ";"
and add lines about your own mods ini

; YourMod
  VFS_CONFIG_INI = vfs_config.YourMod.ini

; JA2 1.13
; VFS_CONFIG_INI = vfs_config.JA2113.ini

; JA2 1.13 - Vanilla (JA2 Classic)
; VFS_CONFIG_INI = vfs_config.JA2Vanilla.ini

; JA2 Unfinished Business 1.13
; VFS_CONFIG_INI = vfs_config.UB113.ini

; JA2 Unfinished Business 1.13 - Vanilla (JA2UB Classic)
; VFS_CONFIG_INI = vfs_config.UBVanilla.ini
-

That way, this should become the default setting
-
You can also do the same with resolution, change it to your prefered one

; The screen resolution of the game
SCREEN_RESOLUTION = 5

; The screen resolution of the map editor
EDITOR_SCREEN_RESOLUTION = 5
-

If you plan to regulary do changes in ja2_options.ini, I would advise to use a texteditor (like notepad++) instead of the IniEditor
At least I consider it much more comfortable myself (search function, etc)

[Updated on: Wed, 22 May 2024 19:13]




How to get: latest 1.13, 7609 and more | 7609 SCI (eng) | Compiling+SVN

I need more details. (Didi Hallervorden)

Report message to a moderator

First Sergeant
Re: QOL question about the .INI editor.[message #366101 is a reply to message #366099] Thu, 23 May 2024 08:50 Go to previous messageGo to next message
Marcus is currently offline Marcus

 
Messages:123
Registered:November 2014
Hello.
Apparently the game files are against me.. My JA2.ini in the main folder was already set as you describe. I checked the the path in the file properties, it points to my mod. If the thing does not cause more damage than resetting the ini editor each time I'll leave the file as it is. It is MIGHTY odd, though.

Report message to a moderator

Sergeant
Re: QOL question about the .INI editor.[message #366103 is a reply to message #366101] Thu, 23 May 2024 21:49 Go to previous messageGo to next message
Kitty

 
Messages:505
Registered:October 2017
Location: Germany
Marcus wrote on Thu, 23 May 2024 08:50
Hello.
Apparently the game files are against me.. My JA2.ini in the main folder was already set as you describe. I checked the the path in the file properties, it points to my mod. If the thing does not cause more damage than resetting the ini editor each time I'll leave the file as it is. It is MIGHTY odd, though.
If you change "Select JA2v1.13 MOD" in IniEditor, after a save, the changes will be applied to ja2.ini

If you change ja.ini manually, the changes will be applied to ja2.ini

Doesn't matter the method, the file will be changed

But if you do it manually beforehand (like described in previous post), you will see whatever you've chosen as vfs_congig.ini as default in IniEditor

-

But, just a guess, did you may actually refer to which ja2_options.ini will show?
The one under "Select INI file" instead of "Select JA2v1.13 MOD"?

If so, as far as I know, it hardly matters
If you start the game, game will use the ja2_options.ini it can find in directory with highest priority in chosen vfs_config.ini

Say you choose the vanilla ja2-options.ini in IniEditor (the one in "Data") and edit it, but as vfs-config.ini you choose 1.13
In this case, first ja2-options.ini found is in "Data-1.13" (not just "Data") and will be used (and anything you've edited in ja2options in "Data" will not be used)

-

Since you've changed starting sector for your mod and that requires your mod to have it's own ja2_options.ini,
your mod should contain it's own ja2_options.ini in Data-YourMod

if you now set vfs.config.ini of YourMod as default in ja2.ini (manually or with IniEditor), highest priority directory game can find ja2_options.ini will be in Data-YourMod
Once you've set the vfs.config.ini to be your mod, there's hardly a need to use the IniEdior ever again
Edit the ja2options.ini in Data-YourMod with notepad++ (or another texteditor)
If you start the game with ja2.exe or ja2mapeditor.exe it will start with what's set as vfs.config.ini in ja2.ini and will use the ja2options.ini which this vfs.config.ini has set as highest priority (i.e. the one in Data-YourMod)

-

A description of how vfs is working:

VirtualFileSytem (vfs)

[Updated on: Thu, 23 May 2024 22:00]




How to get: latest 1.13, 7609 and more | 7609 SCI (eng) | Compiling+SVN

I need more details. (Didi Hallervorden)

Report message to a moderator

First Sergeant
Re: QOL question about the .INI editor.[message #366110 is a reply to message #366103] Mon, 27 May 2024 01:07 Go to previous message
Marcus is currently offline Marcus

 
Messages:123
Registered:November 2014
Ok, it took a while but I got it! Thanks, Kitty!

Report message to a moderator

Sergeant
Previous Topic: Enable Sectors like O14, J1, etc. & Function Militiamaps
Next Topic: How to move the starting sector?
Goto Forum:
  


Current Time: Thu Jun 11 05:06:51 GMT+3 2026

Total time taken to generate the page: 0.00638 seconds