[2.1.5] echo command (minor)

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Post Reply
User avatar
chopkinsca
Posts: 1325
Joined: Thu Dec 11, 2003 5:03 pm

[2.1.5] echo command (minor)

Post by chopkinsca »

Not sure what would have been a better title. Found something in the recent updates that is different from past versions in regards to using echo. For exampe:

Code: Select all

bind a "echo hello there"
will print "hello there" to the console, but in game just the "hello".

Since this is probably not really a bug, what's the proper way to do a muti word echo in an alias which already requires to be put into quotes. Doing another quote would break up the alias command.

Then again, it might be a bug. I added the quotes to the alias in the zdoom.ini and it still only displays the first word.
User avatar
Kirby
Posts: 2697
Joined: Thu Aug 26, 2004 1:23 pm

Post by Kirby »

Did you try a second set of quotes inside the first set of quotes?
User avatar
wildweasel
Posts: 21706
Joined: Tue Jul 15, 2003 7:33 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): A lot of them
Graphics Processor: Not Listed
Contact:

Post by wildweasel »

If one were to do that:

Code: Select all

 bind a "echo "hello there""
then ZDoom would just treat it as:

Code: Select all

bind a "echo "
and completely ignoring everything after the second quote.
User avatar
Theshooter7
Posts: 456
Joined: Sun Mar 05, 2006 6:44 pm

Post by Theshooter7 »

Wouldn't you do:

Code: Select all

bind a "echo \"hello there\""
or

Code: Select all

bind a "echo hello|there"
Since the Pipe Symbol | Doesn't show up in-game.
User avatar
chopkinsca
Posts: 1325
Joined: Thu Dec 11, 2003 5:03 pm

Post by chopkinsca »

Theshooter7 wrote:Wouldn't you do:

Code: Select all

bind a "echo "hello there""
or

Code: Select all

bind a "echo hello|there"
Since the Pipe Symbol | Doesn't show up in-game.
Thanks, both of those work.
User avatar
HotWax
Posts: 10002
Joined: Fri Jul 18, 2003 6:18 pm
Location: Idaho Falls, ID

Post by HotWax »

Ah, the good ol' escape character. Where would we be without you? :P
User avatar
Jive
... in rememberance ...
Posts: 16
Joined: Tue Sep 19, 2006 2:18 pm
Location: Manaus (Amazonia)
Contact:

Post by Jive »

Thank you a lot for you answer, Theshooter7.
It solved my problem.

That said, there is a bug in the last version of Zdoom, and GZDoom is now bugged too...
I posted the same kind of topic on the GZDoom forum HERE
Last edited by Jive on Wed Sep 20, 2006 6:45 am, edited 1 time in total.
User avatar
randi
Site Admin
Posts: 7749
Joined: Wed Jul 09, 2003 10:30 pm
Contact:

Re: [2.1.5] echo command (minor)

Post by randi »

chopkinsca wrote:Since this is probably not really a bug
That seems like a strange thing to assume, considering it's never worked like this before, and the notify text at the top of the screen is supposed to show exactly the same text as the console.
Theshooter7 wrote:the Pipe Symbol | Doesn't show up in-game.
That's true for the standard Doom font, but only because it doesn't contain a | character. So consider this usage of the | character as a hack, because that's exactly what it is.
User avatar
Theshooter7
Posts: 456
Joined: Sun Mar 05, 2006 6:44 pm

Re: [2.1.5] echo command (minor)

Post by Theshooter7 »

randy wrote:That's true for the standard Doom font, but only because it doesn't contain a | character. So consider this usage of the | character as a hack, because that's exactly what it is.
I was aware of that. But I'm wondering why not add it with ZDoom?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49230
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

Actually, the font does have the pipe character. But the lump is mis-named so it can't be identified and it also creates other problems.
Post Reply

Return to “Closed Bugs [GZDoom]”