Minimap size

Agent_TBC

Chieftain
Joined
Oct 28, 2014
Messages
68
The minimap is FAR too small for me to see anything at 2560x1440 in vanilla. I have tried making it bigger with config.ini and it half works; the map does increase in size and actually looks pretty cool but the glowing border of the old map is still present and covers part of the new minimap, and the tooltips that appear in the upper right do not change position so are covered by the bigger minimap.

Anyone know if those two things can be modded and where? The minimap actually looks useful if I make it bigger but as is it's so tiny I can't see squat.

It seems weird to make the UI a set number of pixels rather than a fraction of the screen real estate when one person could be playing at a resolution more than twice as large as another person, thus making the UI less than half as visible.
 
Looks like a lot of it is controlled in \assets\UI\InGame\WorldView\MiniMapPanel.xml and .lua. Will look at those and see what can be done!
 
And when you are at it can you look if you are able to find how to turn off the "see through if not moused over" part. It is already small but maybe it was more tolerable if it wasn't see through the whole time. It is so annoying that you have to put your mouse in the already small mini map to see anything on it. And please tell us (me especially) exactly what in which file to adjust. The xml files I'm reasonably familiar with but the lua stuff is not my thing.
 
I'm actually 90% of the way there on doing what I want here. Everything is finished except moving the tooltips since they appear behind the minimap now, but that's apparently in a different file so I'll have to find it. This was painful simply because you'd think that if a bunch of layers appear one on top of another they would be the same size and use the same offset from the side of the map. BUT NO. They're all somewhat different sizes and different offsets and it didn't always work as expected when resized, so I had to do a lot of 1-2 pixel trial and error to get it to work right and not have stray pixels annoying me. I don't understand why everything isn't the same size and shape and it would be SO EASY. (cries)

Making the blue minimap background permanent isn't difficult, I just did that a minute ago on my resized one. As long as you want to keep the size of the minimap the same all you need to do is go into MiniMapPanel.xml and replace:

Code:
   <Button ID="MinimapButton" Anchor="R,T" Offset="0,0"   Size="320,140" NoStateChange="1" ConsumeMouse="1">
      <AlphaAnim ShowOnMouseOver="1" Anchor="C,C" Size="parent,parent" Pause="0" Cycle="Once" Speed="3" AlphaStart="0" AlphaEnd="1" >
        <Image Texture="MiniMapUnder.dds" Anchor="R,T" Offset="-21,-23" ConsumeMouse="0" Size="288,185"/>
      </AlphaAnim>
      <AlphaAnim HideOnMouseOver="1" Anchor="L,T" Size="parent,parent" Pause="0" Cycle="Once" Speed="2" AlphaStart="1" AlphaEnd="0">
        <Image Texture="MiniMapUnder.dds" Anchor="R,T" Offset="-21,-23" ConsumeMouse="0" Size="288,185"/>
      </AlphaAnim>
      <Button ID="Minimap" Anchor="R,T" Offset="0,0"   Size="320,140" NoStateChange="1" ConsumeMouse="0" Color="255,255,255,255"/>
    </Button>

with:

Code:
    <Button ID="MinimapButton" Anchor="R,T" Offset="0,0"   Size="320,140" NoStateChange="1" ConsumeMouse="1">  
<!--  <AlphaAnim ShowOnMouseOver="1" Anchor="C,C" Size="parent,parent" Pause="0" Cycle="Once" Speed="3" AlphaStart="0" AlphaEnd="1" >
        <Image Texture="MiniMapUnder.dds" Anchor="R,T" Offset="-21,-23" ConsumeMouse="0" Size="288,185"/>
      </AlphaAnim>
      <AlphaAnim HideOnMouseOver="1" Anchor="L,T" Size="parent,parent" Pause="0" Cycle="Once" Speed="2" AlphaStart="1" AlphaEnd="0">
        <Image Texture="MiniMapUnder.dds" Anchor="R,T" Offset="-21,-23" ConsumeMouse="0" Size="288,185"/>
      </AlphaAnim>  --> 
      <Image Texture="MiniMapUnder.dds" Anchor="R,T" Offset="-21,-23" ConsumeMouse="0" Size="288,185"/>
      <Button ID="Minimap" Anchor="R,T" Offset="0,0"   Size="320,140" NoStateChange="1" ConsumeMouse="0" Color="255,255,255,255"/>
    </Button>

