Page 1 of 1

cache error?

Posted: Mon Dec 06, 2010 5:02 am
by jduartedj

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....

Re: cache error?

Posted: Mon Dec 06, 2010 5:12 am
by botje
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

Re: cache error?

Posted: Mon Dec 06, 2010 5:50 am
by jduartedj
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.

Re: cache error?

Posted: Mon Dec 06, 2010 3:03 pm
by Administrator
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.

Re: cache error?

Posted: Mon Dec 06, 2010 3:34 pm
by botje
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

Re: cache error?

Posted: Mon Dec 06, 2010 3:36 pm
by Administrator
Can you provide a copy of your log.txt? What's the full path to the correct 'cache' folder?

Re: cache error?

Posted: Mon Dec 06, 2010 7:16 pm
by botje

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

Re: cache error?

Posted: Mon Dec 06, 2010 10:53 pm
by Administrator
Have you updated to the latest revision? Some of the code has changed since the caching was implemented.

Re: cache error?

Posted: Tue Dec 07, 2010 2:49 am
by botje
yes ofcourse, i always run latest bot.

Botje

Re: cache error?

Posted: Tue Dec 07, 2010 5:26 am
by Personalausweis
same for me, updatet to latest version and he only runs if i manually delete the cache files in that cache folder.

Re: cache error?

Posted: Tue Dec 07, 2010 3:35 pm
by Administrator
Try updating to r540 to see if it's fixed.

Re: cache error?

Posted: Tue Dec 07, 2010 4:51 pm
by botje
yep, that fixed it for me mate ^^

thanx a lot

Botje