Forum rules - please read before posting.

Game update and save files!

Hello!

I have a question regarding updating a game;

Lets say I add a new character in the game, which is not present in the old version of the game. I load a saved game, done on the older version of the game, and this new character is not present (because it didn't exist yet).
Is there a (hopefully an easy :'D ) way to "inject" or otherwise include this new data within the old save game file(s)?

More or less noteworthy note; My programming skills are that of a novice and I'm creating a game purely as a hobby and as a learning experience.

Comments

  • Welcome to the community, @ketoth.

    When loading save-game files, AC will apply any save-data it has to the scene.

    It shouldn't affect GameObjects that have since been added to that scene, however. If you add an NPC to the scene file, that NPC should remain as-is if the save file you're loading from has no knowledge of them.

    If you wanted to run some Actions specific to that save-version: one thing you could to is create a Global Variable that represents the current version number, e.g. an Integer named 0 for the first release, 1 for the second, and so on.

    Then, when you load a save-file, you can assign an "OnLoad" cutscene in the Scene Manager (which will run once the process has completed), and use the Variable: Check Action to check that save-file's version number.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.