FTEQCC centerprint special characters?

Discuss programming in the QuakeC language.
Post Reply
Dr. Shadowborg
InsideQC Staff
Posts: 1120
Joined: Sat Oct 16, 2004 3:34 pm

FTEQCC centerprint special characters?

Post by Dr. Shadowborg »

I'm transitioning over to using FTEQCC and tried compiling the Hellsmash Beta 3 source, but ran into a snag with special characters.

In frikqcc you can do things like \. or \b to access the gold letters, this doesn't appear to work in FTEQCC. (causes an error during compile)

Anybody know what the FTEQCC equivalent of this is?
Seven
Posts: 301
Joined: Sat Oct 06, 2007 8:49 pm
Location: Germany

Re: FTEQCC centerprint special characters?

Post by Seven »

Hello Dr.Shadowborg,

Spike explained how to change between white and reddish-brown in his fteqcc here:
http://forums.inside3d.com/viewtopic.ph ... edf#p43142
Spike
Posts: 2914
Joined: Fri Nov 05, 2004 3:12 am
Location: UK
Contact:

Re: FTEQCC centerprint special characters?

Post by Spike »

"white\bred\bwhite" can be used to switch between charsets. ITS does this for instance.
\s and \b are identical. I advise \b because that works in frikqcc also...

for special chars, you can use one of these:
\0 = golden 0 (golden numbers, not octal)
\1 = golden 1
etc
\x12 golden 0
\x13 golden 1
etc
\xb0 = red 0
\xb1 = red 1
etc
\[ = red [
\] = red ]
\<\-\> = simple separator 3 chars long.

other chars can be inserted using the \xXX stuff, by figuring out the code from eg here:
http://www.quaketerminus.com/hosted/oqn ... m_4_20.htm
first digit is the row (0-9, a-f), second digit is the column.

warning:
non-ascii chars means that you cannot easily enable utf-8 character set support. Mostly this just affects non-english chat in deathmatch games, and tends to need a special font anyway.
The latest FTEQCC can generate a warning for this, but it should default to off. -Wall -Werror is probably not advisable, but if you do, you can disable this warning using -Wno-F301 on the commandline after you use -Wall, but I doubt this is the cause of your issue.


What's the actual error that you're getting?
Dr. Shadowborg
InsideQC Staff
Posts: 1120
Joined: Sat Oct 16, 2004 3:34 pm

Re: FTEQCC centerprint special characters?

Post by Dr. Shadowborg »

Thanks for the helpful replies! :)
Spike wrote: What's the actual error that you're getting?
This is the offending code:

Code: Select all

self.fld7 = "(X)\n\3\. \bExit AIDA Interface \b\. \3\n";
This is the error fteqccgui returns:

Code: Select all

drs/drsmnu.qc:378: error: Unknown escape char .
drs/drsmnu.qc:378: error: Unknown punctuation
drs/drsmnu.qc:378: error: Unknown punctuation
drs/drsmnu.qc:378: error: Unknown punctuation
drs/drsmnu.qc:378: error: Unknown punctuation
drs/drsmnu.qc:378: error: Unknown punctuation
drs/drsmnu.qc:378: error: Unknown punctuation
drs/drsmnu.qc:378: error: Unknown punctuation
drs/drsmnu.qc:378: error: Unknown punctuation
drs/drsmnu.qc:378: error: Unknown punctuation
drs/drsmnu.qc:378: error: Unknown punctuation
Using the broader scope \b seems to get me around the error.
Spike
Posts: 2914
Joined: Fri Nov 05, 2004 3:12 am
Location: UK
Contact:

Re: FTEQCC centerprint special characters?

Post by Spike »

\. can be directly replaced with \x9c or \x1c, depending on whether \b is active or not.
Its not the same as . within \b
I'll add support for it at some point.
Dr. Shadowborg
InsideQC Staff
Posts: 1120
Joined: Sat Oct 16, 2004 3:34 pm

Re: FTEQCC centerprint special characters?

Post by Dr. Shadowborg »

Spike wrote:\. can be directly replaced with \x9c or \x1c, depending on whether \b is active or not.
Its not the same as . within \b
I'll add support for it at some point.
Cool, that did the trick. Thanks again! :D
Post Reply