Solved p{#}namej doesn't work at Openbor 4.0

Question that is answered or resolved.

kimono

Well-known member
Good evening, I would like to know what is the latest version using p(#)namej, why this function was removed in later versions and how do you display information like the player name in your projects?
 
Solution
why this function was removed in later versions and how do you display information like the player name in your projects?
The p{#}namej command shows information only when a player is joining in a game, or shows "press start" and "credits" text.

1761255208221.png

To show the current player name you should use p{#}score instead.

1761255257098.png

1761255384691.png
I use OpenBoR v4.0 Build 7735.
I coded it this way and no display on screen:
Code:
p1namej         35 255 999 999 999 999 0

I'm posting the archive in question here since it's too big for an attached file.
 

Attachments

  • My Mod - 0000.png
    My Mod - 0000.png
    20.8 KB · Views: 6
Last edited:
why this function was removed in later versions and how do you display information like the player name in your projects?
The p{#}namej command shows information only when a player is joining in a game, or shows "press start" and "credits" text.

1761255208221.png

To show the current player name you should use p{#}score instead.

1761255257098.png

1761255384691.png
 
Solution
p{#}namej is never removed from the engine and it's used for joining. What you want to use instead of p{#}namej is p{#}score.

p{#}score {x1} {y1} {x2} {y2} {x3} {y3} {font}

  • Determines the position of player's status.
  • {#} determines which player this setting is for and its possible values are 1, 2, 3 and 4. There's no space around {#} though.
  • {x1} and {y1} determines player's name position.
  • {x2} and {y2} determines player's "-" position. Yes, there is "-" between name and score.
  • {x3} and {y3} determines player's score position.
  • x and y are the number of pixels, right and down respectively, from the top left corner of the screen to the top left corner of the name, "-" or the score.
  • {font} determines which font is used for the texts.
  • Font reference is the same as 'p{#}lifex' above.
  • Default value is 0 or font.gif.
 
Thank you both @Kratus and @maxman! Sometimes you try some commands and you don't understand why they don't work: they are simply misused, it's my fault :D

I don't know if it's possible to add just a small line to p(#)namej or p(#)score in the Openbor manual to avoid confusion between the two.
If not, I'll remember it :)
 
Back
Top Bottom