SpaceStalin Posted February 17, 2013 Share Posted February 17, 2013 Thank you very much for this, it's being very useful! :applause:I used to need two or three chests to store my logs. Link to comment Share on other sites More sharing options...
wrongenvelope Posted February 17, 2013 Share Posted February 17, 2013 Love this mod so much, I want to make larger stacks of everything else now. What's curious is that when I open some files, like rope.lua, the section that should specify it's stacking characteristics are empty, so they must be specified elsewhere. It just says: inst:AddComponent("stackable")...and then nothing. But for cutstone.lua, I was able to change the stack size from "LARGEITEM" to "SMALLITEM" so like your log stack mod, it's: inst:AddComponent("stackable") inst.components.stackable.maxsize = TUNING.STACK_SIZE_SMALLITEM Hrm. This will take further experimenting. Link to comment Share on other sites More sharing options...
w00tyd00d Posted February 18, 2013 Share Posted February 18, 2013 By default the component "stackable" is set to stack_size_normal, which is 20. So anything that has a stack size of 20 doesn't need to have the value changed. However, anything that's larger or smaller must have their default value changed accordingly. You would get the same result if you put:inst.components.stackable.maxsize = TUNING.STACK_SIZE_NORMALITEMunderneath the AddComponent line as you would if you put nothing at all. Link to comment Share on other sites More sharing options...
WrathOf Posted February 18, 2013 Share Posted February 18, 2013 [MENTION=10338]wrongenvelope[/MENTION]All the devs did was shortcut having to set the maxsize every time. Only items with atypical stack size have their maxsize set to something different. You can add the maxsize statement to change it to what you want.The code is consistant so....inst.components.stackable.maxsize = nnshould work for all items you want to tweak where nn is a number or one of the settings from the tuning file Link to comment Share on other sites More sharing options...
w00tyd00d Posted February 18, 2013 Share Posted February 18, 2013 Yeah, exactly what [MENTION=10271]WrathOf[/MENTION] said, but just remember to try and keep the tuning.lua the way it is when you downloaded it. It's meant to be a universal script that all others can refer back to to see like 90% of all the values in the game (few exceptions.) Link to comment Share on other sites More sharing options...
iluvfuzz Posted February 18, 2013 Share Posted February 18, 2013 Using your mod I was able to learn a little bit about modding myself. I opened up the log.lua untouched and compared it to your file. I then looked at the tuning file. I was able to make a new stacking value of 60 and then use that for the log.lua I edited. I tried it out in game and was able to get 60 logs stacked together. I know nothing of coding so I was like well something simple like this is easy. I went ahead and replaced the edited files with the backups I made. Sixty stackable logs is a bit much. Anyways thanks for making your mod! Link to comment Share on other sites More sharing options...
Kylemc Posted February 19, 2013 Share Posted February 19, 2013 Amazing what changing one word or number can do, accidentally set the default sanity to 20 once. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now