I think that should do it. Let me know if it didn't work, I did it quick and dirty on the original XML file since mine is all tweaked out for the sizing changes and I'm really tired :) But you said you're familiar with messing with the XML files so even if I botched it somewhere you can probably find out where. All I did was comment out the bit which does the fade in / fade out animation on mouseover/mouseout and then pull out the minimapunder.dds blue background and make it a permanent texture behind the minimap.
 
Thanks man, this works indeed. Changed it and it's not see through anymore.
Already a lot better. When you are finished and got it all to work with a bigger mini-map let us (me especially, again ;)) know.
 
I'm pretty happy with the way I have it now for my screen size and resolution. I was worried that upscaling would introduce blurriness and the dds files would need to be recreated from scratch at whatever size was needed but since its really just the shadow around the edge of the minimap that is being upscaled (and the blue background of course but upscaling a mostly solid blue field doesnt introduce artifacts) its hardly noticeable at all. The important thing is the minimap itself gets recreated by the engine at whatever size you set it to, so its nice and sharp. I can actually sorta see where the cities are! I bet on a smaller map size you could even see individual units. Possibly.

If you want to check it out I can upload it, the zip is only 145kb even with the upscaled DDS files. I doubled the minimap size because I run at 2560x1440 but if you are running at 1080p that might be too large so sticking with the default size might be better.
 
I'd like to see it as well. :)

(since I'm on 1080p, I'll probably edit the exact size a bit but it would save me some time not to hunt down every little bit of it using your version as guidance)
 
Sure, here it is. I zipped up the assets folder. 4 files total plus a tiny readme for the config.ini (basically to set LooseFilesOverridePAK = 1 instead of 0 ).

The two XML files will overwrite the old ones so back them up! I know you guys know that but you never know who is lurking :P

The two DDS files will not overwrite the old ones as those are still inside the compressed paks. So thats good and makes it easy to play around without hurting anything.

edit: I took it down for a minute, checking something, will re-up in a bit
 
Like I said I know you are a modder, Tirian, and can undoubtedly pretty up the XML way better and so on but I included the readme and backup disclaimer just in case somebody who doesn't know what they are doing comes in here and stealth downloads this. It's just for testing but that won't stop them :)
 
ok re-upping, sorry about that (not that I think anyone is even up) I had included an old version of one of the DDS files by mistake, the newer one looks better.
 
I decided I might as well do this right since I'd done most of the work already, so I re-created the DDS files at the new resolution rather than simply resizing the old ones. This removes the upscaling blurriness and makes it nice and sharp. Looks really nice at 2560x1440. So I'm reuploading the finished one if anyone wants it.

If anybody likes a bigger minimap but thinks the minimap is too large at 1920x1080 I can probably make an intermediate sized one pretty quickly now that I know exactly what to modify and how big the layers need to be. Let me know if somebody wants that. I know not everyone has a program that can redo DDS files properly.
 

Attachments

Hi thank you for the great work!
Everything works fine in a normal playthrough or with mods except in your latest version there is no opaque choice, lol.
Indeed you are correct that the mini map is now a bit on the large side for 1920x1080 so an in between version (and opaque) one would be highly appreciated.

I found 1 conflict that probably has to do with the advanced setting of the single player score list that appears normally below the mini map. As soon as you have more than 8 civs in game (I like to play on large maps with lots of civs) the games hangs after picking your landing spot and the normal interface forms. After turning it off everything worked fine again. No clue what the problem is though.
 
Ok I'll make one for 1920x1080 and comment in the opaque choice.

