Jump to content

Editing the player panel


Prometh3us

Recommended Posts

Posted

Ok, i've tried many times, coding, removing, restarting and apparently am a straight up moron on this one.

 

Basically, I just want my player panel to show the wn8, WR, and amount of battles with their vehicle dmg ratio in it. The current large advanced panel is too big, but the others are too small.

 

Is there anyone someone can lend me a hand in getting the code right?

 

Just want to see their Wn8, WR, battle count, and if possible their vehicle dmg ratio.

 

Any help is appreciated, because whenever i try and do it, it breaks my game.

 

thanks to anyone

 

and special thanks to aslain for the awesome modpack, great work.

  • Moderator
Posted

playersPanel.xc (I'm sure you know that already)

 

Adjust width of your chosen panel, after you've seen how the new things fit.

 

"vehicleFormatEXAMPLE": "<font face='Consolas' size='12'><font color='{{c:wn8}}'>{{wn8}}</font><font color='{{c:winrate}}'>{{winrate}}</font><font color='{{c:battles}}'>{{battles}}</font><font color='{{c:???}}'>{{???}}</font></font>",

 

Try something along those lines, and work your way from there :) (Removed pretty much everything, and only input the very basics)

 

Where I put ???, you can apply one of these two.

{{tdb}} average damage for current tank - damage/battles

{{tdv}} average damage efficiency for tank - damage/(battles*maxHP)

  • Moderator
Posted

How about this then?

 

"vehicleFormatEXAMPLE": "<font face='Consolas' size='12'><font color='{{c:r}}'>{{r}}</font> <font color='{{c:winrate}}'>{{winrate%2d~%|--%}}</font> <font color='{{c:kb}}'>{{kb%2d~k|--k}}</font> <font color='{{c:tdv}}'>{{tdv%0.1f|---}}</font></font>",

 

If not, you'll just have to mess with it yourself some more :P

The macro's are listed in: \res_mods\mods\shared_resources\xvm\doc\macros.txt

Posted

i was able to get it by copying the battleloading.xc lines.

 

dont know why i never thought of that before..

 

<font face='Consolas' size='12'><font color='{{c:winrate|#666666}}'>{{winrate%2d~%|--%}}</font> <font color='{{c:r|#666666}}'>{{r}}</font> <font color='{{c:kb|#666666}}'>{{kb%2d~k|--k}}</font> </font>" is the code i used.

 

worked perfect.

  • Moderator
Posted

<font color='{{c:tdv|#666666}}'>{{tdv%0.1f|---}}</font>

 

You can probably add that then, to get the average damage done on the vehicle a person is using :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.