Page 1 of 1

Parsing order of '.lua' files

Posted: Thu Nov 01, 2007 7:17 pm
by Remy
Okay, I know there's a 'lua_manifest' in 'globals' which gives the order of most of the base lua files, but my question is about those not listed and any that happen to be in the dungeon's folder.
In which order do 'global.lua', 'startup.lua', and 'objects.lua' get parsed in base? And in dungeon directories, I know both 'startup.lua' and 'objects.lua' files are parsed - are there any others that happen automatically? And in what order?

Posted: Thu Nov 01, 2007 7:27 pm
by Joramun
In base, it's first global, then startup.
In the dungeon, only startup.lua, objects.lua and then dungeon.lua are parsed.
(I think it's in that order, but I might be wrong)
Other files should be put in a manifest in your dungeon's startup.lua in order to be considered.

Posted: Thu Nov 01, 2007 9:47 pm
by Sophia
Joramund is correct. :)
base parses global.lua, startup.lua, then objects.lua.
A dungeon parses startup.lua, objects.lua, then dungeon.lua.

Posted: Thu Nov 01, 2007 10:36 pm
by Remy
Thank you!