Page 1 of 1
bot.lua:416: bad argument #1 to `lower` <string expected,...
Posted: Wed Jan 19, 2011 6:10 am
by schwarzepeter
pls help i got this error after rombot update if i try to start a waypoint file
Re: bot.lua:416: bad argument #1 to `lower` <string expected
Posted: Wed Jan 19, 2011 6:36 am
by JackBlonder
You should provide more information.
Do have the current rombot version, updated by SVN?
What are you doing in your waypoint file?
Re: bot.lua:416: bad argument #1 to `lower` <string expected
Posted: Wed Jan 19, 2011 6:45 am
by schwarzepeter
svn is updated rombot is ubdated and i using standart waypoin from creatpath
Re: bot.lua:416: bad argument #1 to `lower` <string expected
Posted: Wed Jan 19, 2011 7:56 am
by lisa
try using SVN revert on your micromacro/scripts/rom folder. I'd say the bot.lua is just not updated or didn't update properly.
Re: bot.lua:416: bad argument #1 to `lower` <string expected
Posted: Wed Jan 19, 2011 4:48 pm
by schwarzepeter
thx lisa the reverd was the right thing ^^ it works now thx
closed pls ^^
Re: bot.lua:416: bad argument #1 to `lower` <string expected
Posted: Thu Jan 20, 2011 4:53 pm
by schwarzepeter
ok sorry only the included waypoints working my own dost work but i created this with creatpath wy i get this error???
Re: bot.lua:416: bad argument #1 to `lower` <string expected
Posted: Thu Jan 20, 2011 8:40 pm
by lisa
If it's just 1 waypoint that is causing issue then need to look into the WP itself, I'd suguest posting the WP in the code tags but you may not want to share your WP. It's up to you.
Looks to me you might be having same issue I have from time to time. string expected but got number or the other way round.
So it would be an issue with using the "" .
Another thing to check is your profile. Only mention of lower I can find in bot.lua is to do with ammo.
Code: Select all
local ammo = string.lower(settings.profile.options.RELOAD_AMMUNITION);
check your profile for this
Code: Select all
<option name="RELOAD_AMMUNITION" value="false" /> <!-- false|arrow|thrown -->
value needs to be "false" or "arrow" or "thrown"