-
pumbatoo
- Posts: 19
- Joined: Wed Jul 13, 2011 3:18 am
#1
Post
by pumbatoo » Fri Jul 22, 2011 5:07 pm
Is there any way to start a waypoint file not(!) from its beginning?
I want to start the waypoint file after little changes from a point at the mid of the file...
thanks for response
p.s: I search a way to start the file from its mid either by mm console or from within another waypoint file.
-
botje
- Posts: 656
- Joined: Wed Oct 27, 2010 7:17 am
#2
Post
by botje » Fri Jul 22, 2011 5:16 pm
Code: Select all
__WPL:setWaypointIndex(1) -- or whatever point you want it to go to first.
Botje
-
pumbatoo
- Posts: 19
- Joined: Wed Jul 13, 2011 3:18 am
#3
Post
by pumbatoo » Fri Jul 22, 2011 6:08 pm
thank you for the fast response, botje!
and sry, don't know how I could overlook it...

-
botje
- Posts: 656
- Joined: Wed Oct 27, 2010 7:17 am
#4
Post
by botje » Fri Jul 22, 2011 7:56 pm
your welcome mate
Botje
-
pumbatoo
- Posts: 19
- Joined: Wed Jul 13, 2011 3:18 am
#5
Post
by pumbatoo » Sat Jul 23, 2011 3:47 am
Sorry, still have problems there.
When I start a new bot.lua instance and choice my waypoint file, it is not jumping to #19 as I expect
In the waypoint file I prepared to jump to my tagged waypoint index:
Code: Select all
<waypoints type="RUN">
<onLoad>
__WPL:setWaypointIndex(__WPL:findWaypointTag("devStep"));
</onLoad>
<!-- # 1 --><waypoint x="-x" z="-z"> </waypoint>
...
<!-- # 19 --><waypoint x="-x2" z="-z2" tag="devStep">
</waypoints>
The MM console says:
Code: Select all
Loaded waypoint path Tester.xml
Waypoint #19 is closer then #1. Hence we start with waypoint #19.
No return path with default naming Tester_return.xml found.
We use the normal waypoint path Tester.xml now.
Moving to waypoint #16, (..., ...)
Moving to waypoint #17, (...,...)
What's the problem there? I tried with waypoint type RUN and NORMAL, no difference.
-
rock5
- Posts: 12173
- Joined: Tue Jan 05, 2010 3:30 am
- Location: Australia
#6
Post
by rock5 » Sat Jul 23, 2011 4:58 am
Are you sure that the waypoint that says "<!-- # 19 -->" isn't actually your 16th waypoint? The only way to be sure which waypoint the mm window is talking about is to look at the coordinates x= xxxx, y=yyyy and match them to the ones in the waypoiont file.
- 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.”
-
pumbatoo
- Posts: 19
- Joined: Wed Jul 13, 2011 3:18 am
#7
Post
by pumbatoo » Sat Jul 23, 2011 5:24 am
I just double checked again.
First I checked the numbering in my waypoint file - it seems to be correct - so the #19 is the 19th waypoint. Second, I checked the waypoints mm is walking through agains the coordinates in my waypoint file. But for any reasons he don't starts at my tagged waypoint.
I recognized that the bot is starting at the nearest waypoint from its current position and ignores my instruction to start at waypoint #19.
-
rock5
- Posts: 12173
- Joined: Tue Jan 05, 2010 3:30 am
- Location: Australia
#8
Post
by rock5 » Sat Jul 23, 2011 6:32 am
This was an issue that was brought up before and I'm pretty sure it was setup to work but I just tested it and it doesn't work. I'll have a look at it.
- 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.”
-
rock5
- Posts: 12173
- Joined: Tue Jan 05, 2010 3:30 am
- Location: Australia
#9
Post
by rock5 » Sat Jul 23, 2011 7:02 am
The way I'm looking to set it up is, first it loads the profile, then it loads the waypoint file, then it runs the profile onload and lastly it runs the waypoint onload. I think that's right? We want the waypoint onload settings to override any profile onload settings.
- 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.”
-
rock5
- Posts: 12173
- Joined: Tue Jan 05, 2010 3:30 am
- Location: Australia
#10
Post
by rock5 » Sat Jul 23, 2011 7:34 am
Committed to revision 619. Try it now. It should work.
- 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.”
-
pumbatoo
- Posts: 19
- Joined: Wed Jul 13, 2011 3:18 am
#11
Post
by pumbatoo » Sat Jul 23, 2011 8:25 am
very nice rock5, thank you for the fast response and committing.
It's now working like expecting.
-
pumbatoo
- Posts: 19
- Joined: Wed Jul 13, 2011 3:18 am
#12
Post
by pumbatoo » Sat Jul 23, 2011 8:37 pm
Seems like there is an problem in r619.
The onLoad event of the waypoint file will be loaded after the profile one - like the solution should work.
But since r619 the onLoad event will not be executed after continue a waypoint file by loading (loadPaths) another one:
Code: Select all
waypoint_file1.xml
<waypoints>
<onLoad>
cprintf(cli.red, "waypoint_file1 successfully loaded!\n");
</onLoad>
<waypoint x="-1234" z="-1234">loadPaths(waypoint_file2);</waypoint>
</waypoints>
Code: Select all
waypoint_file2.xml
<waypoints>
<onLoad>
cprintf(cli.red, "waypoint_file2 successfully loaded!\n");
</onLoad>
<waypoint x="-1234" z="-1234">loadPaths(waypoint_file1);</waypoint>
</waypoints>
The message "waypoint_file1 successfully loaded!" will be shown, but there will be no output from the second file.
I localized the problem to the changes in file 'waypointlist.lua' of the commit.
-
rock5
- Posts: 12173
- Joined: Tue Jan 05, 2010 3:30 am
- Location: Australia
#13
Post
by rock5 » Sat Jul 23, 2011 11:24 pm
Good point. I guess what we want is the onload to run when loadPaths is run, as it did before, but make an exception for when starting the bot. In that case it should wait until after the profile onload has run.
How about when changing character? Do we need to make exceptions there too? I don't have much experience with that. What do we expect when changing character?
- 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.”
-
rock5
- Posts: 12173
- Joined: Tue Jan 05, 2010 3:30 am
- Location: Australia
#14
Post
by rock5 » Sun Jul 24, 2011 1:20 am
Should be fixed in latest revision.
- 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.”
Who is online
Users browsing this forum: No registered users and 8 guests