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 » Wed Oct 28, 2009 9:03 pm

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 » Wed Oct 28, 2009 9:48 pm

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 » Wed Oct 28, 2009 10:52 pm

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 » Wed Oct 28, 2009 11:02 pm

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 » Wed Oct 28, 2009 11:56 pm

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 » Thu Oct 29, 2009 5:07 pm

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 » Thu Oct 29, 2009 5:11 pm

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 » Thu Oct 29, 2009 5:20 pm

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 » Thu Oct 29, 2009 5:22 pm

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 » Thu Oct 29, 2009 5:23 pm

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 » Thu Oct 29, 2009 5:30 pm

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 » Thu Oct 29, 2009 5:32 pm

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 » Thu Oct 29, 2009 5:41 pm

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 » Thu Oct 29, 2009 7:28 pm

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 » Fri Oct 30, 2009 1:27 am

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 » Fri Oct 30, 2009 2:03 am

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 » Fri Oct 30, 2009 3:59 am

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 » Sat Oct 31, 2009 12:40 am

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

Who is online

Users browsing this forum: Google [Bot], Semrush [Bot] and 2 guests