Page 1 of 1

Error when trying to run bot.lua

Posted: Sun Aug 16, 2009 11:09 am
by Lol5667
Hi,
my problem is:
I've created waypoint for harvesting, but when I try to run bot.lua this appears: .../scripts/rom/classes/waypointlist.lua:22: bad argument #2 to 'error' <number expected, got string>

Re: Error when trying to run bot.lua

Posted: Sun Aug 16, 2009 1:25 pm
by d003232
Lol5667 wrote:Hi,
my problem is:
I've created waypoint for harvesting, but when I try to run bot.lua this appears: .../scripts/rom/classes/waypointlist.lua:22: bad argument #2 to 'error' <number expected, got string>
Please attach your waypoint file to check it. And how do you load your waypoint file? In a profile or with load_path() in a waypoint file? Please check the names? It seems that you somewhere try to load an 'empty' waypoint filename.

And if you found the error, please post the reason. Thx.

Re: Error when trying to run bot.lua

Posted: Sun Aug 16, 2009 5:17 pm
by Lol5667
Im kinda nob in this.
I've attached this waypoint file. I've changed used waypoint in my profile. Im opening it typing rom/bot.lua.
I would like to say, that previous one, test-waypoint works fine.

Re: Error when trying to run bot.lua

Posted: Sun Aug 16, 2009 5:39 pm
by Administrator

Code: Select all

<waypoints>
<waypoints type="TRAVEL">
That quite likely is your problem. You must get rid of that first line.

Re: Error when trying to run bot.lua

Posted: Mon Aug 17, 2009 9:11 am
by Lol5667
Thanks, now it's ok.