 |
makena Apprentice
Joined: 11 Aug 2006 Posts: 100
|
Posted: 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 |
|
|
|
 |
Zugg MASTER

Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Fri Dec 14, 2007 2:31 am |
Yeah, that might be pretty serious. I did something as simple as this:
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. |
|
|
|
 |
Vijilante SubAdmin

Joined: 18 Nov 2001 Posts: 5187
|
Posted: 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 |
|
|
 |
ralgith Sorcerer
Joined: 13 Jan 2006 Posts: 715
|
Posted: 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 |
|
|
 |
makena Apprentice
Joined: 11 Aug 2006 Posts: 100
|
Posted: 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 |
|
|
|
 |
Zugg MASTER

Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: 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.
|
|
|
|
 |
Zugg MASTER

Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: 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. |
|
|
|
 |
|
|
|