Page 1 of 1

Variables not in Lua environment after loading

Posted: Sat Mar 24, 2018 8:46 am
by mrcsbmr
Hello,

we have a problem with variables becoming nil in the Lua environment. We're using Articy and this happens in old savegames when we create new variables in Articy and importing a new dialog database. The newly introduced variable value is not registered in the Lua environment because it only holds the values that were set up in the database the game used in the version of the savegame (or something like that)...
The value of the new variables is nil if we check them using the Lua console.

What's the easiest way to set the value to the default variables value of the DialogueManager in the Lua environment when loading a (Adventure Creator) savegame? Since I'm still terribly bad at the Lua-relevant code, it would be of great help if you could provide a small code snippet.

Thanks for the help!
Marcus

Re: Variables not in Lua environment after loading

Posted: Sat Mar 24, 2018 10:07 am
by Tony Li
Hi Marcus,

By Tuesday morning, I'll prepare a patch that backfills missing variables when loading saved games. I think that will be the best solution.

Re: Variables not in Lua environment after loading

Posted: Sat Mar 24, 2018 10:15 am
by mrcsbmr
That's great, thank you!

Re: Variables not in Lua environment after loading

Posted: Mon Mar 26, 2018 4:21 pm
by Tony Li
Hi Marcus,

The patch is good the customer download site.

Re: Variables not in Lua environment after loading

Posted: Mon Mar 26, 2018 4:40 pm
by mrcsbmr
Where would I find that? I looked here and didn't find anything.

http://www.pixelcrushers.com/dialogue-system-extras/

Re: Variables not in Lua environment after loading

Posted: Mon Mar 26, 2018 5:07 pm
by Tony Li
Sorry, I thought you already had access to the private customer download site. I just now sent you your access info.

Re: Variables not in Lua environment after loading

Posted: Thu Mar 29, 2018 6:31 am
by mrcsbmr
Thank you! Implemented it and it seems to work. :)

Re: Variables not in Lua environment after loading

Posted: Thu Mar 29, 2018 7:25 am
by Tony Li
Great! Thanks for letting me know.