Jump to content
Korean Random
Sign in to follow this  
Okxa

Same string won't work in new config.

Recommended Posts

After using my config long time I deciced to remake it again.

 

So I copied default folder and started changing stuff

 

However, when i run WoT, XVM loads only default values. I figured that log file must say something. It says:

2015-04-30 19:52:03: [X:025] Error parsing file Okxa/statisticForm.xc:
[1444] JSONxError: Bad string
  ----}}</font>] <font color='{{c:kb}}'>{{kb%2d~k|--k}}</font> {{vehicle}}", >>>}<<<}

okxa/statisticForm.xc:

/**
* Parameters of the Battle Statistics form.
*/
{
  "statisticForm": {
    // true - Enable display of battle tier.
    "showBattleTier": false,
    // Disable Live Win Change % -Okxa
    "showChancesLive": false,
    // Disable Win Change % -Okxa
    "showChances": false,
    // true - Disable Platoon icons.
    "removeSquadIcon": false,
    // Display options for Team/Clan logos (see battleLoading.xc).
    "clanIcon": {
      "show": true,
      "x": 0,
      "y": 6,
      "xr": 0,
      "yr": 6,
      "w": 16,
      "h": 16,
      "alpha": 90
    },
    // Display format for the left panel (macros allowed, see macros.txt).
    "formatLeftNick": "{{nick}}",
    // Display format for the right panel (macros allowed, see macros.txt).
    "formatRightNick": "{{nick}}",
    // Display format for the left panel (macros allowed, see macros.txt).
    "formatLeftVehicle": "{{vehicle}} <font color='{{c:kb}}'>{{kb%2d~k|--k}}</font> [<font color='{{c:xwn8}}'>{{xwn8%2s|--}}</font>=<font color='{{c:wn8}}'>{{wn8%4d|----}}</font>] <font color='{{c:winrate}}'>{{winrate%d~%|--%}}</font>",
    // Display format for the right panel (macros allowed, see macros.txt).
    "formatRightVehicle": "<font color='{{c:winrate}}'>{{winrate%d~%|--%}}</font> [<font color='{{c:xwn8}}'>{{xwn8%2s|--}}</font>=<font color='{{c:wn8}}'>{{wn8%4d|----}}</font>] <font color='{{c:kb}}'>{{kb%2d~k|--k}}</font> {{vehicle}}",
  }
}

But when I made WoT load my old config, it worked like it used to, no errors in log either

The statisticForm.xc file seems essentially the same!:

{
 "statisticForm": {
  "clanIcon": {
   "y": 6,
   "x": 0,
   "w": 16,
   "h": 16,
   "yr": 6,
   "xr": 0,
   "show": true,
   "alpha": 90
  },
  "showChancesLive": false,
  "showChances": false,
  "formatLeftNick": "{{nick}}",
  "formatRightNick": "{{nick}}",
  "formatLeftVehicle": "{{vehicle}} <font color='{{c:kb}}'>{{kb%2d~k|--k}}</font> [<font color='{{c:xwn8}}'>{{xwn8%2s|--}}</font>=<font color='{{c:wn8}}'>{{wn8%4d|----}}</font>] <font color='{{c:rating}}'>{{rating%d~%|--%}}</font>",
  "removeSquadIcon": false,
  "formatRightVehicle": "<font color='{{c:rating}}'>{{rating%d~%|--%}}</font> [<font color='{{c:xwn8}}'>{{xwn8%2s|--}}</font>=<font color='{{c:wn8}}'>{{wn8%4d|----}}</font>] <font color='{{c:kb}}'>{{kb%2d~k|--k}}</font> {{vehicle}}",
  "showBattleTier": false
 }
}

 

I also tried running the new config with rating in place of winrate macro and even without the optional stuff which would have shown placeholder if no data was found (for example {{xwn8%2s|--}}, if no stats are found then show -- instead).

 

So I couldnt figure it out by myself and deciced to post here if someone would know the answer.

Share this post


Link to post

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.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...