[BNW] Making Seaports Give 15XP

Tommyd27

Chieftain
Joined
Mar 7, 2017
Messages
18
Hey Guys,

So in the latest mod I am making one of the Unique Buildings is the Seaport, renamed Military Harbour, and the only change I want it to have is that it gives +15xp to all sea units. I have attached the file and so you can see :). New to modding and so far this is the only major problem I have had

Thanks!
 

Attachments

  • Buildings.xml
    10.1 KB · Views: 206
This etc in your file
Code:
<Building_DomainProductionModifiers>
	<Row>
		<BuildingType>BUILDING_SEAPORT</BuildingType>
		<DomainType>DOMAIN_SEA</DomainType>
		<Modifier>15</Modifier>
	</Row>
</Building_DomainProductionModifiers>
Does not match with this
Code:
<GameData>
  <Buildings>
    <Row>
      <Type>BUILDING_MILITARY_HARBOUR</Type>
So you are never actually attaching the XP effect etc to the unique building, you are attaching it to the standard BUILDING_SEAPORT.
 
This etc in your file
Code:
<Building_DomainProductionModifiers>
    <Row>
        <BuildingType>BUILDING_SEAPORT</BuildingType>
        <DomainType>DOMAIN_SEA</DomainType>
        <Modifier>15</Modifier>
    </Row>
</Building_DomainProductionModifiers>
Does not match with this
Code:
<GameData>
  <Buildings>
    <Row>
      <Type>BUILDING_MILITARY_HARBOUR</Type>
So you are never actually attaching the XP effect etc to the unique building, you are attaching it to the standard BUILDING_SEAPORT.
That's the production modifier the seaport already gives, I haven't done everything because everything I do gets an error message
 
BUILDING_SEAPORT != BUILDING_MILITARY_HARBOUR
You need to change BUILDING_SEAPORT to BUILDING_MILITARY_HARBOUR in all your tables where you are stating
Code:
<BuildingType>BUILDING_SEAPORT</BuildingType>
becaue the game already has all that information for the Seaport Buildings and does not want to see it a second time. And you want your info to be added to the Unique Replacement for the Seaport anyway, so you need to change all those to
Code:
<BuildingType>BUILDING_MILITARY_HARBOUR</BuildingType>

Giving Sea Domain units 15 extra XP when a building exists in the city that builds the unit:
Code:
	<Building_DomainFreeExperiences>
		<Row>
			<BuildingType>BUILDING_MILITARY_HARBOUR</BuildingType>
			<DomainType>DOMAIN_SEA</DomainType>
			<Experience>15</Experience>
		</Row>
	</Building_DomainFreeExperiences>
 
Thanks so much :)! Didn't really get what you were saying, not getting any error messages, Thanks!
 
Top Bottom