Quasimorph

Quasimorph

235 ratings
Sort To Tabs
8
4
5
5
4
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
7.694 MB
13 Jul, 2024 @ 2:07pm
11 Apr @ 2:25pm
11 Change Notes ( view )

Subscribe to download
Sort To Tabs

In 1 collection by nbk_redspy
Hotkeys and Click Reduction Pack
9 items
Description
Quasimorph Sort To Tabs


Docs

A mod to automatically move items to specific tabs using rules defined by the user.

For example, weapons to the first tab, ammo on the second, armor on the third, etc.

Press F5 to apply the move rules for the items on that tab. Press S to invoke the game's normal sort.

The rules and hotkeys can be changed in the configuration file. See the Configuration section below.

Previous Users

Users that have used the mod before Quasimorph 0.8.5 Will have their rules reset due to config changes.
The previous config file will be backed up to %AppData%\..\LocalLow\Magnum Scriptum Ltd\Quasimorph_ModConfigs\QM_SortToTabs\QM_SortToTabs.json.upgrade-backup.

Default Rules

The default rules are:
Item
Destination Tab
Emergency case
1
Weapons
1
Placeable items (turrets, mines, etc.)
1
Grenades
1
Ammo
2
Armor
3
Medical and Food
4
Repair Items
5
Containers, robots, resources, barter items, quest items
6
All other items
1

Support

If you enjoy my mods and want to buy me a coffee, check out my Ko-Fi[ko-fi.com] page.
Thanks!

Configuration

Files

The configuration file will be created on the first game run and can be found at %AppData%\..\LocalLow\Magnum Scriptum Ltd\Quasimorph_ModConfigs\QM_SortToTabs\QM_SortToTabs.json.

See the rules section below.

Shortcut Keys

The refresh and sort keys can be found in the config file. Valid keys can be found at the bottom of https://docs.unity3d.com/ScriptReference/KeyCode.html

Rules

The rules search for a match from top to bottom. First match wins.
The rules have the following optional parts: Id (ex: army_knife), Type (ex: ArmorRecord), SubType (ex: QuestItem), and Category (Tezctlan). Any blank values will not be used to match an item.

Any item that does not have a matching rule will not be moved.

Most rules will only need a single value such as Type or Id.

A rule with all blank values will match every item. This should be put at the end of the rules.

The data for every item is exported to DataExport.csv. See the Data section below for more info.

Example rules:
TabNumber
Id
Type
SubType
ItemClass
Category
Result
4
Alcohol
Moves all alcohol items to tab 4
5
Tezctlan
Moves all Tezctlan items to tab 5
1
army_knife
Moves all army knives to tab 1
2
WeaponRecord
Moves all weapons to tab 2
2
AmmoRecord
Moves all ammo to tab 2
7
QuestItem
Moves all Quest items to tab 7
6
(All Blank) moves all unmatched items to tab 6

Example Entry in the config file:
{ "TabNumber": 1, "AltTabNumber": 0, "ItemMatch": { "Id": "", "RecordType": "WeaponRecord", "SubType": "", "Category": "", "ItemClass": "" } },

Category Note

While items can have more than one category, the rule's Category property only supports one item.

Example from the DataExport.csv:
Id
Type
SubType
ItemClass
Categories
venus_knife_1
WeaponRecord
Weapon
Tezctlan XiomaraMasks

To match all Tezctlan and XiomaraMasks, there would need to be one rule for each. Using "Tezctlan XiomaraMasks" will not work.

Data

The mod will export all of the items' info to %AppData%\..\LocalLow\Magnum Scriptum Ltd\Quasimorph_ModConfigs\QM_SortToTabs\DataExport.csv.

Example data from DataExport.csv:
ItemName,Id,Type,SubType,ItemClass,Categories claw,common_knife_1,WeaponRecord,,Weapon,Military Police Common Medical Science CResistance UnchainedBelt SheduThousand Elite Knife,military_knife_1,WeaponRecord,,Weapon,Managment Military Police CResistance UnchainedBelt SheduThousand shiv,miner_knife_1,WeaponRecord,,Weapon,Miner Common Worker CResistance UnchainedBelt

The ItemName column is the item's name as displayed in the game, and is not use by the rules.
The Categories column contains one or more value and is separated by spaces.

