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?
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
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.
Make a copy of the Vanilla lua, place it in a mod folder, create a Modinfo and add them to the Import of your Modinfo, the game will use the modded version then not the Vanilla.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.