Jump to content
Sign in to follow this  
UmmiQ

"Look at the map" mod?

Recommended Posts

Hi

 

Is there a "Look at the map" mod, where similar to the "eye" there's a notification that after every 45s reminds you to look at the map?
I forget that myself.. i think I would be useful :)

 

Regarrds,

Urmas from Estonia

Share this post


Link to post
Share on other sites
8 hours ago, UmmiQ said:

Hi

 

Is there a "Look at the map" mod, where similar to the "eye" there's a notification that after every 45s reminds you to look at the map?
I forget that myself.. i think I would be useful :)

 

Regarrds,

Urmas from Estonia

I doubt such mod exists.
But after reading your request got interested to try something with xvm using battleTimer.py
There is a way to show text/image at specific time and location on screen.

example when timer is at 45 seconds:

{
  "def": {
    "CheckMinimap": { "enabled": true,
      "updateEvent": "PY(ON_BATTLE_TIMER)",
      //"layer": "top",
      "x": 0, "y": 75,
      //"borderColor": "0x000000",
      //"bgColor": "0x000000",
      //"w": 100, "h": 50,
      "alpha": "{{my-alive?100|0}}",
      "screenHAlign": "center", "screenVAlign": "top",
      "shadow": { "enabled": true, "color": "0x000000", "alpha": 90, "distance": 0, "angle": 90, "blur": 2, "strength": 2 },
      "textFormat": { "font": "Calibri", "color": "0xF50800", "size": 50, "align": "center", "valign": "top" },
      "format": "<b>{{{{py:xvm.secondsBT}}=45?{{l10n:CheckMinimap}}|}}</b>"
      //"format": "{{py:xvm.secondsBT=45?<img src='cfg://default/icons/SixthSense2.png'>}}"
    }
  }
}

CheckMinimap.xc
CheckMinimap.thumb.png.d3d3a44e68963394426552907fbb7fcc.png

  • Upvote 1

Share this post


Link to post
Share on other sites

Oh, great. Thanks!

 

Where should I put this file to test it?

res_mods\1.2.0.1\scripts\client\gui\mods ?

 

And then I can pick whichever image I want?

Share this post


Link to post
Share on other sites

@UmmiQLol, i was just fooling around, but if you wanna test it...well, where to start?

you need xvm, extra py macro, example config (from above) and some image.png (if you wanna use image)

put battleTimer.py inside res_mods/configs/xvm/py_macro
put example CheckMinimap.xc config file inside xvm config folder (by default: res_mods/configs/xvm/default)
inside config folder/battleLabels.xc add:

      ${ "CheckMinimap.xc":"def.CheckMinimap" }

(at the bottom, don't forget comma at the end for format above it)

Its already setup for text, if you wanna use image indication.
-Grab some image.png put inside config folder/icons
or inside res_mods/mods/shared_resources/xvm/res

inside CheckMinimap.xc add // on first format or remove it
remove // on second format

example if image is inside xvm config/default/icons

      "format": "{{py:xvm.secondsBT=45?<img src='cfg://default/icons/image.png'>}}"

example if image is inside res_mods/mods/shared_resources/xvm/res

      "format": "{{py:xvm.secondsBT=45?<img src='xvm://res/image.png'>}}"


It only stays up for 1 sec,
if you need longer like 3 sec or more, you have to add more {{py:xvm.secondsBT=xx?something}}


Quick example using sixthsense icon for 3 sec
you can use both (image and text), but you will have to play around with alignment/leading and vspace
3sec.thumb.png.928440f4b20d6a59c9388afc929b5b62.png
CheckMinimap.xc

I don't know what exactly you need, image? text? on what condition?what position? for how long?
Once you figure it out i can help u make proper config file..if you want
...all this was just me fooling around ;)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.