Starbound

Starbound

Stackable Reward Bags and Blueprints
10 kommentarer
TopsyPentaceratops 8. maj 2024 kl. 15:46 
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 kl. 8:44 
Anter583 got that answer for him?
MystRaven.skg  [ophavsmand] 13. sep. 2021 kl. 18:14 
@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 kl. 4:45 
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 kl. 4:13 
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 kl. 6:43 
THANK YOU. You have no idea how much this frustrated me!
VaporBitBot 12. sep. 2021 kl. 5:32 
No Problemo
Wednesmove Nyan-Nyan 12. sep. 2021 kl. 3:06 
Useful:SBpenguin:
MystRaven.skg  [ophavsmand] 12. sep. 2021 kl. 1:53 
@VaporBitBot I didn't think to do that. Definitely will next chance I get to work on it, thank you!
VaporBitBot 11. sep. 2021 kl. 19:37 
My Suggestion to how to learn this I believe would be the Vanilla Geode