So the problem I'm having is that sometimes the cities will vanish with only the city banner remaining. I've read on the forums that it's either "new building with DisplayPosition column inserted that clashes with another building" or "wrongly inserted art defines for building styles in SQL". However, I have yet to find the right way to insert the art define and I have checked that my new building has no DisplayPosition column.
Here's the code:
And for the building:
Many thanks in advance!
Here's the code:
Code:
INSERT INTO Civilizations (Type, Description, ShortDescription, Adjective, CivilopediaTag, DefaultPlayerColor, ArtDefineTag, ArtStyleType, ArtStyleSuffix, ArtStylePrefix, PortraitIndex, IconAtlas, AlphaIconAtlas, MapImage, DawnOfManQuote, DawnOfManImage, SoundtrackTag)
VALUES ('CIVILIZATION_HAIFURI', 'TXT_KEY_CIV_HAIFURI_DESC', 'TXT_KEY_CIV_HAIFURI_SHORT_DESC', 'TXT_KEY_CIV_HAIFURI_ADJECTIVE', 'TXT_KEY_CIV5_HAIFURI', 'PLAYERCOLOR_HAIFURI', 'ART_DEF_CIVILIZATION_JAPAN', 'ARTSTYLE_ASIAN', '_ASIA', 'ASIAN ', 4, 'haifuriAtlas', 'haifuriAlpha', 'haifuriPortrait1.dds', 'TXT_KEY_CIV5_DAWN_HAIFURI_TEXT', 'haifuriDawnOfMan1.dds', 'HAIFURI');
And for the building:
Code:
INSERT INTO Buildings
(BuildingClass, Type, Cost, PrereqTech, Water, MinAreaSize, TrainedFreePromotion, XBuiltTriggersIdeologyChoice, CityConnectionTradeRouteModifier, TradeRouteSeaGoldBonus, TradeRouteSeaDistanceModifier, SpecialistType, SpecialistCount, GreatPeopleRateChange, EnhancedYieldTech, TechEnhancedTourism, HurryCostModifier, NeverCapture, IconAtlas, PortraitIndex, Description, Help, Civilopedia, Strategy, ArtDefineTag ) VALUES
('BUILDINGCLASS_FACTORY', 'BUILDING_FLOATING_DISTRICT', 430, 'TECH_INDUSTRIALIZATION', 1, 10, 'PROMOTION_AMPHIBIOUS', 4, 10, 200, 25, 'SPECIALIST_ENGINEER', 2, 3, 'TECH_COMBUSTION', 3, -1, 1, 'haifuriAtlas', 1, 'TXT_KEY_BUILDING_FLOATING_DISTRICT', 'TXT_KEY_BUILDING_FLOATING_DISTRICT_HELP', 'TXT_KEY_CIV5_BUILDINGS_FLOATING_DISTRICT_TEXT', 'TXT_KEY_BUILDING_FLOATING_DISTRICT_STRATEGY', 'ART_DEF_BUILDING_FACTORY');
Many thanks in advance!