SVN r535 changes: onHarvest event and itemstables caching
Posted: Sat Dec 04, 2010 8:50 pm
Ok, two big changes here. The onHarvest event is pretty self-explanatory, but the caching might not be. When starting the bot script, the item tables must be loaded which can take a bit of time. Now, this will only be necessary the first time a bot is started on that client. On my computer, loading the items tables would normally take about 5 seconds. Now, it still takes 5 seconds the first time (of course), but restarting the script, it only takes 0.1 second to load the information out of the cached database.
This needs to be tested more. If you have r535 and experience any problems, let me know.
EDIT: Also note that if you have set increased security for your MicroMacro installation (non-standard settings) in config.lua (allowSystemCommands = false), the script will not be able to delete old cache files and you may need to do this manually. It shouldn't be a problem unless you left it for months, but even then it would eventually add up to only a few megabytes.
This needs to be tested more. If you have r535 and experience any problems, let me know.
EDIT: Also note that if you have set increased security for your MicroMacro installation (non-standard settings) in config.lua (allowSystemCommands = false), the script will not be able to delete old cache files and you may need to do this manually. It shouldn't be a problem unless you left it for months, but even then it would eventually add up to only a few megabytes.