Lua, Creating and destroying worlds
#2
Hello,
it is historically possible to create a new world (cRoot:CreateAndInitializeWorld()), but it is an unsafe operation and it is quite prone to errors - the server is known to deadlock quite often in such cases. And there's no way to remove a world, mostly due to similar reasons (the operation wouldn't be safe) and also because of the built-in assumption of the Lua API (and MCS internals) that once you have a valid cWorld object, it will remain valid for the rest of the server execution. Breaking this assumption would require too much work, so it hasn't been even considered.

Can you elaborate on what exactly you're trying to do? Perhaps there's a better way of doing it, or at least a workaround.
Reply
Thanks given by:


Messages In This Thread
Lua, Creating and destroying worlds - by Zentdayn - 02-06-2015, 09:53 PM
RE: Lua, Creating and destroying worlds - by xoft - 02-06-2015, 10:28 PM
RE: Lua, Creating and destroying worlds - by xoft - 02-07-2015, 03:41 AM



Users browsing this thread: 1 Guest(s)