Special Recycling Rules

If the ship a recycler and the recycler is not in use, the rules will treat the recycler as an eighth tab.

If a rule targets the eighth tab but the recycler is not available or in use, the rule will not move the item.
However, if the property AltTabNumber is set, that tab will be used as the target instead.

This allows a user to create a staging tab until the recycler is available. When the recycler is ready, running the sort on that tab will move the staged items to the recycler.

Example:
{ "TabNumber": 8, "AltTabNumber": 7, "ItemMatch": { "Id": "pmc_pistol", "RecordType": "", "SubType": "", "Category": "", "ItemClass": "" } },

Bad Config File

If the configuration has a loading issue (such as it being incorrectly formatted), the game will use the defaults.
There will be an error in the log player.log indicating this, but will not be obvious to users otherwise.

To recover, delete the config file and restart the game. A new config file with the defaults will be created.

Debugging

To assist with debugging the rules while running the game, the mod will reload the configuration any time the file is saved.

The config optionDebugLogMatches can be enabled to log which rule matched the item. This will write every item and the rule that matched that item to the game's Player.log.

The game's log can be found here %AppData%\..\LocalLow\Magnum Scriptum Ltd\Quasimorph\Player.log

Credits
  • Thanks to GitHub user WiliamRogers1886 for providing an interim 0.8.5 patch.

Source Code

Source code is available on GitHub https://github.com/NBKRedSpy/QM_SortToTabs
Popular Discussions View All (3)
5
26 Jul @ 5:41pm
Adding a rule to the config file.
nbk_redspy
4
10 May @ 10:51am
Suggestion for tez items
Ragnaman
2
22 Jul, 2024 @ 8:13am
Suggestion: sort all tabs when pressing F5
Ragnaman
103 Comments
Niric 16 minutes ago 
Seems to be working with 0.9.5! Thank you, the 'press F5 to quick tab sort' is awesome! I've not tried customizing the default sort but I think the default is good as is!
nbk_redspy  [author] 25 Jul @ 12:40pm 
I'm glad you like the mod!

Steam has a character limit for comments, so I have to continue this in the Discussions tab:

https://steamhost.cn/steamcommunity_com/workshop/filedetails/discussion/3288631292/604162514919546094/
The New Player 25 Jul @ 12:10pm 
Hey there,

Thanks again for this great QOL mod.

Just to confirm my understanding,
If I want a specific item to go to a certain destination table. I need to go into the Excel file, modify the type, save and then it should filter accordingly right? For example, for the food container to go into food instead of container, I need to just change the type to replace "container"?

I don't know if I am missing something but everything I save the change, it seems to revert back to the original after starting the game (at least when modifying the Excel with all the items file)

Any guidance would be appreciated,

Cheers,
nbk_redspy  [author] 24 Jul @ 10:58am 
Yep, the rules can be completely customized. How to change the rules are in the description above. It can be as much as "All of these types go to this tab", all the way down to "I want this specific item" to go to this tab.

If you want some help to get started, you can @ me on the Discord server. But give it a go first if you don't mind. If something gets messed up, you can just delete the config file and the default one will be created next time the game is launched.
Hero1990 24 Jul @ 9:58am 
is there a way to change this i would like to have
turrets robots melee weapons and weapon container in cargo 7
all ranged weapons in cargo 6
all ammo and grenades in cargo 5
all armor and clothing containers vests backpacks in cargo 4
all medical/implants/contracts in cargo 3
all food/ food containers / alcohol in cargo 2
and the rest in cargo 1
would it be hard for me to change this mod in such a way (im a total noob at this) or is this pretty easy to acomplish ?
nbk_redspy  [author] 22 Jun @ 7:19am 
Yes. All of my mods are compatible with each other.
=X= 22 Jun @ 5:53am 
Will this mod and your "sort excess to bottom" work together?
MercxHaze 12 Jun @ 11:17am 
unrelated to this mod ur a saint dawg
nbk_redspy  [author] 17 May @ 12:45pm 
all but four of my mods are currently compatible with the opt in 0.9.1 beta.
The incompatible mods will have an Important section at the top.
Stygota 17 May @ 12:24am 
Tried the mod out with the beta after trying to tough out sorting everything manually. Seems to still work well - default config file. I haven't gone in and customized any of the sorting.