Problem with district bonus..

raubak

Chieftain
Joined
Aug 5, 2019
Messages
87
I replaced theatre district and trying to add extra Great Person Points after TECH_PRINTING ....is it possyble to districts ? here is code but game gives error
[2704870.427] [Localization]: StartupErrorMessages.xml
[2704870.427] [Localization]: Input XML does not contain database entry tags. GameData, GameInfo or Database
[2704882.674] [Localization]: Validating Foreign Key Constraints...
[2704882.675] [Localization]: Passed Validation.
[2704882.701] [Configuration]: Validating Foreign Key Constraints...
[2704882.702] [Configuration]: Passed Validation.
[2704887.380] [FullTextSearch]: Initializing FullTextSearch
[2704888.508] [Gameplay]: Validating Foreign Key Constraints...
[2704888.525] [Gameplay]: Passed Validation.
[2704890.050] [Configuration]: Validating Foreign Key Constraints...
[2704890.050] [Configuration]: Passed Validation.
[2704893.072] [HallofFame]: Database found. Checking versions...
[2704893.075] [HallofFame]: Database is up-to-date!
[2704920.008] [FullTextSearch]: FTS - Creating Context
[2704938.004] [Configuration]: Validating Foreign Key Constraints...
[2704938.005] [Configuration]: Passed Validation.
[2704941.899] [Gameplay] ERROR: no such table: District_BonusGreatPersonPoints
[2704941.899] [Gameplay]: In Query - insert into District_BonusGreatPersonPoints('DistrictType', 'GreatPersonClassType', 'PointsPerTurn', 'PrereqTech') values (?, ?, ?, ?);
[2704941.899] [Gameplay]: In XMLSerializer while updating table District_BonusGreatPersonPoints from file Luk_Buildings.xml.
[2704958.839] [Gameplay] ERROR: FOREIGN KEY constraint failed
[2704958.839] [Gameplay] ERROR: FOREIGN KEY constraint failed
[2704958.839] [Gameplay]: Validating Foreign Key Constraints...
[2704958.851] [Gameplay] ERROR: Invalid Reference on Districts.TraitType - "TRAIT_CIVILIZATION_DISTRICT_DRUKARNJA" does not exist in Traits
[2704958.879] [Gameplay]: Failed Validation.
[2704964.463] [Configuration]: Validating Foreign Key Constraints...
[2704964.463] [Configuration]: Passed Validation.
[2704965.881] [FullTextSearch]: FTS - Creating Context
[2704974.563] [FullTextSearch]: FullTextSearch - Shutting down

