[R&F] Anyone know how to add your custom civilization to Rise and Fall using Josh Atkins' template?

Yazuki

Chieftain
Joined
Feb 18, 2018
Messages
5
Hi this is my first mod and I'm not sure how to edit the mod in such a way that it works in the new expansion, Josh Atkins' template using a .sql file instead of a xml for the configuration.

If anyone knows how to fix this it is greatly appcriated.
 
yes. thats easy. you just have to copy your <Players> and <PlayerItems> Rows in the Tags and change "<Domain>StandardPlayers</Domain>" to "<Domain>Players:Expansion1_Players</Domain>"
 
So this is the .sql format that the template uses, I tried adding "Domain," and for the value "Players:Expansion1_Players" to both but it rendered the mod unusable even on standard. Any suggestions?

--==========================================================================================================================
-- CONFIG DATA
--==========================================================================================================================
-- Players
-------------------------------------
INSERT INTO Players
( CivilizationType, Portrait, PortraitBackground, LeaderType, LeaderName, LeaderIcon, LeaderAbilityName, LeaderAbilityDescription, LeaderAbilityIcon, CivilizationName, CivilizationIcon, CivilizationAbilityName, CivilizationAbilityDescription, CivilizationAbilityIcon)
VALUES ('CIVILIZATION_JRA_CIV_CUSTOM', 'LEADER_LEADER_CUSTOM_NEUTRAL.dds', 'LEADER_JOHN_CURTIN_BACKGROUND', 'LEADER_JRA_LEADER_CUSTOM', 'LOC_LEADER_JRA_LEADER_CUSTOM_NAME', 'ICON_LEADER_JRA_LEADER_CUSTOM', 'LOC_TRAIT_LEADER_JRA_LEADER_CUSTOM_ECO_NAME', 'LOC_TRAIT_LEADER_JRA_LEADER_CUSTOM_ECO_DESCRIPTION', 'ICON_LEADER_JRA_LEADER_CUSTOM', 'LOC_CIVILIZATION_JRA_CIV_CUSTOM_NAME', 'ICON_CIVILIZATION_JRA_CIV_CUSTOM', 'LOC_TRAIT_CIVILIZATION_JRA_GRIND_NAME', 'LOC_TRAIT_CIVILIZATION_JRA_GRIND_DESCRIPTION', 'ICON_CIVILIZATION_JRA_CIV_CUSTOM');








