Page 1 of 1

bad argument #1 to 'sprintf' <got nil>

Posted: Wed Oct 28, 2009 9:03 pm
by extremeuser
Not sure how to fix this

Re: bad argument #1 to 'sprintf' <got nil>

Posted: Wed Oct 28, 2009 9:48 pm
by droppen
not sure how you got this error

Re: bad argument #1 to 'sprintf' <got nil>

Posted: Wed Oct 28, 2009 10:52 pm
by darkriderkk
go to the rom bot first sticky and follow svn then move rom folder to desktop and then make a new rom folder in scripts and u do the svn checkout

Re: bad argument #1 to 'sprintf' <got nil>

Posted: Wed Oct 28, 2009 11:02 pm
by extremeuser
ive redone the svn checkout and only kept profiles and waypoints i still get error. works for 5 - 10 mins then i get the error. I redone a new profile and still happens

Re: bad argument #1 to 'sprintf' <got nil>

Posted: Wed Oct 28, 2009 11:56 pm
by droppen
can you be more specific on where the error occurred? like, the line number?

Re: bad argument #1 to 'sprintf' <got nil>

Posted: Thu Oct 29, 2009 5:07 pm
by extremeuser
after bout 5-10 mins i get exactly this line

scripts\rom\bot.lua:616: bad argument #1 to 'sprintf' <got nil>

Still cant seem to get it fixed

Re: bad argument #1 to 'sprintf' <got nil>

Posted: Thu Oct 29, 2009 5:11 pm
by d003232
extremeuser wrote:after bout 5-10 mins i get exactly this line

scripts\rom\bot.lua:616: bad argument #1 to 'sprintf' <got nil>

Still cant seem to get it fixed
Which SVN version do you have. Can you look into file bot.lua at line 616. What's the lines coding?

How is your waypoint file looking?

Re: bad argument #1 to 'sprintf' <got nil>

Posted: Thu Oct 29, 2009 5:20 pm
by extremeuser
cprintf(cli.green, "We overrun waypoint #%d, skip it and move on to #%d\n",currentWp.wpnum, nextWp.wpnum);

Thats the requested line.

Using revision 389 SVN. I always update, deleted all files and updated again and updated profiles also. Works fine till i get that message. Im currently using a wander path of 500

Re: bad argument #1 to 'sprintf' <got nil>

Posted: Thu Oct 29, 2009 5:22 pm
by d003232
extremeuser wrote:cprintf(cli.green, "We overrun waypoint #%d, skip it and move on to #%d\n",currentWp.wpnum, nextWp.wpnum);

Thats the requested line.

Using revision 389 SVN. I always update, deleted all files and updated again and updated profiles also. Works fine till i get that message. Im currently using a wander path of 500
Ok. It's a bug with the overrun function for waypoints. That's not very usefull for wandering around. :-) I have to think about how to fix that.

Re: bad argument #1 to 'sprintf' <got nil>

Posted: Thu Oct 29, 2009 5:23 pm
by extremeuser
Glad it wasnt just me, I couldnt see any1 else reporting this error either lolz. Would making a waypoint and changing to waypoint instead of wander for time being fix this temporarily?

Re: bad argument #1 to 'sprintf' <got nil>

Posted: Thu Oct 29, 2009 5:30 pm
by d003232
SVN 390 shoudl avoid that error. The overrun and skip waypoints function will now not be used if you use the 'wander' mode.

Re: bad argument #1 to 'sprintf' <got nil>

Posted: Thu Oct 29, 2009 5:32 pm
by extremeuser
thank you heaps for the speedy SVN update. I try it now and let you know if run into any more weird errors

Just a note: the macro test sending the macro to my macro hotkey is now coming up! which is fine as it used to always but for the last few SVN updates, this never came up lolz. Thats changed too?

Re: bad argument #1 to 'sprintf' <got nil>

Posted: Thu Oct 29, 2009 5:41 pm
by d003232
extremeuser wrote:thank you heaps for the speedy SVN update. I try it now and let you know if run into any more weird errors

Just a note: the macro test sending the macro to my macro hotkey is now coming up! which is fine as it used to always but for the last few SVN updates, this never came up lolz. Thats changed too?
Yes. That's now also a little more clear.

Re: bad argument #1 to 'sprintf' <got nil>

Posted: Thu Oct 29, 2009 7:28 pm
by extremeuser
Any chance you know the error to item update error, and the chat dialog opens, hence the bot stops, and dies lol! says empty or wrong bagID etc.

Re: bad argument #1 to 'sprintf' <got nil>

Posted: Fri Oct 30, 2009 1:27 am
by d003232
extremeuser wrote:Any chance you know the error to item update error, and the chat dialog opens, hence the bot stops, and dies lol! says empty or wrong bagID etc.
Please describe, what you are doing and post the content of your MM window.

Re: bad argument #1 to 'sprintf' <got nil>

Posted: Fri Oct 30, 2009 2:03 am
by droppen
I've got that bug too, the chat dialog opens, and you die. i think it has something to do with working with the bot on background.

Re: bad argument #1 to 'sprintf' <got nil>

Posted: Fri Oct 30, 2009 3:59 am
by d003232
droppen wrote:I've got that bug too, the chat dialog opens, and you die. i think it has something to do with working with the bot on background.
Yes. If the chat dialog opens, then no keystrokes will go to the action buttons. So there will be the 'update' errors, because the MACRO function will not be executed. But why does the bot open the chat? What's the keystroke to open the chat? I suppose 'ENTER'? or '/'?

Re: bad argument #1 to 'sprintf' <got nil>

Posted: Sat Oct 31, 2009 12:40 am
by droppen
ooh, got it. i had control+r bind on relpy to whisper, so if i has control down, and the bot used a skill bound to r it opens the chat dialog.