Quasimorph
163 évaluations
Sort To Tabs
6
4
3
5
3
   
Récompenser
Ajouter aux favoris
Favoris
Retirer des favoris
Taille du fichier
Publié le
Mis à jour le
7.698 MB
13 juil. 2024 à 14h07
8 févr. à 7h58
10 notes de changement ( voir )

S'abonner pour télécharger
Sort To Tabs

Dans 1 collection faite par nbk_redspy
Hotkeys and Click Reduction Pack
6 objets
Description
Quasimorph Sort To Tabs


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 be prompted to reset the item rules.
It is recommended to do the reset. Regardless of the choice, the previous config file will be backed up to %AppData%..LocalLowMagnum Scriptum LtdQuasimorph_ModConfigsQM_SortToTabsQM_SortToTabs.json.upgrade-backup.

The mod can be reset to the new defaults at any time by deleting the config file located at %AppData%..LocalLowMagnum Scriptum LtdQuasimorph_ModConfigsQM_SortToTabsQM_SortToTabs.json

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%..LocalLowMagnum Scriptum LtdQuasimorph_ModConfigsQM_SortToTabsQM_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
Discussions populaires Tout voir (2)
3
29 janv. à 20h53
Suggestion for tez items
Ragnaman
2
22 juil. 2024 à 8h13
Suggestion: sort all tabs when pressing F5
Ragnaman
81 commentaires
Necrosx 24 févr. à 15h29 
Evening.
Wanted to check in and see how the research for the beta is going and if there's a rough ETA for your mods being updated? Not trying to rush you, just excited for the augmentation that is offered in the beta, and find your mods invaluable to playthroughs.
Necrosx 18 févr. à 13h56 
Glad to hear it! Thanks for a clear answer and look forward to seeing things updated for the beta.
And thanks for your work on the mods.
nbk_redspy  [créateur] 18 févr. à 13h06 
I need to research the changes for this current beta. I think I’m going to try for this beta and see how the next updates go.
Necrosx 17 févr. à 21h10 
I understand that you have a lot of mods to work on, but I wanted to ask if your mods will be getting updates for the beta branches as they roll out, or if you're only going to be updating during the main releases?
CyanHappynide 16 févr. à 9h57 
Such an essential QoL improvement. The base game needs this, and I don't how if I would keep playing as long as I have if it weren't for this sorting my stuff. Love a good auto-sort.
Definitely feels like this feature was intended when they added the AutoDissassembly ship upgrade.
RodriguesCIA 10 févr. à 21h04 
The mod is in working order currently, so let's attribute the hiccup to engine being feisty or most likely user error.

Fantastic mod, really reduced the tedium of cargo management. E feature the game begs to be vanilla. Great work.
nbk_redspy  [créateur] 10 févr. à 12h43 
Also, make sure you are pressing the Item Move key (F5 by default) to cause the items on the current tab to be moved.
nbk_redspy  [créateur] 10 févr. à 5h29 
@RodriguesCIA If it does end up being a mod conflict, I would appreciate it if you would let me know which mod is the issue so I can research it.

I can say that all of my mods do work together without any issues.

If you need help, feel free to contact me on the discord server's #modding-general channel.
I'm happy to check out your mod list and game log.

https://discord.gg/y8bRVNzzm6

Thank you!
nbk_redspy  [créateur] 9 févr. à 21h22 
Try disabling other mods. If that does not work, try deleting the config file in the docs above.

The mod is known to work, so it is most likely a mod conflict.
RodriguesCIA 9 févr. à 20h45 
Currently not working apparenlty.