Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
ReedN
Wizard


Joined: 04 Jan 2006
Posts: 1279
Location: Portland, Oregon

PostPosted: Mon Apr 13, 2009 2:19 pm   

[Fixed] Mapper Issues with %inwalk %walkactive %destroom and onWalkEnd
 
Summary: onWalkEnd isn't firing at the end of a slow walk.

See the revised procedure below.


Last edited by ReedN on Sat Oct 31, 2009 4:28 am; edited 2 times in total
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Mon Apr 13, 2009 5:25 pm   
 
I'll take a look at the onWalkEnd event...that sounds like a bug. The other results are normal because of how Slow walks works. A Slow walk is basically treated as a bunch of single step speedwalks. That's why it's "slow" and can be interrupted at any time.
Reply with quote
ReedN
Wizard


Joined: 04 Jan 2006
Posts: 1279
Location: Portland, Oregon

PostPosted: Mon Apr 13, 2009 7:46 pm   
 
So the onWalkEnd event is the only mechanism that can tell you when the walk queue is empty?
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Tue Apr 14, 2009 4:47 pm   
 
I think %nextdir will also show you the next direction in the queue and will be empty when you are at the end. Haven't tried it in a while, but it's worth a shot.
Reply with quote
ReedN
Wizard


Joined: 04 Jan 2006
Posts: 1279
Location: Portland, Oregon

PostPosted: Wed Apr 15, 2009 5:54 am   
 
That actually works great, I just have to take care of the timing to inquire only after I use #ok so that it is updated for the current movement.

Thanks for the idea!
Reply with quote
ReedN
Wizard


Joined: 04 Jan 2006
Posts: 1279
Location: Portland, Oregon

PostPosted: Sat Apr 18, 2009 4:08 pm   
 
In version 3.06, onWalkEnd is still broken.

I have an event with onWalkEnd and a print statement to show it executes. Doing a slow mode walk will not cause this to be executed.
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Mon Apr 20, 2009 5:21 pm   
 
The onWalkEnd bug is still on the bug list.
Reply with quote
ReedN
Wizard


Joined: 04 Jan 2006
Posts: 1279
Location: Portland, Oregon

PostPosted: Tue Jul 28, 2009 6:04 am   
 
Tested in 3.10: onWalkEnd doesn't fire

Procedure:

1) Create a new session, enter off-line
2) Create two rooms with a link between them
3) Create an Event in the PE of type 'onWalkEnd':
Code:
<event event="onWalkEnd" priority="30" id="3">
  <value>#say onWalkEnd Fired!</value>
</event>

4) Set your current location to one of the two rooms created.
5) Double click on one then another to speed walk between them, note the absence of the text "onWalkEnd Fired!" which would show a firing of that event.
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Tue Jul 28, 2009 4:53 pm   
 
Yes, that bug is still on the bug list.
Reply with quote
ReedN
Wizard


Joined: 04 Jan 2006
Posts: 1279
Location: Portland, Oregon

PostPosted: Sat Oct 24, 2009 2:02 am   
 
Quote:
3.11 Fixed onWalkEnd event so that it fires properly


I still see this as not working on 3.11. I'm in slow walking mode, with 'disable automatic confirmation'. I tried creating an 'onWalkEnd' event that would print out some text. I then used a #walk command to go somewhere, I also tried double clicking to move myself. The event never fired.
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Sat Oct 24, 2009 2:44 am   
 
Try it in Safe or Fast mode and let me know. I didn't have a good Slow Walk test, so that part might still be bugged.

Also make sure you have the option in the MUD Prompt configuration turned off that says "require prompt for Slow Walk" or something like that. My guess is that your slow walking might not be firing the "ConfirmStep" routine that comes in when you require a Prompt after the #OK.
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Sat Oct 24, 2009 2:45 am   
 
Try it in Safe or Fast mode and let me know. I didn't have a good Slow Walk test, so that part might still be bugged. Your test procedure above didn't say anything about Slow mode, so I just tried what you wrote up there.

Also make sure you have the option in the MUD Prompt configuration turned off that says "require prompt for Slow Walk" or something like that. My guess is that your slow walking might not be firing the "ConfirmStep" routine that comes in when you require a Prompt after the #OK.
Reply with quote
ReedN
Wizard


Joined: 04 Jan 2006
Posts: 1279
Location: Portland, Oregon

PostPosted: Sat Oct 24, 2009 3:08 am   
 
It works in Fast walk mode. It doesn't work in Safe or Slow walk mode.

I used my old procedure and just switched them between the walk modes. Fast is the only one working.
Reply with quote
ReedN
Wizard


Joined: 04 Jan 2006
Posts: 1279
Location: Portland, Oregon

PostPosted: Sat Oct 31, 2009 4:28 am   
 
Confirmed fixed in 3.12
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net