Advertisement
Civilization Fanatics' Center  

Welcome to Civilization Fanatics' Center.

You are currently viewing our site as a guest which gives you limited access to our site features. By joining our free community, you will be able to participate in the discussions, search the forum, send private messages, vote in polls, upload your own screenshots to the gallery, and access many other special features. Registration is fast, simple and absolutely free, so sign up today! If you have any problems with the registration process or your account login, please contact support.

Go Back   Civilization Fanatics' Forums > CIVILIZATION V > Civ5 - Creation & Customization

Notices

Reply
 
Thread Tools
Old Dec 30, 2011, 07:42 PM   #1
ww2commander
Proud father and civ-nut!
 
ww2commander's Avatar
 
Join Date: Aug 2003
Location: Eastern Front
Posts: 1,006
Issue: SPECIALUNIT_FIGHTER causing issue when adding new air units to mod

Thought I would post this here in the hope someone knows why this may be occurring.

I have spent the last two days trying to troubleshoot why any new air units with the <Special> tag set to SPECIALUNIT_FIGHTER refuse to work in my mod. When I remove this tag and set it to null the unit appears in the pedia and in game....strange.

Here are some things to note:
1. Did not remove any vanilla units
2. Did not touch specialunits xml
3. No UnitClasses removed
4. No spelling mistakes...unit works if I set the special tag to null!
5. Cleared cache

EDIT: Forgot to mention I am doing this via SQL.
Spoiler:

INSERT INTO "Units" (Class, Type, Description, Civilopedia, Strategy, Help, Requirements, Moves, Combat, RangedCombat, Cost, Immobile, Range, BaseSightRange, Special, Capture, CombatClass, Domain, CivilianAttackPriority, DefaultUnitAI, Food, NoBadGoodies, RivalTerritory, MilitarySupport, MilitaryProduction, Pillage, Found, FoundAbroad, CultureBombRadius, GoldenAgeTurns, IgnoreBuildingDefense, PrereqResources, Mechanized, Suicide, CaptureWhileEmbarked, PrereqTech, ObsoleteTech, GoodyHutUpgradeUnitClass, HurryCostModifier, AdvancedStartCost, MinAreaSize, AirUnitCap, NukeDamageLevel, WorkRate , NumFreeTechs, RushBuilding, BaseHurry, HurryMultiplier, BaseGold, NumGoldPerEra, SpreadReligion, IsReligious, CombatLimit, RangeAttackOnlyInDomain, RangeAttackIgnoreLOS, RangedCombatLimit, XPValueAttack, XPValueDefense, SpecialCargo, DomainCargo, Conscription, ExtraMaintenanceCost, NoMaintenance, Unhappiness, UnitArtInfo, UnitArtInfoCulturalVariation, UnitArtInfoEraVariation, ProjectPrereq, SpaceshipProject, LeaderPromotion, LeaderExperience, DontShowYields, ShowInPedia, MoveRate, UnitFlagIconOffset, PortraitIndex, IconAtlas, UnitFlagAtlas)
SELECT 'UNITCLASS_EARLY_FIGHTER','UNIT_I_16','TXT_KEY_UNI T_I_16','TXT_KEY_PEDIA_UNIT_I_16','TXT_KEY_STRATEG Y_UNIT_I_16','TXT_KEY_STRATEGY_UNIT_I_16',NULL,2,0 ,30,340,0,10,2,NULL,NULL,'UNITCOMBAT_FIGHTER','DOM AIN_AIR',NULL,'UNITAI_DEFENSE_AIR',0,0,0,1,1,0,0,0 ,0,0,1,0,1,0,0,NULL,NULL,NULL,0,50,-1,1,-1,0,0,0,0,0,0,0,0,0,0,0,0,100,3,2,NULL,NULL,0,0,0, 0,'ART_DEF_UNIT_I_16',0,0,NULL,NULL,NULL,0,0,1,'AI R_REBASE',0,0,'UNIT_ATLAS_2','UNIT_FLAG_ATLAS';


Does anyone know if there is something hardcoded around this special tag that may cause the game to ignore units when using this tag?
__________________
“The Pope? How many divisions has he got?”
Josef Stalin

Current Project: The Great Patriotic War - WWII on the Eastern Front

Last edited by ww2commander; Dec 30, 2011 at 07:48 PM.
ww2commander is offline   Reply With Quote
Old Dec 30, 2011, 08:06 PM   #2
Pouakai
Tangaroa
 
Pouakai's Avatar
 
Join Date: Jun 2010
Location: New Zealand
Posts: 4,674
Images: 24
Have you tried using just XML?
Pouakai is offline   Reply With Quote
Old Dec 30, 2011, 10:25 PM   #3
ww2commander
Proud father and civ-nut!
 
ww2commander's Avatar
 
Join Date: Aug 2003
Location: Eastern Front
Posts: 1,006
Would it make a difference given that XML is converted into SQL when the game loads anyway?

The reason for using SQL is that I am adding a huge amount of units and typing out the XML entries would be tedious.

My hunch is that the tag mentioned seems to break things if not 'managed' correctly.
__________________
“The Pope? How many divisions has he got?”
Josef Stalin

Current Project: The Great Patriotic War - WWII on the Eastern Front
ww2commander is offline   Reply With Quote
Old Dec 30, 2011, 10:34 PM   #4
Pouakai
Tangaroa
 
Pouakai's Avatar
 
Join Date: Jun 2010
Location: New Zealand
Posts: 4,674
Images: 24
I wouldn't know, I've only ever dealt with XML.
Pouakai is offline   Reply With Quote
Reply

Bookmarks

Go Back Civilization Fanatics' Forums > CIVILIZATION V > Civ5 - Creation & Customization > Issue: SPECIALUNIT_FIGHTER causing issue when adding new air units to mod

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Advertisement

All times are GMT -6. The time now is 09:14 AM.


Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
This site is copyright © Civilization Fanatics' Center.
Support CFC: Amazon.com | Amazon UK | Amazon DE | Amazon CA | Amazon FR