Starbound

Starbound

139 ratings
Stackable Reward Bags and Blueprints
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
15.808 KB
11 Sep, 2021 @ 5:33pm
15 Sep, 2021 @ 3:18pm
2 Change Notes ( view )

Subscribe to download
Stackable Reward Bags and Blueprints

In 1 collection by MystRaven.skg
Ours
164 items
Description
I was bothered by the inability to stack reward bags and randomized blueprints. This increases the stack size of reward bags to 20 and each tier of mech blueprints to 100.

This mod changes the randomblueprint lua file; any incompatibilities will be with other mods that mess with that. Special thanks to Anter583 for solving the issue of using entire stacks of mech blueprints at once.
10 Comments
TopsyPentaceratops 8 May @ 3:46pm 
I am genuinely curious how you did this. I've tried looking around for tutorials for increasing item stacks, namely for unstackables like lootboxes.
Sentry 19 Feb, 2022 @ 8:44am 
Anter583 got that answer for him?
MystRaven.skg  [author] 13 Sep, 2021 @ 6:14pm 
@Anter583 you brilliant inventor. You're the true hero here. I'm gonna implement this. How shall I list your name in the credits?
Anter583 13 Sep, 2021 @ 4:45am 
Ok after checking mech blueprints for a bit, they get stuck in a phase that auto learns the entire stack, you don't actually lose anything though.


To fix it all you have to do is go into the file /items/active/randomblueprint/randomblueprint.lua and add the following 2 lines of code inbetween lines 21 & 22

self.swingTimer = nil
activeItem.setArmAngle(-math.pi / 2)


It basically resets self.swingTimer to be blank so that it doesn't re-trigger learnBlueprint() every game tick after reaching 0 and then resets the item's aim angle to default so that you don't hold it weirdly.
Anter583 13 Sep, 2021 @ 4:13am 
Are you sure that you don't have a mod installed that messes with blueprint code?
I checked the blueprint & reward bag code and it seems to correctly use item.consume() to only consume 1 from the stack.
Literally Just Freckle 12 Sep, 2021 @ 6:43am 
THANK YOU. You have no idea how much this frustrated me!
VaporBitBot 12 Sep, 2021 @ 5:32am 
No Problemo
Wednesmove Nyan-Nyan 12 Sep, 2021 @ 3:06am 
Useful:SBpenguin:
MystRaven.skg  [author] 12 Sep, 2021 @ 1:53am 
@VaporBitBot I didn't think to do that. Definitely will next chance I get to work on it, thank you!
VaporBitBot 11 Sep, 2021 @ 7:37pm 
My Suggestion to how to learn this I believe would be the Vanilla Geode