Jump to content
Korean Random

{{reloadGun}} and {{gun-caliber}} formatting


Recommended Posts

How can i format {{reloadGun}} and {{gun-caliber}}. Trying formatting cause damagelog to not appear.

 

I want them to be like this:

 

reloadGun: 00.0s  (maybe {{reloadgun%4.1f}}s)

gun-caliber: 000mm (maybe {{gun-caliber%03d}}mm)

 

finally:

"formatHistory": "<textformat tabstops='[20,100,135,150,165,190,270]'><font face='mono' size='12' color='#999999'> {{number%02d}}.</font><tab><font color='{{c:dmg-kind}}'><b>{{hit-effects}}</b>{{critical-hit}}{{splash-hit}} <font size='11'>({{comp-name}})</font></font><tab><font color='{{c:costShell}}'>{{dmg-kind}}</font><tab>{{reloadGun%04.1f}}s<tab>{{gun-caliber%03d}}mm<tab><font size='18' color='{{c:vtype}}'>{{vtype}}</font><tab><font color='{{c:vtype}}'>({{level}}) {{vehicle}}</font><tab><font color='{{c:team-dmg}}'>{{name}}</font><font color='gray' size='11'> {{clan}}</font><font color='{{c:wn8}}' size='11'> {{wn8}}</font></textformat>"

but not working.

 

 

This not-formatted version is working:

      "formatHistory": "<textformat tabstops='[20,100,135,150,165,190,270]'><font face='mono' size='12' color='#999999'> {{number%02d}}.</font><tab><font color='{{c:dmg-kind}}'><b>{{hit-effects}}</b>{{critical-hit}}{{splash-hit}} <font size='11'>({{comp-name}})</font></font><tab><font color='{{c:costShell}}'>{{dmg-kind}}</font><tab>{{reloadGun}}s<tab>{{gun-caliber}}mm<tab><font size='18' color='{{c:vtype}}'>{{vtype}}</font><tab><font color='{{c:vtype}}'>({{level}}) {{vehicle}}</font><tab><font color='{{c:team-dmg}}'>{{name}}</font><font color='gray' size='11'> {{clan}}</font><font color='{{c:wgr}}'> {{wgr}}</font></textformat>"

Any advice?

 

 

 

Link to comment
Short link
Share on other sites

Syntax is wrong. {{reloadgun}} doesn't work, but {{reloadGun}} works.

 

Note also that the example given in readme-en.txt uses 4.01f, not 4.1f. I'm not sure if that creates an additional issue, but I just tested {{reloadGun%4.02f~s}} and it works.

Edited by scyorkie
  • Upvote 1
Link to comment
Short link
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...