by satoon101 » Wed Sep 26, 2012 4:58 am
To load and unload included/custom addons, simply use the addons variable to set to 1/0. However, currently once an addon is loaded into memory, it will not be re-imported when it is reloaded. Instead, the instance itself stays in memory. I do plan on revisiting that structure to fix that issue, but have not done that as of yet.
As for debugging, it all depends on what I am trying to do. Using es.dbgmsg(0, <text>) helps a lot to make sure the code is functioning properly, but that requires direct access to the server's console. If you do not have that, you can simply use es.msg(<text>), which will print in the chat area to all players on the server.
Satoon