Different default for new game

Ivan..

Chieftain
Joined
Oct 26, 2016
Messages
23
Is there any way to make new default for new game? So I do not have to change all settings (that I like to be different than default) every time I want to start new game?
 
Is it possible to edit some .xml file so Single Player>Play Now can start game with game settings of player's choice?
 
I've changed some xml files and only applied after pressing advanced setup "default" button.

so, I traced setup menu lua scripts.

UI/FrontEnd/AdvancedSetup.lua -- Play Now setup script
BuildGameSetup(); -- calls setup parameter function
SetupParameters: Data_DiscoverParameters(); -- at SetupParameters.lua line 470:

this function would read databases but I can't trace more..zzz
 
Last edited:
SetupParameters.xml and MapSizes.xml at Assets/Configuration/

but only works after pressing default button.. plz tell me if you setup without default button
 
I've found a way to do this without the need to press a button. It's not a smooth solution, but it works.
I hunted some more and found a (slightly messy) way to still have my own defaults for game creation without the need to press the Reset Defaults button. I've edited the file "C:\Games\SteamGames\SteamApps\common\Sid Meier's Civilization VI\Base\Assets\UI\FrontEnd\AdvancedSetup.lua" and changed the OnShow() function:
Code:
function OnShow()
    BuildGameSetup();
    RefreshPlayerSlots();
    GameSetup_RefreshParameters();
        -- added by Finwickle:
        OnDefaultButton();
    AutoSizeGridButton(Controls.DefaultButton,50,22,10,"H");
    AutoSizeGridButton(Controls.CloseButton,133,36,10,"H");
end

Now when I press Create Game, I have my desired difficulty, map size and game speed (set by my mod). It will have to do and will work until a next patch overwrites it, I guess. I have no clue how to mod existing LUA-scripts.

I edited the above code with something that does work. My first example didn't calculate a new random seed, so you would get the same map every time until restarting the game. Code above works fine.
 
Last edited:
Back
Top Bottom