Tremulous Forum
General => General Discussion => Topic started by: Paradox on June 02, 2007, 11:57:00 pm
-
The font that tremulous uses has a % symbol in it, and it should parse properly. But when you type it in a message and send it to the server, it prints as a . (period). While your typing it, it renders properly. Any reason why?
-
http://www.cplusplus.com/reference/clibrary/cstdio/printf.html
-
Still prints dots.
This isnt in code, this is from the in game chat or console.
-
So if you want a % you have to do %%?
or is it the server is smart and switches the % for .?
if so, why not switch for %%, or some random non-printing char, that it can then switch back?
-
you can't replace % with %% because %% is twice as big as you have space for, you can't replace it with a special char and switch it back later because parts of tremulous use the system's printf implementation, and you can't trivially replace it.
-
I am talking about things like chat, as if saying something like this [h]Smartguy: Guys, we need 66% to pass a vote
-
That's not a font, it's the character map. Don't know why it doesn't show, "s don't either.
-
and the text from your chat passes through various forms of printf more times than i can easily count before it shows up on your screen.
-
I DEMAND the font to be finished in the next version. >:[
-
Yes, but i have tried all kinds of syntaxes to get percents to print, including %%, \%, etc.
-
i just want to be able to use quotes.
-
use two single ones in a row, lol ' ' without the space.
-
Yes, but i have tried all kinds of syntaxes to get percents to print, including %%, \%, etc.
because of technical restrictions, you can't use % in chat at all, it will _always_ be replaced with a .
-
Probably due to the way in which strings get specific things put in the middle of them. In the code, there are many uses of %s.
//random example
trap_SendConsoleCommand(EXEC_APPEND, va("cp \"^1TEST ^7%s\"\n", "^1ALPHA"));
would print "TEST ALPHA" in the middle of every clients screen. (I think)
:D Go complain to TJW or some other dev, but dont expect anything to get done about it.
-
\% ?
-
:roll: src/qcommon/msg.c:
// translate all fmt spec to avoid crash bugs
if ( c == '%' ) {
c = '.';
}
-
Oh well, so just a lazy workaround :roll:
-
:roll: src/qcommon/msg.c:
// translate all fmt spec to avoid crash bugs
if ( c == '%' ) {
c = '.';
}
\o/
-
äöåœñðŋđ↓→ðšŋj←þ®↓ŋđññħđŋħđŋħ !
Edit: Yes those really were from my keyboard
-
get your devilmagic out of this thread somethief!
-
get your devilmagic out of this thread somethief!
jŋ←ø→Å¡đĸ®→€→Å“jß©ĸłħßłĸ©“ħð®þħñ®€ -> you're doomed
Edit: Ok. Now I need those letters in trem, somebody fix it!
-
- ◘ öGÆ’*ß‼5*☻4+74à ¥♥Ω¶
I winzor.
I too wondered why percents wouldn't show...
-
its not just percent tho... and percent DOES seem to work in voting? Or am I wrong?
-
˚∆˙©ƒ∂ßåœ∑´®†¥¨ˆøπ“‘≥≤µ˜∫√ç≈Ω
-
UNICODE TREM! LAWL