False "invalid expression" error message?
So I'm integrating achievements into my game, and as mentioned in the cookbook, use (Total Units / Goal Units) *100 to update the percentages of my achievements.
When testing, I get the following message:
Game Center is not supported...the Achievement (Invalid Expression)...updated.
The expression in itself works fine. And if I use a display text behavior just for checking it displays the correct percentages, no problem. So why is the pop-up coming up with the Invalid Expression message?
When testing, I get the following message:
Game Center is not supported...the Achievement (Invalid Expression)...updated.
The expression in itself works fine. And if I use a display text behavior just for checking it displays the correct percentages, no problem. So why is the pop-up coming up with the Invalid Expression message?
Best Answer
-
stackpoole Melbourne, Victoria, AustraliaPosts: 473
Not sure if this is your problem but Game Center on AD-HOC does not support Jailbroken devices (if you have one)
just taking a big guess here..
or
possibly you didn't enable gamecenter in your itunes connect app!Sydney Swans 2014!!
Answers
I actually found the source of the problem after 2 days of swearing.
If you copy/paste the achievement ID from itunes connect straight into the attribute textbox of the upadate achievement behaviour in gamesalad it works.
If by chance (or more likely by bad chance) the little black expression editor pos up and you paste the line into there, it does not work and provokes an invalid expression, even though the text field visibly shows EXACLTY the SAME information! If I made 2 screenshots of both cases the look identical to the eye.
This is very bad...