Save/Load Attribute problem

sebmacflysebmacfly Member Posts: 1,018
edited November -1 in Working with GS (Mac)
Hi Gamesaladers! :)

I'm having troubles saving and loading attributes (i never had problem with that before in my other projects...)

I have 3 attributes saved in my game, my attributes (integer = 1) are ok. If i quit the game and restart it, my attributes = 0.

I'm loading the attributes at the start of my game with a timer :
Timer after 0 seconds, run to completion
Load Attribute........

The Save attribute value is the same in the load attribute...

I don't know what i'm doing wrong!

Any idea please?

thanks

Comments

  • adnanadnan Member Posts: 46
    I have the same problem :S
  • sebmacflysebmacfly Member Posts: 1,018
    I'm gonna send a email to the support team.

    Other people having this problem?
  • Not 100% sure, but if I'm understanding your post correct, try changing it to 0.5 seconds or 1 second and see if it loads the attribute correctly.

    Why use a timer that isn't using time for anything? For example, I can't literally wait 0 seconds and THEN do a task, right?
  • sebmacflysebmacfly Member Posts: 1,018
    Holderness_Media_Inc said:
    Not 100% sure, but if I'm understanding your post correct, try changing it to 0.5 seconds or 1 second and see if it loads the attribute correctly.

    Why use a timer that isn't using time for anything? For example, I can't literally wait 0 seconds and THEN do a task, right?

    My timer is working good because i have the change scene behavior in it...
    I'm using the timer because in other project, the "change scene" behavior is not working, i had to add the timer to make it work. So, to be sure, i added it in the first scene (title scene)
  • adnanadnan Member Posts: 46
    anyone? Gamesalad?
  • sebmacflysebmacfly Member Posts: 1,018
    The "Save" attribute is working good in my project, because when i create a button (when touch is pressed, load attribute) to load the attribute i saved, that work.

    When i try to load this same attribute at the start of the game, that doesn't work.

    I think that's because i'm loading a lot of attributes (50+)

    Any idea on how to optimize that please?

    Thanks a lot
  • bluebyu25bluebyu25 Member Posts: 500
    The timer is pointless, you dont need it.

    I do the same thing without timers and it works perfectly.
  • sebmacflysebmacfly Member Posts: 1,018
    I don't use it anymore and don't work neither

    PLEASE Gamesalad team, answer this issue....
  • LumpAppsLumpApps Member Posts: 2,881
    Again, loading doesn't work in my case at the beginnin of the first scene, loading after a few secs does work.

    Cheers,
    Ludwig
  • sebmacflysebmacfly Member Posts: 1,018
    Doesn't work Ludwig...

    I added a timer on the first scnene, just to see...

    1st scene, timer after 4 seconds (run to completion), change scene to nexte scene.
    2nd scene, timer after 1 second (run to completion), load attribute (all atrributes); change scene to menu.

    Grrrr...
  • Rob2Rob2 Member Posts: 2,402
    You do know that saved attributes are lost when you stop a game in preview. If you just do a reset they are maintained.
  • sebmacflysebmacfly Member Posts: 1,018
    I'm testing on the gamesalad viewer and AdHoc and don't work...

    In the viewer i can load some attributes, that's strange...
  • LumpAppsLumpApps Member Posts: 2,881
    Not a solution but just to check: try loading them in the second scene.
    Let me know what happens if you want to. This is how I found that loading with a timer worked.
    Must be a bug.
  • sebmacflysebmacfly Member Posts: 1,018
    I tryed in mutliple scenes... noway :(
  • steve86steve86 Member Posts: 806
    I have the same problem. Funny thing is that some attributes do load and some don't. I have checked every ruled every spelling and all is correct any ideas ?
  • LumpAppsLumpApps Member Posts: 2,881
    Sorry to hear it didn't work. :(
  • sebmacflysebmacfly Member Posts: 1,018
    steve86 said:
    I have the same problem. Funny thing is that some attributes do load and some don't. I have checked every ruled every spelling and all is correct any ideas ?

    So, i'm not the only one...
    I emailed the Gamesalad Support Team, but no answer yet.

    Same here, some attributes do load and some don't.
    I Checked every rule too, no problem.
  • sebmacflysebmacfly Member Posts: 1,018
    I recommand other gamesaladers to test that issue (on all attributes loaded)...

    And post here...
  • sebmacflysebmacfly Member Posts: 1,018
    Would be cool if some Gamesalad Dev can answer, thanks
  • codematescodemates Member Posts: 112
    I am having the same problem. I am only loading and saving 1 attribute and whatever I do it will not save my highscore and resets it every time I remove the game from the iphone task list.

    I load the attribute TopScore from my splash screen (with or without timer) and I save the game High Score from my Lives actor.

    TopScore always go back to "0" when I remove game from memory. Really wish we could get an answer from GS.
  • sebmacflysebmacfly Member Posts: 1,018
    No news from the gamesalad support team yet.... i'm getting mad
    I can't finish my project... problems on problems
  • deaddirtyddeaddirtyd Member Posts: 27
    hey sebmacfly,

    i've got the exact same problem and i'm doing everything the same as i used to
    in previous versions which worked...

    please will you keep us updated when they reply to you?
  • LaurenSaladLaurenSalad Inactive, Chef Emeritus Posts: 650
    Hello!

    Just wanted to give you guys a heads up. The issue you guys are reporting is a known issue, and we are taking steps to address it.

    We will update you as we know more!

    We apologize for the inconvenience, and we appreciate your patience.

    Lauren
  • LumpAppsLumpApps Member Posts: 2,881
    Ah, thanks Lauren.
    It would save (no pun intended) us hours and hours of work if this is posted in time though.
    Is it possible to post a simple list of known issues? That would save a lot time in the future.
    Thanks again!
    Ludwig
  • sebmacflysebmacfly Member Posts: 1,018
    Thanks you Lauren...

    This issue will be fixed in the next update?
    Do you have an idea on the next update date?

    Thanks again.

    PS : Like Ludwig said, would be cool to see a list of known issues...

    Cheers!

    @Deaddirtyd : You have the answer :)
  • deaddirtyddeaddirtyd Member Posts: 27
    Brilliant! Thanks
Sign In or Register to comment.