Jump to content
Korean Random
Sign in to follow this  
Gorkde

How to change Minimap and Alt labels

Recommended Posts

Hey guys...

 

I dont really understand all the Minimap config files working together.

 

Actually I use the standard XVM configs (just changed fond and size by now.

 

I want to reach 2 goals:

 

1. By pressing Alt showing Player Name and maybe rating (see problem below)

2. HopfullyI'll get this sometimes : I'd like a vertical bar nect to the Icon that shows the vehicle health. Mods with circles are too clunky for my taste. (no isea at all)

 

For 1:

I assumed that minimapLabelsTemplates.xc defines the appearance and minimapLabels.xc / minimapLabelsAlt.xc define what is displayed of it.

But since nothing is commented out all should be shown then but isnt.

 

So how does this work?

Share this post


Link to post

Short link
Share on other sites

I want on minimap:

 

1.: Health as vertical bar along with what's there already

 

2. Alt = All the same but Player name instead Tank

 

But I want also to understand whats responsible for showing or not showing it.

Minimap.rar

Share this post


Link to post

Short link
Share on other sites

Sorry, I meant in alt minimap.

 

Check config.zip

Also, in hotkeys.xc, set the keyCode for minimapAltMode to 56.

Edited by konrad509

Share this post


Link to post

Short link
Share on other sites

Thanks will have a look tomorrow.

Could you maybe explain where is defined what is actually shown on the map?

 

Isn't that whats in minimapLabels.xc / minimapLabelsAlt.xc ? 

As said, didnt look into the config by now since its very late.

 

-----

EDIT:

 

Just was too curious and tried them.

Yes that's nearly exactly what I wanted. Need to tweak it a bit tomorrow. 

 

Maybe I understand the function when I compare the files to the old ones tomorrow.

 

Thank you for all your effort! 

Edited by Gorkde

Share this post


Link to post

Short link
Share on other sites

Wow you sure picked one of the more difficult things to customise as your first task.

 

Here's how it basically works:

1. Enable XVM minimap -- minimap.xc > minimap > enabled = true

2. Enable Alt mode for minimap -- hotkeys.xc > minimapAltMode > enabled = true, and set keyCode

3. minimapLabelsAlt.xc determines what labels show up in the Alt minimap

4. These labels are formatted in minimapLabelsTemplates.xc

5. The fields for each label are pretty much what you see in other .xc files, except for "flags"

6. "Flags" is the filter which determines what type of player the label will apply to (eg "nickLost" is for a platoonmate who is still alive)

7. Some fields also refer to minimapLabelsData.xc for more settings (colors and vtype icons)

 

Hope this helps you understand konrad's work.

Share this post


Link to post

Short link
Share on other sites

Thanks for the explanaition.

Btw: That wasnt my first task it's my last remaining ;) But also the one I dont' understand. I understood all other things by analyzing the config files.

 

I assumed what you said but what I dont understand for example:

 

In the minimapLabelsAlt is:

${ "minimapLabelsTemplates.xc":"def.vehicleLost" },
${ "minimapLabelsTemplates.xc":"def.nickLost" },

So I assumed the name of the vehicle as well as the nick should be displayed when pressing the alternative key. But only the name of the vehicle was shown.  Did I miss something?

 

EDIT:

Ah I believe I see my error since this is only for lost ones I might not have seen them change, will check that again.

 

EDIT: 

No he did not show them even for lost vehicles. So where do I think wrong?

 

EDIT: 

Ah I see the flags for it were missing!!!! NOWWWW I understand what was the problem!

 

 

 

Btw. is it possible to have the minimap change to Alt values when pressing either STRG or ALT, so reacting on both keys?

Edited by Gorkde

Share this post


Link to post

Short link
Share on other sites

This is where "flags" comes into play.

 

If you look at minimapLabelsTemplates.xc, and look under "nickLost", you will find this line:

"flags": [ "squadman", "lost", "alive" ],

 

This means that "nickLost" only displays for a platoonmate.

 

If you want it to display for everyone, you need to change "flags" to the same as that for "vehicleLost":

"flags": [ "ally", "enemy", "squadman", "teamKiller", "lost", "alive" ],

Share this post


Link to post

Short link
Share on other sites

But for example:

 

There was

 minimaplabels:

     ${ "minimapLabelsTemplates.xc":"def.nickSpotted" },


AND  minimaplabelsTemplates:

"nickSpotted": {
...
      "flags": [ "ally", "enemy", "squadman", "spotted", "alive" ], 
...


But I never saw any Nickname on the map.

Share this post


Link to post

Short link
Share on other sites

Make sure that it doesn't overlap with any other field (check X and Y values).

Otherwise, attach your latest minimap*.xc files.

Edited by scyorkie

Share this post


Link to post

Short link
Share on other sites
scyorkie, on 17 May 2017 - 14:42, said:

Make sure that it doesn't overlap with any other field (check X and Y values).

Otherwise, attach your latest minimap*.xc files.

 

That wasn't probably the reason since I should have seen it throug then.

 

 

-----

 

 

Could you please also help me with this line:

 "format": "<font face='dynamic' size='18' color='{{.minimap.labelsData.colors.dot.{{sys-color-key}}}}'>{{hp-ratio%.234a|æ}}</font>",

I tried changing 

{{.minimap.labelsData.colors.dot.{{sys-color-key}}}}

to 

{{c:dmg}} 

or

{{.minimap.labelsData.colors.dot.{{c:dmg}}}}

but it doesnt seem to work.

 

A) Isn't it possible to have the damage color in it?

B) Is there a way to have that bar so you see what is 100% and where it is now? For example like the bars over tanks with either the damaged part in a lighter color (which would be best) or with a frame around it?

