• Our friends from AlphaCentauri2.info are in need of technical assistance. If you have experience with the LAMP stack and some hours to spare, please help them out and post here.

How to add fields to Game setup screen

Andrew Klamut

Chieftain
Joined
Jun 20, 2019
Messages
6
Hi all,

New to modding Civ 6, I'm looking to create a mod that adds fields between "Game speed" and "Map" in any Game Setup screen. More specifically I want the fields to be integer fields just like the game/map seed fields at the bottom.

The only mod I know of that does something like this is "Got Lakes?" where it has its own map in the Map dropdown. When you select that map, it adds a ton of options to the menu. I'm just not quite sure how it works, I attached what I think are relevant files from "Got Lakes?"

My attempt at this was simple, a single xml file with the following, but it doesn't seem to do anything. I expected this to add an integer field called Private Game underneath "Game speed":

<GameInfo>
<Parameters>
<!-- Game Options -->
<Row ParameterId="Test" Name="LOC_PRIVATE_GAME" Description="" Domain="int" Hash="0" DefaultValue="0" ConfigurationGroup="Game" ConfigurationId="TEST" GroupId="GameOptions" SupportsLANMultiplayer="0" SupportsInternetMultiplayer="1" SupportsHotSeat="0" SupportsSinglePlayer="0" SortIndex="81"/>
</Parameters>
</GameInfo>


Thanks to anyone who might be able to help!!
 

Attachments

Your XML is loaded in the "frontend" section in your mod ?
 
Your XML is loaded in the "frontend" section in your mod ?

I don't think so. It's in this path:
C:\Users\Andrew\Documents\Firaxis ModBuddy\Civilization VI\EmptyMod2\EmptyMod2\GameData1.xml

I build the mod using ModBuddy, I see it enabled in Additional Content in the game.

Do I need to change it to something like:
C:\Users\Andrew\Documents\Firaxis ModBuddy\Civilization VI\EmptyMod2\EmptyMod2\Base\Assets\UI\FrontEnd\GameData1.xml ?

I notice that for the "Got Lakes" mod, all files are in:
C:\Program Files (x86)\Steam\steamapps\workshop\content\289070\916614621

Completely new to modding, but very experienced with coding. Thanks for your attention Gedemon!
 
The path is not important, what is is how the file is referenced in the .modinfo

I don't use modbuddy, but you should be able to tell it how to load that file with a right click I suppose.

You may want to start with a look at LeeS modding guide for the mods structure.
 
The path is not important, what is is how the file is referenced in the .modinfo

I don't use modbuddy, but you should be able to tell it how to load that file with a right click I suppose.

You may want to start with a look at LeeS modding guide for the mods structure.

Thanks Gedemon, LeeS' guide helped me realize that despite the file being correct, I didn't properly configure the top level mod "properties". I had to add that XML file as a FrontEnd action as you said.

Now to figure out how to get the field to trigger a LUA script!! Thanks again
 
Back
Top Bottom