A quick tip on save/load that may save you some headache
If you're in the habit of using a lot of instances of actors in you projects....
So for a couple hours I've been trying to figure out why I was having problems with in-game unlocks.
All my logic seemed fine but items were getting unlocked despite the conditions in their rules not being met.
I thought maybe I had a rogue rule....nope. Then I thought maybe it was a GS issue. Nope. The issue was still there with old ad hocs made in old GS builds.
So the problem was.... I was saving and loading local attributes (self.attribute) inside an instance of an actor.
Switching to global saving/loading (game.attribute) cleared up the issue.
Glad I spotted it otherwise my iap update would have been a bit ruined
So for a couple hours I've been trying to figure out why I was having problems with in-game unlocks.
All my logic seemed fine but items were getting unlocked despite the conditions in their rules not being met.
I thought maybe I had a rogue rule....nope. Then I thought maybe it was a GS issue. Nope. The issue was still there with old ad hocs made in old GS builds.
So the problem was.... I was saving and loading local attributes (self.attribute) inside an instance of an actor.
Switching to global saving/loading (game.attribute) cleared up the issue.
Glad I spotted it otherwise my iap update would have been a bit ruined

Comments
@Ultima Dunno if it will help you but I stick to the pattern of lowercase for the first letter, and uppercase for the start of each new word. No spaces. As the keys are case sensitive.
e.g level1Save, heroEnergy, oneTwoThree etc