Gorkde 2 Posted May 16, 2017 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? Quote Share this post Link to post Short link Share on other sites
konrad509 445 #390858 Posted May 16, 2017 Attach your config. The vehicle health, you want it also in alt markers? Quote Share this post Link to post Short link Share on other sites
Gorkde 2 #390866 Posted May 16, 2017 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 Quote Share this post Link to post Short link Share on other sites
konrad509 445 #390878 Posted May 16, 2017 (edited) Sorry, I meant in alt minimap. Check config.zip Also, in hotkeys.xc, set the keyCode for minimapAltMode to 56. Edited May 16, 2017 by konrad509 Quote Share this post Link to post Short link Share on other sites
Gorkde 2 #390901 Posted May 16, 2017 (edited) 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 May 16, 2017 by Gorkde Quote Share this post Link to post Short link Share on other sites
scyorkie 50 #390902 Posted May 17, 2017 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. Quote Share this post Link to post Short link Share on other sites
Gorkde 2 #390938 Posted May 17, 2017 (edited) 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 May 17, 2017 by Gorkde Quote Share this post Link to post Short link Share on other sites
scyorkie 50 #390939 Posted May 17, 2017 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" ], Quote Share this post Link to post Short link Share on other sites
Gorkde 2 #390941 Posted May 17, 2017 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. Quote Share this post Link to post Short link Share on other sites
scyorkie 50 #390943 Posted May 17, 2017 (edited) Make sure that it doesn't overlap with any other field (check X and Y values). Otherwise, attach your latest minimap*.xc files. Edited May 17, 2017 by scyorkie Quote Share this post Link to post Short link Share on other sites
Gorkde 2 #390945 Posted May 17, 2017 (edited) 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 May 17, 2017 by Gorkde Quote Share this post Link to post Short link Share on other sites
konrad509 445 #390951 Posted May 17, 2017 (edited) 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 May 17, 2017 by konrad509 Quote Share this post Link to post Short link Share on other sites
scyorkie 50 #390952 Posted May 17, 2017 ^ 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. Quote Share this post Link to post Short link Share on other sites
konrad509 445 #390953 Posted May 17, 2017 (edited) 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 May 17, 2017 by konrad509 Quote Share this post Link to post Short link Share on other sites
Gorkde 2 #390968 Posted May 17, 2017 ^ 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 Quote Share this post Link to post Short link Share on other sites
konrad509 445 #390977 Posted May 17, 2017 Without minimapLabelsTemplates.xc I can't see much :] {{c:hp-ratio}} doesn't seem to work in minimap either. Quote Share this post Link to post Short link Share on other sites
scyorkie 50 #390983 Posted May 17, 2017 (edited) 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 May 17, 2017 by scyorkie Quote Share this post Link to post Short link Share on other sites
Gorkde 2 #390984 Posted May 17, 2017 (edited) 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 May 17, 2017 by Gorkde Quote Share this post Link to post Short link Share on other sites
scyorkie 50 #390990 Posted May 17, 2017 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. Quote Share this post Link to post Short link Share on other sites
konrad509 445 #390991 Posted May 17, 2017 (edited) Sorry for confusion. The macro {{c:hp-ratio}} actually works in minimap @scyorkie He wants to color HP bars with {{c:hp-ratio}}. Edited May 17, 2017 by konrad509 Quote Share this post Link to post Short link Share on other sites