Jump to content


XVM Tank Minimap Ranges v1.3 (0.8.8)

0.8.7 mod xvm spotting radio spg artillery

  • This topic is locked This topic is locked
23 replies to this topic

Omegaice #1 Posted Aug 19 2013 - 22:37

    Corporal

  • Players
  • 7 battles
  • 15
  • Member since:
    08-04-2013

XVM Tank Range

I was looking for a mod that would allow me to see my current tanks spotting range that changed based off of the tank used and all of the other factors that can affect that range. The only mod I found that did that was locastan's HD Minimap. Unfortunatly, I didn't like the text and icons for the vehicles compared to the XVM minimap so I decided to make this modification. It is a simple one file modification at the moment.
This modification adds a white circle on your minimap with a radius set to the calculated value for your tank's spotting range. It is calculated whenever a tank is changed which means that if you add modules or your crew's skill improves the circle will change without you having to restart the game. It also adds a red circle for the maximum range your artillery tank can shoot.
I currently play on the EU servers, although I live in the US, and just posted this here incase anyone finds it useful. I will keep this thread and the EU thread updated with any changes in code and I will respond if people have issues.

Features
  • Adds a circle to the standard XVM minimap at your tank's spotting range
  • Adds a second circle to show where your binoculars extend to
  • Adds another circle to show the maximum range of your artillery's gun
  • Dynamically updates all circles when you change tanks
  • Utilizes all skills, perks, modules and consumables that affect the tank's ranges
Other information & Download
EU Forum Link: http://forum.worldof...stance-v02-087/
Screenshots
Crusader (Left:50% Commander Skill with Binoculars only, Right: 100% Commander Skill with all affecting items)
Posted ImagePosted Image

Edited by Omegaice, Sep 15 2013 - 15:23.


aceaceaceaceace #2 Posted Aug 19 2013 - 22:51

    First lieutenant

  • Players
  • 6337 battles
  • 839
  • [-OP-] -OP-
  • Member since:
    11-13-2011
Awesome, but ill wait for the completed version. Gunna use this with my spotter scouts

Edited by aceaceaceaceace, Aug 19 2013 - 22:51.


Brygin #3 Posted Aug 19 2013 - 23:08

    First lieutenant

  • -Players-
  • 26819 battles
  • 797
  • Member since:
    02-26-2011
Why did you disable it for arty?   Any arty player worth his salt knows they sometime needs to fight like a TD ( as well as hope for that one shot kill ) and seeing your view range, limited though it may be, could be useful.

Omegaice #4 Posted Aug 19 2013 - 23:11

    Corporal

  • Players
  • 7 battles
  • 15
  • Member since:
    08-04-2013

View PostBrygin, on Aug 19 2013 - 23:08, said:

Why did you disable it for arty?   Any arty player worth his salt knows they sometime needs to fight like a TD ( as well as hope for that one shot kill ) and seeing your view range, limited though it may be, could be useful.
I will put it as an option and leave it so that it will calculate the circle by default. I haven't played enough artillery to know how useful it would be.

SilkySmooth #5 Posted Aug 19 2013 - 23:53

    Major

  • Players
  • 30719 battles
  • 6,134
  • Member since:
    05-30-2011
How are you doing this? Cause (not sure if true) not all map squires are 100M. I was told this and have no links or references.

Omegaice #6 Posted Aug 20 2013 - 00:35

    Corporal

  • Players
  • 7 battles
  • 15
  • Member since:
    08-04-2013

View PostSilkySmooth, on Aug 19 2013 - 23:53, said:

How are you doing this? Cause (not sure if true) not all map squires are 100M. I was told this and have no links or references.
From what I understand of XVM's Minimap (My code just writes to the XVM configuration after calculating the view range) it scales the circles, lines and boxes to the correct size based off of the map size and how big the map is in game.

Omegaice #7 Posted Aug 20 2013 - 01:29

    Corporal

  • Players
  • 7 battles
  • 15
  • Member since:
    08-04-2013
I have just released another update that takes into account the brothers in arms perk and the recon skill. I can't test brothers in arms as I don't have a crew that has it 100% but it should work, also I can't test the recon skill if it is not the first skill because I only have one skilled crews at most.

Until I can get a radio operator to 100% I can't implement the situational awareness skill. Unfortunately the internal naming of skills is not the same as the external, for instance the recon skill is actually "commander_eagleEye" and the Eagle Eye perk is called "commander_expert".

