-
s018mes
- Posts: 79
- Joined: Sun Jan 16, 2011 11:14 am
#1
Post
by s018mes » Sun Nov 06, 2011 9:15 pm
What is causing this error in my DOD bot runs? My bot runs for maybe an hour and then stops.
Code: Select all
No ranged skills specified in profile; Turning COMBAT_RANGED_PULL off.
8:3pm - undefined player.Class1 in settings.lua
-
rock5
- Posts: 12173
- Joined: Tue Jan 05, 2010 3:30 am
- Location: Australia
#2
Post
by rock5 » Sun Nov 06, 2011 10:42 pm
My guess would be that your client crashed.
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:
- “They say hard work never hurt anybody, but I figure, why take the chance.”
-
s018mes
- Posts: 79
- Joined: Sun Jan 16, 2011 11:14 am
#3
Post
by s018mes » Sun Nov 06, 2011 11:03 pm
No the Client is always up and running.
It also seems to occur after zoning out of DOD.
Would some code like wait for loading screen fix this?
-
s018mes
- Posts: 79
- Joined: Sun Jan 16, 2011 11:14 am
#4
Post
by s018mes » Sun Nov 06, 2011 11:21 pm
I think I have figured it out, the last Waypoint for my character to zone out of DOD is just short of him zoning out. So I am going to change the waypoint. Otherwise he turns, runs into the wall and takes like 4-5 more seconds to eventually zone out.
-
rock5
- Posts: 12173
- Joined: Tue Jan 05, 2010 3:30 am
- Location: Australia
#5
Post
by rock5 » Sun Nov 06, 2011 11:30 pm
Yep. My next guess was it's trying to get info from memory while zoning. Are you using "waitForLoadingScreen()"?
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:
- “They say hard work never hurt anybody, but I figure, why take the chance.”
-
s018mes
- Posts: 79
- Joined: Sun Jan 16, 2011 11:14 am
#6
Post
by s018mes » Mon Nov 07, 2011 7:11 am
No I did not put in "waitForLoadingScreen()". Instead I tried changing the waypoints. I watched it 2x to see it and it did work both times walking directly out of the zone. But I checked only 1 hour later and same result. I will try "waitForLoadingScreen()" next.
-
imaginethat
- Posts: 61
- Joined: Sun Jul 10, 2011 10:39 pm
#7
Post
by imaginethat » Tue Jan 03, 2012 4:42 pm
Hi
Happy New Year all
I have just started running my bot again for this year, and it has come up with the error mentioned in this post. This is a waypoint sript this bot has run at least 10 times before without any issue.
I noticed that in my debug code just before this error, my out put is showing player.Class1 = 4. The bot is a Mage so this number is correct, but I thought player.Class1 should return the name of the class. The settings.lua is also expecting player.Class1 to be non-numeric.
Any thoughts on the supposed returned type of player.Class1 ?
Thanks
-
lisa
- Posts: 8332
- Joined: Tue Nov 09, 2010 11:46 pm
- Location: Australia
#8
Post
by lisa » Tue Jan 03, 2012 8:08 pm
At the start of pawn.lua the variables for class are set, the game itself uses numbers, we tell the bot it can use these names aswell but yes game uses numbers and so most prints will do the respective number.
Code: Select all
CLASS_NONE = -1;
CLASS_WARRIOR = 1;
CLASS_SCOUT = 2;
CLASS_ROGUE = 3;
CLASS_MAGE = 4;
CLASS_PRIEST = 5;
CLASS_KNIGHT = 6;
CLASS_WARDEN = 7;
CLASS_DRUID = 8;
So in settings.lua it has this
so it checks if they are the same and CLASS_WARRIOR is defined in pawn.lua as = 1, so it does player.Class1 == 1
Basically it is done so we don't have to remember what number each class is and can just use CLASS_WARRIOR.
Who is online
Users browsing this forum: Bing [Bot], Majestic-12 [Bot] and 2 guests