1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

YnAMP - Development thread Civ6

A compilation of maps and script with culturally linked start location or TSL

  1. Gedemon

    Gedemon Modder Moderator

    Joined:
    Oct 4, 2004
    Messages:
    9,222
    Location:
    France
    No, I can't fix late game's crashes, but now the setup screen should warn you about the size, even when you use cropped maps.

    About warnings, what are the other mods like "Prismatics" for fixing colors and "Religion Expanded" for fixing religion when you select too many players ?
     
    Knightfall likes this.
  2. lordfistas

    lordfistas Chieftain

    Joined:
    Oct 24, 2009
    Messages:
    64
    TEXT FIX - LOC_WORLD_RANKINGS_21_PLACE (Raubak)
    https://steamcommunity.com/sharedfiles/filedetails/?id=1935962338
     
    Knightfall and Gedemon like this.
  3. dshole

    dshole Chieftain

    Joined:
    Mar 2, 2008
    Messages:
    27
    Great update. I'm going to take a risk and play a cropped giant map to late game. North border as northern Europe, south border as south Africa/America.
     
    Knightfall and Lohit like this.
  4. Gedemon

    Gedemon Modder Moderator

    Joined:
    Oct 4, 2004
    Messages:
    9,222
    Location:
    France
    Update (gitHub only)
    Code:
    Giant Earth Map:
    - add new preset sections: "Africa", "Large Asia", "South-East Asia", "Pacific"
    - add alternate start positions for Russia (Vladivostok), Canada (Vancouver) to allow using those Civilizations on more sections of the map (America is already set to use San Francisco in some cases)
    
    Largest Earth Map:
    - add all preset sections that are also available for the Giant Earth Map
    - add missing river section above Saint Petersburg
    - change one plot from Mountain to Hills to allow the placement of Anadyr (Eastern Russia) for scenarios.
    
    Greatest Earth Map:
    - hide the AutoCityNaming option as it's still a very early W.I.P. on that map and would mislead users to use it with scenarios requiring a near-complete CityMap.
    
    Scenario:
    - move YnAMP scenarios config and gameplay to separate files
    - add a preset option for a placement based on the CityMap only with the originals Civilizations and CityStates (vanilla + all DLC, expansions) *still W.I.P*
    - add a config option to hide a scenario made to be used with a CityMap when selecting a Map without the "Auto City Naming" option
    - add a way to preset the general settings of a scenario in the <ScenarioCivilizations> table that will be applied to all Civilizations that don't have their own preset
    - detect when a TSL is an alternate start position (and allow auto-renaming in that case), else prevent renaming to use the capital city name
    
    CityMap: (used for Auto City Naming and now Scenarios):
    - add Pacific Island section thanks to @Mobfire
    - add a few cities needed for Scenario placement with custom modern Civilizations
    - fix a few tag names that were using locale name instead of <en_US> (ie "LOC_CITY_NAME_MILANO" now changed to "LOC_CITY_NAME_MILAN") so that City Names from Civilization list can found a match in City Map (those that were corrected were also changed in <ko_KOR>, <pl_PL> and <zh_Hans_CN> localization tables)
    - changed a few entries that were using multiple rows with Area=0 for the same city where a single Area=1 would have been enough for auto-naming, allowing a better precision for Scenario placement using the CityMap
    - add function to show all the generic names available on a map from the CityMap. To use, load the map in WorldBuilder mode, launch the tuner, go in "WorldBuilderPlotEditor" context and enter "Start()" (without the quotes) in the command line
    
    General:
    - add a query to QueryParameters so that filtering unsupported DomainValues in the Setup Screen can be used with MapScript
    - add a 'MapScript' column in <StartPosition>, <CityMap> and <ScenarioCivilizations> tables. Those are used to override existing entries when a map reference DB (aka "MapName" like the "GiantEarth" DB used for "Giant Earth Map", "Terra Map" and "Largest Earth Map") is not valid for a specific plot (for example when trying to determine the relative position of a plot on the LargestEarthMap.lua script with the GiantEarth as reference in a region that was heavily modified after the upscale thanks to @Hormigas great work to make good use of the new dimensions)
    - clean unnecessary output to the Lua.log (don't worry, the scenario generator still spam a lot)
    - format some output to the Lua.log for easier reading
    
    Bug fixes:
    - Auto City Naming should now be correct when using sections of the largest Earth Map with the GiantEarth Database as reference
    - City States localized names are now imported from the GamePlay database to update the Selection List with custom CS from mods not directly supporting the option.
    - detect Alternate Start Positions for a map section from the Setup Screen when the GamePlay database has been loaded
    - sometime player:GetCities():Create() can fail when there is a feature on a plot, so manually remove features (except NW) before trying to place a city for Scenarios
    
    UI:
    - add a small icon to show the difference between the WorldBuilder Setup Screen and the Game's Setup Screen now that both share the same options
     
    Knightfall, Lohit and SeelingCat like this.
  5. Gedemon

    Gedemon Modder Moderator

    Joined:
    Oct 4, 2004
    Messages:
    9,222
    Location:
    France
    And the now usual hotfix
    Code:
    bug fix: two entries in the "Play Europe Again" CityMap had managed to set Area = NULL, that was not expected in the code.
     
    Knightfall and Lohit like this.
  6. Gedemon

    Gedemon Modder Moderator

    Joined:
    Oct 4, 2004
    Messages:
    9,222
    Location:
    France
    Update (GitHub only)
    Code:
    - remove "YnampCityMap" scenario preset as it would just be a duplicate of "YnampGenerated" once the later is expanded
    - correct a few typo in text files
    - add and code ExploreAll and MeetAll parameters in <ScenarioCivilizations> table
    - add and code Improvement placement parameters in <ScenarioCivilizations> table (fixed number or per city size with ratio and max range from city)
     
  7. Gedemon

    Gedemon Modder Moderator

    Joined:
    Oct 4, 2004
    Messages:
    9,222
    Location:
    France
    And
    Code:
    - Filled in small holes on Giant Earth Map City Naming thanks to SeelingCat
    - Updated Polish translation thanks to 1e00
     
    Knightfall likes this.
  8. Gedemon

    Gedemon Modder Moderator

    Joined:
    Oct 4, 2004
    Messages:
    9,222
    Location:
    France
    And so here is the full compiled change log to v.8.0

    I'm going to post it on Steam, wish me luck...

    Code:
    Setup Screen:
    - allows YnAMP to use parts of the GamePlay Database in the Setup Screen after launching an initial game (needed for some of the new options below)
    - add a "Load Database" button on the Setup Screen to launch a quick game in 2D mode and return to Main Menu
    - add a "Ban Leaders for Random Slots" option to set a list of Leaders that will not be selected to fill a random slot. You can still pick them manually for the human or the AI (SP only ATM)
    - add "only civilization/CityStates with TSL" option for YnAMP maps with TSL, requires the GamePlay Database to be loaded once.
    - add options to chose how to handle the City State selection: fully random, selection+random, only selection, exclusion list
    - display the map section dimension when selecting a sub-region of the Giant Earth or the Largest Earth Custom
    - add warnings and validation report tool tip on the Setup Screen and lock the Start button in some cases (that can be bypassed by clicking an "ignore" button)
    - keep in memory the states of the CityStates selection and Banned Leaders selection even when the option is hidden (note that this is not saved with a configuration file for City States)
    - override the GameCore random Civilization/CS selection in all cases by assigning a random Civilization to each open plots using the current setting (duplicate allowed or not, TSL only, etc...)
    - add a slider to quickly change the number of Major Civilizations, to prevent UI lag the setting is applied on the next click on the add(+) or remove (x) buttons.
    - add some tooltip descriptions to the setup option
    - add back the pull down menu for map selection (so much faster), still keeping the button for the detailed screen in case anyone prefer to use it
    - raise the max number of players to the absolute maximum of 62 (was 60 for safety)
    - bug fix: in some cases a City State Leader was able to be initialized as a Major Civilization Leader
    
    Scenario Generator:
    - add a "Minimum City Separation" setting for the Scenario Generator, to spread larger Empire on the map
    - add a Southern/Northern Latitude XML setting for City placement for the Scenario Generator on World Maps (or cropped World Maps)
    - add a config option to hide a scenario made to be used with a CityMap when selecting a Map without the "Auto City Naming" option
    - add a way to preset the general settings of a scenario in the <ScenarioCivilizations> table that will be applied to all Civilizations that don't have their own preset
    - detect when a TSL is an alternate start position (and allow auto-renaming in that case), else prevent renaming to use the capital city name
    - add and code ExploreAll and MeetAll parameters in <ScenarioCivilizations> table
    - add and code Improvement placement parameters in <ScenarioCivilizations> table (fixed number or per city size with ratio and max range from city)
    - move YnAMP scenarios config and gameplay to separate files
    - bug fix: sometime player:GetCities():Create() can fail when there is a feature on a plot, so manually remove features (except NW) before trying to place a city for Scenarios
    - multiple small bug fixes
    
    City Map:
    - add Pacific Island section thanks to Mobfire
    - add a few names to fill small holes on Giant Earth Map thanks to SeelingCat
    - add a few cities needed for Scenario placement with custom modern Civilizations
    - fix a few tag names that were using locale name instead of <en_US> (ie "LOC_CITY_NAME_MILANO" now changed to "LOC_CITY_NAME_MILAN") so that City Names from Civilization list can found a match in City Map (those that were corrected were also changed in <ko_KOR>, <pl_PL> and <zh_Hans_CN> localization tables)
    - changed a few entries that were using multiple rows with Area=0 for the same city where a single Area=1 would have been enough for auto-naming, allowing a better precision for Scenario placement using the CityMap
    - add function to show all the generic names available on a map from the CityMap. To use, load the map in WorldBuilder mode, launch the tuner, go in "WorldBuilderPlotEditor" context and enter "Start()" (without the quotes) in the command line
    - bug fix: two entries in the "Play Europe Again" CityMap had managed to set Area = NULL, that was not expected in the code.
    - bug fix: use the correct offset when using sections of the largest Earth Map with the GiantEarth Database as reference
    
    Translation:
    - added Polish translation, thanks to gitHub user 1e00
    - fix a missing tag in ConfigText_ko_KR.xml
    
    General:
    - correct a few typo in text files
    - add a 'MapScript' column in <StartPosition>, <CityMap> and <ScenarioCivilizations> tables. Those are used to override existing entries when a map reference DB (aka "MapName" like the "GiantEarth" DB used for "Giant Earth Map", "Terra Map" and "Largest Earth Map") is not valid for a specific plot (for example when trying to determine the relative position of a plot on the LargestEarthMap.lua script with the GiantEarth as reference in a region that was heavily modified after the upscale thanks to @Hormigas great work to make good use of the new dimensions)
    - clean unnecessary output to the Lua.log (don't worry, the scenario generator still spam a lot)
    - format some output to the Lua.log for easier reading
    - add Map Statistics in the lua.log when entering a game (all maps, not just YnAMP's)
    - remove the MainMenu override as I've realized we can change Logos and intro Movies for Scenarios with the Database since the September patch
    
    WorldBuilder
    - restore the "Restart" button in WorldBuilder.
    - activate some Game parameters on the WorldBuilder Setup Screen to load a scenario test faster
    
    Modding:
    - add a query to QueryParameters so that filtering unsupported DomainValues in the Setup Screen can be used with MapScript
    - add a check to allow a setup parameter to be dependent of a Mod/DLC
    
    Compatibility
    - while still not technically compatible with "Sukritact's Civ Selection Screen", YnAMP now include its own AdvancedSetup.xml which should fix the broken Setup Screen by correctly overriding Sukritact's version.
    
    Giant Earth Map:
    - add new preset sections: "Africa", "Large Asia", "South-East Asia", "Pacific"
    - add alternate start positions for Russia (Vladivostok), Canada (Vancouver) to allow using those Civilizations on more sections of the map (America is already set to use San Francisco in some cases)
    
    Largest Earth Map:
    - add all preset sections that are also available for the Giant Earth Map
    - add missing river section above Saint Petersburg
    - change one plot from Mountain to Hills to allow the placement of Anadyr (Eastern Russia) for scenarios.
    
    Greatest Earth Map:
    - hide the AutoCityNaming option as it's still a very early W.I.P. on that map and would mislead users to use it with scenarios requiring a near-complete CityMap.
    - bug fix: use the "CONTINENT_EUROPE" type instead of its ID (that seems to have been changed by the game at some point)
    
    Terra Map:
    - add "TSL Replacement Range" option to prevent Civilization to be placed too far from their relative TSL
    - add "More Land around TSL" option to raise the probability of land in the area of the relative TSL of the active Civilizations
    - add "Real Land/Sea Blending" option to blend the real world shape over the selected scripts
    - add "Allows Island" option that can be unchecked to prevent the islands generated between the Old and New World so it can't be discovered before Oceanic Travel is researched.
    - add multiple new parameters for the Fractal function, allowing the selected scripts to use different values based on map sizes, to lower the occurrences when the script was generating extremely rifted areas where a continent was expected.
    - add description to the various custom scripts
    - tweak 2:1 map sizes to be relative to the Giant Earth map for better rescaling
    - bug fix: don't prevent a Civilization to be placed because another Civilization is too close when TSL are used (but still don't allow placement under the minimum city distance)
    - use the Giant Earth Map table instead of the Largest Earth, as we use also the Giant Earth Map database for TSL and NW.
    - add option to remove the asymmetric limit for Tundra/Snow latitude and use the default map generator value
    - add option to remove the north/south landmass buffer preventing land tiles blocking circumnavigation
    - add options to import the reference map Terrain types and Features types where possible
     
  9. Gedemon

    Gedemon Modder Moderator

    Joined:
    Oct 4, 2004
    Messages:
    9,222
    Location:
    France
    For examples on how to use the scenario generator, the updated version of the Basic Modern Civilization contains a Scenario preset for a modern world on (sections) of the Giant Earth and the Largest earth Map, and I've posted a Scenario preset and compatibility patch for the Relive World Wars mod for those two maps too.

    The preset for RWW is more complex, but I've also put a lot more comment in it.
     
    Knightfall likes this.
  10. Gedemon

    Gedemon Modder Moderator

    Joined:
    Oct 4, 2004
    Messages:
    9,222
    Location:
    France
    Update (Steam/gitHub)
    Code:
    - less invasive setup validation reports message
    - better tooltip description for setup validation reports
    - less blocking report, just disable the options that won't work with the current state of the loaded gameplay DB
    - bug fix: prevent the two map selection option (new screen or pulldown menu) to swap position when changing other settings
    - double check the valid leaders list on launch in case the ruleset was changed
     
    Knightfall likes this.
  11. savio.dibi

    savio.dibi Chieftain

    Joined:
    Feb 2, 2018
    Messages:
    42
    Gender:
    Male
    Fantastic! Can't wait to try it :)
     
    Knightfall likes this.
  12. Gedemon

    Gedemon Modder Moderator

    Joined:
    Oct 4, 2004
    Messages:
    9,222
    Location:
    France
    Small update (Steam/gitHub)
    Code:
    - a few tweaks in the <CityMap> tag names for scenario cross-reference
    - change a few positions in <CityMap> for the Basic Modern Civilization scenario
    - don't block start because of map size in Worldbuilder setup screen, as they will load in that mode.
    - bug fix : in some case the default settings of a scenario were over-writing the specific settings of a Civilization
    - less spam in console/Lua.log
     
    Knightfall likes this.
  13. Gedemon

    Gedemon Modder Moderator

    Joined:
    Oct 4, 2004
    Messages:
    9,222
    Location:
    France
    Another small update (Steam/gitHub)
    Code:
    - UI: move the "Ignore warning" button to a position where it should not be missed
    - bug fix: allows some settings to be NULL in <ScenarioCivilizations> else the default settings may be applied if the Civilization specific value is "false"
     
  14. Gedemon

    Gedemon Modder Moderator

    Joined:
    Oct 4, 2004
    Messages:
    9,222
    Location:
    France
    Update (gitHub only, slowing down pace on Steam)

    Thanks to everyone who've contributed the past years and the final stones posed by Seelincat, the Giant Earth Map now have a full CityMap !

    Many, many thanks guys ! :clap:

    Code:
    - fill the gaps on Giant Earth Map for Auto City Naming thanks to SeelingCat
    - correct offset/size for the new "Ignore" button (was using the old button values)
    - changed all variations of LOC_CITY_NAME_KOBENHAVN to LOC_CITY_NAME_COPENHAGEN in CityMap and Texts files for Scenario cross-reference.
    - also show plots without a known city names when using the dev/debug function to display all names from the <CityMap> on the map
    - the scenario generator will now try to find a replacement plot in the naming area when getting a City position from the <CityMap> and the central plot of the area is not valid for a city (water, mountain, ...)
    - add function to list CityMap entries for which the Scenario Generator can't find a valid position anywhere in the naming area: ListInvalidCityPos(true) from YnAMP_Script context
    
     
    Knightfall and Laurana Kanan like this.
  15. Gedemon

    Gedemon Modder Moderator

    Joined:
    Oct 4, 2004
    Messages:
    9,222
    Location:
    France
  16. Gedemon

    Gedemon Modder Moderator

    Joined:
    Oct 4, 2004
    Messages:
    9,222
    Location:
    France
    New update, Steam and gitHub
    Code:
    - add method to remove all Lowlands from a map on loading when a GlobalParameters entry exists ("YNAMP_PLEASE_REMOVE_LOWLAND"), allowing to continue a game from a savepoint just before a crash related to Sea Level Raising 
    - add option to use only direct MapScript reference for Natural Wonders and Extra Placement (like Volcanoes when GS is active) instead of relative reference (as the GiantEarth DB for the LargestEarthMap)
    - fix position of Ha Long Bay on Largest Earth Map
    - Volcanoes from the ExtraPlacement table are only placed when the "Import" option is used for "Features Placement"
    - fix some rivers flow direction on the Play Europe Again map, for 3D visualization
    - bug fix: don't fail to load when the MapSeed is empty
    
     
    Knightfall likes this.
  17. Pistol90

    Pistol90 Warlord

    Joined:
    Oct 14, 2017
    Messages:
    257
    Gender:
    Male
    I understand there is crash problem in Giant Earth ... I would like to ask is crash permanent, like if I load game again would I be able to continue until next crash --- or its impossible to continue after certain turn, and there is always crash at same place.
     
    Knightfall likes this.
  18. Gedemon

    Gedemon Modder Moderator

    Joined:
    Oct 4, 2004
    Messages:
    9,222
    Location:
    France
    That depend if you're lucky or not.

    At first crashes are "random" (ie no apparent reason, as reloading and clicking next turn may work this time) but at some point you may get a reproducible (ie permanent) crash from which reloading won't help.

    There is one reproducible crash known (water rising) and some unknown.
     
    Knightfall and Pistol90 like this.
  19. savio.dibi

    savio.dibi Chieftain

    Joined:
    Feb 2, 2018
    Messages:
    42
    Gender:
    Male
    I'll give a try and report if something crashes. Many thank you Gedemon!
     
    Knightfall and Gedemon like this.
  20. Gedemon

    Gedemon Modder Moderator

    Joined:
    Oct 4, 2004
    Messages:
    9,222
    Location:
    France
    Small update (Steam/gitHub)
    Code:
    - bug fix: for the base game, update players Domain in the Configuration Database for old mods still using Domain='StandardPlayers' instead of Domain='Players:StandardPlayers'
    - bug fix: for the mod Volcanoes are considered as Terrain and not placed with the Map Generator option for Features, so still use their import reference in that case
    - remove some unnecessary debug output to Lua.log
     
    Knightfall likes this.

Share This Page