Quasimorph
163 평점
Sort To Tabs
6
4
3
5
3
   
어워드
즐겨찾기
즐겨찾기됨
즐겨찾기 해제
파일 크기
게시일
업데이트일
7.698 MB
2024년 7월 13일 오후 2시 07분
2025년 2월 8일 오전 7시 58분
업데이트 노트 10개 (보기)

다운로드 위해 구독하기
Sort To Tabs

nbk_redspy님의 1 모음집
Hotkeys and Click Reduction Pack
아이템 6개
설명
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
인기 토론 모두 보기(2)
3
2025년 1월 29일 오후 8시 53분
Suggestion for tez items
Ragnaman
2
2024년 7월 22일 오전 8시 13분
Suggestion: sort all tabs when pressing F5
Ragnaman
댓글 81
Necrosx 2025년 2월 24일 오후 3시 29분 
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 2025년 2월 18일 오후 1시 56분 
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  [작성자] 2025년 2월 18일 오후 1시 06분 
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 2025년 2월 17일 오후 9시 10분 
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 2025년 2월 16일 오전 9시 57분 
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 2025년 2월 10일 오후 9시 04분 
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  [작성자] 2025년 2월 10일 오후 12시 43분 
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  [작성자] 2025년 2월 10일 오전 5시 29분 
@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  [작성자] 2025년 2월 9일 오후 9시 22분 
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 2025년 2월 9일 오후 8시 45분 
Currently not working apparenlty.