[GS] Need help with coding ,new Leader for existen civ but with different icon for civ

raubak

Chieftain
Joined
Aug 5, 2019
Messages
87
Trying to make new Leader for existen civ but with different icon for civ , as i see i need to rewrite civ with new codename, create new civ with same codes.... did thise code gonna work?
Code:
    <DuplicateCivilizations>
        <Row CivilizationType="CIVILIZATION_ENGLAND" OtherCivilizationType="CIVILIZATION_ENGLAND_RB"/>
    </DuplicateCivilizations>
or it may be easier way to have different icon for the same civ , and no duplicate cities like two Londons :shifty:
 
Last edited:
DuplicateCivilizations is probably meant to be used in the same way that DuplicateLeaders is used. DuplicateLeaders does not create a duplication of the leader, it signals the game which leaders are actually the "same", so LEADER_ELEANOR_ENGLAND and LEADER_ELEANOR_FRANCE are listed as duplicates of each other in table DuplicateLeaders so that when a player selects the "No Duplicate Leaders" option, both versions of Eleanor cannot be present in the same game. The table does the same thing for the new alternate versions of TeddyR and CatherineDeM.

Firaxis has never as yet used table DuplicateCivilizations so we can only surmise its intended usage based on the similar DuplicateLeaders table.
 
so it mean it not gonna work...without creating new table?
Code:
create table DuplicateCivilizations(
    CivilizationType varchar(100),
    OtherCivilizationType varchar(100) null
);
 
No. I mean the table already is part of the game but it does not create a duplicate of the original civilization you give for column 'CivilizationType'.

So this does not create a new duplicate civilization called "CIVILIZATION_ENGLAND_RB"
Code:
<DuplicateCivilizations>
        <Row CivilizationType="CIVILIZATION_ENGLAND" OtherCivilizationType="CIVILIZATION_ENGLAND_RB"/>
    </DuplicateCivilizations>
It tells the game that CIVILIZATION_ENGLAND and CIVILIZATION_ENGLAND_RB cannot both be part of the same game when a player selects the game set-up option for no duplicate leaders or civilizations.
 
DuplicateCivilizations is probably meant to be used in the same way that DuplicateLeaders is used. DuplicateLeaders does not create a duplication of the leader, it signals the game which leaders are actually the "same", so LEADER_ELEANOR_ENGLAND and LEADER_ELEANOR_FRANCE are listed as duplicates of each other in table DuplicateLeaders so that when a player selects the "No Duplicate Leaders" option, both versions of Eleanor cannot be present in the same game. The table does the same thing for the new alternate versions of TeddyR and CatherineDeM.

Firaxis has never as yet used table DuplicateCivilizations so we can only surmise its intended usage based on the similar DuplicateLeaders table.
Exactly, and I can confirm it works as I've used it in my scenario for RWW with YnAMP.
Code:
    <DuplicateCivilizations>
        <Row     CivilizationType="CIVILIZATION_CHINA"         OtherCivilizationType="CIVILIZATION_REPUBLIC_OF_CHINA"/>
        <Row     CivilizationType="CIVILIZATION_RUSSIA"         OtherCivilizationType="CIVILIZATION_JFD_USSR"/>
    </DuplicateCivilizations>
 
Gedemon
Exactly, and I can confirm it works as I've used it in my scenario for RWW with YnAMP.
Code:
    <DuplicateCivilizations>
        <Row     CivilizationType="CIVILIZATION_CHINA"         OtherCivilizationType="CIVILIZATION_REPUBLIC_OF_CHINA"/>
        <Row     CivilizationType="CIVILIZATION_RUSSIA"         OtherCivilizationType="CIVILIZATION_JFD_USSR"/>
    </DuplicateCivilizations>

i try it ,but it dosen't work for some reason :undecide:
dosen't show in menyu it is same civs ..
 

Attachments

hmmm, I don't remember coding something specific to handle that in YnAMP setup screen, but maybe I did ?

sorry if that's the case, it was a few months ago...
 
Back
Top Bottom