Multiple LuaHooks? Time of LuaHook initialization?
Posted: 25.06.2007, 15:35
1. Can multiple LuaHooks be made to work?
Having only one makes it awkward to add multiple sets of features written in Lua.
For example, one might like to include a script which checks official servers for official updates to orbital parameters while also having Vincent's LuaEdu script installed.
2. When does the initial LuaHook processing take place compared to when catalogs are loaded?
In other words, can one create catalogs from the LuaHook environment which will immediately be used? Or would Celestia have to be restarted?
NOTE I am not planning to implement any autoupdate script myself. i'm just wondering about the feasability of doing it in Lua instead of adding yet another library requirement to Celestia.
Having only one makes it awkward to add multiple sets of features written in Lua.
For example, one might like to include a script which checks official servers for official updates to orbital parameters while also having Vincent's LuaEdu script installed.
2. When does the initial LuaHook processing take place compared to when catalogs are loaded?
In other words, can one create catalogs from the LuaHook environment which will immediately be used? Or would Celestia have to be restarted?
NOTE I am not planning to implement any autoupdate script myself. i'm just wondering about the feasability of doing it in Lua instead of adding yet another library requirement to Celestia.