Quasimorph

Quasimorph

Sort To Tabs
nbk_redspy  [developer] 25 Jul @ 12:39pm
Adding a rule to the config file.
Continuing the discussion from the user named "The New Player":

If I want a specific item to go to a certain destination table...

I'm glad you like the mod!
The DataExport.csv is just to give the user all the info needed to create rules in the config file.

The config file (QM_SortToTabs.json) file is in JSON format. Which is just a text file in a structured format.

So lets say I want the Emergency case to go to tab 7.
I would look in the DataExport.csv for Emergency case. The second column is the id so I can see the game's id for it is itemsBox.

I'll add new entry to the QM_SortToTabs.json. It needs to be near the top of the TabMappings since rules are read from top to bottom and first match wins. We don't want some rule that covers an entire category to cause our new rule to be ignored.

So the new Text would look something like this:

{ "TabNumber": 7, "AltTabNumber": 0, "ItemMatch": { "Id": "itemsBox", "RecordType": "", "SubType": "", "Category": "", "ItemClass": "" } },

Since ID can only match a single item, there's no need to fill in the other stuff like RecordType or SubType.

Maybe in a future update I'll just change the rules to use a csv. I think the average user might find .json a bit difficult since they have probably never seen the format before.


If you need more help, either reply here or @ me on the game's official Discord server.
Last edited by nbk_redspy; 25 Jul @ 12:44pm
< >
Showing 1-5 of 5 comments
Thank you for your quick reply and clear explanation! It's working now!

But just to clarify, only the QM_SortToTabs can be modified? The DataExport Excel file can only be viewed but cannot by modified correct?

By curiosity, if there is a couple of items I want to move into a different category, is the best way to achieve this is by adding one new entry per item Id (so one by one)? Or is there a better way to reach / more efficient / less time consuming way to that goal?

As another user mentioned, for example, if we are trying to separate melee weapon from range weapon into two different destination table. Is the only way forward doing it one by one as one new text per item for each melee weapon in the game?

I thought maybe we could just change the DataExport to add a new Subtype (e.g Subtype:Melee) and only having to create a new rule instead of a dozen. But again, seems like DataExport doesn't save the modifications.

Thank you for your expertise on this
nbk_redspy  [developer] 26 Jul @ 6:12am 
But just to clarify, only the QM_SortToTabs can be modified?

Correct.

The purpose of the DataExport.csv is to provide the information required to create rules in the .json file. It is effectively read only.

As another user mentioned, for example, if we are trying to separate melee weapon from range weapon into two different destination table. Is the only way forward doing it one by one as one new text per item for each melee weapon in the game?

Right now, that is correct, it would have to be a rule for each id.

Looking at the data, I could possibly add another column that would work. I could see that being useful. Let me think about that. My time is a bit limited, but I might be able to add that later tonight or tomorrow. No promises though.

I might also convert the rules to .csv format as well since it is something I've been thinking about for quite a while. It would be an automatic conversion from the user's existing rules, so you wouldn't lose anything.

I'll let you know.

For now, if you want to get the ID's already split out by range and melee weapons, you can use the Data Export mod. The config_items.tsv will have what you are looking for. The relevant sections are #meleeweapons and #rangeweapons.

You could use excel or regex to transform those id's to the rule's JSON format.
Last edited by nbk_redspy; 26 Jul @ 6:25am
Oh no worries,

I was just simply curious to understand better how these things work.
I am happy to keep melee and range weapon together for now, it's not a big problem and nothing urgent. It's better to use your time to keep pumping out new amazing QOL improvements!

I also assume that eventually, the game DEV would make something like that official later on in game to allow some automatic filters once you dump your loot into the ship. Otherwise, I feel like in late game, you may spend as much time dragging and clicking the inventory than you spend in missions !

However, something I was wondering and maybe I missed it somewhere is if there is a way to add more tab than just the 7 we have?

Because of the limited amount of tabs, we have no other way than to merge some items together.

Cheers,
nbk_redspy  [developer] 26 Jul @ 2:46pm 
From what I can tell, the storage grid can have more than 7 tabs (+1 for the recycler). I've seen it occur when in a raid. I believe it is basically the same UI component.

Right now I believe the UI doesn't do a wrap around, so it would be limited to only adding a few since the rest go off screen.
Oh I see,
Hopefully we get a scrollable slider or something to make that work.

Any case, thanks again for your help !
< >
Showing 1-5 of 5 comments
Per page: 1530 50