Two small problems

Nogre

Chieftain
Joined
Sep 26, 2010
Messages
4
I've successfully implemented a civilization using Kael's guide (not without some work), but I've run into two things that I have completely stumped me and I can't find anything in the forums on it.

1. I implemented a unique building for the new civ and it shows up correctly in the civ selection screen and in the civalopedia, down to the description text and gameplay details. But it doesn't replace the temple in the technology tree or build options, so I still can't use it. The code for the building is below:

Spoiler :
<GameData>
<Buildings>
<Row>
<Type>BUILDING_ACADEMY</Type>
<BuildingClass>BUILDINGCLASS_TEMPLE</BuildingClass>
<FreeStartEra>ERA_INDUSTRIAL</FreeStartEra>
<Cost>120</Cost>
<GoldMaintenance>2</GoldMaintenance>
<PrereqTech>TECH_PHILOSOPHY</PrereqTech>
<Help>TXT_KEY_BUILDING_ACADEMY_HELP</Help>
<Description>TXT_KEY_BUILDING_ACADEMY_DESC</Description>
<Civilopedia>TXT_KEY_CIV5_BUILDING_ACADEMY_PEDIA</Civilopedia>
<Strategy>TXT_KEY_BUILDING_ACADEMY_STRATEGY</Strategy>
<ArtDefineTag>TEMPLE</ArtDefineTag>
<SpecialistType>SPECIALIST_SCIENTIST</SpecialistType>
<SpecialistCount>1</SpecialistCount>
<MinAreaSize>-1</MinAreaSize>
<Culture>4</Culture>
<HurryCostModifier>25</HurryCostModifier>
<IconAtlas>BW_ATLAS_1</IconAtlas>
<NeverCapture>true</NeverCapture>
<PortraitIndex>39</PortraitIndex>
</Row>
</Buildings>
<Building_Flavors>
<Row>
<BuildingType>BUILDING_ACADEMY</BuildingType>
<FlavorType>FLAVOR_CULTURE</FlavorType>
<Flavor>30</Flavor>
</Row>
<Row>
<BuildingType>BUILDING_ACADEMY</BuildingType>
<FlavorType>FLAVOR_SCIENCE</FlavorType>
<Flavor>30</Flavor>
</Row>
</Building_Flavors>
<Building_ResourceCultureChanges>
<Row>
<BuildingType>BUILDING_ACADEMY</BuildingType>
<ResourceType>RESOURCE_SILK</ResourceType>
<CultureChange>1</CultureChange>
</Row>
<Row>
<BuildingType>BUILDING_ACADEMY</BuildingType>
<ResourceType>RESOURCE_COTTON</ResourceType>
<CultureChange>1</CultureChange>
</Row>
<Row>
<BuildingType>BUILDING_ACADEMY</BuildingType>
<ResourceType>RESOURCE_FUR</ResourceType>
<CultureChange>1</CultureChange>
</Row>
<Row>
<BuildingType>BUILDING_ACADEMY</BuildingType>
<ResourceType>RESOURCE_DYE</ResourceType>
<CultureChange>1</CultureChange>
</Row>
</Building_ResourceCultureChanges>
<Building_ClassesNeededInCity>
<Row>
<BuildingType>BUILDING_ACADEMY</BuildingType>
<BuildingClassType>BUILDINGCLASS_MONUMENT</BuildingClassType>
</Row>
</Building_ClassesNeededInCity>
</GameData>


2. I can't get the dawn of man image to work. It simply crashes as soon as it brings up the DOM screen and gives an error about reading the file. I've already made sure to check the box to import it into the VFS. I've even successfully uploaded and used an icon using Kael's methods (plus the import to VFS change), but the DOM still won't work. I think it might be an issue with the particular file. It's a .dds file created in Gimp and it's 1024x768 pixels.

Thanks for any help you can offer.
 
1> You also need to define the Civilization_BuildingClassOverrides table entry to tell that civ to use this building instead of the standard Temple. After all, how else would it know to use your building?

2> Kael's guide was written before the VFS change in December. If you're adding any art assets, such as the .dds file in question, then in ModBuddy you need to right-click the file, select Properties, and where it says "Import into VFS", you need to set it to True for the .dds file.
 
1> You also need to define the Civilization_BuildingClassOverrides table entry to tell that civ to use this building instead of the standard Temple. After all, how else would it know to use your building?

I've already done this, so that isn't the problem. I'll post that portion of the code, too, in case anyone can see an error in there (The CivilizatoinType tag is correct):

Spoiler :
<Civilization_BuildingClassOverrides>
<Row>
<CivilizationType>CIVILIZATION_ASMADON</CivilizationType>
<BuildingClassType>UNITCLASS_TEMPLE</BuildingClassType>
<BuildingType>BUILDING_ACADEMY</BuildingType>
</Row>
</Civilization_BuildingClassOverrides>


2> Kael's guide was written before the VFS change in December. If you're adding any art assets, such as the .dds file in question, then in ModBuddy you need to right-click the file, select Properties, and where it says "Import into VFS", you need to set it to True for the .dds file.

As I said before, I've done that already and have successfully implemented other art assets. It's just the DOM that doesn't work.
 
That fixed it. I can't believe I scanned and rewrote the building file for over an hour and the error was in five short lines of code in the civ file. :crazyeye:

Thanks for your help!
 
Just so you know, if you turn on all of the message logging options in your config.ini file, this sort of thing will be printed out into the log files. No need to spend hours trying to spot the one typo, the game will do that for you.
Between those logfiles and FireTuner, it's pretty easy to diagnose problems. It amazes me that these were all turned off by default, though.
 
Back
Top Bottom