Bot Exploit

Full Version: Found problem why the MoveTo function is notworking for me
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi Titanium
I have after a hefty while of troubleshooting found why the MoveTo that I get from Ctrl + 2 or MoveTo button in the profile editor does not work. Smile

Do you think this can be sorted so Ctrl + 2 ingame works for getting working coordinates?
As it would mean I can start producing profiles alot quicker.
Currently making a Twin Seas legendary farm profile, and will then make one for Cains set

Below is just a stripped down profile to show where it goes wrong.


Profile:
<Profile>
<Name>Act2 Twin essence farm</Name>
<GameParams resumeFromSave="False" isPrivate="True" numGames="-1"/>
<!-- Made by Nalleman-->

<Order>

<If condition="Me.IsInTown">
<!-- Road to Alcarunus-->
<UseWaypoint waypointNumber="4"/>
</If>


<!--If we are in Road to Alcarunus-->
<If condition="CurrentWorldId == 70885">

<!-- This one works, I have changed it from , to use . instead for the coordinates-->
<MoveTo x="1401.034" y="1126.433" z="184.4915"/>

<!-- Below is what I get from Ctrl + 2 or clicking the MoveTo button in the profile editor It will fail and say destLocal out of bounds -->
<MoveTo x="1342,372" y="1073,617" z="174,5399"/>


<UseTownPortal/>
</If>

</Order>
</Profile>


Log proving my point:
2014-05-10 17:27:56 Start at 2014-05-10 15:27:56 - bjXXX@XXXXXXXXXX EU
2014-05-10 17:27:56 Bot Version 0.9.282
2014-05-10 17:27:56 Profile - twin essence.xml
2014-05-10 17:27:56 Start botting
2014-05-10 17:27:56 Executing Order
2014-05-10 17:27:57 Put into stash : no items
2014-05-10 17:27:57 Executing If, Me.IsInTown
2014-05-10 17:27:57 Executing UseWaypoint, 4
2014-05-10 17:27:57 Put into stash : no items
2014-05-10 17:27:57 Use Waypoint 4
2014-05-10 17:28:01 Executing WaitTimer
2014-05-10 17:28:01 Executing If, CurrentWorldId == 70885
2014-05-10 17:28:01 Executing MoveTo, 1401,034, 1126,433
2014-05-10 17:28:02 Executing MoveTo, 1342372, 1073617
2014-05-10 17:28:02 destLocal out of bounds
2014-05-10 17:28:02 1st time pathList.Count = 0, destination = X: 1342372, Y: 1073617, Z: 1745399
2014-05-10 17:28:02 Scene not loaded , so path to near point X: 1677,5, Y: 1320, Z: 0
2014-05-10 17:28:02 Moving to nearest point
2014-05-10 17:28:02 1st time pathList.Count = 0, destination = X: 1677,5, Y: 1320, Z: 0
2014-05-10 17:28:02 Nearest not allowed
2014-05-10 17:28:03 destLocal out of bounds
2014-05-10 17:28:03 1st time pathList.Count = 0, destination = X: 1342372, Y: 1073617, Z: 1745399
2014-05-10 17:28:03 Nearest not allowed
2014-05-10 17:28:03 Executing UseTownPortal
2014-05-10 17:28:03 UseTownPortal tryAgainTimes = 0
2014-05-10 17:28:03 Use Town Portal
In some region, the maps are generated randomly each time, each time you enter the map in a newly created game, the maps is different. e.g. keep depths 2.
So you cannot use MoveTo, you have to use ExploreArea which will explore the randomly generated map.
This is even in the same map, and the maps I have done are static so I know it should be able to walk a few steps in a given direction Smile

And as I said if I change the , (Comma) to a . (Dot) everything works great.
Oh you're right. "." is the decimal separator that works in our bot.
And it keeps me wondering why directly from the profile editor it will give: <MoveTo x="357,456" y="231,3263" z="0,1"/> with comma instead of dot, so I have to manually change each coordinate when making profile Smile Great that you see what I meant at least as it means the bug has a chance to get corrected so more people can make profile that do not know how to mass replace the commas to dots.

Also has to say that you guys are doing a great job of making the bot : ) I LOVE it.
Todays SoJ, Cindercoat and Magefist drops for my Firemonk made me very happy to arrive at home, that it had not gambled on any helms and wasted roughtly 1500 rift keys not so much, but does not really care currenlty Smile))
Reference URL's