I've been beating my head at this for a couple days now, and I have no idea what I'm doing wrong. The idea is, I want to make a custom RuleSet that's pretty much identical in every way to the R&F ruleset, except that it only allows my mod's leaders. Here's my file so far:
And in my modinfo:
And each of my leaders' Players and PlayerInfo tables have entries with the domain <Domain>SuperCivsE1_Players</Domain>
For some reason I can't for the life of me figure out, nothing works. The code above does nothing; no new rulesets appear in the dropdown, no errors are thrown into any of the logs, nada. I've tried using both GameInfo and GameData tags. I've tried literally copy/pasting working code from other mods, and that also doesn't work, which leads me to believe there's a problem outside of the xml file I'm working with, but try as I might, I can't find anything else in other mods that have working custom rulesets. Other mods don't require R&F like mine does, but I've tried removing the GameCore line, to no avail, and I've copied their code into my file wholesale, again to no avail, but their mods, once activated WITH R&F active still add their rulesets.
I'm so friggin lost here. There's probably one little thing I missed, or one little thing I didn't know I had to do. If anyone knows, to add a custom ruleset from scratch, what all do you need to do??
Code:
<GameInfo>
<RuleSets>
<Row>
<RuleSetType>RULESET_LUEI_SUPER_CIVS_EXPANSION_1</RuleSetType>
<Name>LOC_LUEI_SUPER_CIVS_EXPANSION_1_NAME</Name>
<Description>LOC_LUEI_SUPER_CIVS_EXPANSION_1_DESCRIPTION</Description>
<GameCore>Expansion1</GameCore>
<SupportsMultiPlayer>1</SupportsMultiPlayer>
</Row>
</RuleSets>
<RulesetDomainOverrides>
<Row Ruleset="RULESET_LUEI_SUPER_CIVS_EXPANSION_1" ParameterId="Map" Domain="Maps:Expansion1Maps" />
<Row Ruleset="RULESET_LUEI_SUPER_CIVS_EXPANSION_1" ParameterId="PlayerLeader" Domain="SuperCivsE1_Players"/>
</RulesetDomainOverrides>
<Parameters>
<Row Key1="Ruleset" Key2="RULESET_LUEI_SUPER_CIVS_EXPANSION_1" ParameterId="NoGoodyHuts" Name="LOC_GAME_NO_GOODY_HUTS" Description="" Domain="bool" DefaultValue="0" ConfigurationGroup="Game" ConfigurationId="GAME_NO_GOODY_HUTS" GroupId="AdvancedOptions" SortIndex="2010"/>
<Row Key1="Ruleset" Key2="RULESET_LUEI_SUPER_CIVS_EXPANSION_1" ParameterId="NoBarbarians" Name="LOC_GAME_NO_BARBARIANS" Description="" Domain="bool" DefaultValue="0" ConfigurationGroup="Game" ConfigurationId="GAME_NO_BARBARIANS" GroupId="AdvancedOptions" SortIndex="2010"/>
<Row Key1="Ruleset" Key2="RULESET_LUEI_SUPER_CIVS_EXPANSION_1" ParameterId="AlliesShareVisibility" Name="LOC_GAME_ALLIES_SHARE_VISIBILITY" Description="LOC_GAME_ALLIES_SHARE_VISIBILITY_DESCRIPTION" Domain="bool" DefaultValue="1" ConfigurationGroup="Game" ConfigurationId="GAME_ALLIES_SHARE_VISIBILITY" GroupId="AdvancedOptions" SortIndex="2010"/>
</Parameters>
<ConfigurationUpdates>
<Row SourceGroup="Game" SourceId="RULESET" SourceValue="RULESET_LUEI_SUPER_CIVS_EXPANSION_1" TargetGroup="Game" TargetId="GAME_START_ERA" TargetValue="ERA_ANCIENT" Hash="1" />
<Row SourceGroup="Game" SourceId="RULESET" SourceValue="RULESET_LUEI_SUPER_CIVS_EXPANSION_1" TargetGroup="Game" TargetId="GAME_SPEED_TYPE" TargetValue="GAMESPEED_STANDARD" Hash="1" />
<Row SourceGroup="Game" SourceId="RULESET" SourceValue="RULESET_LUEI_SUPER_CIVS_EXPANSION_1" TargetGroup="Game" TargetId="GAME_TURN_LIMIT" TargetValue="TURNLIMIT_GAMESPEED" Hash="1" />
</ConfigurationUpdates>
<DomainValues>
<Row Domain="SuperCivsE1_Players" Value="RANDOM" Name="LOC_RANDOM_LEADER" Description="LOC_RANDOM_LEADER" SortIndex="1"/>
</DomainValues>
</GameInfo>
And in my modinfo:
Code:
<FrontEndActions>
<UpdateDatabase id="UpdateDatabase">
(snip)
<File priority="-5">Rulesets.xml</File>
</UpdateDatabase>
<UpdateText id="UpdateText">
(snip)
<File priority="-6">Rulesets_Text.xml</File>
</UpdateText>
(snip)
</FrontEndActions>
And each of my leaders' Players and PlayerInfo tables have entries with the domain <Domain>SuperCivsE1_Players</Domain>
For some reason I can't for the life of me figure out, nothing works. The code above does nothing; no new rulesets appear in the dropdown, no errors are thrown into any of the logs, nada. I've tried using both GameInfo and GameData tags. I've tried literally copy/pasting working code from other mods, and that also doesn't work, which leads me to believe there's a problem outside of the xml file I'm working with, but try as I might, I can't find anything else in other mods that have working custom rulesets. Other mods don't require R&F like mine does, but I've tried removing the GameCore line, to no avail, and I've copied their code into my file wholesale, again to no avail, but their mods, once activated WITH R&F active still add their rulesets.
I'm so friggin lost here. There's probably one little thing I missed, or one little thing I didn't know I had to do. If anyone knows, to add a custom ruleset from scratch, what all do you need to do??
Last edited: