War Maps 3
I fixed the coloring issue with the War Maps(Continued) mod.
The 1.16 patch also includes a remake of the enitre map menu.
IMPORTANT NOTICE: Load this mod first if you cannot ensure no other mod touches the landed titles.
Credits to Rainna and Kapl0k.
War Maps(Continued): https://steamcommunity.com/sharedfiles/filedetails/?id=3332021274&searchtext=war+maps
War Maps: https://steamcommunity.com/sharedfiles/filedetails/?id=2624748092&searchtext=war+maps
For those of you seeking to fix or expanding this mod in the future, a quick intro to the inner workings so you don’t have to suffer as I did.
The colors are set using the set_color_from_title effect. This effect copies the color of a title (in our case a dummy with no other function) to a barony. Don’t copy to anothing other than a barony. Your map will be blue. It’s bad.
The mapmodes.gui file is your main playground for adding new buttons or changing the layout of the menu.
I have made considerable changes from the base game, however the biggest changes are noted in my file.
How do the buttons work?
The buttons cause a scripted_gui to fire, which fires a scripted_effect which sets barony’s colors to be equal to those you specify in landed_titles. You will see these when you have a barony view that does not randomize the colors like mine does.
Why are colors randomly changing inside regions that should have uniform colors?
The colors break, because set_color_from_title can vary the color during the copy process by 6. This means values over 249 can overflow into 0 and values smaller than 6 can underflow into 255. This looks horrible and caused the issues with the "original" WarMaps(Continued).
Revisions:
Old revisions of this mod are available below. Click the link to download.
