bad argument #1 to 'upper'

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
wishblades
Posts: 36
Joined: Fri Aug 31, 2012 4:31 pm

bad argument #1 to 'upper'

#1 Post by wishblades » Tue Aug 02, 2016 12:15 am

c:/Games/ROM Hacks/micromacro/scripts/rom/settings.lua:307: bad argument #1 to 'upper' (string expected, got nil)

I am getting this error and can't figure it out, I tried on the 1.04 and the 1.05 versions, didn't try the rest since they were unstable, if you know what's wrong with it, please let me know and thank you.

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

Re: bad argument #1 to 'upper'

#2 Post by Administrator » Tue Aug 02, 2016 8:57 am

What's on line 307 of that file for you? Have you made any modifications?

wishblades
Posts: 36
Joined: Fri Aug 31, 2012 4:31 pm

Re: bad argument #1 to 'upper'

#3 Post by wishblades » Tue Aug 02, 2016 4:37 pm

307 if( string.upper(v.key) == "MACRO" ) then

I didn't change anything, I actually copied this from my other two computers where the bot works great on, I ended up downloading the micromacro again to check but still nadda....

wishblades
Posts: 36
Joined: Fri Aug 31, 2012 4:31 pm

Re: bad argument #1 to 'upper'

#4 Post by wishblades » Tue Aug 02, 2016 5:55 pm

Here is entire part.....

306 local keyname;
307 if( string.upper(v.key) == "MACRO" ) then
308 keyname = "MACRO";
309 else
310 keyname = getKeyName(v.key);
311 end

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

Re: bad argument #1 to 'upper'

#5 Post by Administrator » Tue Aug 02, 2016 11:23 pm

Seems like one of the keys you've set in your settings is invalid, but that's my first guess.

Post Reply

Who is online

Users browsing this forum: No registered users and 26 guests