Caravan Item Selection Enhanced
Description:
Personally I think one of the most user-unfriendly parts of the game is managing caravans.
This mods aim is to improve one aspect of it: The selection of the items/pawns when forming a caravan (or splitting a caravan or loading transport pods).
[list]
[*] Add new tabs (vanilla has three tabs: Pawns, Travel Supplies, Items), rename tabs, change their position and so on.
[*] Add subcategories to tabs (in vanilla only the pawns tab has subcategories: Colonists, Prisoners, Animals, ...)
[*] Set which items each tab/subcategory should contain.
[*] The mod comes with a default tabs configuration (config) which contains some additional tabs and subcategories. All items that can be stored will be assigned to a tab and a subcategory, even those added by mods. You can easily add new configs, load configs and change configs.
[*] Items that are not assigned to any tab will be automatically assigned to a new tab called "unassigned".
[*] Configs are saved in the mods config file in the config folder of the game, so they are not per-savegame but global.
[*] The mod should be completely save to add and remove from exisiting savegames. Nonetheless make a backup!
[/list]
Additional features:
[list]
[*] Loading list: All three affected guis display what pawns/items are selected (can be turned off in the mod settings)
[*] Presets: Save currently selected pawns/items as a preset to be able to form a caravan (or load a transporter) with just a few clicks later on. There is a mod setting to set the difference in hitpoints that is allowed. Hitpoints are only taken into account for things with quality and buildings.
[*] Selected items and pawns are automatically added when forming a caravan or loading a transporter (can be turned off in the mod settings)
[*] New "sort by" option: Sort by "colonist bar". This will order your colonists in the pawns tab according to their order in the colonist bar
[*] Mod setting to show the button 'select everything' in the caravan forming dialogue, regardless whether dev mode is activated.
[*] Mod setting to show a dropdown menu when clicking 'reform caravan' to define if items and pawns should be preseleced.
[/list]
How to use:
The caravan form/split and load transporters gui have a new button called "tab settings" at the top right corner which will open the mods gui.
On the top right corner of the new gui there is a button called "help me" which will display additional infos and explanations.
This should solve all questions how things are working.
Limitations:
It is not possible to remove/change the pawns tab or add colonists to a another tab.
The number of tabs is limited to 15 and the number of subcategories per tab is limited to 20.
The vanilla feature to "auto select travel supplies" is removed.
Performance:
As the code only runs when the caravan/transport pod gui is opened (and a little bit on RW startup), performance should be not a problem.
Compatibility:
Not compatible with mods that rely on CaravanUIUtility.CreateCaravanTransferableWidgets(...).
Tell me if you stumble across mods that are incompatible so I can add them to the list of incompatible mods.
It does not work:
Either a bug, your config got smashed somehow or a mod conflict.
If it is the config you should delete the config of the mod in the games config folder. The default config will then get recreated at the next startup.
Otherwise it would be nice to post a report with at least a hugslib log, but way better would be steps to recreate the problem.
Else:
Source of the mod is included.
Credits and Thanks to:
Ratzinger for beta testing and giving feedback.
Brrainz for Harmony.
Timmy for the idea and hook for the loading lists.
Marnador for the RimWorld font, used in the preview pictures.
Tynan and Ludeon for RimWorld.
Dubs for an example how to save stuff to the config file.
[url=https%3A%2F%2Fcreativecommons.org%2Flicenses%2Fby-nc-nd%2F4.0%2F] License [/url][creativecommons.org]