cache error?

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
User avatar
jduartedj
Posts: 599
Joined: Sat Dec 19, 2009 12:18 am
Location: Lisbon
Contact:

cache error?

#1 Post by jduartedj » Mon Dec 06, 2010 5:02 am

Code: Select all

Deleting itemstables.656400.lua (old cache file)
...Jogos/micromacro/scripts/rom/classes/memorytable.lua:408: attempt to call global 'system' (a nil value)
Updated and still got this error....
Thanks for reading! :D

Some of you might find this useful: RoM-bot Wiki
User Functions Repository (and other useful files): Addon Repo
Latest SVN updates: SVN updates

User avatar
botje
Posts: 656
Joined: Wed Oct 27, 2010 7:17 am

Re: cache error?

#2 Post by botje » Mon Dec 06, 2010 5:12 am

not to mention i get errors about not finding it, double folders.

scripts\rom\scripts\rom\cache

to many scripts\rom, or is this only on my part?

Botje

User avatar
jduartedj
Posts: 599
Joined: Sat Dec 19, 2009 12:18 am
Location: Lisbon
Contact:

Re: cache error?

#3 Post by jduartedj » Mon Dec 06, 2010 5:50 am

botje wrote:not to mention i get errors about not finding it, double folders.

scripts\rom\scripts\rom\cache

to many scripts\rom, or is this only on my part?

Botje
That never happened to me...
This probably a MM/coding issue as it doesn't recognize system() as function... I simply deleted the file manually for now.
Thanks for reading! :D

Some of you might find this useful: RoM-bot Wiki
User Functions Repository (and other useful files): Addon Repo
Latest SVN updates: SVN updates

User avatar
Administrator
Site Admin
Posts: 5307
Joined: Sat Jan 05, 2008 4:21 pm

Re: cache error?

#4 Post by Administrator » Mon Dec 06, 2010 3:03 pm

jduartedj wrote: This probably a MM/coding issue as it doesn't recognize system() as function... I simply deleted the file manually for now.
system() is a library function (from lib.lua). Maybe you have an outdated copy of MicroMacro or have only been updating the main executable.
botje wrote:not to mention i get errors about not finding it, double folders.

scripts\rom\scripts\rom\cache

to many scripts\rom, or is this only on my part?

Botje
If you updated via SVN, you should have a folder named 'cache' inside the 'rom' script folder. If not, create one.

User avatar
botje
Posts: 656
Joined: Wed Oct 27, 2010 7:17 am

Re: cache error?

#5 Post by botje » Mon Dec 06, 2010 3:34 pm

oh but i have that folder man, thats not the problem, it looks for it in the wrong place.

it keeps telling me it cant find the item thingy in script\rom\script\rom\cache

so it looks in folders that arent there, except i made a extra script\rom\cache folder IN my rom folder so it stops nagging :p

Botje

User avatar
Administrator
Site Admin
Posts: 5307
Joined: Sat Jan 05, 2008 4:21 pm

Re: cache error?

#6 Post by Administrator » Mon Dec 06, 2010 3:36 pm

Can you provide a copy of your log.txt? What's the full path to the correct 'cache' folder?

User avatar
botje
Posts: 656
Joined: Wed Oct 27, 2010 7:17 am

Re: cache error?

#7 Post by botje » Mon Dec 06, 2010 7:16 pm

Code: Select all

Tue Dec 07 01:13:47 2010 : Processor Type: 2X 586 @2997MHz, OS: Windows 7 Service Pack 1, v.721
Tue Dec 07 01:13:47 2010 : User privilege level: Administrator
Tue Dec 07 01:13:47 2010 : Lua glues exported.
Tue Dec 07 01:13:47 2010 : MicroMacro v1.01 beta 3
Tue Dec 07 01:13:47 2010 : LuaCoco is available.
Tue Dec 07 01:13:47 2010 : Keyboard layout: US English
Tue Dec 07 01:13:47 2010 : Executing script 'bot.lua'
-------------------------------------------------------------------------------


