Great idea.New Expansion Format
One of the big things we have done is make sure that installing the new expansion doesn’t stop you from accessing the old expansions and DLC. This means you can still play For the Motherland with Dies Irae - Götterdämmerung and Stars and Stripes etc if you so wish. The expansion is now installed in a sub-folder named "tfh" which contains all the new files and ensures it doesn’t mess up any of the old files.
If the TFH files are all in a new sub-folder, does this mean we need to have the FtM 3.05 patch installed prior to adding TFH?
Thanks in advance for the info!
If I recall correctly, in CK2 that sort of thing was handled by replacing file with folder (I.E. folder called "religion" instead of religion.txt) and you could then add files to that folder in same fashion like adding new events, decisions or localisations. That sort of system would work for files like event_modifiers, as long as you only ever added new stuff. Editing existing ones would cause similar issues like having two events share same ID. However, files with fixed entries, like defines.lua or static_modifiers.txt could not really be handled that way.
In any case, changing that for TFH is probably a bit late by now...
Sounds good to me. If CK2 modders satisfied with that solution, same can be true for HoI community )If I recall correctly, in CK2 that sort of thing was handled by replacing file with folder (I.E. folder called "religion" instead of religion.txt) and you could then add files to that folder in same fashion like adding new events, decisions or localisations. That sort of system would work for files like event_modifiers, as long as you only ever added new stuff. Editing existing ones would cause similar issues like having two events share same ID. However, files with fixed entries, like defines.lua or static_modifiers.txt could not really be handled that way.
Another great feature for mod distribution/installation. Also, does it reduces loading time, when you put many small files into archive?Code:archive = "mod/EXAMPLE.zip" # if you want to put your mod files in an archive instead (wont load path)
Another great feature for mod distribution/installation. Also, does it reduces loading time, when you put many small files into archive?
That's good to hear.it is MUCH MUCH faster to copy things around though. windows is very slow at copying thousands of files. The option is mostly there to make managing mod files easier
podcat, is it WAD, that a mod for TFH needs to have 'tfh/mod/ModName' set as a path?
Can you expend on this please? am I right to assume that by default the whole mod folder is treated as extend in FTM, unless the 'replace_path' is set, in which case that folder is replaced?replace_path = "events" # this replaces whole path instead of just adding files as normal. useful for directories where the game just loads everything
Just to confirm, in the OP example it will create this folder in:user_dir = "EXAMPLE" # optional. creates a sub directory where settings/map cache/savegames etc can be safely written for your mod and not get mixed up
Wouldnt it also make fixes more problematic?in theory it should, but I havent really noticed a big difference. it is MUCH MUCH faster to copy things around though. windows is very slow at copying thousands of files. The option is mostly there to make managing mod files easier
Can you expend on this please? am I right to assume that by default the whole mod folder is treated as extend in FTM, unless the 'replace_path' is set, in which case that folder is replaced?
New Expansion Format
One of the big things we have done is make sure that installing the new expansion doesn’t stop you from accessing the old expansions and DLC. This means you can still play For the Motherland with Dies Irae - Götterdämmerung and Stars and Stripes etc if you so wish. The expansion is now installed in a sub-folder named "tfh" which contains all the new files and ensures it doesn’t mess up any of the old files.
if everything else is extended by default, because I see no option to extend, unlike TFM where you specifically had to either extend or replace every folder.What are you wanting to know? it's the same as {replace = "events"} in 3.05 as opposed to {extend = "events"}
did mod/ModName not work? I would think that both should work. are you using the launcher to start the mod?
set path toYes, i tried both launchers (launcher.exe and hoi3.exe, the two non-FTM-launchers with ~45 kB size) and 'mod/ModName' did not work.
set path to
"/tfh/mod/mod folder name"
I got it working last night
[...]
extend is implied unless you use the replace commandif everything else is extended by default, because I see no option to extend, unlike TFM where you specifically had to either extend or replace every folder.
extend = "events"