-
Notifications
You must be signed in to change notification settings - Fork 1
Modded Inventory StackSize
Due to the fact that inventory management is such a big feature of DNA I decided to include basic support (as of v0.1.6-alpha) for mods that alter the stack sizes of products and substances. Specifically mods that alter the file called ‘GCGAMEPLAYGLOBALS.GLOBAL.MBIN’. Mods that alter items individually will not be supported.
Note: These settings don't alter the game itself. They are only there to make the inventory system behave in the same way as the game in case mods are installed.
I have added an automated check that triggers once a user enters the dashboard. This check will go through every inventory and see if any items currently in the save file don’t match to the default settings. If this is the case, a warning message will pop up asking you to set up the inventory stack limits. If you press ‘Yes’ you will be rerouted to the correct page to set them up.
Of course, this popup will only trigger in the case where a maximum amount actually is above the limit. If you’d like to set it up beforehand you’ll have to route to the platform selection page and press the gear icon of the appropriate platform you wish to edit:
The default data that can be found in the ‘GCGAMEPLAYGLOBALS.GLOBAL.MBIN’ file (which your mod alters) looks something like this:
<Property name="InventoryStackLimitsOptionData">
<Property name="High" value="GcDifficultyInventoryStackSizeOptionData.xml">
<Property name="SubstanceStackLimit" value="9999" />
<Property name="ProductStackLimit" value="9999" />
<Property name="MaxSubstanceStackSizes">
<Property name="Default" value="9999" />
<Property name="Personal" value="9999" />
<Property name="PersonalCargo" value="9999" />
<Property name="Ship" value="9999" />
<Property name="ShipCargo" value="9999" />
<Property name="Freighter" value="9999" />
<Property name="FreighterCargo" value="9999" />
<Property name="Vehicle" value="9999" />
<Property name="Chest" value="9999" />
<Property name="BaseCapsule" value="9999" />
<Property name="MaintenanceObject" value="9999" />
<Property name="UIPopup" value="9999" />
</Property>
<Property name="MaxProductStackSizes">
<Property name="Default" value="5" />
<Property name="Personal" value="10" />
<Property name="PersonalCargo" value="10" />
<Property name="Ship" value="10" />
<Property name="ShipCargo" value="10" />
<Property name="Freighter" value="20" />
<Property name="FreighterCargo" value="20" />
<Property name="Vehicle" value="10" />
<Property name="Chest" value="20" />
<Property name="BaseCapsule" value="100" />
<Property name="MaintenanceObject" value="10" />
<Property name="UIPopup" value="1" />
</Property>
</Property>
<Property name="Normal" value="GcDifficultyInventoryStackSizeOptionData.xml">
<Property name="SubstanceStackLimit" value="9999" />
<Property name="ProductStackLimit" value="9999" />
<Property name="MaxSubstanceStackSizes">
<Property name="Default" value="500" />
<Property name="Personal" value="500" />
<Property name="PersonalCargo" value="500" />
<Property name="Ship" value="1000" />
<Property name="ShipCargo" value="1000" />
<Property name="Freighter" value="2000" />
<Property name="FreighterCargo" value="2000" />
<Property name="Vehicle" value="1000" />
<Property name="Chest" value="1000" />
<Property name="BaseCapsule" value="2000" />
<Property name="MaintenanceObject" value="250" />
<Property name="UIPopup" value="250" />
</Property>
<Property name="MaxProductStackSizes">
<Property name="Default" value="5" />
<Property name="Personal" value="10" />
<Property name="PersonalCargo" value="10" />
<Property name="Ship" value="10" />
<Property name="ShipCargo" value="10" />
<Property name="Freighter" value="10" />
<Property name="FreighterCargo" value="20" />
<Property name="Vehicle" value="10" />
<Property name="Chest" value="20" />
<Property name="BaseCapsule" value="100" />
<Property name="MaintenanceObject" value="10" />
<Property name="UIPopup" value="1" />
</Property>
</Property>
<Property name="Low" value="GcDifficultyInventoryStackSizeOptionData.xml">
<Property name="SubstanceStackLimit" value="9999" />
<Property name="ProductStackLimit" value="9999" />
<Property name="MaxSubstanceStackSizes">
<Property name="Default" value="150" />
<Property name="Personal" value="300" />
<Property name="PersonalCargo" value="300" />
<Property name="Ship" value="300" />
<Property name="ShipCargo" value="750" />
<Property name="Freighter" value="750" />
<Property name="FreighterCargo" value="750" />
<Property name="Vehicle" value="300" />
<Property name="Chest" value="750" />
<Property name="BaseCapsule" value="1250" />
<Property name="MaintenanceObject" value="150" />
<Property name="UIPopup" value="150" />
</Property>
<Property name="MaxProductStackSizes">
<Property name="Default" value="3" />
<Property name="Personal" value="3" />
<Property name="PersonalCargo" value="5" />
<Property name="Ship" value="3" />
<Property name="ShipCargo" value="5" />
<Property name="Freighter" value="5" />
<Property name="FreighterCargo" value="10" />
<Property name="Vehicle" value="3" />
<Property name="Chest" value="10" />
<Property name="BaseCapsule" value="50" />
<Property name="MaintenanceObject" value="5" />
<Property name="UIPopup" value="1" />
</Property>
</Property>
</Property>There should be more information about which values your mod alters on their page.
The data is split up in 3 main parts: High, Normal and Low StackLimitOptions which each have a list of substance/product stack sizes along with a SubstanceStackLimit and ProductStackLimit.
On the settings page, you have just navigated to, you will see three buttons that, once pressed, will fill in the data in the table below with the current default values.
You will also notice four buttons labelled: Default, x2, x10, x100.
These buttons serve as presets for some common mods out there. If you’re in luck and the mod uses one of these presets (the amount is often stated on their page) all you have to do is click the appropriate StackLimitOptions followed by pressing the correct preset button. All the fields will change accordingly.
If the mod makes these changes for each StackLimitOption you will have to do this for each StackLimitOption as well. Once each StackLimitOption has the correct data/preset you can save your changes by pressing the button on the bottom right.
If the settings are correct, and you had a warning message before, you’ll notice that the message won’t show anymore. If the message still pops up it means that some of the settings you have made might have been incorrect. I suggest double checking with the mod author for the correct values and if it still does not work don’t hesitate to contact me on discord.
If you don't want to use the inventory management system and don't feel like setting up the StackLimitOption you can disable the warning by navigating to FoxTech => Settings and setting the Check Inventory Stacks to False
Once everything is set up, you’re free to use the inventory system without worries of missing items. Since the settings are platform specific, any unmodded platform will function as normal.
Wiki
Inventory Management
Catalogue
NOBANK
Properties
Stores
Hidden features
The process of setting custom colours for ships.