Setup options mod?

Daddicus

Chieftain
Joined
Aug 28, 2010
Messages
47
Has anybody created a mod that allows you to save the setup options? I searched every term I could think of, but couldn't find one.
 
I am also interested in knowing this or if there is a way I can preset the options myself
 
I found a partial solution. This works only for the five basic setup options one sees with a standard setup (Leader name, Map type, size, difficulty, and game pace).

If you change these options and use the Start Game button from this screen, the five listed options are saved.

HOWEVER, it only works if you are NOT running any mods. But, fortunately for modders, you can quickly start up a game without mods, then exit and go back into your mod(s), and the game remembers the settings.

NOTE: For Map Type, there are only five options available. BUT, if you go into the Advanced Setup stuff, change the map there, and then revert back to the default setup screen to click the Start Game button, it remembers your map choice and adds it to the list (until you choose one of the original ones again).
 
I found a file while looking through the assets, CIV5GameOptions.xml it seems to have some of the options we are looking for, I wonder if we cant add <Default>1</Default> to the ones we want to get them to stick, however I am not sure how to go about writing that mod.


I also found the following in the Config.ini file in the \documents\my games\Civilization 5 folder

; Handicap for quick play
QuickHandicap = HANDICAP_CHIEFTAIN

; Game Name
GameName = My Game

; Worldsize options are WORLDSIZE_DUEL/WORLDSIZE_TINY/WORLDSIZE_SMALL/WORLDSIZE_STANDARD/WORLDSIZE_LARGE/WORLDSIZE_HUGE
WorldSize = WORLDSIZE_SMALL

; Climate options are CLIMATE_ARID/CLIMATE_TEMPERATE/CLIMATE_TROPICAL
Climate = CLIMATE_TEMPERATE

; Sealevel options are SEALEVEL_LOW/SEALEVEL_MEDIUM/SEALEVEL_HIGH
SeaLevel = SEALEVEL_MEDIUM

; Era options are ERA_ANCIENT/ERA_CLASSICAL/ERA_MEDIEVAL/ERA_RENAISSANCE/ERA_INDUSTRIAL/ERA_MODERN
Era = ERA_ANCIENT

; GameSpeed options are GAMESPEED_QUICK/GAMESPEED_STANDARD/GAMESPEED_EPIC/GAMESPEED_MARATHON
GameSpeed = GAMESPEED_STANDARD

; Victory Conditions
VictoryConditions = 11111111

; Game Options
GameOptions = EMPTY

; Max number of turns (0 for no turn limit)
MaxTurns = 0

; Map Script file name
Map = Assets/Maps/Continents.lua


I wonder if we can't edit this file to make it save our preferences for those options
 
I saw those, too (which is what prompted me to start this thread, in fact). The only problem is that any mod one uses will make the changes "hard-coded". In other words, you would have to have a different mod for each set of options. For most players, this is fine, but it means they have to create their own mod.

What I was hoping someone had done was write a mod that adds a check box to the Advanced stuff that would save current changes. I will eventually get far enough in modding to figure that out (requires interface changes, which probably implies LUA changes, too), but I was hoping someone had already done it.
 
yep, you could make a mod being only a custom setup screen. you could start by just copying the vanilla custom setup files to your mod and edit it, using the mod DB function to save/auto-select the options.

sorry I don't have time to devellop more in this post (and the custom setup file is a bit complex at least for a non-programmer like me), but that's what I've done when I've started to work on YnAEMP (a few options are saved in latest version of the mod)).
 
Back
Top Bottom