Please do not ask when mod authors will update their mods to 3.10 or if they can upload older versions of their mods.
Bothering mod authors will lead to warnings and repeat offenses will lead to eventual bans.
Bothering mod authors will lead to warnings and repeat offenses will lead to eventual bans.
This mod is no longer maintained!
Deprecated since aki 2.3.1
TrapModLoader
Description
Initially, the official ModLoader from spt-aki offers a way to load mods in a certain orders using a loadorder.json
inside the mods
folder.
Unfortunately, the load order is applied only for the onLoad
method, not at js package import.
This mod hijack the official ModLoader api and allow you to setup a proper loadorder.json
Usage
- Place
TrapModLoader
insideuser/mods
folder - Move all other mods in
user/mods/TrapModLoader/mods
- Run the server once to generate a default
loadorder.json
(inuser/mods/TrapModLoader/mods
) - edit the generated
loadorder.json
as you want
Be sure to use a version >= 1.0.2
Compatibility with other mods
- For Le Kaiju Advanced modding, change the API.Override part in config.json to:
Code
"Override": { "enabled": true, "value": "CoreMod" }
Notes
- mods can be disabled, remove the name of the concerned mod from the
loadorder.json
file loadorder.json
file can be re-generated, delete the file and run the spt-aki server again- at each start, some folders prefixed by `TML_DLLS_*` could be generated in your root `user/mods` directory (depends if you have installed some clients mods)
Credits
Thanks to Gave_Over for making the image
-
Version 1.0.5
- trap
- 705 Downloads
Changelog
update for aki 2.3.0
-
Version 1.0.3
- trap
- 482 Downloads
Changelog
Fixes
- prevent server to crash when mods listed in
loadorder.json
are missing
-
Version 1.0.2
- trap
- 64 Downloads
Changelog
Fixes
- client mods dlls are now loaded by TML
-
Version 1.0.1
- trap
- 189 Downloads
Changelog
Fix
- integration with AdvancedTraderFramework mod
-
Version 1.0.0
- trap
- 47 Downloads
1CowboyR5
By "Deprecated for aki 2.3.1" mean that there will be no version for 2.3.1?
trap Author
For short, it doesn't work with BepInEx mods (included since version 2.3.1)
RogueTech67
Great mod
Tested:
1) Removed a mod ONLY from the loadorder.json, NOT from the \mods folder, and it properly did NOT load, GOOD.
2) Then added a "new" mod to \mods, loadorder.json did NOT get updated to include/load the new mod
Just verifying that this is the EXPECTED results? Appears the loadorder.json ONLY gets generated ONCE, and then NEEDS to be deleted from and added to exclude and include mods. Any new mods need to be both 1) added to the \mods folder, and 2) manually added to the loadorder.json? Or have the loadorder.json deleted, and the server rerun to regenerate? This is fine, it's just not a "dynamic" process.
Can the author "trap" confirm??? Thanks
trap Author
Exactly, the loadorder.json is generated only when not exist, this is totally expected because we want to be able to disable mods (if you re-generate the file again, you cannot disable a mod via the json file)
Hope it helps.