Is there any way to pre-load saved attributes?

hillelchillelc Member Posts: 56
edited November -1 in Working with GS (Mac)
I would like to pre-load saved attributes so that they exist and can be loaded at runtime?

As best I can tell right now, you cannot have a game come preconfigured with saved attributes. All attributes must be saved at runtime.

Thoughts?

Comments

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    You could set on an intro screen a change attribute and save attribute to run on the first time the app runs
  • hillelchillelc Member Posts: 56
    right, but then they're not pre-loaded. the attributes are stored in the app and written to disk on first run. I want them to be pre-written to disk before first run. (Basically... I'd like a large amount of variable interchangeable strings stored and dread the thought of creating hundreds of attributes to do it.)
  • ErisedErised Member Posts: 21
    Well, it seems like when you save an attribute, you can only load that key into the same one it was saved from. it's like the combination of key and variable are linked to the data, and not just the key itself.

    Assuming each key only gets loaded into one attribute and it's always the same one, simply set defaults for said attributes, and then attempt to load on game start. if the key is missing, it will use the default you set in the definition.
Sign In or Register to comment.