Page 1 of 1

bad argument #1 to 'upper'

Posted: Tue Aug 02, 2016 12:15 am
by wishblades
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.

Re: bad argument #1 to 'upper'

Posted: Tue Aug 02, 2016 8:57 am
by Administrator
What's on line 307 of that file for you? Have you made any modifications?

Re: bad argument #1 to 'upper'

Posted: Tue Aug 02, 2016 4:37 pm
by wishblades
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....

Re: bad argument #1 to 'upper'

Posted: Tue Aug 02, 2016 5:55 pm
by wishblades
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

Re: bad argument #1 to 'upper'

Posted: Tue Aug 02, 2016 11:23 pm
by Administrator
Seems like one of the keys you've set in your settings is invalid, but that's my first guess.