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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
ReedN
Wizard


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

PostPosted: Fri Aug 29, 2008 11:38 pm   

[2.36] Bug preventing writing of variable
 
Gads this has been bugging me for months and I finally tracked it down and made it reproducable.

When I run the following in an alias it won't assign 50 into @temp1.

Code:

#var temp1 {50|40|30}
#var temp1 %null
#var temp1 50
#say Result: @temp1


Here's the class code for where I executed this:

Code:

<class name="ztemp" id="3339">
  <alias name="temp" id="3340">
    <value>#var temp1 {50|40|30}
#var temp1 %null
#var temp1 50
#say Result: @temp1</value>
  </alias>
  <var name="temp1" id="4489"/>
</class>


Output:
Code:
Result:
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Sat Aug 30, 2008 5:24 am   
 
Confirmed. Oddly enough it only happens the first time the code is run.
_________________
Asati di tempari!
Reply with quote
ReedN
Wizard


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

PostPosted: Tue Sep 02, 2008 3:56 pm   
 
Thanks for confirming Tech. Yeah, very strange behavior.
Reply with quote
Zugg
MASTER


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

PostPosted: Tue Sep 02, 2008 5:26 pm   
 
Confirmed and added to bug list. It *is* odd that it only happens the first time.
Reply with quote
kjaerhus
Magician


Joined: 18 Dec 2006
Posts: 317
Location: Denmark

PostPosted: Sat Sep 06, 2008 10:28 pm   
 
If it's the same thing I experience it's been there since the first CMUD version I think. Every time I start CMUD it's in a state where several of my scripts and triggers will not work the first time either of them is used. After that they will work fine. I've suspected that there was some kinda bug first time a variable was read or something but I have not been able to make a sufficiently simply example to show it here.

It's been annoying me since day one but at least it's only just after you started CMUD so you kinda live with it I guess.
Reply with quote
ReedN
Wizard


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

PostPosted: Sun Sep 07, 2008 3:05 pm   
 
My theory was that somehow list, followed by a %null, followed by a single variable isn't sticking, that seems to be the necessary order, but it's beyond me why that would be an issue.
Reply with quote
ReedN
Wizard


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

PostPosted: Fri Oct 24, 2008 7:34 pm   
 
Any word on if this will be addressed with the upcoming mapper release?
Reply with quote
Zugg
MASTER


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

PostPosted: Fri Oct 24, 2008 8:27 pm   
 
The focus on the next beta release is just on the mapper. Other bugs will be fixed during the beta cycle. So yes, it will be fixed before the next *public* version, but not the next *beta* version.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion 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