Jump to content

View more

Image of the Day

Working on an auto spawn system. #gamedev #indiedev #screenshotsaturday https://t.co/Mm2kfekz7b
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Some Lua questions

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
2 replies to this topic

#1 Impz0r   Members   

166
Like
Likes
Like

Posted 04 April 2003 - 11:50 PM

Hi, Ok i''ve got the Lua 5 Beta version recently and noticed that they added threads which is a cool thing because i missed the possibility of unloading a script and i suppose it would be possible with the use of threads. But i was wondering where on earth the "lua_closethread()" function is hidden?! Maybe the function will be added to the Lua 5 release version?! Is there another way to unload a script?! Ok another thing i was wondering about, if something went wrong with the compilation of a lua script, lua throws an error, call the panic function and exit the program, but i wont exit my program Is there a way not to exit the program?! Thanks alot Mfg Impz0r

#2 Impz0r   Members   

166
Like
Likes
Like

Posted 05 April 2003 - 10:53 PM

Anyone?!

#3 TravisWells   Members   

276
Like
Likes
Like

Posted 06 April 2003 - 06:34 AM

I haven''t used LUA5 yet, but in LUA4 you would declare your own _PANIC or _ERROR function, so that your function would be called instead of the default one (which calls exit() )





Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.