Error when loading New waypoint or path

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
zarakie
Posts: 7
Joined: Tue Nov 22, 2011 12:52 pm

Error when loading New waypoint or path

#1 Post by zarakie » Mon Nov 28, 2011 7:40 am

Hi I'm Running some bot to farm Ks i had the way points divided by 3 files
Ks.xml
Ks-res--pancer.xml
then ks-pancer-to-ks.xml

now I start inside ks ofc and run the waypoint KS its wrote to leave party before first boss then load the other Path from Res Point to the seller . now when The bot start to load new path or waypoint .. strange things happens my Character keep dying at Res point Or start moving in random way . same things happen if load file from ks-pancer-to-ks to Ks file ... im sure each file alone work okay but togther they not..


I tried to run each path alone its works fine but the moment it load the other problems happens again ...
Attachments
Untitled.png

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Error when loading New waypoint or path

#2 Post by rock5 » Mon Nov 28, 2011 7:57 am

I noticed something similar when I used my elfdaily script recently. I didn't die but it moved strangely and did unsticks after reloading the waypoint file after changing character. I don't know what caused it but i fixed it by adding.

Code: Select all

			-- Re-initialize player
			player = CPlayer.new();
			settings.load();
			settings.loadProfile("userdefault"); -- Profile name
Just after it reloaded the file. Try it and see if it helps. Obviously you would load the correct profile or use player.Name as the profile name.

If this fixes it for you then I'll have to look further into what's happening.
  • 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.”
          • Ronald Reagan

ratzuk
Posts: 19
Joined: Wed Dec 01, 2010 7:39 am

Re: Error when loading New waypoint or path

#3 Post by ratzuk » Wed Nov 30, 2011 8:02 am

Been having similar problems myself when changing characters. After cycling through 3 or 4 characters screen would start zooming in and out, bot would loose position and think it was stuck and log out so have been searching forum for a solution.

Adding Rock's code to the onLoad section of the waypoint file that was causing problems solved it. Thanks :)

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Error when loading New waypoint or path

#4 Post by rock5 » Wed Nov 30, 2011 9:06 am

Ok so I found the problem.

A change I made, not long ago, to make sure that pawns that become invalid are detected by checking for changed ids, is interfering with character changing. Because player IDs do change.

It's fixed in revision 677.

So you no longer need to reinitialize 'player'.
  • 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.”
          • Ronald Reagan

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 3 guests