SVN r535 changes: onHarvest event and itemstables caching

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
User avatar
Administrator
Site Admin
Posts: 5353
Joined: Sat Jan 05, 2008 4:21 pm

SVN r535 changes: onHarvest event and itemstables caching

#1 Post by Administrator »

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.
User avatar
botje
Posts: 656
Joined: Wed Oct 27, 2010 7:17 am

Re: SVN r535 changes: onHarvest event and itemstables cachin

#2 Post by botje »

there is a problem with the cache.

it looks for scripts\rom\scripts\rom\cache

a double folder xd

when i make that folders in the rom folder all is well though ^^

Botje
Post Reply