Omegaice #8 Posted Aug 20 2013 - 19:14

    Corporal

  • Players
  • 7 battles
  • 15
  • Member since:
    08-04-2013
I just updated the code with a new version that uses the correct formula from the wiki rather than the naive formula I previously had. This will make the commanders skill produce less extreme values.
Would anyone be interested in me adding a radio range circle that is dynamically updated as well?

Edited by Omegaice, Aug 20 2013 - 20:25.


TankV8 #9 Posted Aug 21 2013 - 05:57

    Corporal

  • Players
  • 5129 battles
  • 21
  • Member since:
    08-05-2013
Would be awesome to have it fully working and done, I think radio circle would be cool too

Omegaice #10 Posted Aug 22 2013 - 20:27

    Corporal

  • Players
  • 7 battles
  • 15
  • Member since:
    08-04-2013
I just made a big update. Due to the sale and events going on at the moment on the EU servers, I received some free consumables that allowed me to add them to the calculations. I also purchased a pair of binoculars and ventilation module.

These things are all now taken into account for the calculations.

Omegaice #11 Posted Aug 25 2013 - 03:32

    Corporal

  • Players
  • 7 battles
  • 15
  • Member since:
    08-04-2013
I just updated the main post on the EU with the latest version of this mod. It requires a change on your end to use if you already have it working but I had to do it to support more complex XVM configurations. Rather than trying to write and debug a parser for JSONx, that XVM uses for its file types, which allows comments and referencing other files, I opted to create my own file, which is only standard JSON, and you set your xvm configuration to reference it. This file will be created the first time you run your game after updating and it will contain all of the configuration options within it, hopefully they are all self explanatory.
An example XVM configuration is below, your configuration must have the circles line as shown below:
{
 "minimap": {
  "circles": ${"tankrange.xc":"circles"}
 }
}
Obviously, if you find any bugs, please follow the troubleshooting guide and email me so that I can improve this further.

Omegaice #12 Posted Aug 26 2013 - 21:24

    Corporal

  • Players
  • 7 battles
  • 15
  • Member since:
    08-04-2013
New update that includes localization support for anyone playing with a non-english version of the game.

Omegaice #13 Posted Aug 28 2013 - 15:11

    Corporal

  • Players
  • 7 battles
  • 15
  • Member since:
    08-04-2013
New update out which corrects issues with tanks where there was no dedicated radio operator. Added screenshots to this post so that you can see what the mod looks like.

Omegaice #14 Posted Aug 29 2013 - 00:22

    Corporal

  • Players
  • 7 battles
  • 15
  • Member since:
    08-04-2013
Ok, new version is up. This version reduces the filesize of tankrange.xc by utilizing references and it implements a red range circle (by default) for artillery fire.

Omegaice #15 Posted Aug 29 2013 - 23:55

    Corporal

  • Players
  • 7 battles
  • 15
  • Member since:
    08-04-2013
New version out that should fix the configuration issues, it also improves it by directly referencing the users configuration rather than duplicating it.

Omegaice #16 Posted Sep 15 2013 - 15:24

    Corporal

  • Players
  • 7 battles
  • 15
  • Member since:
    08-04-2013
I have been a bit lax about keeping this post up to date, the new version is v1.3 which updates the mod for 8.8 and fixes some bugs that were introduced for that.

DarkSkoll #17 Posted Sep 15 2013 - 17:34

    First lieutenant

  • Players
  • 50378 battles
  • 798
  • Member since:
    06-12-2011
I never liked locastan's minimap that much. I prefer Roughneck's version. The circles do change depending on what tanks you have. Arty has gun range as well.

http://roughnecksmods.com/   <<< all his work plus Soulza's

SantiCpt #18 Posted Sep 16 2013 - 20:52

    Corporal

  • Players
  • 0 battles
  • 10
  • Member since:
    09-16-2013
WOO really nice work, seems really nice thx

Gman2900 #19 Posted Sep 17 2013 - 17:19

    Captain

  • Beta Testers
  • 32764 battles
  • 1,833
  • [DOG5] DOG5
  • Member since:
    09-14-2010
This is one i'll definately be keeping my eyeys on.

Hiro_Apropos #20 Posted Sep 19 2013 - 08:38

    Sergeant

  • Beta Testers
  • 24153 battles
  • 215
  • Member since:
    08-23-2010
How to get this to work in conjunction with Alsain's xvm?





Also tagged with 0.8.7, mod, xvm, spotting, radio, spg, artillery

1 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users