ATLAS
LEGACY2019: Custom Item Stacks (Discontinued)
 This topic has been pinned, so it's probably important
Impulse  [developer] 2 Aug, 2021 @ 12:11pm
FAQ
1. Does this mod fix Gunpowder and Fertilizer?
Yes it does, it even fixes the engram list and does so for other mods running with it, too. And if you only want the fixing logic without any stacking or weight reduction, then simply use this in your game.ini files for all your grid servers:
[CustomItemStacks.Settings] DisableDefaultItemSettings=true

2. Do i have to add something to the game.ini, so that the mod works?
You don't have to add anything if you want the default settings.

3. What do i need to add, so that only GoldCoins are changed?
Put this into your game.ini of all grid servers:
[CustomItemStacks.Settings] DisableDefaultItemSettings=true ItemSetting=(ItemClass=/Game/Atlas/AtlasCoreBP/Items/PrimalItemResource_GoldCoin.PrimalItemResource_GoldCoin,MaxQuantity=100000,WeightMultiplier=0.0025,OriginMaxQuantity=1000,OriginWeight=0.4,OriginSpoiltime=0.0)

4. How can i load this mod?
Either use the ServerGridEditor: http://prntscr.com/melwjl
Or add in your gus.ini file the line: ActiveMods=1629667379
Or via server start params: ?ActiveMods=1629667379

5. Why do i see the normal weight and stack sizes directly after server restart?
The system takes a while to initially go through all inventories to modify all items

6. Why do stack amounts change after server restart?
Every 300 seconds the system will start to go through all inventories to store the current item quantity and other settings into its so called "CustomItemDatas" variable. After that the game will save it as normal to your main savegame file. This means if a server for example crashes or it got shut down before the CIS system could go through all items to save the last known state, it will restore the previously known state. You could mitigate this issue if you either put in this command as admin into the console directly or via RCon before you shutdown your server:
admincheat ScriptCommand SaveCIS

7. How do i need to add ItemSettings?
If you want to customize ItemSettings, then simply put in lines for each item you want to adjust into your game.ini of all grid servers. And yes each "ItemSetting=(...)" has to be its own line and has to be part of/below the tag [CustomItemStacks.Settings].

8. What happens if i remove this mod, or it can no longer load somehow?
then normal stack sizes, weight and spoiltimes will kick in as soon as you perform a server update (to verify and correct all modified server classes). You can preserve your items in resource and ammo boxes. If you do so on a ship and the weight reverts to vanilla it might sink your ship. For a save removal of this mod simply perform in the admin console or via RCon (since you have to do so for every grid server):
admincheat ScriptCommand RevertCIS
If is also possible to use a game.ini setting for that if you don't want to put in that command for each grid and want to ensure that settings are definitely reverted:
[CustomItemStacks.Settings] RevertChanges=true

9. How can i only use the stack option but not the weight?
Then use these settings:
[CustomItemStacks.Settings] OverallWeightMultiplier=10.0 ItemSetting=(ItemClass=/Game/Atlas/AtlasCoreBP/Items/PrimalItemResource_GoldCoin.PrimalItemResource_GoldCoin,MaxQuantity=100000,WeightMultiplier=0.1,OriginMaxQuantity=1000,OriginWeight=0.4,OriginSpoiltime=0.0)

10. Why do i need the Origin values in an ItemSetting line?
They are required for internal system use, due to how the grid server works and that most of unofficial server have several grid servers running from the same source files/installation. Without the Origin values it would destroy the underlying item classes.

11. Item type XY is missing and i want it to stack more, how can i do that?
Simply add an ItemSetting line for that item type to your game.ini

12. This mod did destroy XY item and now i can't tame or craft anything with it anymore! Could it be this mod?
That's very unlikely, since this mod does not exchange the original item, it simply adjusts 3 variables for MaxQuantity, BaseWeight and BaseSpoiltime. This means it is not possible that this caused the item to no longer function in the base game.

13. Is this mod fully stackable?
Yes it is, as you can see in the thumbnail picture -> the green puzzle piece. It does not remap any vanilla item, it all stays original.