Embarkation Mod Please Help!

GhostingIndigo

Chieftain
Joined
Aug 25, 2012
Messages
2
Location
Stoke-on-Trent
Hi, this is my first post on this forum! And this is also my first attempt at a mod, but the only problem is that it doesnt work at all.

I'm trying to make it so embarkation is switched off, apart from the scout, and that the added units can be built to take units across water.

I have included OnModActivated, UpdateDatabase with the Transport.xml (the data which is underneath). I have built it, but it had built it onto my C:\ drive, and it wasn't appearing in-game, but it started showing once I'd copied it into the Civ 5 MODS folder in My Documents but I don't think that should be the problem, but then again I know next to nothing about modding :P

As I said before, it has literally no effect on anything in-game, and nothing I have done here has had any effect.

Please help, I have literally no idea how to fix it :L

Heres "Transport.xml"..... (It's pretty long, sorry :L)

Code:
<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 8/21/2012 4:07:20 PM -->
<GameData>
  <!-- TODO: Insert table creation example here. -->
 
  <!-- TODO: Insert table data example here.-->
  
  <!-- Enter your Game Data here. -->
	<Units>
		<Row>
			<Class>UNITCLASS_TROOP_BOAT</Class>
			<Type>UNIT_TROOP_BOAT</Type>
			<PrereqTech>TECH_SAILING</PrereqTech>
			<Combat>5</Combat>
			<Cost>80</Cost>
			<Moves>4</Moves>
			<CombatClass>UNITCOMBAT_NAVAL</CombatClass>
			<Domain>DOMAIN_SEA</Domain>
			<DefaultUnitAI>UNITAI_CARRIER_SEA</DefaultUnitAI>
			<Description>Troop Boat</Description>
			<MilitarySupport>true</MilitarySupport>
			<MilitaryProduction>true</MilitaryProduction>
			<Pillage>true</Pillage>
			<IgnoreBuildingDefense>true</IgnoreBuildingDefense>
			<Mechanized>true</Mechanized>
			<ObsoleteTech>TECH_STEAM_POWER</ObsoleteTech>
			<AdvancedStartCost>50</AdvancedStartCost>
			<MinAreaSize>20</MinAreaSize>
			<XPValueAttack>3</XPValueAttack>
			<XPValueDefense>3</XPValueDefense>
			<DomainCargo>DOMAIN_LAND</DomainCargo>
			<UnitArtInfo>ART_DEF_UNIT_CARAVEL</UnitArtInfo>
			<UnitFlagIconOffset>42</UnitFlagIconOffset>
			<IconAtlas>UNIT_ATLAS_1</IconAtlas>
			<PortraitIndex>43</PortraitIndex>
			<MoveRate>WOODEN_BOAT</MoveRate>
		</Row>
	</Units>
	<Unit_AITypes>
		<Row>
			<UnitType>UNIT_TROOP_BOAT</UnitType>
			<UnitAIType>UNITAI_CARRIER_SEA</UnitAIType>
		</Row>
	</Unit_AITypes>
	<Unit_Flavors>
		<Row>
			<UnitType>UNIT_TROOP_BOAT</UnitType>
			<FlavorType>FLAVOR_DEFENSE</FlavorType>
			<Flavor>4</Flavor>
		</Row>
		<Row>
			<UnitType>UNIT_TROOP_BOAT</UnitType>
			<FlavorType>FLAVOR_NAVAL</FlavorType>
			<Flavor>7</Flavor>
		</Row>
	</Unit_Flavors>
	<UnitClasses>
		<Row>
			<Type>UNITCLASS_TROOP_BOAT</Type>
			<Description>Troop Boat</Description>
			<DefaultUnit>UNIT_TROOP_BOAT</DefaultUnit>
		</Row>
	</UnitClasses>

	<Units>
		<Row>
			<Class>UNITCLASS_TROOP_STEAMBOAT</Class>
			<Type>UNIT_TROOP_STEAMBOAT</Type>
			<PrereqTech>TECH_STEAM_POWER</PrereqTech>
			<Combat>10</Combat>
			<Cost>125</Cost>
			<Moves>6</Moves>
			<CombatClass>UNITCOMBAT_NAVAL</CombatClass>
			<Domain>DOMAIN_SEA</Domain>
			<DefaultUnitAI>UNITAI_CARRIER_SEA</DefaultUnitAI>
			<Description>Troop Steamboat</Description>
			<MilitarySupport>true</MilitarySupport>
			<MilitaryProduction>true</MilitaryProduction>
			<Pillage>true</Pillage>
			<IgnoreBuildingDefense>true</IgnoreBuildingDefense>
			<Mechanized>true</Mechanized>
			<ObsoleteTech>TECH_COMBUSTION</ObsoleteTech>
			<AdvancedStartCost>60</AdvancedStartCost>
			<MinAreaSize>20</MinAreaSize>
			<XPValueAttack>3</XPValueAttack>
			<XPValueDefense>3</XPValueDefense>
			<DomainCargo>DOMAIN_LAND</DomainCargo>
			<UnitArtInfo>ART_DEF_UNIT_CARRIER</UnitArtInfo>
			<UnitFlagIconOffset>70</UnitFlagIconOffset>
			<IconAtlas>UNIT_ATLAS_2</IconAtlas>
			<PortraitIndex>23</PortraitIndex>
			<MoveRate>BOAT</MoveRate>
		</Row>
	</Units>
	<Unit_AITypes>
		<Row>
			<UnitType>UNIT_TROOP_STEAMBOAT</UnitType>
			<UnitAIType>UNITAI_CARRIER_SEA</UnitAIType>
		</Row>
	</Unit_AITypes>
	<Unit_Flavors>
		<Row>
			<UnitType>UNIT_TROOP_STEAMBOAT</UnitType>
			<FlavorType>FLAVOR_DEFENSE</FlavorType>
			<Flavor>4</Flavor>
		</Row>
		<Row>
			<UnitType>UNIT_TROOP_STEAMBOAT</UnitType>
			<FlavorType>FLAVOR_NAVAL</FlavorType>
			<Flavor>7</Flavor>
		</Row>
	</Unit_Flavors>
	<UnitClasses>
		<Row>
			<Type>UNITCLASS_TROOP_STEAMBOAT</Type>
			<Description>Troop Steamboat</Description>
			<DefaultUnit>UNIT_TROOP_STEAMBOAT</DefaultUnit>
		</Row>
	</UnitClasses>
	<Units>
		<Row>
			<Class>UNITCLASS_TROOP_TRANSPORT</Class>
			<Type>UNIT_TROOP_TRANSPORT</Type>
			<PrereqTech>TECH_COMBUSTION</PrereqTech>
			<Combat>20</Combat>
			<Cost>190</Cost>
			<Moves>8</Moves>
			<CombatClass>UNITCOMBAT_NAVAL</CombatClass>
			<Domain>DOMAIN_SEA</Domain>
			<DefaultUnitAI>UNITAI_CARRIER</DefaultUnitAI>
			<Description>Troop Transport</Description>
			<MilitarySupport>true</MilitarySupport>
			<MilitaryProduction>true</MilitaryProduction>
			<Pillage>true</Pillage>
			<IgnoreBuildingDefense>true</IgnoreBuildingDefense>
			<Mechanized>true</Mechanized>
			<AdvancedStartCost>65</AdvancedStartCost>
			<MinAreaSize>20</MinAreaSize>
			<XPValueAttack>3</XPValueAttack>
			<XPValueDefense>3</XPValueDefense>
			<DomainCargo>DOMAIN_LAND</DomainCargo>
			<UnitArtInfo>ART_DEF_UNIT_CARRIER</UnitArtInfo>
			<UnitFlagIconOffset>70</UnitFlagIconOffset>
			<IconAtlas>UNIT_ATLAS_2</IconAtlas>
			<PortraitIndex>23</PortraitIndex>
			<MoveRate>BOAT</MoveRate>
		</Row>
	</Units>
	<Unit_AITypes>
		<Row>
			<UnitType>UNIT_TROOP_TRANSPORT</UnitType>
			<UnitAIType>UNITAI_CARRIER_SEA</UnitAIType>
		</Row>
	</Unit_AITypes>
	<Unit_Flavors>
		<Row>
			<UnitType>UNIT_TROOP_TRANSPORT</UnitType>
			<FlavorType>FLAVOR_DEFENSE</FlavorType>
			<Flavor>4</Flavor>
		</Row>
		<Row>
			<UnitType>UNIT_TROOP_TRANSPORT</UnitType>
			<FlavorType>FLAVOR_NAVAL</FlavorType>
			<Flavor>7</Flavor>
		</Row>
	</Unit_Flavors>
	<UnitClasses>
		<Row>
			<Type>UNITCLASS_TROOP_TRANSPORT</Type>
			<Description>Troop Transport</Description>
			<DefaultUnit>UNIT_TROOP_TRANSPORT</DefaultUnit>
		</Row>
	</UnitClasses>
	<Units>
		<Row>
			<Class>UNITCLASS_AIR_TRANSPORT</Class>
			<Type>UNIT_AIR_TRANSPORT</Type>
			<PrereqTech>TECH_FLIGHT</PrereqTech>
			<RangedCombat>25</RangedCombat>
			<Cost>320</Cost>
			<Moves>2</Moves>
			<Immobile>true</Immobile>
			<Range>18</Range>
			<CombatClass>UNITCOMBAT_BOMBER</CombatClass>
			<Domain>DOMAIN_AIR</Domain>
			<Description>TXT_KEY_UNIT_AIR_TRANSPORT</Description>
			<Civilopedia>TXT_KEY_CIV5_INDUSTRIAL_AIR_TRANSPORT_TEXT</Civilopedia>
			<Strategy>TXT_KEY_UNIT_AIR_TRANSPORT_STRATEGY</Strategy>
			<Help>TXT_KEY_UNIT_HELP_AIR_TRANSPORT</Help>
			<MilitarySupport>true</MilitarySupport>
			<MilitaryProduction>true</MilitaryProduction>
			<IgnoreBuildingDefense>true</IgnoreBuildingDefense>
			<Mechanized>true</Mechanized>
			<AdvancedStartCost>65</AdvancedStartCost>
			<AirUnitCap>1</AirUnitCap>
			<RangedCombatLimit>100</RangedCombatLimit>
			<CombatLimit>0</CombatLimit>
			<XPValueAttack>3</XPValueAttack>
			<XPValueDefense>3</XPValueDefense>
			<DomainCargo>DOMAIN_LAND</DomainCargo>
			<UnitArtInfo>ART_DEF_UNIT_BOMBER</UnitArtInfo>
			<UnitFlagIconOffset>64</UnitFlagIconOffset>
			<IconAtlas>UNIT_ATLAS_2</IconAtlas>
			<PortraitIndex>18</PortraitIndex>
			<MoveRate>AIR_REBASE</MoveRate>
		</Row>
	</Units>
	<Unit_AITypes>
		<Row>
			<UnitType>UNIT_AIR_TRANSPORT</UnitType>
			<UnitAIType>UNITAI_ATTACK_AIR</UnitAIType>
		</Row>
	</Unit_AITypes>
	<Unit_Flavors>
		<Row>
			<UnitType>UNIT_AIR_TRANSPORT</UnitType>
			<FlavorType>FLAVOR_DEFENSE</FlavorType>
			<Flavor>8</Flavor>
		</Row>
		<Row>
			<UnitType>UNIT_AIR_TRANSPORT</UnitType>
			<FlavorType>FLAVOR_AIR</FlavorType>
			<Flavor>12</Flavor>
		</Row>
	</Unit_Flavors>
	<UnitClasses>
		<Row>
			<Type>UNITCLASS_AIR_TRANSPORT</Type>
			<Description>Air Transport</Description>
			<DefaultUnit>UNIT_AIR_TRANSPORT</DefaultUnit>
		</Row>
	</UnitClasses>
	<Unit_FreePromotions>
		<Row>
			<UnitType>UNIT_TROOP_BOAT</UnitType>
			<PromotionType>PROMOTION_ONLY_DEFENSIVE</PromotionType>
		</Row>
		<Row>
			<UnitType>UNIT_TROOP_BOAT</UnitType>
			<PromotionType>PROMOTION_CARGO_V</PromotionType>
		</Row>
		<Row>
			<UnitType>UNIT_TROOP_STEAMBOAT</UnitType>
			<PromotionType>PROMOTION_ONLY_DEFENSIVE</PromotionType>
		</Row>
		<Row>
			<UnitType>UNIT_TROOP_STEAMBOAT</UnitType>
			<PromotionType>PROMOTION_CARGO_VI</PromotionType>
		</Row>
		<Row>
			<UnitType>UNIT_TROOP_TRANSPORT</UnitType>
			<PromotionType>PROMOTION_ONLY_DEFENSIVE</PromotionType>
		</Row>
		<Row>
			<UnitType>UNIT_TROOP_TRANSPORT</UnitType>
			<PromotionType>PROMOTION_CARGO_VIII</PromotionType>
		</Row>
		<Row>
			<UnitType>UNIT_AIR_TRANSPORT</UnitType>
			<PromotionType>PROMOTION_ONLY_DEFENSIVE</PromotionType>
		</Row>
		<Row>
			<UnitType>UNIT_AIR_TRANSPORT</UnitType>
			<PromotionType>PROMOTION_CARGO_VI</PromotionType>
		</Row>
		<Row>
			<UnitType>UNIT_SCOUT</UnitType>
			<PromotionType>PROMOTION_SCOUT_EMBARKATION</PromotionType>
		</Row>
		<Row>
			<UnitType>UNIT_SCOUT</UnitType>
			<PromotionType>PROMOTION_SCOUT_DEFENSIVE_EMBARKATION</PromotionType>
		</Row>
		<Row>
			<UnitType>UNIT_SCOUT</UnitType>
			<PromotionType>PROMOTION_SCOUT_ALLWATER_EMBARKATION</PromotionType>
		</Row>
	</Unit_FreePromotions>
	<UnitPromotions>
		<Row>
			<Type>PROMOTION_EMBARKATION</Type>
			<CannotBeChosen>true</CannotBeChosen>
			<TechPrereq>TECH_OPTICS</TechPrereq>
			<AllowsEmbarkation>false</AllowsEmbarkation>
			<PortraitIndex>22</PortraitIndex>
			<IconAtlas>PROMOTION_ATLAS</IconAtlas>
			<PediaType>PEDIA_SHARED</PediaType>
			<PediaEntry>TXT_KEY_PROMOTION_EMBARKATION</PediaEntry>
		</Row>
		<Row>
			<Type>PROMOTION_DEFENSIVE_EMBARKATION</Type>
			<CannotBeChosen>true</CannotBeChosen>
			<TechPrereq>TECH_OPTICS</TechPrereq>
			<AllowsEmbarkation>false</AllowsEmbarkation>
			<EmbarkedNotCivilian>false</EmbarkedNotCivilian>
			<PortraitIndex>22</PortraitIndex>
			<IconAtlas>PROMOTION_ATLAS</IconAtlas>
			<PediaType>PEDIA_SHARED</PediaType>
			<PediaEntry>TXT_KEY_PROMOTION_DEFENSIVE_EMBARKATION</PediaEntry>
		</Row>
		<Row>
			<Type>PROMOTION_ALLWATER_EMBARKATION</Type>
			<CannotBeChosen>true</CannotBeChosen>
			<AllowsEmbarkation>false</AllowsEmbarkation>
			<EmbarkedAllWater>false</EmbarkedAllWater>
			<EmbarkExtraVisibility>2</EmbarkExtraVisibility>
			<PortraitIndex>22</PortraitIndex>
			<IconAtlas>ABILITY_ATLAS</IconAtlas>
			<PediaType>PEDIA_SHARED</PediaType>
			<PediaEntry>TXT_KEY_PROMOTION_ALLWATER_EMBARKATION</PediaEntry>
		</Row>
		<Row>
			<Type>PROMOTION_SCOUT_EMBARKATION</Type>
			<Description>TXT_KEY_PROMOTION_EMBARKATION</Description>
			<Help>TXT_KEY_PROMOTION_EMBARKATION_HELP</Help>
			<Sound>AS2D_IF_LEVELUP</Sound>
			<CannotBeChosen>true</CannotBeChosen>
			<TechPrereq>TECH_OPTICS</TechPrereq>
			<AllowsEmbarkation>true</AllowsEmbarkation>
			<PortraitIndex>22</PortraitIndex>
			<IconAtlas>PROMOTION_ATLAS</IconAtlas>
			<PediaType>PEDIA_SHARED</PediaType>
			<PediaEntry>TXT_KEY_PROMOTION_EMBARKATION</PediaEntry>
			<TechPrereq>TECH_OPTICS</TechPrereq>
		</Row>
		<Row>
			<Type>PROMOTION_SCOUT_DEFENSIVE_EMBARKATION</Type>
			<Description>TXT_KEY_PROMOTION_DEFENSIVE_EMBARKATION</Description>
			<Help>TXT_KEY_PROMOTION_DEFENSIVE_EMBARKATION_HELP</Help>
			<Sound>AS2D_IF_LEVELUP</Sound>
			<CannotBeChosen>true</CannotBeChosen>
			<TechPrereq>TECH_OPTICS</TechPrereq>
			<AllowsEmbarkation>true</AllowsEmbarkation>
			<EmbarkedNotCivilian>true</EmbarkedNotCivilian>
			<PortraitIndex>22</PortraitIndex>
			<IconAtlas>PROMOTION_ATLAS</IconAtlas>
			<PediaType>PEDIA_SHARED</PediaType>
			<PediaEntry>TXT_KEY_PROMOTION_DEFENSIVE_EMBARKATION</PediaEntry>
			<TechPrereq>TECH_OPTICS</TechPrereq>
		</Row>
		<Row>
			<Type>PROMOTION_SCOUT_ALLWATER_EMBARKATION</Type>
			<Description>TXT_KEY_PROMOTION_ALLWATER_EMBARKATION</Description>
			<Help>TXT_KEY_PROMOTION_ALLWATER_EMBARKATION_HELP</Help>
			<Sound>AS2D_IF_LEVELUP</Sound>
			<CannotBeChosen>true</CannotBeChosen>
			<AllowsEmbarkation>true</AllowsEmbarkation>
			<EmbarkedAllWater>true</EmbarkedAllWater>
			<EmbarkExtraVisibility>2</EmbarkExtraVisibility>
			<PortraitIndex>22</PortraitIndex>
			<IconAtlas>ABILITY_ATLAS</IconAtlas>
			<PediaType>PEDIA_SHARED</PediaType>
			<PediaEntry>TXT_KEY_PROMOTION_ALLWATER_EMBARKATION</PediaEntry>
			<TechPrereq>TECH_ASTRONOMY</TechPrereq>
		</Row>
		<Row>
			<Type>PROMOTION_CARGO_V</Type>
			<Description>TXT_KEY_PROMOTION_CARGO_V</Description>
			<Help>TXT_KEY_PROMOTION_CARGO_V</Help>
			<Sound>AS2D_IF_LEVELUP</Sound>
			<CargoChange>4</CargoChange>
			<PortraitIndex>58</PortraitIndex>
			<IconAtlas>ABILITY_ATLAS</IconAtlas>
			<PediaType>PEDIA_ATTRIBUTES</PediaType>
			<CannotBeChosen>true</CannotBeChosen>
		</Row>
		<Row>
			<Type>PROMOTION_CARGO_VI</Type>
			<Description>TXT_KEY_PROMOTION_CARGO_VI</Description>
			<Help>TXT_KEY_PROMOTION_CARGO_VI</Help>
			<Sound>AS2D_IF_LEVELUP</Sound>
			<CargoChange>6</CargoChange>
			<PortraitIndex>58</PortraitIndex>
			<IconAtlas>ABILITY_ATLAS</IconAtlas>
			<PediaType>PEDIA_ATTRIBUTES</PediaType>
			<CannotBeChosen>true</CannotBeChosen>
		</Row>
		<Row>
			<Type>PROMOTION_CARGO_VIII</Type>
			<Description>TXT_KEY_PROMOTION_CARGO_VIII</Description>
			<Help>TXT_KEY_PROMOTION_CARGO_VIII</Help>
			<Sound>AS2D_IF_LEVELUP</Sound>
			<CargoChange>8</CargoChange>
			<PortraitIndex>58</PortraitIndex>
			<IconAtlas>ABILITY_ATLAS</IconAtlas>
			<PediaType>PEDIA_ATTRIBUTES</PediaType>
			<CannotBeChosen>true</CannotBeChosen>
		</Row>
	</UnitPromotions>
	<Technologies>
		<Row>
			<Type>TECH_OPTICS</Type>
			<Cost>85</Cost>
			<Description>TXT_KEY_TECH_OPTICS_TITLE</Description>
			<Civilopedia>TXT_KEY_TECH_OPTICS_DESC</Civilopedia>
			<Help>TXT_KEY_TECH_OPTICS_HELP</Help>
			<Era>ERA_CLASSICAL</Era>
			<AllowsEmbarking>false</AllowsEmbarking>
			<Trade>true</Trade>
			<GridX>3</GridX>
			<GridY>0</GridY>
			<Quote>TXT_KEY_TECH_OPTICS_QUOTE</Quote>
			<PortraitIndex>18</PortraitIndex>
			<IconAtlas>TECH_ATLAS_1</IconAtlas>
			<AudioIntro>AS2D_TECH_OPTICS</AudioIntro>
			<AudioIntroHeader>AS2D_HEADING_TECH_OPTICS</AudioIntroHeader>
		</Row>
	</Technologies>
</GameData>
Thanks, GhostingIndigo
 
You need to include a .modinfo file within the mod folder. If you did not include this go back to ModBuddy and publish it through there.

By the way, welcome to the forums!
 
In your config.ini is LoggingEnabled set to 1? If it is, look at the logs. (Database.log is particularly helpful). It'll tell you what kind of problems the game has had with your mod.

From what I understand, you can't just change the values of a certain tech/promotion/whatever by making a new <Row>. You have to either use the <Update> function, or <Delete> the old information. (You can also use UPDATE and DELETE in SQL).

For example:

Code:
<Row>
			<Type>TECH_OPTICS</Type>
			<Cost>85</Cost>
			<Description>TXT_KEY_TECH_OPTICS_TITLE</Description>
			<Civilopedia>TXT_KEY_TECH_OPTICS_DESC</Civilopedia>
			<Help>TXT_KEY_TECH_OPTICS_HELP</Help>
			<Era>ERA_CLASSICAL</Era>
			<AllowsEmbarking>false</AllowsEmbarking>
			<Trade>true</Trade>
			<GridX>3</GridX>
			<GridY>0</GridY>
			<Quote>TXT_KEY_TECH_OPTICS_QUOTE</Quote>
			<PortraitIndex>18</PortraitIndex>
			<IconAtlas>TECH_ATLAS_1</IconAtlas>
			<AudioIntro>AS2D_TECH_OPTICS</AudioIntro>
			<AudioIntroHeader>AS2D_HEADING_TECH_OPTICS</AudioIntroHeader>
		</Row>

That is not how you update TECH_OPTICS so that embarkation is not allowed. You either have to <Delete> Type="TECH_OPTICS" </Delete> and then place that code or use <Update> Where=TECH_OPTICS set."AllowsEmbarking" = false </Update> (P.S. That is pseudocode. If you paste that into your code, it will definitely not work.)

You could also make an SQL file, that will have something like

UPDATE Technologies WHERE Type = TECH_OPTICS SET AllowsEmbarking 0;

That was also pseudocode. Sorry I could provide real code; I'm very tired.

Anyway, I'm pretty sure if you open your log file, it will tell you that it's having problems with Rows that have the same name. You have to delete the old info or update it for it to work. You can't just add new info and hope the program knows which info you want.
 
So, I sorted out the logging and its picked up on the embarkation promotion;

[92097.093] constraint failed
[92097.093] While executing - 'insert into UnitPromotions('Type', 'CannotBeChosen', 'TechPrereq', 'AllowsEmbarkation', 'PortraitIndex', 'IconAtlas', 'PediaType', 'PediaEntry') values (?, ?, ?, ?, ?, ?, ?, ?);'
[92097.093] In XMLSerializer while inserting row into table insert into UnitPromotions('Type', 'CannotBeChosen', 'TechPrereq', 'AllowsEmbarkation', 'PortraitIndex', 'IconAtlas', 'PediaType', 'PediaEntry') with values (PROMOTION_EMBARKATION, 1, TECH_OPTICS, 0, 22, PROMOTION_ATLAS, PEDIA_SHARED, TXT_KEY_PROMOTION_EMBARKATION, ).
[92097.093] In XMLSerializer while updating table UnitPromotions from file Transport.xml.
[92097.093] column Type is not unique
[92113.551] Validating Foreign Key Constraints...
[92114.269] Passed Validation.
[92114.565]

So if I'm going to sort it out I need to update it? Would I just have to replace <UnitPromotions> with <Update>, and replace <Type> with something like <PromotionType> ?

If thats all its picked up on, that can't be the only thing wrong, can it? Becasue the units I tried to create still doesn't appear, so it is it there's one thing wrong with it it doesn't work at all? Or is it that I need to use the update thing on everything?

Aswell, there is a .modinfo file in the same folder, and yes, I think it is building to the wrong place but I copied the built folder across to the one in My Documents, and then it started appearing in game.

Sorry for being thick, but I don't have any modding exerience before so I don't really know what I'm doing :P

Thanks, GhostingIndigo
 
[92097.093] column Type is not unique

This means that you have two rows with the same thing in the column "Type". This has to be unique. Either you do:
Code:
<UnitPromotions>
    <Delete Type=PROMOTION_EMBARKATION/>
    (Your Code)
</UnitPromotions>

Or you use update, which is something like

Code:
<UnitPromotions>
  <Update Type = "PROMOTION_EMBARKATION"/>
  (Your changes. For example, you would have <AllowsEmbarkation>False<AllowsEmbarkation/> here)
</UnitPromotions>

I'm pretty sure that the reason that the debug file isn't listing "all" the problems is because of an unexpected EOF. You just have to solve the problems one at a time and check the debug each time until there are no problems.
 
Back
Top Bottom