hazel16
Chieftain
- Joined
- May 5, 2014
- Messages
- 64
Description
This mod provides capability for labels with custom text and icons to be placed directly on the map. There are four types of labels: Feature and Region Labels are automatically generated by the Dynamic Labels Generator (randomly choosing names based on nearest civ's culture).




Battle Labels are automatically placed at locations of major battles and when cities are razed. Player Labels are custom labels placed by the player. The player can also add, edit, move or delete any label during gameplay.

Through Options (accessible through the Map Options menu by the minimap), there are many customization options: you can enable/disable types of labels, change the appearance of each type of label and make changes to the algorithms for Battle Labels and the Dynamic Labels Generator.
See post 2 (For Players) and post 3 (For Modders) for more details.
Note: This is a beta release. I plan on uploading this to Steam Workshop but first I'd like to get some playtesting feedback to make sure it's working smoothly. If you try it, please let me know how it works for you. Comments/questions/complaints/suggestions/bug reports are all very much appreciated!
Thanks
--This would not have been possible without WHoward's excellent UI Tutorials, plot iterators and inspiration in the form of his Map Pins mod.
--Special thanks also to Pazyryk for TableSaverLoader.
--Thanks to Leugi for pushpin graphics/icons (used in header and minimap list)
--Thanks to TPangolin for additional Australian, Canadian, SE Asian and South American names
--Thanks to RawSasquatch for United States (Western, Southern, Northeastern) names
--Thanks to Sukritact for more SE Asian names
--Thanks to Gedemo for French names
--Thanks to Janboruta for Slavic names
--Thanks to idvhl for finding real-life forest names
--And special thanks to everyone who has sent in bug reports and suggestions to help me improve the mod!
Compatibility
Spoiler :
Cultures are automatically assigned to custom civs in following mods:
Other mods may have their own built-in compatibility with Map Labels. If the custom civilization mod you're using isn't assigned a culture, you can manually assign a culture in-game through Dynamic Labels Generator --> Assign Cultures button.
Tested and compatible with Enhanced User Interface v1.22
To maximize compatibility, UI modifications are done without overwriting any game files. Does insert elements into MiniMap and WorldView contexts, so things may look funny if another mod alters these (if a mod alters the MiniMap and Map Labels no longer shows up in the Map Options list, you can still access everything with CONTROL-SHIFT-L). So far only tested with BNW.
Future Plans
Spoiler :
- add more cultural names for Dynamic Labels Generator (Pacific, Indian, Slavic, Hispanic, French) done
-add tooltips done
- hide label when unit enters the plot (will add overhead, so make this optional?) (may not do this unless there are requests)
- add more functionality to labels list done
-assign cultures to custom civs in-game done
-optimize code, move more data from lua into database tables done
-make global lua functions so modders can add labels on the fly done
-
- hide label when unit enters the plot (will add overhead, so make this optional?) (may not do this unless there are requests)
-
-
-
Limitations
Spoiler :
- map labels appear behind all UI elements, including unit/city flags but are on top of unit graphics
- would like to rotate map labels, but doesn't appear possible in lua
- would like to rotate map labels, but doesn't appear possible in lua
Known Bugs
Spoiler :
- bottom arrows of scroll bars appear in seemingly random places on the screen; scrollbars are still fully functional
- rivers and regions sometimes get multiple labels
- rivers and regions sometimes get multiple labels
Changelog
Spoiler :


Spoiler :
-fixed Map Labels malfunctioning if mods make alterations to tables in Map Labels but don't list it as a reference; from now on, if Map Labels is not listed as a reference, another mod's changes to Map Labels-specific tables will not be loaded


Spoiler :
-Now saves appearance options, DLG and battle options for user across games (note that all save functions only work on turn 2 forward); along with this there is a new Options panel called "Other" with a Restore Default Settings button
-Bug fixes: fixed popup always opening on closing city screen, added check on icon panel to bypass some icon incompatibility, added check to DLG processing so that having labels in ML_Labels_Dynamic with cultures not in ML_Cultures does not cause script to fail; fixed DLG panel offset to work with resolutions other than __x1050
-New/updated cultures: lots of new names (more SE Asian names from Sukritact, French from Gedemo, forests from idvhl, US regions from RawSasquatch, Slavic from janboruta)
-Mod compatibility with Gedemo's civs
-For modders: added outside LuaEvent funtion calls to add/edit/remove labels (documentation pending); modders can now change colors of individual labels; modders can create their own label MainTypes and SubTypes
-Other changes: changed main header graphic and Map Labels icon to pushpin (thanks to Leugi for those); added REDO button to DLG results message; optimized code for finding nearest starting plot
-Bug fixes: fixed popup always opening on closing city screen, added check on icon panel to bypass some icon incompatibility, added check to DLG processing so that having labels in ML_Labels_Dynamic with cultures not in ML_Cultures does not cause script to fail; fixed DLG panel offset to work with resolutions other than __x1050
-New/updated cultures: lots of new names (more SE Asian names from Sukritact, French from Gedemo, forests from idvhl, US regions from RawSasquatch, Slavic from janboruta)
-Mod compatibility with Gedemo's civs
-For modders: added outside LuaEvent funtion calls to add/edit/remove labels (documentation pending); modders can now change colors of individual labels; modders can create their own label MainTypes and SubTypes
-Other changes: changed main header graphic and Map Labels icon to pushpin (thanks to Leugi for those); added REDO button to DLG results message; optimized code for finding nearest starting plot

Spoiler :
-transitioned from SaveUtils to TableSaverLoader (v0.16)
-big changes to how data is stored, cleaned up Options.XML, added certain label-type specific preferences to own tables
-mode changes: new Quick-Add mode (CTRL-A) that adds Player icon-only label to map, right-click in a mode now exits mode
-added ability to assign cultures to civs in-game; civilizations can be assigned multiple cultures
-new cultures: added Slavic, Portuguese and French, as well as (thanks to TPangolin) Mesoamerican, South American, SE Asia, Australia, and Canada
-labels: battle label tooltips now show range of years and civ's shortdescription
-mod compatibility: now automatically assigns cultures to TPangolin's, Leugi's and tarcisiocm's civs
-UI: added tooltips to options and DLG panels
-bug fixes: dynamic labels generator feature header text, generated labels will no longer be added to plots with natural wonders, cities or existing labels, DLG no longer fails if civ does not have defined culture
-big changes to how data is stored, cleaned up Options.XML, added certain label-type specific preferences to own tables
-mode changes: new Quick-Add mode (CTRL-A) that adds Player icon-only label to map, right-click in a mode now exits mode
-added ability to assign cultures to civs in-game; civilizations can be assigned multiple cultures
-new cultures: added Slavic, Portuguese and French, as well as (thanks to TPangolin) Mesoamerican, South American, SE Asia, Australia, and Canada
-labels: battle label tooltips now show range of years and civ's shortdescription
-mod compatibility: now automatically assigns cultures to TPangolin's, Leugi's and tarcisiocm's civs
-UI: added tooltips to options and DLG panels
-bug fixes: dynamic labels generator feature header text, generated labels will no longer be added to plots with natural wonders, cities or existing labels, DLG no longer fails if civ does not have defined culture

Spoiler :
-fixed save game bug introduced in v2
-dynamic labels generator changes:
-------added Pacific, Indian and Spanish culture names to dynamic labels generator
-------if culture preference is set to 'By Civilization' and civ has no assigned culture/culture undefined, will not create labels for that civ (previously would assign random culture)
-------now if dynamic labels generator fails, an error message will appear containing info to post here
-icon panel changes:
------recently used icons at top
------limit displayed icons to base game and map labels icons (icons added by other mods are not displayed unless file name added to ML_IconFontTextures table)
-dynamic labels generator changes:
-------added Pacific, Indian and Spanish culture names to dynamic labels generator
-------if culture preference is set to 'By Civilization' and civ has no assigned culture/culture undefined, will not create labels for that civ (previously would assign random culture)
-------now if dynamic labels generator fails, an error message will appear containing info to post here
-icon panel changes:
------recently used icons at top
------limit displayed icons to base game and map labels icons (icons added by other mods are not displayed unless file name added to ML_IconFontTextures table)

Spoiler :
- now allows labels with no name
- can now Edit/Delete directly from labels list
- notification and dynamic labels generator appear for new games only
- couple small optimizations (no longer redraws all labels after making changes to a label)
- fixed first icon (blank icon), razed city tooltip, Arabian labels not generating
- can now Edit/Delete directly from labels list
- notification and dynamic labels generator appear for new games only
- couple small optimizations (no longer redraws all labels after making changes to a label)
- fixed first icon (blank icon), razed city tooltip, Arabian labels not generating
