Resolved(?) modifying AdvancedStartCards

PoundedChicken

Warlord
Joined
Nov 4, 2016
Messages
126
Having a really frustrating time making what should be an easy change.

In explorate/age-transition.xml, we have the section/table "AdvancedStartCards".

There is an issue with CARD_AT_EXP_LABOR_SHORTAGE.
It is currently set to use the wrong description LOC_CARD_AT_MOD_CRISIS_MINISTER_SICK_DESCRIPTION.
It should be using LOC_CARD_AT_MOD_CRISIS_LABOR_SHORTAGE_DESCRIPTION.

So... it should be a simple update right via XML or SQL.

SQL:
UPDATE AdvancedStartAgeCards
SET Description = 'LOC_CARD_AT_MOD_CRISIS_LABOR_SHORTAGE_DESCRIPTION'
WHERE Name = 'LOC_CARD_AT_MOD_CRISIS_LABOR_SHORTAGE';

Or

XML:
<?xml version="1.0" encoding="utf-8"?>
<Database>
    <AdvancedStartCards>
        <Update>
            <Set Description="LOC_CARD_AT_MOD_CRISIS_LABOR_SHORTAGE_DESCRIPTION" />
            <Where Name="LOC_CARD_AT_MOD_CRISIS_LABOR_SHORTAGE" />
        </Update>
    </AdvancedStartCards>
</Database>

Note. I tried with WHERE clause based on CardID too, but no luck - in fact, the game started to fail to load and present an invalid config error if I tried starting a game more than once.

Either way, I add these to my modinfo ActionGroup with the rest of my fixes for Exploration age ie.
XML:
        <ActionGroup id="gameplay" scope="game" criteria="exploration-age-current">
            <Properties>
                <LoadOrder>300</LoadOrder>
            </Properties>
            <Actions>
                <ImportFiles>               
                </ImportFiles>
                <UpdateDatabase>
                    <Item>xml/casa.xml</Item>
                    <Item>xml/invis.xml</Item>
                    <Item>sql/labor.sql</Item>
                    <Item>xml/renaissance.xml</Item>
                </UpdateDatabase>
                <UpdateText>
                </UpdateText>
            </Actions>
        </ActionGroup>

I've also tried adding it to <UpdateText> group in case there's something funky about changing text references, but no luck either.

Gameplay debug database still continues to incorrectly show LOC_CARD_AT_MOD_CRISIS_MINISTER_SICK_DESCRIPTION for this row.
 
No idea how or why, but it just was not finding my file. I changed it to use simple XML delete, then reinsert the whole line and it finally worked... I'm lost, but it works now.
 
Back
Top Bottom