• The move of Eco-Mods.com has taken place and the merge of our old officials forums is currently ongoing, read more here.

Simple question - item modification

A

Attronach

Guest
Just (I hope) simple question.

There is item in game already (StorageChestObject.cs) inside is line:
storage.Initialize(16);

And if I change this value to say 64... will this work?
 
Messages
30
Reaction score
11
Just (I hope) simple question.

There is item in game already (StorageChestObject.cs) inside is line:
storage.Initialize(16);

And if I change this value to say 64... will this work?
Copy the game files create a new folder paste them in and test, test and rest, see what happens
 

ClayC

Copper
Mod Dev
Messages
86
Reaction score
38
Just to have a clear answer,

storage.Initialize(64);

This will initialize a storage with 64 slots

So to answer your question, it works.
 
OP
A

Attronach

Guest
Sorry for alte reply, here is what I successfully tested.

In steamapps\common\Eco\Eco_Data\Server\Mods\Objects\StorageChestObject.cs
at line 20

original:
"storage.Initialize(16);"

changed to
"storage.Initialize(64);"

All newly crafted Storage chest is 64 slots big.

Btw: modified on private server. Not nessesary change anything on local side.
 
Last edited:

Rexzooly

Copper
Mod Dev
Messages
86
Reaction score
24
Thank you very much Attronach that is very helpful
Just to note that not everyone will use the streamapp folder as some of us a slg version
so this will be where ever we have downloaded it and put the eco folder
'Eco\Eco_Data\Server\Mods\Objects\StorageChestObject.cs'
 

10K

Coal
Mod Dev
Messages
32
Reaction score
21
"storage.Initialize(64, 7500000);" This will give the 64 slots a weight limit of 7500kg just like the small wood cart has a limit.
 
Top Bottom