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?
FTEQCC centerprint special characters?
-
- InsideQC Staff
- Posts: 1120
- Joined: Sat Oct 16, 2004 3:34 pm
Re: FTEQCC centerprint special characters?
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 explained how to change between white and reddish-brown in his fteqcc here:
http://forums.inside3d.com/viewtopic.ph ... edf#p43142
Re: FTEQCC centerprint special characters?
"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?
\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?
-
- InsideQC Staff
- Posts: 1120
- Joined: Sat Oct 16, 2004 3:34 pm
Re: FTEQCC centerprint special characters?
Thanks for the helpful replies!
This is the error fteqccgui returns:
Using the broader scope \b seems to get me around the error.
This is the offending code:Spike wrote: What's the actual error that you're getting?
Code: Select all
self.fld7 = "(X)\n\3\. \bExit AIDA Interface \b\. \3\n";
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
Re: FTEQCC centerprint special characters?
\. 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.
Its not the same as . within \b
I'll add support for it at some point.
-
- InsideQC Staff
- Posts: 1120
- Joined: Sat Oct 16, 2004 3:34 pm
Re: FTEQCC centerprint special characters?
Cool, that did the trick. Thanks again!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.