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

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
Theavid
Posts: 3
Joined: Thu Dec 10, 2009 3:11 pm

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

#1 Post by Theavid » Thu Dec 10, 2009 3:29 pm

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


Theavid
Posts: 3
Joined: Thu Dec 10, 2009 3:11 pm

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

#3 Post by Theavid » Thu Dec 10, 2009 3:44 pm

I did what you said ther but i still have this problem...so should i post my log or something?

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

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

#4 Post by Administrator » Thu Dec 10, 2009 4:02 pm

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.

Theavid
Posts: 3
Joined: Thu Dec 10, 2009 3:11 pm

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

#5 Post by Theavid » Thu Dec 10, 2009 4:14 pm

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.

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

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

#6 Post by Administrator » Thu Dec 10, 2009 5:08 pm

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.

flameboy
Posts: 22
Joined: Mon Jan 04, 2010 1:05 pm

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

#7 Post by flameboy » Mon Jan 04, 2010 1:32 pm

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

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

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

#8 Post by Administrator » Mon Jan 04, 2010 4:37 pm

And what is the title of the Runes of Magic window? If anything other than exactly "Runes of Magic", there is the problem.

flameboy
Posts: 22
Joined: Mon Jan 04, 2010 1:05 pm

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

#9 Post by flameboy » Mon Jan 04, 2010 4:47 pm

It is exactly "Runes of Magic"

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

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

#10 Post by Administrator » Mon Jan 04, 2010 5:54 pm

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

flameboy
Posts: 22
Joined: Mon Jan 04, 2010 1:05 pm

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

#11 Post by flameboy » Mon Jan 04, 2010 6:39 pm

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)

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

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

#12 Post by Administrator » Mon Jan 04, 2010 7:22 pm

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.

flameboy
Posts: 22
Joined: Mon Jan 04, 2010 1:05 pm

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

#13 Post by flameboy » Tue Jan 05, 2010 4:00 am

My scripts were downloaded recently.
Running rom/update.lua solved my problem.
Thanks!

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests