Replies: 1 comment 2 replies
-
|
hi @luiscesjr!
Trying in craftstation tutorial for this: |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm not a pro developer by any means, so I'm confused on how to work with the wrapped returns from the system.
For example, I'm having an issue right now with one of my recipes, it's setup correctly to receive 1 item as input and output another 2 itens, and despite all being right, still a check of "craft_station.can_craft(recipe)" gives out false.
And if I try to print my way and find out what's happening, I usually get [Wrapped:0] for trying print(recipe). Now I can for example, after looking around for some time, try print(recipe.ingredients), which gives me another [Wrapped:0], and print(recipe.ingredients[0]) that also prints [Wrapped:0].
So how can I work with this? Is it because it's a wrapped C++ object and godot does not expose it to GDscript? I'm not asking this to criticize, I'm really eager to learn. Also would be nice in the docs to somehow have all the options these arrays/dictionaries have buried within them to facilitate navigation codewise.
Beta Was this translation helpful? Give feedback.
All reactions