[DiscordArchive] hmm is everything in the server lua_scripts folder automatically included when reloading eluna, incl
[DiscordArchive] hmm is everything in the server lua_scripts folder automatically included when reloading eluna, incl
Archived author: Grandold • Posted: 2022-05-12T08:43:05.262000+00:00
Original source
hmm is everything in the server lua_scripts folder automatically included when reloading eluna, including contents of subdirectories?
Archived author: Grandold • Posted: 2022-05-12T08:45:13.715000+00:00
Original source
thinking of creating some library scripts and some way to autoload them, but only if certain script (that handles the other library files) is first loaded
Archived author: Honey • Posted: 2022-05-12T09:06:40.545000+00:00
Original source
Yup
Archived author: Honey • Posted: 2022-05-12T09:07:21.354000+00:00
Original source
You could use require and possibly specify a place outside the lua Scripts folder. Never tried that. Maybe foe has a solution.
Archived author: Grandold • Posted: 2022-05-12T09:08:07.919000+00:00
Original source
ye was hoping only the lua_scripts root folder was loaded so i could require stuff from subdirs only when needed