HELP Missionaries buildable with Mosques mod issues

Icthiolavarunt

Chieftain
Joined
Mar 16, 2025
Messages
3
Hello, this is my first mod ever and I tried following the template for a simple gameplay mod that was uploaded in the tutorials section of this webpage. Im trying to add the ability to produce missionaries to Mosques (the Abbasid unique building, same base yields as a temple, same ability to found a religion, really stupid it doesn't allow you to produce missionaries).
I tried editing the XML files that the template mod had to affect the "unit" and "ConstructibleText" gamefiles while in the exploration age.
This is the .modinfo file:
XML:
<?xml version="1.0" encoding="utf-8"?>

<Mod id="solver-example" version="1"

    xmlns="ModInfo">

    <Properties>

        <Name>Missionaries in Mosques</Name>

        <Description>Version 3</Description>

        <Authors>Solver</Authors>

        <ShowInBrowser>1</ShowInBrowser>

        <Package>SolverMods</Package>

    </Properties>

    <Dependencies>

        <Mod id="age-exploration" title="LOC_MODULE_AGE_EXPLORATION_NAME"/>

    </Dependencies>

    <ActionCriteria>

        <Criteria id="always">

            <AlwaysMet/>

        </Criteria>

        <Criteria id="exploration-age-current">

            <AgeInUse>AGE_EXPLORATION</AgeInUse>

        </Criteria>

    </ActionCriteria>

    <ActionGroups>

        <ActionGroup id="solver-mod-actions" scope="game" criteria="always">

            <Actions>

                <UpdateDatabase>

                    <Item>data/units.xml</Item>

                </UpdateDatabase>

            </Actions>

        </ActionGroup>

        <ActionGroup id="solver-mod-text" scope="game" criteria="exploration-age-current">

            <Actions>

                <UpdateText>

                    <Item>text/en_us/ConstructibleText.xml</Item>

                </UpdateText>

            </Actions>

        </ActionGroup>

    </ActionGroups>

</Mod>
This is the package.json file:
XML:
{

  "name": "solver-example",

  "description": "Civilization 7 example mod",

  "author": "Solver",

  "version": "1.1.0",

  "license": "UNLICENSED",

  "private": true,

  "type": "module",

  "exports": {

    "./*": "./src/*"

  },

  "dependencies": {

    "modding-sdk": "workspace:*",

    "core": "workspace:*",

    "base-standard": "workspace:*",

    "age-antiquity": "workspace:*",

    "age-exploration": "workspace:*"

  }

}
they reference this data.xml file:
XML:
<Database>
        <Unit_RequiredConstructibles>
            <Row UnitType="UNIT_MISSIONARY" ConstructibleType="BUILDING_MOSQUE"/>
    </Unit_RequiredConstructibles>
</Database>
this ConstructibleText.xml file:
XML:
<Database>
<EnglishText>
<Replace Tag="LOC_BUILDING_MOSQUE_DESCRIPTION">
<Text>+4[icon:YIELD_HAPPINESS] Happiness. +1[icon:YIELD_CULTURE] Culture Adjacency for Happiness Buildings and Wonders. +1[icon:YIELD_HAPPINESS] Happiness Adjacency for Culture Buildings and Wonders. Unlocks the ability to found a Religion. ALLOWS THE CREATION OF MISSIONARIES IN THIS SETTLEMENT. Abbasid Unique Happiness Building. Ageless.</Text>
</Replace>
</EnglishText>
</Database>
and this other xml file for the mod description:
XML:
Database>
<EnglishText>
<Row Tag="LOC_MODULE_SOLVER_EXAMPLE">
<Text>Solver Example Mod</Text>
</Row>
</EnglishText>
</Database>

If anyone could help me out by pointing me at where the errors could be that would be massively appreciated. Im extremely new to the modding scene and even newer to XML and SQL. Ill leave the files if anyone want to try the mod out and see if they can fix it themselves. Thanks in advance.
 

Attachments

Last edited:
Since posting this I tweaked the data.xml file (where I think the issue is after checking the database logs) and saw that it prompted me to use either the <Row></Row> to add a row, <Delete></Delete> to delete a row or <Update></Update> to change a row, but by choosing the <Row></Row> it says it can't find the column that I want to add the row in, while it clearly is there with the same name in the database. By using <Update></Update> I need to then use Set to modify a row but I don't want to take away the ability of temples to produce missionaries, so i'm rather lost. Unless there are more options than those three.
 
I managed to fix the first error, i was duplicating the temple entry for the constructibility of missionaries and that was giving some major errors, but now I can't build missionaries, not if i have a mosque nor if i have a temple nor if I have both of them.
 
Back
Top Bottom