Edited by Gorkde

Share this post


Link to post

Short link
Share on other sites

Why are you even trying to change the color of the "dot" depending on the damage source??

The macro {{c:dmg}} doesn't even work in minimap.

Edited by konrad509

Share this post


Link to post

Short link
Share on other sites

^ What konrad said.

 

Re the overlap issue, when my nicks overlap the tank names, I can't see the tank names. That's why I mentioned it.

Share this post


Link to post

Short link
Share on other sites
B) Is there a way to have that bar so you see what is 100% and where it is now? (...) or with a frame around it?

Change the font to dynamic2.

 

with either the damaged part in a lighter color (which would be best)

This should be doable too.

Edited by konrad509

Share this post


Link to post

Short link
Share on other sites

^ What konrad said.

 

Re the overlap issue, when my nicks overlap the tank names, I can't see the tank names. That's why I mentioned it.

 

Ok, but as far as I checked at the fly it doesnt. Anyway was just wondering, not essential for my project.

 

 

Why are you even trying to change the color of the "dot" depending on the damage source??

The macro {{c:dmg}} doesn't even work in minimap.

 

That was my fault I wanted hp-ratio and made a mistake ;)

But with hp-ratio it doesn't work either. I only get white bars. But my rating star for kills with that tank works wit color (see attached config).

Minimap.zip

Share this post


Link to post

Short link
Share on other sites

Without minimapLabelsTemplates.xc I can't see much :]

 

{{c:hp-ratio}} doesn't seem to work in minimap either.

Share this post


Link to post

Short link
Share on other sites

Maybe because in colors.xc the relevant codes are in the format 0xFF0000, while in minimapLabelsData.xc the dots color format is #FF0000?

macros.txt says {{c:hp-ratio}} should work in minimap, but maybe just not for this (i.e. the macro can work for other purposes)?

 

Update: {{c:hp-ratio}} works on vtypeSpotted regardless on the format of the color code in colors.xc (see post #19 below)

Edited by scyorkie

Share this post


Link to post

Short link
Share on other sites

Without minimapLabelsTemplates.xc I can't see much :]

 

{{c:hp-ratio}} doesn't seem to work in minimap either.

 

Ups I forgot it ;) 

 

I wonder why my stars are colored for kills with tank but HP color isnt working. Normally either all or nothing should work....

Tried adding to battle.xc the following since i read it on the net but nothing changed:

	"allowHpInPanelsAndMinimap": true

Thats crazy if I change c:hp-ratio to just c:hp it shows colors but thats not what I wanted since its not dependent on 100% (without changes in battle.xc)

Minimap.zip

Edited by Gorkde

Share this post


Link to post

Short link
Share on other sites

So you want to color the tank type icons with {{c:hp-ratio}} right?

 

First, you need to remove the comments in minimapLabels.xc for vtypeSpotted:

//${ "minimapLabelsTemplates.xc":"def.vtypeSpotted" },

 

Once you do that, you can change this in minimapLabelsTemplates.xc:

"format": "<font color='{{.minimap.labelsData.colors.dot.{{sys-color-key}}}}'>{{.minimap.labelsData.vtype.{{vtype-key}}}}</font>"

to this (for example):

"format": "<font color='{{c:hp-ratio}}'>{{.minimap.labelsData.vtype.{{vtype-key}}}}</font>"

 

I hope I understand your post #11 above correct, since vtypeSpotted is the only label that contains any reference to dots.

Share this post


Link to post

Short link
Share on other sites

Sorry for confusion. The macro {{c:hp-ratio}} actually works in minimap :swt3:

 

@scyorkie

He wants to color HP bars with {{c:hp-ratio}}.

Edited by konrad509

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