Forum rules - please read before posting.

Variables lost after closing the project

Hello, I'm having a blocking issue that is wearing me down,

  • I create a series of global variables and I save the project, until there it's all good.
  • I close the project and re-open it and a few random variables disappear from the list of global variables.
  • After closing the project I also make a backup of the progress using sourcetree, but is not able to retrieve the variables from the previously committed versions, is like when the variables are gone, it's forever or is not saving them because they get lost when the project is closed.

  • Additional info: if I can remember what was the variable name and I create a new variable with the same name in some cases is restoring it through all the project, as if it remember where was placed along the actionists. (but not always)

  • For some reason when I close the project is losing some of the variables, I can't wrap my head around this.
    This issue has happened just a couple times with the old project and I thought it was tied to some numeric value of the variable (for example: it was always the variable 43 to disappear, so I bypassed it creating an empty one without using it), but with the new project this issue keeps repeating and is crashing my progress with huge steps back because the actionlists are complex I cannot always remember what name the variable had.

Unity 6.1 and AC Version 1.83.0

Best regards
Flavio

Comments

  • Actions reference variables by their ID number, rather than referencing the variable itself. If a new variable gets added that matches the ID that Actions previously referenced, those Actions will connect to the new variable.

    I can't reproduce the underlying issue, however. Are you able to reliably recreate it, or is it seemingly random?

    If it was occuring in an old project, it might be a system issue.

    What platform are you working on, and what is the system language?

    After closing the project I also make a backup of the progress using sourcetree, but is not able to retrieve the variables from the previously committed versions

    Global variable data is stored in your Variables Manager asset file. When creating new variables, is that data being recorded in your version control before closing the project?

  • It is seemingly random. I tried to pay attention on what can cause it, but I haven't been capable of figuring it out.

    • I'm making screenshots of the variables list in the variable manager so that from now on I can remember the variable number and name.

    • The previous project was made in another unity and AC version, I updated both to the latest a couple o months ago before beginning this new project. Seems like with the latest update this issue occurs more often.

    • I need to check that in sourcetree, my assumption has been that is not been recorder because everytime I reset to the previous commit the variable ain't there. I will pay more attention next time.

    • I'm running on Windows 10, 64-bit, English is the system language.

  • fwiw I also ran into this issue, but after updating AC it seems to have been fixed - though I'm on Unity 2022.3.

  • Thanks so much for the info! - I'd love to update it too but... Is my current project going to be disrupted if I update the AC version?

  • Only way to know, is to try... Just make sure you make a backup that you can revert to if need be.

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.