How to mark a waypoint to not be skipped
-
Mushroomstamp
- Posts: 210
- Joined: Wed Oct 27, 2010 11:34 am
How to mark a waypoint to not be skipped
Is there some way to mark specific waypoints so that they aren't skipped if overrun?
Re: How to mark a waypoint to not be skipped
Why?
- 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
-
Mushroomstamp
- Posts: 210
- Joined: Wed Oct 27, 2010 11:34 am
Re: How to mark a waypoint to not be skipped
Because if it skips a waypoint, it skips all the code that's supposed to be executed at that waypoint. Could miss a repair or pot restock, waypoint direction change, quest turn-in, etc.
Re: How to mark a waypoint to not be skipped
If a waypoint is skipped it still executes any code from 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.”
- Ronald Reagan
Re: How to mark a waypoint to not be skipped
Pretty sure the code isn't done if the waypoint is skipped.
Been playing with a new WP today and it skipped the waypoint with the quest check function, so it didnt check the quest status at all and tried to run to the next coords which is in an entirely diff map lol
Been playing with a new WP today and it skipped the waypoint with the quest check function, so it didnt check the quest status at all and tried to run to the next coords which is in an entirely diff map lol
Remember no matter you do in life to always have a little fun while you are at it 
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Re: How to mark a waypoint to not be skipped
I might do some work on this next week as an option. I find myself doing a WP with coords close together because of the place I'm in and being small corridors and such. It tries to skip waypoints occasionally after a fight and it never works out well.
Remember no matter you do in life to always have a little fun while you are at it 
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Re: How to mark a waypoint to not be skipped
There is definately code for it. This is the part that deals with skipped waypoints.lisa wrote:Pretty sure the code isn't done if the waypoint is skipped.
Code: Select all
-- if next waypoint is 'in front' of current waypoint
if( math.deg(angleDif) > settings.profile.options.WAYPOINT_PASS_DEGR ) then -- default 90
if (settings.profile.options.DEBUG_WAYPOINT) then
cprintf(cli.yellow, "[DEBUG] We overrun waypoint #%d, skip it and move on to #%d\n",currentWp.wpnum, nextWp.wpnum);
end
cprintf(cli.green, "We overrun waypoint #%d, skip it and move on to #%d\n",currentWp.wpnum, nextWp.wpnum);
WPLorRPL:advance(); -- set next waypoint
-- execute the action from the skiped wp
if( currentWp.Action and type(currentWp.Action) == "string" ) then
local actionchunk = loadstring(currentWp.Action);
assert( actionchunk, sprintf(language[150], WPLorRPL.CurrentWaypoint) );
actionchunk();
end
end- 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
-
Mushroomstamp
- Posts: 210
- Joined: Wed Oct 27, 2010 11:34 am
Re: How to mark a waypoint to not be skipped
Exactly... I currently use two of the same waypoint when I find one that gets skipped frequently.lisa wrote:It tries to skip waypoints occasionally after a fight and it never works out well.
Yes, it prints the message but does not execute the code.rock5 wrote:Did you get the "We overrun waypoint" message?
Re: How to mark a waypoint to not be skipped
prob just as easy to have a profile option and use it on the code that does the skip.
if profile option doesn't exist(false) then do as usual and skip.
That way if the profile option does exist then it won't skip.
Can easily set the "profile" option in the WP.
if profile option doesn't exist(false) then do as usual and skip.
That way if the profile option does exist then it won't skip.
Can easily set the "profile" option in the WP.
Remember no matter you do in life to always have a little fun while you are at it 
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Re: How to mark a waypoint to not be skipped
I managed to do a test. I put a print statement saying "wp2 code executed" in waypoint 2. Here is the output
See, it does work.
There must be some other reason why you're not seeing it work. Does the code require you to be at the waypoint for it to work? Like talking to an NPC?
Code: Select all
Fight finished. Killed 2 Domesticated Boshi. (fight #2 / runtime 0 minutes)
Clearing target.
We overrun waypoint #2, skip it and move on to #3
wp2 code executed
Moving to waypoint #3, (-14550, 34368)There must be some other reason why you're not seeing it work. Does the code require you to be at the waypoint for it to work? Like talking to an NPC?
- 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
Re: How to mark a waypoint to not be skipped
nah I just do a check for quest complete and out of combat, I guess if it checks while it was still in combat, which I didn't think it would.
Code: Select all
function quest()
local queststate = getQuestStatus("The Garrison's Request")
if queststate == "complete" and (not player.Battling) then
RoMScript('CastSpellByName("Heffner Camp Transport Spell")')
waitForLoadingScreen();
player:target_NPC("Snoop the Stubborn");
sendMacro("ChoiceOption(2);");
yrest(1000)
sendMacro('StaticPopup_OnClick(StaticPopup1, 1);')
waitForLoadingScreen();
__WPL:setWaypointIndex(__WPL:findWaypointTag("varanas"));
end
end
Remember no matter you do in life to always have a little fun while you are at it 
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Re: How to mark a waypoint to not be skipped
I didn't think it would either but either 'queststate == "complete"' or '(not player.Battling)' must be false because if it entered the if statement and didn't teleport then it would have got stuck in the waitForLoadingScreen function.
- 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
Re: How to mark a waypoint to not be skipped
quest was deff complete each time I saw it skip waypoints, so it must be the in combat. Can't use the teleport skill while in combat which is of course why I have the check.
Remember no matter you do in life to always have a little fun while you are at it 
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Re: How to mark a waypoint to not be skipped
I've been playing around with waypoints a little bit and have had this problem also where it would skip a waypoint and not execute the code on the previous waypoint.
Re: How to mark a waypoint to not be skipped
Skipped waypoint code does execute. Maybe it just seemed to not run like it did for Lisa. What was the code? Maybe we can figure out why didn't work.Dsanchez wrote:I've been playing around with waypoints a little bit and have had this problem also where it would skip a waypoint and not execute the code on the previous waypoint.
- 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
Re: How to mark a waypoint to not be skipped
I still like the idea of having a "profile" type option to set it to always go in order, obviously default would be to skip but you could set the option in WP onload or even a waypoint# and then set it back later to skip even in the same WP file.
Remember no matter you do in life to always have a little fun while you are at it 
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Re: How to mark a waypoint to not be skipped
So what you are saying is you want an option so it doesn't skip the waypoints, so it always goes to the waypoints even if it has to go backwards?lisa wrote:I still like the idea of having a "profile" type option to set it to always go in order, obviously default would be to skip but you could set the option in WP onload or even a waypoint# and then set it back later to skip even in the same WP file.
I guess the purpose of that would be if you have code at the waypoint that requires you to be at the waypoint?
- 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
Re: How to mark a waypoint to not be skipped
And when you are going through tight corridors with lots of turns and obsticles lol
Remember no matter you do in life to always have a little fun while you are at it 
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
-
Mushroomstamp
- Posts: 210
- Joined: Wed Oct 27, 2010 11:34 am
Re: How to mark a waypoint to not be skipped
Saw this in the posted code;
Couldn't we do something like;
in a profile to double the distance required for it to skip a WP?
Code: Select all
settings.profile.options.WAYPOINT_PASS_DEGR ) then -- default 90Code: Select all
<option name="WAYPOINT_PASS_DEGR" value="180" />Re: How to mark a waypoint to not be skipped
I noticed the same thing but I think that value is an angle. I think the value you could use isMushroomstamp wrote:Saw this in the posted code;Couldn't we do something like;Code: Select all
settings.profile.options.WAYPOINT_PASS_DEGR ) then -- default 90in a profile to double the distance required for it to skip a WP?Code: Select all
<option name="WAYPOINT_PASS_DEGR" value="180" />
Code: Select all
settings.profile.options.WAYPOINT_PASS- 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
Who is online
Users browsing this forum: Google [Bot] and 1 guest