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:
This is the package.json file:
they reference this data.xml file:
this ConstructibleText.xml file:
and this other xml file for the mod description:
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.
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>
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:*"
}
}
XML:
<Database>
<Unit_RequiredConstructibles>
<Row UnitType="UNIT_MISSIONARY" ConstructibleType="BUILDING_MOSQUE"/>
</Unit_RequiredConstructibles>
</Database>
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>
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: