Page 1 of 1

You need to run rom first! - bad argument...

Posted: Thu Dec 10, 2009 3:29 pm
by Theavid
When i run the script "rom\createpath.lua" i get an instant message:

OPENING LOCAL SKILLS DB!
You need to run rom first!
scripts\rom\createpath.lua:79: bad argument #1 to ´memoryreadintptr´ <<null>>

so i can´t even make a new path and go on to have some more problems :mrgreen:

TheAvid

Re: You need to run rom first! - bad argument...

Posted: Thu Dec 10, 2009 3:41 pm
by Administrator

Re: You need to run rom first! - bad argument...

Posted: Thu Dec 10, 2009 3:44 pm
by Theavid
I did what you said ther but i still have this problem...so should i post my log or something?

Re: You need to run rom first! - bad argument...

Posted: Thu Dec 10, 2009 4:02 pm
by Administrator
You're definitely going to have to provide more information. You have not stated what client version or language you are using yet. Also, if possible, check what the window's class name is.

Re: You need to run rom first! - bad argument...

Posted: Thu Dec 10, 2009 4:14 pm
by Theavid
OK i´m using the client version 2.1.3.1984 and the language is german. But I don´t know what you mean, when you´re talking about the window´s class name. Also I changed the ´RunesofMagic´ into ´*´ . That´s what you discribed in the other thread.

Re: You need to run rom first! - bad argument...

Posted: Thu Dec 10, 2009 5:08 pm
by Administrator
Try switching the client language to English (which can be done through the launcher) and see if that fixes the problem. Also, what is the window title for RoM (for both the German and English languages)? Do you run the game windowed or full screen? Attach a copy of your log.txt.

Re: You need to run rom first! - bad argument...

Posted: Mon Jan 04, 2010 1:32 pm
by flameboy
I have this same problem, and I even tried the "*" suggestion, but still nothing. (even though my client is English)

My log.txt:

Code: Select all

Mon Jan 04 19:29:09 2010 : MicroMacro v1.0
Mon Jan 04 19:29:09 2010 : Processor Type: 2X 586, OS: Windows XP Service Pack 2
Mon Jan 04 19:29:09 2010 : LuaCoco is available.
Mon Jan 04 19:29:09 2010 : Lua glues exported.
Mon Jan 04 19:29:09 2010 : Keyboard layout: US English
Mon Jan 04 19:29:17 2010 : Executing script 'createpath.lua'
==================================================

Mon Jan 04 19:29:17 2010 : Language: english
Mon Jan 04 19:29:17 2010 : findWindowList() returned 0 results. Window(s) not found or other error occured.
Mon Jan 04 19:29:17 2010 : Error attempting to open process 0xA44C60. Error code: 87 (The parameter is incorrect.).
Mon Jan 04 19:29:17 2010 : scripts\rom\createpath.lua:79: bad argument #1 to 'memoryReadIntPtr' ((null))
Mon Jan 04 19:29:17 2010 : Execution error: Runtime error

Re: You need to run rom first! - bad argument...

Posted: Mon Jan 04, 2010 4:37 pm
by Administrator
And what is the title of the Runes of Magic window? If anything other than exactly "Runes of Magic", there is the problem.

Re: You need to run rom first! - bad argument...

Posted: Mon Jan 04, 2010 4:47 pm
by flameboy
It is exactly "Runes of Magic"

Re: You need to run rom first! - bad argument...

Posted: Mon Jan 04, 2010 5:54 pm
by Administrator
It could be many things. Are you absolutely sure you downloaded MicroMacro from the download page recently (ie. within the last month)? If you got the package off some other site, it's probably outdated and, possibly, broken. So, I would start there.

You can also try downloading Winspector to grab the window's Class Name for the Runes of Magic window (should be "Radiant Arcana").

Re: You need to run rom first! - bad argument...

Posted: Mon Jan 04, 2010 6:39 pm
by flameboy
I used to use this bot before, so I hadn't downloaded micromacro recently.
But now that I have, I get a different error (executing createpath.lua):

Code: Select all

D:/micromacro/scripts/rom/classes/pawn.lua:145: attempt to perform arithmetic on field 'Address' (a nil value)

Re: You need to run rom first! - bad argument...

Posted: Mon Jan 04, 2010 7:22 pm
by Administrator
Ok, great. That's a step forward. It looks like your copy of the scripts are also outdated. Redownload and install the script package from here: http://www.solarstrike.net/phpBB3/viewt ... f=21&t=163

You might need to run rom/update.lua before it will run. Alternatively, you can use SVN to update.

Re: You need to run rom first! - bad argument...

Posted: Tue Jan 05, 2010 4:00 am
by flameboy
My scripts were downloaded recently.
Running rom/update.lua solved my problem.
Thanks!