[DiscordArchive] A quick question: is it possible to reload a single .Lua file? Can you reload a single file or a lis
[DiscordArchive] A quick question: is it possible to reload a single .Lua file? Can you reload a single file or a lis
Archived author: iThorgrim • Posted: 2023-10-07T12:58:29.814000+00:00
Original source
A quick question: is it possible to reload a single .Lua file? Can you reload a single file or a list of files without reloading everything?
Archived author: Foe • Posted: 2023-10-07T12:59:27.282000+00:00
Original source
No
Archived author: Foe • Posted: 2023-10-07T13:01:16.255000+00:00
Original source
It deliberately recreates the whole Lua state so you don't end up with bad data
Archived author: Foe • Posted: 2023-10-07T13:02:00.409000+00:00
Original source
Reloading should also never be used in production, it's a development tool
Archived author: Honey • Posted: 2023-10-07T13:19:04.085000+00:00
Original source
It works for me, unless the whole engine was stuck, which would make it crash but required a restart anyway.
Archived author: Honey • Posted: 2023-10-07T13:19:30.598000+00:00
Original source
But I don't have combat scripted in Lua either.
Archived author: iThorgrim • Posted: 2023-10-07T13:31:32.562000+00:00
Original source
Oooook
Archived author: Foe • Posted: 2023-10-07T13:33:08.437000+00:00
Original source
When you have dungeon and creature encounters with actual players, it's a bad idea to nuke any states that are important for the integrity of your content
Archived author: Honey • Posted: 2023-10-07T13:33:34.453000+00:00
Original source
No doubt that's a no-no. But again, i don't do such thing in eluna
Archived author: iThorgrim • Posted: 2023-10-07T13:33:42.392000+00:00
Original source
This was for scripts in development and to save me having to reload all of eluna for this ^^