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
Arde
Enchanter


Joined: 09 Sep 2007
Posts: 605

PostPosted: Sat Apr 18, 2009 3:07 pm   

[3.06] Button state name get stuck
 
Requirements to see this bug:
1) A multistate button with number of states greater than 1 (I was unable to fail it with 1 state)
2) Button states should execute some code, for example, print something to the screen (I was unable to fail it with empty code for states)
3) All states captions must be edited manually before this bug starts to occur

I've got this bug reproducible for about 80-90% of time, but can't get 100%.

The procedure:

1) In the untitled session open the editor (Ctrl+G) and paste the following xml code:
Code:
<button type="Multistate" mousebtn="Left" priority="10" id="1">
  <caption>TEST</caption>
  <state caption="T1" mousebtn="Left">#SAY Walk</state>
  <state caption="T2" mousebtn="Left">#SAY Sleep</state>
  <state caption="T3" mousebtn="Left">#SAY Run</state>
</button>

(Click Save button)
You should see in the tree:
TEST
1: T1
2: T2
3: T3

Close the editor and check that the button works normally.

2) Open the editor (Ctrl+G). Manually change state captions to something else. For example, change "T1" to "WALK", "T2" to "SLEEP", "T3" to "RUN". Now you should see in the tree:
TEST
1: WALK
(Click Save button)
2: SLEEP
(Click Save button)
3: RUN
(Click Save button)
Close the editor and click at least once on every state.

3) Open the editor again (Ctrl+G). Try to change the caption for the first state from "WALK" to "WALK BUG" (just add " BUG" to existing caption) and click Save. Now you should see in the tree
TEST
1: WALK : WALK BUG
2: SLEEP
3: RUN

The second and third states are also the subject to this bug now, try to repeat step 3 for them yourself. Original captions (WALK, SLEEP, RUN) are now get stuck and can't be removed.
You may switch to the xml tab and make sure that there is nothing what can explain this.


Last edited by Arde on Mon Apr 20, 2009 6:19 pm; edited 1 time in total
Reply with quote
Zugg
MASTER


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

PostPosted: Mon Apr 20, 2009 5:20 pm   
 
Have you tried the procedure in a blank session, or does it only fail in your normal MUD session? I wasn't able to reproduce the problem in a blank session, so I'll need some more help from other people to try and reproduce this problem.
Reply with quote
Arde
Enchanter


Joined: 09 Sep 2007
Posts: 605

PostPosted: Mon Apr 20, 2009 6:25 pm   
 
I tried it in a blank session while looking at v3.06 improvements. I do not want to break something in my normal session. As I said, I was unable to reproduce it 100% of times, but right now I ran my procedure 2 times and every time I saw this bug.

I've updated my original procedure with (click Save button) comments.
_________________
My personal bug|wish list:
-Wrong Priority when copy-paste setting
-1 prompt trigger for Mapper, Session and General Options, not 3 different!
-#SECTION can terminate threads
-Buttons can't start threads
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