here is cod
Code:
<Types>
        <Row Type="DISTRICT_DRUKARNJA" Kind="KIND_DISTRICT"/>
    </Types>
    <DistrictReplaces>
        <Row CivUniqueDistrictType="DISTRICT_DRUKARNJA" ReplacesDistrictType="DISTRICT_THEATER"/>
    </DistrictReplaces>
    <Districts>
        <Row DistrictType="DISTRICT_DRUKARNJA" Name="LOC_DISTRICT_DRUKARNJA_NAME" Description="LOC_DISTRICT_DRUKARNJA_DESCRIPTION" PrereqCivic="CIVIC_DRAMA_POETRY" PlunderType="PLUNDER_CULTURE" PlunderAmount="25" AdvisorType="ADVISOR_CULTURE" Cost="54" CostProgressionModel="COST_PROGRESSION_NUM_UNDER_AVG_PLUS_TECH" CostProgressionParam1="40" Maintenance="1" RequiresPlacement="true" RequiresPopulation="true" Aqueduct="false" NoAdjacentCity="false" InternalOnly="false" ZOC="false" CaptureRemovesBuildings="false" CaptureRemovesCityDefenses="false" MilitaryDomain="NO_DOMAIN" Appeal="1" CityStrengthModifier="2" TraitType="TRAIT_CIVILIZATION_DISTRICT_DRUKARNJA"/>
    </Districts>
        <District_Adjacencies>
        <Row DistrictType="DISTRICT_DRUKARNJA" YieldChangeId="Wonder_Culture"/>
        <Row DistrictType="DISTRICT_DRUKARNJA" YieldChangeId="District_Culture_Standard"/>
        <Row DistrictType="DISTRICT_DRUKARNJA" YieldChangeId="District_Culture_City_Center"/>
    </District_Adjacencies>
    <District_GreatPersonPoints>
        <Row DistrictType="DISTRICT_DRUKARNJA" GreatPersonClassType="GREAT_PERSON_CLASS_WRITER" PointsPerTurn="1"/>
        <Row DistrictType="DISTRICT_DRUKARNJA" GreatPersonClassType="GREAT_PERSON_CLASS_ARTIST" PointsPerTurn="1"/>
        <Row DistrictType="DISTRICT_DRUKARNJA" GreatPersonClassType="GREAT_PERSON_CLASS_MUSICIAN" PointsPerTurn="1"/>
    </District_GreatPersonPoints>
    <District_TradeRouteYields>
        <Row DistrictType="DISTRICT_DRUKARNJA" YieldType="YIELD_FOOD" YieldChangeAsOrigin="0" YieldChangeAsDomesticDestination="1" YieldChangeAsInternationalDestination="0"/>
        <Row DistrictType="DISTRICT_DRUKARNJA" YieldType="YIELD_CULTURE" YieldChangeAsOrigin="0" YieldChangeAsDomesticDestination="0" YieldChangeAsInternationalDestination="1"/>
    </District_TradeRouteYields>
    <District_CitizenYieldChanges>
        <Row DistrictType="DISTRICT_DRUKARNJA" YieldType="YIELD_CULTURE" YieldChange="2"/>
    </District_CitizenYieldChanges>
    <District_BonusGreatPersonPoints>
        <Row DistrictType="DISTRICT_DRUKARNJA" GreatPersonClassType="GREAT_PERSON_CLASS_WRITER" PointsPerTurn="1" PrereqTech="TECH_PRINTING"/>
    </District_BonusGreatPersonPoints>
    <Types>
        <Row Type="TRAIT_CIVILIZATION_DISTRICT_DRUKARNJA" Kind="KIND_TRAIT"/>
    </Types>
    <Traits>
        <Row TraitType="TRAIT_CIVILIZATION_DISTRICT_DRUKARNJA" Name="LOC_TRAIT_CIVILIZATION_DISTRICT_DRUKARNJA_NAME" Description="LOC_TRAIT_DISTRICT_CIVILIZATION_DRUKARNJA_DESCRIPTION"/>
    </Traits>
    <CivilizationTraits>
        <Row CivilizationType="CIVILIZATION_RB_RB" TraitType="TRAIT_CIVILIZATION_DISTRICT_DRUKARNJA"/>
    </CivilizationTraits>
 

Attachments

SOLVED!
just forgot to add modifiers...:D
but i have a question is a district can have a GREAT_WORK_SLOT_WRITING ? or i need to make modifiers if it possible?
 
Last edited:
Buildings have great work slots. Districts do not.

Also your database.log is showing an attempt to use an invalid table-name. Right now I am in the middle of swapping over to a new computer and I don't have Civ6 up and running yet so I cannot check whether the invalid table is a RaF or GS thing, or whether you were attempting to create a game-table out of nothing. You can only use game-tables that have been defined by Firaxis as part of the game. You cannot invent new ones. Even a one-character typo in the name of a table will be seen as an invalid table-name, and the remainder of your XML or SQL file will be ignored by the game.

Spoiler inventing game-tables :
Yes, I know we can add new game-tables by defining the new table before attempting to add data to it, but that is an advanced modding sort of thing to do, and the new table won't be used by the game anyway because the game's DLL has no understanding of any new game-tables we add and make valid in the database

So we as more knowledgeable modders shouldn't complicate the issue on this thread with discussions about how it is possible to add new tables to the game database
 
Spoiler inventing game-tables :
Yes, I know we can add new game-tables by defining the new table before attempting to add data to it, but that is an advanced modding sort of thing to do, and the new table won't be used by the game anyway because the game's DLL has no understanding of any new game-tables we add and make valid in the database

So we as more knowledgeable modders shouldn't complicate the issue on this thread with discussions about how it is possible to add new tables to the game database
You mean - District_BonusGreatPersonPoints yes, it’s wrong, I didn’t know how the game works ...
But also can i somehow make an extra slot in the amphitheater, if it was built in unique District?
 
Should be possible but might be a complicated set of requirements to get it to work.

There's a modifier for the Palace as I recall that makes ?? leader have more slots than usual in their palace, or perhaps it was Victoria in her Museums. So the basic effect should work. You may just have to attach the modifier directly to the leader rather than to the building, so all their versions of Building_X get the extra slots: so long as they can only construct said building in their unique district it shouldn't be necessary to actually have the modifier check whether the building is in the correct unique district.
 
Back
Top Bottom