barisnevres Posted December 20, 2016 Share Posted December 20, 2016 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? @ Quote Link to comment Short link Share on other sites More sharing options...
ktulho Posted December 20, 2016 Share Posted December 20, 2016 @barisnevres, {{gun-caliber%03.0f}}mm 1 @ Quote Link to comment Short link Share on other sites More sharing options...
scyorkie Posted December 20, 2016 Share Posted December 20, 2016 (edited) 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 December 20, 2016 by scyorkie 1 @ Quote Link to comment Short link Share on other sites More sharing options...
barisnevres Posted December 20, 2016 Author Share Posted December 20, 2016 {{gun-caliber%03.0f}}mm worked, thanks. syntax mistaken in message body, but correct in code. When changed gun-caliber data type d to f, damagepanel worked. Thanks. @ Quote Link to comment Short link Share on other sites More sharing options...
Recommended Posts
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.