[DEV] How to display the CityMap for Auto City Naming on screen, and other related functions

Gedemon

Modder
Super Moderator
Joined
Oct 4, 2004
Messages
12,793
Location
France
Note: At the time of this post, this is not available with the Steam version of the mod

I've added a function to show all the generic names available on a map from the <CityMap> table.

To use it:
  • Load the map from the WorldBuilder setup screen
  • Launch the tuner
  • Set the Tuner Lua Console context to "WorldBuilderPlotEditor"
  • Enter "Start()" (without the quotes) in the command line
  • Wait a few seconds for the function to cover all the map

A few other functions that may help:

  • To display a list of mapped cities (<CityMap>) that miss a Localization, from YnAMP_Script context:
Code:
ListCityWithoutLOC(true)

  • To display a list of Civilization cities (<CityNames>) that miss a position on the map, from YnAMP_Script context:
Code:
ListCityNotOnMap(true)

  • To display the list of Cities (<CityNames>) for a specific Civilization, from WorldBuilderPlotEditor context:
Code:
ListCities("CIVILIZATION_AMERICA")
 
Last edited:
Back
Top Bottom