To make sure I understand, if you're using my minimap the game will hang if you are both playing with more than 8 civs AND you have the single player score list in the advanced options turned on? Huh. I've never turned that on, I 'll look at it. No idea why it would happen but I can see if I can figure it out. Luckily that doesnt sound too bad, you can always turn off the score list if you have more than 8 players like you said. But I'll see if I can figure it out anyway.
 
Hi thats a fast reaction, I wanted to adjust what I written lol. It seems not to be the single player score list at all. I was using a few mods for new sponsors and somehow the one for Nuevos Aires seems to effect stuff. At least that is my latest presumption. Because it is the only mod that wasn't activated during the one that I started with the score list turned off. After that I started a game with Nuevos Aires as one of the sponsors and I had the same conflict again and my newest start with Nuevos Aires turned off started the game without a problem. So how and what it does it and what it exactly is I don't know. But I'm just as happy to play the game without Nuevos Aires lol.

The only thing with the more than 8 sponsers is that the list for the 4 new sponsers forms behind the minimap
 
Ok I made one for 1920x1080 resolution. I think this size will work pretty well. Let me know what you think. Oh, and I made opaque the default for you since you like that way better but if you want to switch to the default behavior you just change which lines are commented out in the MinimapPanel.xml. I labeled which lines to comment in/out in the xml in case you want to change.

It looks pretty good as far as I can tell though a little small on my screen. But thats what we want; if its the right size at 2560x1440 it will be too big at 1920x1080.

I'm sure its possible to move the scores further down the screen so that if you're playing with more than 8 they dont get covered up by the minimap. But if you try this new sized minimap maybe they will not be covered any more. I'm guessing a couple still will be, maybe two, but I'm not sure. Let me know.

Oh yeah make sure to look at the readme again, I put the new resolution you need in config.ini in there. I think its 368x210 but check just in case I'm off by a few pixels.
 

Attachments

Thanks for all your work on this! I'm running at 1080p and actually used your larger minimap and love it! I made the modifications to make it always darker as well (as if you were hovering over it) and the minimap is finally useful.

I might check out your 1080p version as well, but I don't mind having a huge minimap honestly.
 
The 1080p version is more or less exactly halfway in size between the default minimap and the 2560 version if that helps.
 
Man you are fast. I started to play the game with the 12 civilizations when I got it to work. Just checked if you had responded and you already finished it. Gonna log out of the game and I'll check it out.
And yeah the list still is forming from the place the mini map originally ends. So in stead of 4 I'll miss 2 leaders now with the new settings lol. And since mostly I'm the one in the lead anyway I won't miss much.
Can't say it enough, thanks again for the work.

Edit: Everything works perfectly. And as I presumed I miss the top 2 leaders on the score list, but if that is the price I can live with it. Thanks for the work and enjoy the game!
 
Thanks! I don't know where the onscreen score stuff is located but if I stumble across it at some point I'll let you know. SOMEBODY must know because there were plenty of Civ V mods that did things to the on-screen score but I am not one of them :P
 
I did the obvious and checked the Civ V modding forum for where it was in Civ V and, yeah, its in the same spot in CBE. If you want to fix it yourself its just changing one number. Go to

\assets\UI\InGame\WorldView\MPList.xml

and the first line is

<ScrollPanel ID="MPListScroll" Anchor="R,T" Size="250,200" Offset="0,170" Vertical="1" >

The 170 is what you need to change. As that gets bigger the scores move DOWN on the screen. The 2560 one should be changed to 313 and the score will appear properly. At a guess the 1920 one should be... oh... 287 or so. Give it a shot and then adjust it a couple pixels if its not exact. So try

<ScrollPanel ID="MPListScroll" Anchor="R,T" Size="250,200" Offset="0,287" Vertical="1" >

Should I fix it in the zip files? If other people download them I dont want their scores messed up, but that's another file that gets overwritten if I do put them in and right now the zips are very light.
 
Back
Top Bottom