Tue Dec 07 01:13:47 2010 : Bot addon 'catchcavy' successfully loaded.
Tue Dec 07 01:13:47 2010 : Bot addon 'Fusion_Functions' successfully loaded.
Tue Dec 07 01:13:47 2010 : Bot addon 'SwapClass' successfully loaded.
Tue Dec 07 01:13:47 2010 : Bot addon 'WaitforLoad' successfully loaded.
Tue Dec 07 01:13:47 2010 : Language: english
Tue Dec 07 01:13:51 2010 : Using static char address 0x9B5284, player address 0x5F9F8200
Tue Dec 07 01:13:52 2010 : QUICK_TURN = true
Tue Dec 07 01:13:52 2010 : Keyboard settings are from settings.xml:
Tue Dec 07 01:13:52 2010 : MOVE_FORWARD                  W
Tue Dec 07 01:13:52 2010 : STRAFF_LEFT                   A
Tue Dec 07 01:13:52 2010 : TARGET                        Tab
Tue Dec 07 01:13:52 2010 : WARRIOR_PROBING_ATTACK        5
Tue Dec 07 01:13:52 2010 : ROTATE_LEFT                   Q
Tue Dec 07 01:13:52 2010 : STRAFF_RIGHT                  D
Tue Dec 07 01:13:52 2010 : WARRIOR_SLASH                 2
Tue Dec 07 01:13:52 2010 : WARRIOR_OPEN_FLANK            6
Tue Dec 07 01:13:52 2010 : MOVE_BACKWARD                 S
Tue Dec 07 01:13:52 2010 : TARGET_FRIEND                 J
Tue Dec 07 01:13:52 2010 : MACRO                         0
Tue Dec 07 01:13:52 2010 : JUMP                          Space
Tue Dec 07 01:13:52 2010 : ROTATE_RIGHT                  E
In main thread:
stack traceback:
	D:\todo\micromacro\lib\lib.lua:273: in function 'include'
	scripts/rom/classes/memorytable.lua:312: in function 'LoadTables_cached'
	scripts/rom/classes/memorytable.lua:375: in function 'LoadTables'
	scripts/rom/classes/inventory.lua:9: in function 'ctor'
	D:/todo/micromacro/lib/mods/classes.lua:26: in function 'CInventory'
	scripts/rom/bot.lua:184: in function 'foo'
	D:\todo\micromacro\lib\lib.lua:510: in function <D:\todo\micromacro\lib\lib.lua:508>

----------TRACEBACK END----------

Tue Dec 07 01:13:52 2010 : scripts/rom/classes/memorytable.lua:312: cannot open scripts/rom/scripts/rom/cache/itemstables.1443482.lua: No such file or directory
Tue Dec 07 01:13:52 2010 : Execution error: Runtime error
i have to add, that when there is NO cache file, it works perfectly.

it only screws up when i start the bot the second time on the client.

Botje

User avatar
Administrator
Site Admin
Posts: 5307
Joined: Sat Jan 05, 2008 4:21 pm

Re: cache error?

#8 Post by Administrator » Mon Dec 06, 2010 10:53 pm

Have you updated to the latest revision? Some of the code has changed since the caching was implemented.

User avatar
botje
Posts: 656
Joined: Wed Oct 27, 2010 7:17 am

Re: cache error?

#9 Post by botje » Tue Dec 07, 2010 2:49 am

yes ofcourse, i always run latest bot.

Botje

Personalausweis
Posts: 73
Joined: Mon Aug 16, 2010 12:50 pm

Re: cache error?

#10 Post by Personalausweis » Tue Dec 07, 2010 5:26 am

same for me, updatet to latest version and he only runs if i manually delete the cache files in that cache folder.

User avatar
Administrator
Site Admin
Posts: 5307
Joined: Sat Jan 05, 2008 4:21 pm

Re: cache error?

#11 Post by Administrator » Tue Dec 07, 2010 3:35 pm

Try updating to r540 to see if it's fixed.

User avatar
botje
Posts: 656
Joined: Wed Oct 27, 2010 7:17 am

Re: cache error?

#12 Post by botje » Tue Dec 07, 2010 4:51 pm

yep, that fixed it for me mate ^^

thanx a lot

Botje

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 2 guests