Kenshi
31 ratings
How to save/edit load order outside launcher
By Arty
Where and how the mod load order is saved in the game directory.
2
   
Award
Favorite
Favorited
Unfavorite
Guide
After deactivating my entire modlist of 100+ mods (most of them are really small, I swear) to test a mod in isolation and then discovering that doing so also nukes your load order, I set out trying to figure out how one would back up/change/possibly optimize their load order outside the launcher. Fortunately, it ended up being very simple.

In /Kenshi/Data, there is a file called mods.cfg

You can open this in a normal text editor. It contains your list of active mods in precisely the order they will be loaded.

Any changes you make here will be reflected in the mods tab of the kenshi launcher. Reorder the lines to reorder the load order, remove lines to deactivate that mod, etc. If you insert blank lines or mods that don't exist, they'll be ignored and overwritten when the launcher saves over the config (which it does on game launch or whenever you hit "Save config").


For example, mods.cfg should look something like this:
Top of the load order.mod Second of the load order.mod Wow this is useful.mod another mod.mod End of the load order.mod
Which would correspond with



Changing it to this:
Top of the load order.mod Second of the load order.mod another mod.mod Wow this is useful.mod End of the load order.mod
Would then give you this:

(You can hit "refresh list" to see the changes immediately)


Thus, to back up your load order, simply make a copy of mods.cfg arranged as desired and leave it somewhere safe.

Good luck with your future modding shenanigans!


PS: A sufficiently motivated and enterprising individual could theoretically use this to build a Kenshi load order optimizer...
7 Comments
Master Basher 7 Dec, 2023 @ 3:34am 
Since I'm a bit peeved on the PS not providing a possible example (*cough* programmers, lol.)

A Hackerman could in theory, be able to grab the list of mods to put into an "optimise" program, through the __mods.list file in the data folder.

In which case, I'd say if such a file organised 'groups' (alphabetical order) of mods through a "number / grade" system. Then that'd be based. ;)
Kowalth 16 Jan, 2021 @ 6:33pm 
"After deactivating my entire modlist of 100+ mods (most of them are really small, I swear) to test a mod in isolation and then discovering that doing so also nukes your load order..."

Haha Man, a red flag in my head appeared when I was about to do this. Thanks for sharing this info. Worths gold! :thetreasurechest:
Atlas 30 Aug, 2019 @ 5:27pm 
PPS. I'm steadily working on a load order tool thanks to your post and the kenshi reddit ;P
Fash 14 Jul, 2019 @ 5:02am 
thank you
Company 21 Jun, 2019 @ 11:47am 
Beep
Brimsaw 20 Jun, 2019 @ 10:58am 
You are a godsend, praise Okran, Narko and Beep for this guide!
Kaz 21 Apr, 2019 @ 8:16am 
Thanks this is really helpful has i test my load orders!