Eco
SpaceCowboy7 Nov 16, 2018 @ 5:46pm
change carry ammount and storage slot capacity
look for the "[Serialized]" bit and change the maxstacksize and weight, the below will allow you to carry 100, if coal,iron ore, gold ore, copper ore ect. but you have to change each items .cs file that you want to be able to set your defined max carry amount. You can also increase storage slots max amount to the same by editing their respective files...storage.cs to change large storage max ammount for each slot.

file location: mods/autogen/item/coal.cs (coal.cs for this example.)

[Serialized]
[MaxStackSize(100)]
[Weight(2000)]

to change stockpile limit edit StockpileObject.cs (large stockpile)
look for the segment code below and the numerical value 100, change your to be same as this code below and you will be able to store 100 in each slot of items you have changes,see above.
This will help reduce stoickpile spam a great deal.

file location mods/objects/stockpileobject.cs

protected override void Initialize()
{
base.Initialize();

var storage = this.GetComponent<PublicStorageComponent>();
storage.Initialize(DefaultDim.x * DefaultDim.z);
storage.Storage.AddInvRestriction(new StockpileStackRestriction(100)); // limit stack sizes to the y-height of the stockpile

this.GetComponent<LinkComponent>().Initialize(7);
}