Starbound

Starbound

Stackable Reward Bags and Blueprints
10 Comments
TopsyPentaceratops 8 May, 2024 @ 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.
Kerik 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