Solved Numbers of Credits does not appear

Question that is answered or resolved.

dantedevil

Well-known member
I find something rare in my mod.
Te numbers of credits does not appear next to "credits" in the upper of the screen, when wait the players 2 and 3 join to the game.

Try changing the fonts but nothing.
Seems all is ok.

Code:
#-------------------------------------------------------------
maxplayers 3
p1smenu 0  1   -20 -20
p2smenu 0 -272 -20 -20
p3smenu 0 -544 -20 -20

timeloc 374 4 21 21 0


lbarsize  99 5 1 1 0 -9999 -9999 -9999 -9999
mpbarsize  99 4 1 0 0 -9999 -9999 -9999 -9999

p1life      32   14
p1lifex    132   19 4
p1lifen    140   18 4
p1namej     40    3 40  27  40  17 4
p1score     40    3 105  3  115  2 4
p1icon       1    1
p1mp        28   19
e1icon       1   21
e1life      28   38
e1name      36   28 4


p2life     183   14
p2lifex    283   19 4
p2lifen    291   18 4
p2namej    191    3  191 27 191  17 4
p2score    191    3  256  3 266  2 4
p2icon     152    1
p2mp       179   19
e2icon     152   21
e2life     179   38
e2name     187   28 4


p3life     334   14
p3lifex    434   19 4
p3lifen    442   18 4
p3namej    342    3  342 27 342  17 4
p3score    342    3  407  3 417  2 4
p3icon     303    1
p3mp       330   19
e3icon     303   21
e3life     330   38
e3name     338   28 4
 
Last edited:
Solution
Finally can find the error.
Is a simply error in the file translations.txt

I set like this:
Code:
msgid "Credit %i"
msgstr "Creditos"
For his the numbers does not appear.

This is the right way:
Code:
msgid "Credit %i"
msgstr "Creditos %i"
Hi^^
the specific line is:
p1namej    40    3 40  27  40  17 4

The font index is 4 in this case, so you need to have the "font5.gif" file into "data\sprites" path.
and yes, font file number == font index+1 'cause font index start from 0.
 
White Dragon said:
check your coords, for example 40  17

Well my friend, I try changing the coords and nothing.
Beside the coords are right, because the word "credits shows in the right place.
Can't understand the number never appear.
I change the fonts and nothing.
Finally try removing the number of font so this way works with the default.
p1score    40    3 105  3  115  2 4 (here remove 4)

But the bug still happend...
 
Still with the same problem.
I check my demos of the download links in the first post and this bug is present there.
So if someone can check this bug in my demo and can find the problem , please let me know.
Thanks.
 
Finally can find the error.
Is a simply error in the file translations.txt

I set like this:
Code:
msgid "Credit %i"
msgstr "Creditos"
For his the numbers does not appear.

This is the right way:
Code:
msgid "Credit %i"
msgstr "Creditos %i"
 
Solution
Back
Top Bottom