Lamaral14
(Lamaral14)
September 18, 2022, 1:46am
1
I have this for each loop that stores a structure on an array of sturctures in my savegameBP, and it seems to be working:
But when i try to load it it seems that the for each loop doesnt work:
As you can see here the cast to the save game doesnt fail yet i never get the print of the for each loop, nor i get any error messages…
Any idea whats going on?
eblade
(eblade)
September 18, 2022, 2:36am
2
If the loop isn’t hitting at all, then your array is probably empty. So, you need to figure out why it’s not saving anything there.
jwatte
(jwatte)
September 18, 2022, 2:57am
3
First, add a print right after the cast fail pin, just to make sure the cast actually does succeed.
Second, put a breakpoint on the for loop node, and examine the value of the array in the savegame by hovering over that output pin, to see whether there’s any data in it.
1 Like
Lamaral14
(Lamaral14)
September 18, 2022, 3:05am
4
I have done that before posting but i figuret it out, the problem was the position of that for each loop:
The save:
The load:
1 Like