-------------------------------------
-- PlayerItems
-------------------------------------
INSERT INTO PlayerItems
( CivilizationType, LeaderType, Type, Icon, Name, Description, SortIndex)
VALUES ('CIVILIZATION_JRA_CIV_CUSTOM', 'LEADER_JRA_LEADER_CUSTOM', 'BUILDING_JRA_CUSTOM', 'ICON_BUILDING_JRA_CUSTOM', 'LOC_BUILDING_JRA_CUSTOM_NAME', 'LOC_BUILDING_JRA_CUSTOM_DESCRIPTION',
 
i'm not using sql. but there is the "Domain" missing in both Players and PlayerItems...

Code:
<?xml version="1.0" encoding="utf-8"?>
<GameData>
    <Players>
        <Row>
            <Domain>StandardPlayers</Domain>
            <CivilizationType>CIVILIZATION</CivilizationType>
            <LeaderType>LEADER</LeaderType>
            <CivilizationName>LOC_CIVILIZATION_NAME</CivilizationName>
            <CivilizationIcon>ICON_CIVILIZATION</CivilizationIcon>
            <LeaderName>LOC_LEADER_NAME</LeaderName>
            <LeaderIcon>ICON_LEADER</LeaderIcon>
            <CivilizationAbilityName>LOC_TRAIT_CIVILIZATION_NAME</CivilizationAbilityName>
            <CivilizationAbilityDescription>LOC_TRAIT_CIVILIZATION_DESCRIPTION</CivilizationAbilityDescription>
            <CivilizationAbilityIcon>ICON_CIVILIZATION</CivilizationAbilityIcon>
            <LeaderAbilityName>LOC_TRAIT_LEADER_TO_WORLDS_END_NAME</LeaderAbilityName>
            <LeaderAbilityDescription>LOC_TRAIT_LEADER_TO_WORLDS_END_DESCRIPTION</LeaderAbilityDescription>
            <LeaderAbilityIcon>ICON_LEADER</LeaderAbilityIcon>
            <Portrait>LEADER_NEUTRAL.dds</Portrait>
            <PortraitBackground>LEADER_TOMYRIS_BACKGROUND</PortraitBackground>
        </Row>
        <Row>
            <!-- Expansion 1 Support -->
            <Domain>Players:Expansion1_Players</Domain>
            <CivilizationType>CIVILIZATION</CivilizationType>
            <LeaderType>LEADER</LeaderType>
            <CivilizationName>LOC_CIVILIZATION_NAME</CivilizationName>
            <CivilizationIcon>ICON_CIVILIZATION</CivilizationIcon>
            <LeaderName>LOC_LEADER_NAME</LeaderName>
            <LeaderIcon>ICON_LEADER</LeaderIcon>
            <CivilizationAbilityName>LOC_TRAIT_CIVILIZATION_NAME</CivilizationAbilityName>
            <CivilizationAbilityDescription>LOC_TRAIT_CIVILIZATION_DESCRIPTION</CivilizationAbilityDescription>
            <CivilizationAbilityIcon>ICON_CIVILIZATION</CivilizationAbilityIcon>
            <LeaderAbilityName>LOC_TRAIT_LEADER_TO_WORLDS_END_NAME</LeaderAbilityName>
            <LeaderAbilityDescription>LOC_TRAIT_LEADER_TO_WORLDS_END_DESCRIPTION</LeaderAbilityDescription>
            <LeaderAbilityIcon>ICON_LEADER</LeaderAbilityIcon>
            <Portrait>LEADER_NEUTRAL.dds</Portrait>
            <PortraitBackground>LEADER_TOMYRIS_BACKGROUND</PortraitBackground>
        </Row>
    </Players>
    <PlayerItems>
        <Row>
            <Domain>StandardPlayers</Domain>
            <CivilizationType>CIVILIZATION</CivilizationType>
            <LeaderType>LEADER</LeaderType>
            <Type>UNIT_GREEK_HOPLITE</Type>
            <Icon>ICON_UNIT_GREEK_HOPLITE</Icon>
            <Name>LOC_UNIT_GREEK_HOPLITE_NAME</Name>
            <Description>LOC_UNIT_GREEK_HOPLITE_DESCRIPTION</Description>
            <SortIndex>20</SortIndex>
        </Row>
        <Row>
            <Domain>StandardPlayers</Domain>
            <CivilizationType>CIVILIZATION</CivilizationType>
            <LeaderType>LEADER</LeaderType>
            <Type>DISTRICT_HANSA</Type>
            <Icon>ICON_DISTRICT_HANSA</Icon>
            <Name>LOC_DISTRICT_HANSA_NAME</Name>
            <Description>LOC_DISTRICT_HANSA_DESCRIPTION</Description>
            <SortIndex>10</SortIndex>
        </Row>

        <!-- Expansion 1 Support -->
        <Row>
            <Domain>Players:Expansion1_Players</Domain>
            <CivilizationType>CIVILIZATION</CivilizationType>
            <LeaderType>LEADER</LeaderType>
            <Type>UNIT_GREEK_HOPLITE</Type>
            <Icon>ICON_UNIT_GREEK_HOPLITE</Icon>
            <Name>LOC_UNIT_GREEK_HOPLITE_NAME</Name>
            <Description>LOC_UNIT_GREEK_HOPLITE_DESCRIPTION</Description>
            <SortIndex>20</SortIndex>
        </Row>
        <Row>
            <Domain>Players:Expansion1_Players</Domain>
            <CivilizationType>CIVILIZATION</CivilizationType>
            <LeaderType>LEADER</LeaderType>
            <Type>DISTRICT_HANSA</Type>
            <Icon>ICON_DISTRICT_HANSA</Icon>
            <Name>LOC_DISTRICT_HANSA_NAME</Name>
            <Description>LOC_DISTRICT_HANSA_DESCRIPTION</Description>
            <SortIndex>10</SortIndex>
        </Row>
    </PlayerItems>
</GameData>

this is my code. i just replaced CIVILIZATION and LEADER with Placeholders... you have just to take a look to <Domain>
 
i'm not using sql. but there is the "Domain" missing in both Players and PlayerItems...

Code:
<?xml version="1.0" encoding="utf-8"?>
<GameData>
    <Players>
        <Row>
            <Domain>StandardPlayers</Domain>
            <CivilizationType>CIVILIZATION</CivilizationType>
            <LeaderType>LEADER</LeaderType>
            <CivilizationName>LOC_CIVILIZATION_NAME</CivilizationName>
            <CivilizationIcon>ICON_CIVILIZATION</CivilizationIcon>
            <LeaderName>LOC_LEADER_NAME</LeaderName>
            <LeaderIcon>ICON_LEADER</LeaderIcon>
            <CivilizationAbilityName>LOC_TRAIT_CIVILIZATION_NAME</CivilizationAbilityName>
            <CivilizationAbilityDescription>LOC_TRAIT_CIVILIZATION_DESCRIPTION</CivilizationAbilityDescription>
            <CivilizationAbilityIcon>ICON_CIVILIZATION</CivilizationAbilityIcon>
            <LeaderAbilityName>LOC_TRAIT_LEADER_TO_WORLDS_END_NAME</LeaderAbilityName>
            <LeaderAbilityDescription>LOC_TRAIT_LEADER_TO_WORLDS_END_DESCRIPTION</LeaderAbilityDescription>
            <LeaderAbilityIcon>ICON_LEADER</LeaderAbilityIcon>
            <Portrait>LEADER_NEUTRAL.dds</Portrait>
            <PortraitBackground>LEADER_TOMYRIS_BACKGROUND</PortraitBackground>
        </Row>
        <Row>
            <!-- Expansion 1 Support -->
            <Domain>Players:Expansion1_Players</Domain>
            <CivilizationType>CIVILIZATION</CivilizationType>
            <LeaderType>LEADER</LeaderType>
            <CivilizationName>LOC_CIVILIZATION_NAME</CivilizationName>
            <CivilizationIcon>ICON_CIVILIZATION</CivilizationIcon>
            <LeaderName>LOC_LEADER_NAME</LeaderName>
            <LeaderIcon>ICON_LEADER</LeaderIcon>
            <CivilizationAbilityName>LOC_TRAIT_CIVILIZATION_NAME</CivilizationAbilityName>
            <CivilizationAbilityDescription>LOC_TRAIT_CIVILIZATION_DESCRIPTION</CivilizationAbilityDescription>
            <CivilizationAbilityIcon>ICON_CIVILIZATION</CivilizationAbilityIcon>
            <LeaderAbilityName>LOC_TRAIT_LEADER_TO_WORLDS_END_NAME</LeaderAbilityName>
            <LeaderAbilityDescription>LOC_TRAIT_LEADER_TO_WORLDS_END_DESCRIPTION</LeaderAbilityDescription>
            <LeaderAbilityIcon>ICON_LEADER</LeaderAbilityIcon>
            <Portrait>LEADER_NEUTRAL.dds</Portrait>
            <PortraitBackground>LEADER_TOMYRIS_BACKGROUND</PortraitBackground>
        </Row>
    </Players>
    <PlayerItems>
        <Row>
            <Domain>StandardPlayers</Domain>
            <CivilizationType>CIVILIZATION</CivilizationType>
            <LeaderType>LEADER</LeaderType>
            <Type>UNIT_GREEK_HOPLITE</Type>
            <Icon>ICON_UNIT_GREEK_HOPLITE</Icon>
            <Name>LOC_UNIT_GREEK_HOPLITE_NAME</Name>
            <Description>LOC_UNIT_GREEK_HOPLITE_DESCRIPTION</Description>
            <SortIndex>20</SortIndex>
        </Row>
        <Row>
            <Domain>StandardPlayers</Domain>
            <CivilizationType>CIVILIZATION</CivilizationType>
            <LeaderType>LEADER</LeaderType>
            <Type>DISTRICT_HANSA</Type>
            <Icon>ICON_DISTRICT_HANSA</Icon>
            <Name>LOC_DISTRICT_HANSA_NAME</Name>
            <Description>LOC_DISTRICT_HANSA_DESCRIPTION</Description>
            <SortIndex>10</SortIndex>
        </Row>

        <!-- Expansion 1 Support -->
        <Row>
            <Domain>Players:Expansion1_Players</Domain>
            <CivilizationType>CIVILIZATION</CivilizationType>
            <LeaderType>LEADER</LeaderType>
            <Type>UNIT_GREEK_HOPLITE</Type>
            <Icon>ICON_UNIT_GREEK_HOPLITE</Icon>
            <Name>LOC_UNIT_GREEK_HOPLITE_NAME</Name>
            <Description>LOC_UNIT_GREEK_HOPLITE_DESCRIPTION</Description>
            <SortIndex>20</SortIndex>
        </Row>
        <Row>
            <Domain>Players:Expansion1_Players</Domain>
            <CivilizationType>CIVILIZATION</CivilizationType>
            <LeaderType>LEADER</LeaderType>
            <Type>DISTRICT_HANSA</Type>
            <Icon>ICON_DISTRICT_HANSA</Icon>
            <Name>LOC_DISTRICT_HANSA_NAME</Name>
            <Description>LOC_DISTRICT_HANSA_DESCRIPTION</Description>
            <SortIndex>10</SortIndex>
        </Row>
    </PlayerItems>
</GameData>

this is my code. i just replaced CIVILIZATION and LEADER with Placeholders... you have just to take a look to <Domain>


Thank you so much KingPhantom! I just realised my mistake I forgot to put a comma for one of the values.
 
Hi everyone I've just Modified Josh Atkin's Template so all you need to do for your mod that uses the .sql file to work for the new expansion is to replace everything inside with this line of code

Code:
--==========================================================================================================================
-- CONFIG DATA
--==========================================================================================================================
-- Players
-------------------------------------   
INSERT INTO Players   
        ( Domain,                    CivilizationType,                    Portrait,                                PortraitBackground,                            LeaderType,                        LeaderName,                                    LeaderIcon,                                LeaderAbilityName,                                LeaderAbilityDescription,                                    LeaderAbilityIcon,                        CivilizationName,                            CivilizationIcon,                        CivilizationAbilityName,                        CivilizationAbilityDescription,                                CivilizationAbilityIcon)
VALUES    ('Players:Expansion1_Players','CIVILIZATION_JRA_CIV_CUSTOM',            'LEADER_LEADER_CUSTOM_NEUTRAL.dds',        'LEADER_JOHN_CURTIN_BACKGROUND',        'LEADER_JRA_LEADER_CUSTOM',        'LOC_LEADER_JRA_LEADER_CUSTOM_NAME',        'ICON_LEADER_JRA_LEADER_CUSTOM',        'LOC_TRAIT_LEADER_JRA_LEADER_CUSTOM_ECO_NAME',    'LOC_TRAIT_LEADER_JRA_LEADER_CUSTOM_ECO_DESCRIPTION',        'ICON_LEADER_JRA_LEADER_CUSTOM',        'LOC_CIVILIZATION_JRA_CIV_CUSTOM_NAME',        'ICON_CIVILIZATION_JRA_CIV_CUSTOM',        'LOC_TRAIT_CIVILIZATION_JRA_GRIND_NAME',        'LOC_TRAIT_CIVILIZATION_JRA_GRIND_DESCRIPTION',                'ICON_CIVILIZATION_JRA_CIV_CUSTOM');
-------------------------------------
-- PlayerItems
-------------------------------------   
INSERT INTO PlayerItems   
        (  Domain,                    CivilizationType,                    LeaderType,                    Type,                            Icon,                                Name,                                          Description,                                    SortIndex)
VALUES    ('Players:Expansion1_Players','CIVILIZATION_JRA_CIV_CUSTOM',        'LEADER_JRA_LEADER_CUSTOM',    'BUILDING_JRA_CUSTOM',                'ICON_BUILDING_JRA_CUSTOM',        'LOC_BUILDING_JRA_CUSTOM_NAME',            'LOC_BUILDING_JRA_CUSTOM_DESCRIPTION',            30);
-------------------------------------
-- MapSupportedValues
-------------------------------------   
--INSERT INTO MapSupportedValues   
--        (Value,                        Domain, Map)
--SELECT    'LEADER_JRA_LEADER_CUSTOM',        Domain, Map
--FROM MapSupportedValues WHERE Value= 'LEADER_SEONDEOK';
--==========================================================================================================================
--==========================================================================================================================

Enjoy!
 
hello,

i have the same problem, i made a civ from the same template but for some reason it doesnt appear, so i saw this and did exactly as you said, i literally copy pasted everything but i still didnt get anything.. is it because i have to write another domain?? im currently on the rise and fall dlc, so do i have to change it to expansion2 or something?
 
Is it working in standard? If so you have to add players and playeritems expansion1 (= Rise and Fall) domain. Copy and paste standard insert and change domain


unfortunatly i already did that, im beginning to think i missed something..i am not a modder, this is literally the first ever time i do modding...im starting to think that the problem might be because i dont have a .blp file.. i did all my modding using notepadd++ and it is so hard finding tutorials without modbuddy..

i attached my mod here incase u wanted to take a look
 

Attachments

  • IRAQ CIVILIZATION.rar
    1.7 MB · Views: 94
Last edited:
I have a tutorial that you don't need modbuddy but is based on XML, because I think XML is better for beginners: https://forums.civfanatics.com/threads/civ-6-modding-tools-basics.634429/#post-15173203

Anyway, I will try a look at your code later if I can, but I think you could start again with my tutorial.

EDITED: Cant extract your .RAR file


ofcourse, i would be more than happy to learn..

do you want me to convert it to .ZIP or should i upload it to you as folders?
 
Hello, I am having a similar problem to the one posted here.

My civ works fine in standard rules. However, when I try to make it compatible with Rise and Fall or Gathering Storm, the game crashes (sometimes during the loading, sometimes right when the game starts).

This is what my XML looks like :
Code:
<?xml version="1.0" encoding="utf-8"?>
<GameData>
    <Players>
        <Row>
            <Domain>StandardPlayers</Domain>
            <CivilizationType>CIVILIZATION_DENE</CivilizationType>
            <LeaderType>LEADER_YAMORIA</LeaderType>
            <CivilizationName>LOC_CIVILIZATION_DENE_NAME</CivilizationName>
            <CivilizationIcon>ICON_CIVILIZATION_DENE</CivilizationIcon>
            <LeaderName>LOC_LEADER_YAMORIA_NAME</LeaderName>
            <LeaderIcon>ICON_LEADER_YAMORIA</LeaderIcon>
            <CivilizationAbilityName>LOC_TRAIT_CIVILIZATION_DENE_NAME</CivilizationAbilityName>
            <CivilizationAbilityDescription>LOC_TRAIT_CIVILIZATION_DENE_DESCRIPTION</CivilizationAbilityDescription>
            <CivilizationAbilityIcon>ICON_CIVILIZATION_DENE</CivilizationAbilityIcon>
            <LeaderAbilityName>LOC_TRAIT_LEADER_YAMORIA_NAME</LeaderAbilityName>
            <LeaderAbilityDescription>LOC_TRAIT_LEADER_YAMORIA_DESCRIPTION</LeaderAbilityDescription>
            <LeaderAbilityIcon>ICON_LEADER_YAMORIA</LeaderAbilityIcon>
            <Portrait>LEADER_YAMORIA_NEUTRAL</Portrait>
            <PortraitBackground>LEADER_TOMYRIS_BACKGROUND</PortraitBackground>
        </Row>
        <Row>
            <Domain>Players:Expansion1_Players</Domain>
            <CivilizationType>CIVILIZATION_DENE</CivilizationType>
            <LeaderType>LEADER_YAMORIA</LeaderType>
            <CivilizationName>LOC_CIVILIZATION_DENE_NAME</CivilizationName>
            <CivilizationIcon>ICON_CIVILIZATION_DENE</CivilizationIcon>
            <LeaderName>LOC_LEADER_YAMORIA_NAME</LeaderName>
            <LeaderIcon>ICON_LEADER_YAMORIA</LeaderIcon>
            <CivilizationAbilityName>LOC_TRAIT_CIVILIZATION_DENE_NAME</CivilizationAbilityName>
            <CivilizationAbilityDescription>LOC_TRAIT_CIVILIZATION_DENE_DESCRIPTION</CivilizationAbilityDescription>
            <CivilizationAbilityIcon>ICON_CIVILIZATION_DENE</CivilizationAbilityIcon>
            <LeaderAbilityName>LOC_TRAIT_LEADER_YAMORIA_NAME</LeaderAbilityName>
            <LeaderAbilityDescription>LOC_TRAIT_LEADER_YAMORIA_DESCRIPTION</LeaderAbilityDescription>
            <LeaderAbilityIcon>ICON_LEADER_YAMORIA</LeaderAbilityIcon>
            <Portrait>LEADER_YAMORIA_NEUTRAL</Portrait>
            <PortraitBackground>LEADER_TOMYRIS_BACKGROUND</PortraitBackground>
        </Row>
    </Players>
    <PlayerItems>
        <Row>
            <Domain>StandardPlayers</Domain>
            <CivilizationType>CIVILIZATION_DENE</CivilizationType>
            <LeaderType>LEADER_YAMORIA</LeaderType>
            <Type>UNIT_NOMADICFAMILY</Type>
            <Name>LOC_UNIT_NOMADICFAMILY_NAME</Name>
            <Description>LOC_UNIT_NOMADICFAMILY_DESCRIPTION</Description>
            <Icon>ICON_UNIT_NOMADICFAMILY</Icon>
            <SortIndex>10</SortIndex>
        </Row>
        <Row>
            <Domain>StandardPlayers</Domain>
            <CivilizationType>CIVILIZATION_DENE</CivilizationType>
            <LeaderType>LEADER_YAMORIA</LeaderType>
            <Type>DISTRICT_DENE_SPORT_CIRCLE</Type>
            <Name>LOC_DISTRICT_DENE_SPORT_CIRCLE_NAME</Name>
            <Description>LOC_DISTRICT_DENE_SPORT_CIRCLE_DESCRIPTION</Description>
            <Icon>ICON_DISTRICT_DENE_SPORT_CIRCLE</Icon>
            <SortIndex>20</SortIndex>
        </Row>
        <Row>
            <Domain>Players:Expansion1_Players</Domain>
            <CivilizationType>CIVILIZATION_DENE</CivilizationType>
            <LeaderType>LEADER_YAMORIA</LeaderType>
            <Type>UNIT_NOMADICFAMILY</Type>
            <Name>LOC_UNIT_NOMADICFAMILY_NAME</Name>
            <Description>LOC_UNIT_NOMADICFAMILY_DESCRIPTION</Description>
            <Icon>ICON_UNIT_NOMADICFAMILY</Icon>
            <SortIndex>10</SortIndex>
        </Row>
        <Row>
            <Domain>Players:Expansion1_Players</Domain>
            <CivilizationType>CIVILIZATION_DENE</CivilizationType>
            <LeaderType>LEADER_YAMORIA</LeaderType>
            <Type>DISTRICT_DENE_SPORT_CIRCLE</Type>
            <Name>LOC_DISTRICT_DENE_SPORT_CIRCLE_NAME</Name>
            <Description>LOC_DISTRICT_DENE_SPORT_CIRCLE_DESCRIPTION</Description>
            <Icon>ICON_DISTRICT_DENE_SPORT_CIRCLE</Icon>
            <SortIndex>20</SortIndex>
        </Row>
    </PlayerItems>
</GameData>

When it crashes, I get a "Firaxis incident report". No SQL error in database.log. Anyone has any idea?
 
I don't see any compatibility setting in the project properties :(

In Modinfo, I do see a "Compatible Versions" section. Under it, there is "Gathering Storms" and "Rise and Fall", already checked (attached file)

I also tried adding dependencies in Modinfo's "associations" section, but that didn't seem to help.
 

Attachments

  • Yamoria - Civilization VI ModBuddy.jpg
    Yamoria - Civilization VI ModBuddy.jpg
    23.9 KB · Views: 100
Top Bottom