Wrong number of parameters supplied to keyboardPress

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
bussdee
Posts: 37
Joined: Tue Apr 28, 2009 11:20 am

Wrong number of parameters supplied to keyboardPress

#1 Post by bussdee » Thu Dec 17, 2009 9:40 pm

I updated the script to 409 and now i got this error:
.../rom/classes/player.lua:1751: Wrong number of parameters supplied to keyboardPress()

Code: Select all

keyboardPress(settings.hotkeys.TARGET.key, settings.hotkeys.TARGET.modifier);

any idea how to fix this?
"Erfahrung ist fast immer eine Parodie auf die Idee."
Johann Wolfgang von Goethe

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

Re: Wrong number of parameters supplied to keyboardPress

#2 Post by Administrator » Thu Dec 17, 2009 10:40 pm

Probably an outdated copy of MicroMacro. I thought everyone would be up to date by now, so I went ahead and made some changes that will allow key modifiers (such as CTRL+1) to work.

http://www.solarstrike.net/downloads.php

Perk
Posts: 25
Joined: Fri Dec 18, 2009 12:36 pm

Re: Wrong number of parameters supplied to keyboardPress

#3 Post by Perk » Fri Dec 18, 2009 12:51 pm

Excuse my ignorance, I have the same or similar issue,

yellow error=
...micromacro/scripts/rom/classes/player.lua:1751: Wrong number of parameters supplied to keyboardPress()

started today after I did SVN update. I am running micromacro 1.0 (I re-dloaded from your supplied link and still came up with the same errors.)

any ideas as to what I need to do at this point, (Please be detailed as I am a novice at this) *I have been running and updating rombot for several months though without issue

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

Re: Wrong number of parameters supplied to keyboardPress

#4 Post by Administrator » Fri Dec 18, 2009 6:27 pm

You probably didn't update all files, then. I've seen countless times before where someone will download a new copy of MicroMacro and only copy over one file (for whatever reason) and things don't work. I would strongly suggest extracting the new version straight from that zip and copy your rombot folder into the new micromacro/scripts directory. Delete the old one.

I've just downloaded and tested it myself and everything works properly with keyboardPress().

Perk
Posts: 25
Joined: Fri Dec 18, 2009 12:36 pm

Re: Wrong number of parameters supplied to keyboardPress

#5 Post by Perk » Fri Dec 18, 2009 6:39 pm

I've seen countless times before where someone will download a new copy of MicroMacro and only copy over one file (for whatever reason) and things don't work.
thats exactly what i did,, i will wipe and re-do tonight.. thanks!!

EDIT/ UPDATE

You were excactly right, All is good..
thanks for taking the time to get me straight!! :D

Post Reply

Who is online

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