Starbound

Starbound

Not enough ratings
Many Tabs - Spinning Wheel Jackets Galore Tab
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
128.600 KB
17 Dec, 2024 @ 9:05pm
1 Change Note ( view )

Subscribe to download
Many Tabs - Spinning Wheel Jackets Galore Tab

In 2 collections by AnomNom
An Overly Complex Assortment of Mods
834 items
Anom's Creations
115 items
Description


An addon for Many Tabs that separates the content from Jackets Galore into another Spinning Wheel / Sewing Machine tab.

There is only so many tabs that can fit on a single Crafting GUI, so some of my addons may share the same tabs. This addon does not currently share a tab with any other addons. If you know of any mods that you'd like to have given their own tab, then please, don't hesitate to submit a request. It may take me a while to get back to you, depending on my current level of activity.




⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀




⠀⠀⠀⠀⠀⠀





There is a lot of iterated test patches in this mod, which are basically test patches where you test each value of an array in sequence, then make your changes to that value when you find the one you're looking for. I go into more detail about what these patches are in the technical sections of my various patches for Anom's Outpost Overhaul, if you're curious.

First, we need to create patch files for every item that we want to move to a new tab. We then need to run through enough iterated test patches, about ten or so should be fine, where we check for the group value of "clothing," as this is the group tag used to assign the clothing item to the tab it's on. If we find that group, we need to replace it with a new group value.

Next, we're going to patch the Spinning Wheel's crafting menu. Since some addons are intended to share the same tabs, we first want to test as many values as necessary - I go with thirty, which is a bit overkill, but it'll definitely be thorough - to see if the tab already exists, using its image file as a test value. If it does exist, we want to add that new group we created to the filter array.

After those thirty or so tests, we then want to test all of the values again, at the same time, but specifically with the line "inverse": true slapped on at the end. What this does is invert the results of the test patch - instead of succeeding only if it finds the value, it will succeed unless it finds the value. Thus, we test the same thirty values in the array. If we don't find our tab, we create it instead, using that new group.

This is all just a really convoluted system that lets multiple mods add the same tab without conflicting or causing duplicates. It also completely negates the need to manage load order through priority or includes sections, as any mod can load at any time, and it will simply patch into the existing tab if another mod adding the same tab loaded before it.




  • v6, for creating Many Tabs.

  • Aries, for creating Jackets Galore.

  • SirSwerving for suggesting this addon. I might be two whole years late, but I still did it.