UBOAT EFFECT-want it to be available to all Subs-HELP please! :(

makrisgialos

GREEK REBEL
Joined
Jan 20, 2007
Messages
257
Location
GREECE
Dear all,

There is a problem i have while trying to spread the effect of German UBOAT to all submarines.
This UBOAT has a unique effect to fight with increase strength while it is in an Ocean spot.
How can i add this ability to submarine as well?
Cause i consider submarines are very weak.
I tried a lot of edits but cause of family, children and work honestly dont have time to read all mods here. I m 42 years old, player of Civilization since 1992.
If someone can help what to edit and how on XML i would be greatfull.

Thank you and all the best to all.
 
Have you tried this? https://forums.civfanatics.com/threads/civ-6-modding-tools-basics.634429/

For above manual, If you only need units, you only need units data and modinfo files.

Anyway, If you want to update you have to use update clause in xml, instead of the usual row (wich means new row)


Bon Dia!

Thank you for your answer. As i have explained above i cant read with hours. The thing i m asking is a simple editing of XML for that specific unit. For an advanced modder it aint so hard but for me is.
I have find this xml file, its "UNITABILITIES". I m trying to get the sub there but game crashes. Any suggestions there?
Gracias!
 
Thank for your help. But i believe it wont be easy unless if i miss something important.
Now the file is called UNIT ABILITIES.XML
And the UBOAT is unique for Germany. It has +1 sight range (i dont care about that) and when it fights in ocean tiles it has 10 more strength.
I want this ability to be on submarine as well: Fighting in ocean tiles , subs will have advantage. this is the row i have found:



<Kinds>
<Row Kind="KIND_ABILITY"/>
</Kinds>


<Row Type="ABILITY_UBOAT" Kind="KIND_ABILITY"/>

<TypeTags>
<Row Type="ABILITY_UBOAT" Tag="CLASS_UBOAT"/>

ShowFloatTextWhenEarned="true"/>
<Row UnitAbilityType="ABILITY_UBOAT" Name="LOC_ABILITY_UBOAT_NAME" Description="LOC_ABILITY_UBOAT_DESCRIPTION"/>

<UnitAbilityModifiers>
<Row>
<UnitAbilityType>ABILITY_UBOAT</UnitAbilityType>
<ModifierId>UBOAT_OCEAN_COMBAT</ModifierId>
</Row>

<Modifiers>
<Row>
<ModifierId>UBOAT_OCEAN_COMBAT</ModifierId>
<ModifierType>MODIFIER_UNIT_ADJUST_COMBAT_STRENGTH</ModifierType>
<SubjectRequirementSetId>UBOAT_PLOT_IS_OCEAN_REQUIREMENTS</SubjectRequirementSetId>
</Row>


<ModifierArguments>
<Row>
<ModifierId>UBOAT_OCEAN_COMBAT</ModifierId>
<Name>Amount</Name>
<Value>10</Value>
</Row>

<RequirementSets>
<Row>
<RequirementSetId>UBOAT_PLOT_IS_OCEAN_REQUIREMENTS</RequirementSetId>
<RequirementSetType>REQUIREMENTSET_TEST_ALL</RequirementSetType>
</Row>

<RequirementSetRequirements>
<Row>
<RequirementSetId>UBOAT_PLOT_IS_OCEAN_REQUIREMENTS</RequirementSetId>
<RequirementId>REQUIRES_TERRAIN_OCEAN</RequirementId>
</Row>
<ModifierStrings>
<Row ModifierId="UBOAT_OCEAN_COMBAT" Context="Preview" Text="LOC_ABILITY_UBOAT_OCEAN_COMBAT_MODIFIER_DESCRIPTION"/>


I used Control+F and was looking for UBOAT. Then i have found these sentences that include this unit and therefore affecting or creating these abilities. I have used copy paste to copy these to you. Are they enough or you want all the file?

PS: Gracias so much, just for coming. I believe if it was something simple, i could sort it out, yet i see its not, but i m not a modder and dont know much about these files.
Yes change the core game files, doesnt matter, i have backup those files in case something goes wrong.
 
For what you want to do is pretty simple, just go to units.xml (instead of unitabilities) and inside <TypeTags> add this line:

Code:
    <TypeTags> 
        (... all others  ...)
        <Row Type="UNIT_SUBMARINE" Tag="CLASS_UBOAT"/>
    </TypeTags>

PS: If you forget or don´t want to manual backup you modified core files, you can recover game files by steam check of game files integrity.
 
Thank you for your answer.
So you mean create a new unit using uboat abilities?
Tag means that the unit submarine will use Uboat animations, everything ?

In xml i watched 2 tags :

Tag="CLASS_OBSERVATION"/>
<Row Type="UNIT_SUBMARINE" Tag="CLASS_NAVAL_RAIDER"/>
<Row Type="UNIT_SUBMARINE" Tag="CLASS_NAVAL_RANGED"/>
<Row Type="UNIT_SUBMARINE" Tag="CLASS_STEALTH"/>
<Row Type="UNIT_SUBMARINE" Tag="CLASS_REVEAL_STEALTH"/>
and
Tag="CLASS_NAVAL_RAIDER"/>
<Row Type="UNIT_GERMAN_UBOAT" Tag="CLASS_NAVAL_RAIDER"/>
<Row Type="UNIT_GERMAN_UBOAT" Tag="CLASS_NAVAL_RANGED"/>
<Row Type="UNIT_GERMAN_UBOAT" Tag="CLASS_UBOAT"/>
<Row Type="UNIT_GERMAN_UBOAT" Tag="CLASS_STEALTH"/>
<Row Type="UNIT_GERMAN_UBOAT" Tag="CLASS_REVEAL_STEALTH"/>

The submarine is NOT on Naval Raider. Only uboat is, while on OBSERVATION there is the sub but not the Uboat.

Where shall i add those?





PS:You have a man i admire very much, Fernando Santos. We wre very stupid when we let this great coach leave.
Glad he is come to you. In Greece this guy has a huge popularity, we still love him, Amazing coach. Grats.
 
Last edited:
I mean add a new row equal to what I have posted, to add uboat's 10 strength on sea to a submarine also, like you have required.

In other words, submarine has all that uboat has less that ability (class), that you need to add to be equal in terms of abilities, like you have requested.
 
ok i have just added the sentence you told me. Unfortunatly nothing changed. Tested the sub and it still dont have +1 visibility range neither combat bonus.

Add entire row ok, but with what?
Where exactly? Observation or Naval Raider?
 
Add the entire row that says submarine in the place I show you (does not have to be by that order but is to you to understand the right place). The rest already exists in units.xml.

Code:
<Row Type="UNIT_GERMAN_UBOAT" Tag="CLASS_UBOAT"/>
<Row Type="UNIT_SUBMARINE" Tag="CLASS_UBOAT"/>
<Row Type="UNIT_GERMAN_UBOAT" Tag="CLASS_STEALTH"/>
<Row Type="UNIT_GERMAN_UBOAT" Tag="CLASS_REVEAL_STEALTH"/>

PS: And you above said you don´t want +1 sight. Anyway that is edited in another place.
 
My apologies , but i dont understand. I m sorry for my ignorance. But i cant understand :(

Here is the text you say.
<TypeTags>.......
......
<Row Type="UNIT_SUBMARINE" Tag="CLASS_NAVAL_RAIDER"/>
<Row Type="UNIT_SUBMARINE" Tag="CLASS_NAVAL_RANGED"/>
<Row Type="UNIT_SUBMARINE" Tag="CLASS_STEALTH"/>
<Row Type="UNIT_SUBMARINE" Tag="CLASS_REVEAL_STEALTH"/>
<Row Type="UNIT_SUBMARINE" Tag="CLASS_UBOAT"/>
<Row Type="UNIT_NORWEGIAN_BERSERKER" Tag="CLASS_MELEE"/>
<Row Type="UNIT_NORWEGIAN_BERSERKER" Tag="CLASS_MELEE_BERSERKER"/>
<Row Type="UNIT_SPY" Tag="CLASS_SPY"/>
<Row Type="UNIT_SPY" Tag="CLASS_STEALTH"/>
<Row Type="UNIT_SPY" Tag="CLASS_REVEAL_STEALTH"/>
<Row Type="UNIT_NORWEGIAN_LONGSHIP" Tag="CLASS_NAVAL_RAIDER"/>
<Row Type="UNIT_NORWEGIAN_LONGSHIP" Tag="CLASS_NAVAL_MELEE"/>
<Row Type="UNIT_NORWEGIAN_LONGSHIP" Tag="CLASS_LONGSHIP"/>
<Row Type="UNIT_RUSSIAN_COSSACK" Tag="CLASS_LIGHT_CAVALRY"/>
<Row Type="UNIT_RUSSIAN_COSSACK" Tag="CLASS_COSSACK"/>
<Row Type="UNIT_INDIAN_VARU" Tag="CLASS_HEAVY_CAVALRY"/>
<Row Type="UNIT_INDIAN_VARU" Tag="CLASS_VARU"/>
<Row Type="UNIT_ARABIAN_MAMLUK" Tag="CLASS_HEAVY_CAVALRY"/>
<Row Type="UNIT_ARABIAN_MAMLUK" Tag="CLASS_MAMLUK"/>
<Row Type="UNIT_KONGO_SHIELD_BEARER" Tag="CLASS_MELEE"/>
<Row Type="UNIT_KONGO_SHIELD_BEARER" Tag="CLASS_NAGAO"/>
<Row Type="UNIT_ENGLISH_SEADOG" Tag="CLASS_NAVAL_RAIDER"/>
<Row Type="UNIT_ENGLISH_SEADOG" Tag="CLASS_NAVAL_RANGED"/>
<Row Type="UNIT_ENGLISH_SEADOG" Tag="CLASS_STEALTH"/>
<Row Type="UNIT_ENGLISH_SEADOG" Tag="CLASS_REVEAL_STEALTH"/>
<Row Type="UNIT_ENGLISH_SEADOG" Tag="CLASS_CAPTURE_SHIPS"/>
<Row Type="UNIT_ENGLISH_REDCOAT" Tag="CLASS_REDCOAT"/>
<Row Type="UNIT_ENGLISH_REDCOAT" Tag="CLASS_MELEE"/>
<Row Type="UNIT_FRENCH_GARDE_IMPERIALE" Tag="CLASS_MELEE"/>
<Row Type="UNIT_FRENCH_GARDE_IMPERIALE" Tag="CLASS_GARDE"/>
<Row Type="UNIT_GERMAN_UBOAT" Tag="CLASS_NAVAL_RAIDER"/>
<Row Type="UNIT_GERMAN_UBOAT" Tag="CLASS_NAVAL_RANGED"/>
<Row Type="UNIT_GERMAN_UBOAT" Tag="CLASS_UBOAT"/>
<Row Type="UNIT_GERMAN_UBOAT" Tag="CLASS_STEALTH"/>
<Row Type="UNIT_GERMAN_UBOAT" Tag="CLASS_REVEAL_STEALTH"/>
<Row Type="UNIT_AMERICAN_P51" Tag="CLASS_AIRCRAFT"/>
<Row Type="UNIT_AMERICAN_P51" Tag="CLASS_MUSTANG"/>
<Row Type="UNIT_BRAZILIAN_MINAS_GERAES" Tag="CLASS_NAVAL_RANGED"/>
<Row Type="UNIT_BRAZILIAN_MINAS_GERAES" Tag="CLASS_ANTI_AIR"/>
<Row Type="UNIT_ANTIAIR_GUN" Tag="CLASS_ANTI_AIR"/>
<Row Type="UNIT_MOBILE_SAM" Tag="CLASS_ANTI_AIR"/>
</TypeTags>



On the 5TH line i copy and paste what you said. Nothing works. I copied only that sentence, it is underlined.
 
Seems about right but how are you testing it? with old save game? Is yes, I believe does not work, you have to start a new one.

Do you have uboat and submarine side by side? how do you see the 10 strength feature in uboat?

Anyway, I never used a submarine in civ 6 so I dont know what shows, but I believe that in features like this you see it playing, and in this case going to SEA.

PS: "Nothing works" means game does not start?
 
the UBOAT is unique unit for Germany. I cant build it cause i m playing the Greeks.
I want the effects of the UBOAT to be on every submarine, therefore to all civilizations using submarine.
No i didnt use an old game of course. I started in Atomic era and test the submarine. I went to Ocean tile, and when facing Ironclad sub does not make the damage i expected. I have increased through unit abilities the damage instead of 10 fighting in ocean to 80 in order to see it immediately. The submarine made minor damage to ironclad-it should sink it. Neither shows the combat bonuses.

If this fail, is it possible to make a unique unit to be available to all civilizations? If yes can you give me an example? If not, ok, thank you for everyhting.

SEA= what is it please? (shy)
 
Last edited:
Its a submarine or nuclear submarine you are using? if nuclear you have to add one more line:

Code:
<Row Type="UNIT_NUCLEAR_SUBMARINE" Tag="CLASS_UBOAT"/>

So you are doing the right tests, i think what is missing is above line.

PS: SEA = Ocean Tile, sorry for CAPS
 
No , i m using submarine. Not the nuclear one.
I havent expanded this to Nuclear Subs cause i wanted first to see the results on the conventional Submarine. I believe nuclear submarine shouldnt be involved for now.

Also if you open the main meny and go to Germany , you will see the Unique unit, the UBOAT. If you go to Civilopedia you will see also full details about its bonuses.
But the same is not happening for Submarine.
 
Check this:

I believe there lies the secret;


<Row Type="ABILITY_UBOAT" Tag="CLASS_UBOAT"/>

It s on UNITABILITIES.XML

Is any kind of XML archive with CLASSES?
 
So in that case I am clueless, editing core files I don´t know if works, I don´t do that for a long time now.

You could try this in last line before </Units>, and see if base sight range changes to 4 in your tests.

Code:
<Units>
    (...)
    <Update>
        <Where UnitType="UNIT_SUBMARINE" />
        <Set BaseSightRange="4" />
    </Update>
</Units>

PS: this you show in last message is the definition of the ability, you don´t need to define it again.
 
Back
Top Bottom