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
makena
Apprentice


Joined: 11 Aug 2006
Posts: 100

PostPosted: Fri Dec 14, 2007 1:10 am   

[2.17] #all with ;
 
Code:
<alias name="wff" id="472">
  <value>#all {get %concat("@",%char,"weap");wie %concat("@",%char,"weap")}</value>
</alias>


does not work....but the below does work

Code:
<alias name="wff" id="472">
  <value>#all {get %concat("@",%char,"weap")}
#all {wie %concat("@",%char,"weap")}</value>
</alias>



I also noticed a ; at the beginning of a line comments the line
Reply with quote
Zugg
MASTER


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

PostPosted: Fri Dec 14, 2007 2:31 am   
 
Yeah, that might be pretty serious. I did something as simple as this:
Code:
#ALL {test;hello}

and got weird results with duplicate text. Then I tried:
Code:
#ALL {#show test;#show hello}

and got all sorts of syntax errors. Seems that #ALL is not properly parsing it's argument as a command. I might need to fix this before tomorrow. I wonder if this is new or what version this broke in.
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5187

PostPosted: Fri Dec 14, 2007 2:52 am   
 
I think it has always been that way in CMud. The few times I used #ALL I did
Code:
#ALL "#SHOW test;#SHOW hello"
which obviously won't work with what makena wants to do. If I didn't have it in quotes I would get a parsing error at the #.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
ralgith
Sorcerer


Joined: 13 Jan 2006
Posts: 715

PostPosted: Fri Dec 14, 2007 4:20 am   
 
It has always been broken I think...
I've never gotten it to work right even in 1.34.
_________________
CrossOver: Windows Compatibility on Mac and Linux CMUD Advocate
Reply with quote
makena
Apprentice


Joined: 11 Aug 2006
Posts: 100

PostPosted: Fri Dec 14, 2007 5:04 am   
 
Code:
<alias name="wff" id="472">
  <value>#all {get %concat("@",%char,"weap");wie %concat("@",%char,"weap")}</value>
</alias>

worked 100% of the time in 1.34, and i have a bunch of stuff like this

Quote:
Code:
#ALL "#SHOW test;#SHOW hello"

#all needs {braces!}, always has
Reply with quote
Zugg
MASTER


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

PostPosted: Fri Dec 14, 2007 7:23 am   
 
Yes, Makena is correct that #ALL is supposed to use {}. I checked this in version 2.15 and it worked properly there. So I think this might be a side effect of the parser change that I made in v2.17. I'm going to check into it tomorrow before I release the new version. I don't want any bad parser problems like this because they might effect other commands too.
Reply with quote
Zugg
MASTER


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

PostPosted: Fri Dec 14, 2007 8:53 pm   
 
Yep, this was a serious parser problem. I don't know what other commands it might have effected, but it was bad. It could really effect anything using multiple commands with the ; character.

Anyway, it's fixed in v2.18.
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