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
chamenas
Wizard


Joined: 26 Mar 2008
Posts: 1547

PostPosted: 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...
_________________
Listen to my Guitar - If you like it, listen to more
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: 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.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
chamenas
Wizard


Joined: 26 Mar 2008
Posts: 1547

PostPosted: 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. Sad
_________________
Listen to my Guitar - If you like it, listen to more
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: 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.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
chamenas
Wizard


Joined: 26 Mar 2008
Posts: 1547

PostPosted: 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.
_________________
Listen to my Guitar - If you like it, listen to more
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Tue Jun 10, 2008 12:54 pm   
 
It's set separately for each alias. Click!
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
chamenas
Wizard


Joined: 26 Mar 2008
Posts: 1547

PostPosted: Tue Jun 10, 2008 1:09 pm   
 
I had to download 2.26
_________________
Listen to my Guitar - If you like it, listen to more
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