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

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
extremeuser
Posts: 57
Joined: Wed Jul 01, 2009 12:52 am

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

#1 Post by extremeuser »

Not sure how to fix this
User avatar
droppen
Posts: 179
Joined: Mon Aug 03, 2009 10:32 pm

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

#2 Post by droppen »

not sure how you got this error
darkriderkk
Posts: 12
Joined: Sat Oct 24, 2009 10:18 pm

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

#3 Post 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
extremeuser
Posts: 57
Joined: Wed Jul 01, 2009 12:52 am

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

#4 Post 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
User avatar
droppen
Posts: 179
Joined: Mon Aug 03, 2009 10:32 pm

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

#5 Post by droppen »

can you be more specific on where the error occurred? like, the line number?
extremeuser
Posts: 57
Joined: Wed Jul 01, 2009 12:52 am

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

#6 Post 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
d003232
Posts: 1252
Joined: Wed Jun 03, 2009 4:27 pm

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

#7 Post 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?
The RoM Bot Online Wiki needs your help!
extremeuser
Posts: 57
Joined: Wed Jul 01, 2009 12:52 am

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

#8 Post 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
d003232
Posts: 1252
Joined: Wed Jun 03, 2009 4:27 pm

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

#9 Post 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.
The RoM Bot Online Wiki needs your help!
extremeuser
Posts: 57
Joined: Wed Jul 01, 2009 12:52 am

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

#10 Post 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?
d003232
Posts: 1252
Joined: Wed Jun 03, 2009 4:27 pm

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

#11 Post 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.
The RoM Bot Online Wiki needs your help!
extremeuser
Posts: 57
Joined: Wed Jul 01, 2009 12:52 am

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

#12 Post 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?
d003232
Posts: 1252
Joined: Wed Jun 03, 2009 4:27 pm

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

#13 Post 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.
The RoM Bot Online Wiki needs your help!
extremeuser
Posts: 57
Joined: Wed Jul 01, 2009 12:52 am

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

#14 Post 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.
d003232
Posts: 1252
Joined: Wed Jun 03, 2009 4:27 pm

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

#15 Post 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.
The RoM Bot Online Wiki needs your help!
User avatar
droppen
Posts: 179
Joined: Mon Aug 03, 2009 10:32 pm

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

#16 Post 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.
d003232
Posts: 1252
Joined: Wed Jun 03, 2009 4:27 pm

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

#17 Post 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 '/'?
The RoM Bot Online Wiki needs your help!
User avatar
droppen
Posts: 179
Joined: Mon Aug 03, 2009 10:32 pm

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

#18 Post 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.
Post Reply