Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DLL Talk / [Unity] LUA RESET issue

Author
Message
Bongadoo
18
Years of Service
User Offline
Joined: 4th May 2006
Location:
Posted: 3rd Dec 2006 15:15
I have the sample program as shown here:



When the spacebar is pressed, the LUA file is loaded. Then if return is pressed LUA RESET is called. However, if space is pressed again to try and re-load the file, or return is pressed again then the program crashes.

I would really like to be able to call a LUA file and be able to call and reset repeatedly. The reason is; I have a large number of variables stored in the file, so if I just keep calling it without resetting the environment then I soon lose a lot of memory. I need to load a LUA file every time I open a map in my editor, so want to flush out the memory each time a new map is loaded.

Any help would be appreciated in trying to find out what the problem is. Thanks!

Login to post a reply

Server time is: 2024-06-23 04:03:07
Your offset time is: 2024-06-23 04:03:07