|
chamenas Wizard
Joined: 26 Mar 2008 Posts: 1547
|
Posted: Tue Jun 10, 2008 11:17 am
Another Strange Problem - Space Removal |
On a newer game I play, typing this into the command line:
comtitle pub=%xcT%xh%xche%xn %xcH%xh%xcopeless%xn %xcN%xho%xcob%xn
turns into:
comtitle pub=%xcT%xh%xche%xn%xcH%xh%xcopeless%xn%xcN%xho%xcob%xn
this for input, why is it stripping all of my spaces?
Edit:
I turned off parsing for a temporary solution. But I don't understand why the spaces are being stripped... |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Tue Jun 10, 2008 12:06 pm |
Because it looks like a script syntax (the equals looks like you're assigning a variable, it's got %s that look like function or variable calls) but it's invalid (space in the variable name, invalid function/variables). You need to tell the command line that what you're entering isn't a script, either by quoting the whole like, by starting it with ` or surrounding it with ", or by quoting the individual special characters, or by turning parsing off.
Having said that, though, I wonder if it wouldn't be wiser if, in the event that the command line doesn't compile into a script, it were sent to the MUD verbatim. |
|
|
|
chamenas Wizard
Joined: 26 Mar 2008 Posts: 1547
|
Posted: Tue Jun 10, 2008 12:41 pm |
The problem with turning the parser off is that it's fine in some situations, but with others I'm trying to add colors to something where I'm using an alias, and I can't use aliases with parsing off.
|
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Tue Jun 10, 2008 12:46 pm |
You can use the new Parse Arguments option (turned off) to stop aliases from parsing their options. Search for the thread Zugg made on it.
|
|
|
|
chamenas Wizard
Joined: 26 Mar 2008 Posts: 1547
|
Posted: Tue Jun 10, 2008 12:50 pm |
Someone linked the thread, but I couldn't find out where the option was. I'll go look at the thread again.
|
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Tue Jun 10, 2008 12:54 pm |
It's set separately for each alias. Click!
|
|
|
|
chamenas Wizard
Joined: 26 Mar 2008 Posts: 1547
|
Posted: Tue Jun 10, 2008 1:09 pm |
I had to download 2.26
|
|
|
|
|
|