Jump to content
Korean Random
Sign in to follow this  
zunguzen

Country flags

Recommended Posts

Yea I tried implementing this into the code. Since I have used the online XVM editor (how idiot i am..) I have every single setup in 1 file, which is @xvm.xc.. And copying all those into the different files... no thank you :D

 

Now for the sake of simplicity, I'm gonna copy in the code of the "large" and the "countryFlag" function that was meant to do the trick :). I don't know which icon refers to this language in this russian editor, but I have tried ;)

 

There is a syntax error hiding somewhere in there judging by the image I posted below, and I just cannot figure out where it is... I have been staring at it for an hour and just can't find it...

	"countryFlag": {
	  "alpha": "{{alive?70|30}}",
	  "x": -95,
	  "y": 6,
	  "bindToIcon": true,
	  "src": "xvmres/icons/lang/{{region|EU}}/{{language|default}}.png",
	  "enabled": true
	},
    "large": {
	  "nickFormatLeft": "<font alpha='{{alive?#FF|#80}}'><font color='{{c:wn8}}'>{{nick%.19s~...}}</font></font>",
	  "nickFormatRight": "<font alpha='{{alive?#FF|#80}}'><font color='{{c:wn8}}'>{{nick%.19s~...}}</font></font>",
      "vehicleFormatLeft": "<font alpha='{{alive?#FF|#80}}'><font color='{{c:t-rating}}'>{{vehicle}}</font></font>",
	  "vehicleFormatRight": "<font alpha='{{alive?#FF|#80}}'><font color='{{c:t-rating}}'>{{vehicle}}</font></font>",
	  "fragsFormatLeft": "{{frags}}",
	  "fragsFormatRight": "{{frags}}",
          "width": 110,
          "extraFieldsLeft": [$("countryFlag")],
          "extraFieldsRight": [$("countryFlag")]
    },

'Error message I get when I load up a replay'

Edited by Shadow0013

Share this post


Link to post

Short link
Share on other sites

"Russian editor" being? Because, you know, Online Editor is half a year obsolete now... It's not the matter of single/multi-file config; the problem is what IS in said config and much has changed.

Share this post


Link to post

Short link
Share on other sites

Hallo guys,

 

I am looking to solve the same problem with the right country flag in WoT.

 

I am from The Netherlands and every time the EU flags shows up in the start sceen.

 

How can i solve this problem, I am totally not technical and hope one of you will help me writing step by step to solve this problem. In which folder/file do i need to make changes ? etc.etc.

 

Thank you for your understanding and look forward you any of your reactions,

 

All the best,

 

Greetz,

 

VZ

Share this post


Link to post

Short link
Share on other sites

your own country flag will eventually show up but it takes a little time , it will show the default EU flags until the server updates , rest assured it will display

Share this post


Link to post

Short link
Share on other sites

You can also disable "showing" EU flag, changing default.png to empty.png in case of missing language info. That way it won't hurt your OCD brain ;) .

Share this post


Link to post

Short link
Share on other sites

Hi,

 

seeing that I can not find my county flag and we are from Africa... would it be possible to add South Africa to the flags? We do have a lot of players and I am not from EU which I assume is the default it picks when the country can not be found...

 

Skande

Share this post


Link to post

Short link
Share on other sites

{{language}}    │ X │ X │ X │ X │ X │ player's client language

That would be my WOT client language and no PC setting?

 

Will I be able to adjust any file to get my flag?

As the flag is not there currently in the xvm (or im missig it) nobody else will see my country?

Share this post


Link to post

Short link
Share on other sites

 

 

As the flag is not there currently in the xvm (or im missig it) nobody else will see my country?
 nobody else will see you country because:

 

 

{{language}} - language macros, not country

Share this post


Link to post

Short link
Share on other sites

Looked at the API and yes unless they use your actual country the closes you will get for now wil be as it currently is. Trying to find out if such personal info will be in the API but I assume the request was done before.

Share this post


Link to post

Short link
Share on other sites

Why do I get UK flag when I'm from Romania (Eastern Europe)? Not even close to UK, it's on the other side of the continent.

Share this post


Link to post

Short link
Share on other sites

Why do I get UK flag when I'm from Romania (Eastern Europe)? Not even close to UK, it's on the other side of the continent.

Flag is not an indicator of country. Flag is an indicator of client language. It does not depends on geography at all.

Edited by Uti-Puti

Share this post


Link to post

Short link
Share on other sites

Flag is not an indicator of country. Flag is an indicator of client language. It does not depends on geography at all.

 

Ah, well that makes so much more sense now :D

Share this post


Link to post

Short link
Share on other sites

The flag is depended from language selected in the launcher.

But I don't understand why there are more languages in the xvm folder than there are to choose from in the client itself?

'Language'

vGSNZ7Y.png

Share this post


Link to post

Short link
Share on other sites

 

 

why there are more languages in the xvm folder than there are to choose from in the client itself?
 roaming

Share this post


Link to post

Short link
Share on other sites

But I don't understand why there are more languages in the xvm folder than there are to choose from in the client itself?

'Language'

vGSNZ7Y.png

There are a lot more regions than only EU ) With their specific languages)

 

RU, Asia, KR, NA)

Edited by Uti-Puti

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...