1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

[TUTORIAL] How to Make New Units for C2C.

Discussion in 'C2C mod mods' started by Hydromancerx, Sep 19, 2013.

  1. Hydromancerx

    Hydromancerx C2C Modder

    Joined:
    Feb 27, 2008
    Messages:
    16,281
    Location:
    California, USA
    So I send some PMs out to some active people in the C2C community who I thought maybe could help out with out lack of a unit modder. And Il Principe and Yudishtira responded back that they were interested. However they do not know how to. This thread is made to help them learn how to make units for C2C without any previous modding experience. Note that any help is welcome and even if they both become unit making masters then that is great since we need all the help we can get.

    In addition I aslo PMed SO, DH, TB and even ls612 to post their own tips, guides and input. I personally have only made a few units and am no where near mastered it (I made mostly buildings). So I will be posting what I know and feel free to ask questions or comment. Note that even though this is mainly made for Il Principe and Yudishtira, anyone can learn and can offer to help out C2C if they want to.

    I will post stuff shortly.

    INDEX
    Part 1 - Unit Files
     
  2. Hydromancerx

    Hydromancerx C2C Modder

    Joined:
    Feb 27, 2008
    Messages:
    16,281
    Location:
    California, USA
    Part 1 - Unit Files

    Lets see the first stuff I can post to help you guys is this ...

    Civ4UnitInfos.xml
    http://modiki.civfanatics.com/index.php/Civ4UnitInfos

    Civ4UnitClassInfos.xml
    http://modiki.civfanatics.com/index.php/Civ4UnitClassInfos

    Civ4ArtDefines_Unit.xml
    http://modiki.civfanatics.com/index.php/Civ4ArtDefines_Unit

    These are the 3 main types of files you will need to get familiar with. There are more custom tags C2C has but those we can deal with on a unit to unit basis.

    In addation to those files you will be using CIV4ArtDefinesSchema.xml, CIV4UnitSchema.xml and CIV4GameText.xml too.

    I guess I should explain what each file is for ...

    Civ4ArtDefines_Unit.xml
    This file tells where the art files go and how they work. Such as what 3D model you use and which button/icon.

    CIV4ArtDefinesSchema.xml
    This file you will not need to worry about editing but will need to have so the Civ4ArtDefines_Unit.xml works.

    Civ4UnitClassInfos.xml
    This file tells the unit class such as if its a Normal unit or National Unit or Hero unit.

    Civ4UnitInfos.xml
    This file tells all the stats of the unit such as strength, movement, cost, requirements, etc.

    CIV4UnitSchema.xml
    This file you will not need to worry about editing but will need to have so the Civ4UnitInfos.xml works.

    CIV4GameText.xml
    This file is for the text of the unit including name, strategy and pedia.

    This should get you started. let me know if you have any questions yet.
     
  3. ls612

    ls612 Deity Moderator

    Joined:
    Mar 10, 2008
    Messages:
    8,073
    Location:
    America
    Here is what I did when making units.

    Step 1: Create a module folder for the units. I organized mine very hierarchically, but you can mash them all together if you so desire. In that module there should be six XML files and an art folder. Those XML files should be the two schemas Hydro mentioned, the GameText, UnitInfos, UnitClassInfos, and ArtDefines_Unit XML.

    Step 2: Add a definition to the UnitClassInfos. It should be self-explanatory what each tag does.

    Step 3: Add a definition to the UnitInfos. Some tips here; UNITCLASS_FOO is named UNIT_FOO, and has gametexts TXT_KEY_UNIT_FOO, TXT_KEY_UNIT_FOO_STRATEGY, and so forth. Religiously and obsessively adhering to this will save you much grief and XML errors.

    Very Important: You should always start the unitinfos XML by copy-pasting the XML definition for an existing unit which is similar to the unit you are making. This saves time and also reduces the ability for you to screw up.

    Step 4: Create the Gametexts. Please Please add texts for all languages, even if it is just a copy-pasting of the english text, some text is better than empty tags for that language.

    Step 5: Art Defines. This one will silently crash the game on load if you do it wrong, so pay attention. There should (normally) be only 4 tags you need to be interested in; NIF, KFM, SHADERNIF, and Button. NIF is absolutely required to be populated, KFM is the animation, and SHADERNIF can either be left empty or filled with the same entry as NIF. Make sure if you aren't using one of the optional art tags that it is deleted, not there as <KFM></KFM>. Also make sure the art define is named correctly, and that all of the file paths are accurate.

    That is my 30000 foot overview on how units are made for C2C. If you follow it exactly and have a decent idea of how civ 4 XML works you should be able to repeatably make functional and graphically pleasing units.
     
  4. Hydromancerx

    Hydromancerx C2C Modder

    Joined:
    Feb 27, 2008
    Messages:
    16,281
    Location:
    California, USA
    here is strategyonly's input from already made tutorials ...

    And really if you are making a new unit you would probbly make it here ...

    Caveman2Cosmos/Assets/Modules/Units

    That way most of the work is done for you already and you mod should load.

    If doing a specific Culture unit then it would go under the "Unique" sub-folder.
     
  5. Il Principe

    Il Principe Prince

    Joined:
    Nov 11, 2005
    Messages:
    491
    Location:
    Hanau, Germany
    Seems pretty straightforward so far, with most tags having names that are self explaining. Will see once I get around to actually work with it.
    But after having been forced to work with gnuplot on an Ubuntu machine for months this seems so clear and straight forward. Not to mention I can do it on my Windows PC :)
     
  6. Hydromancerx

    Hydromancerx C2C Modder

    Joined:
    Feb 27, 2008
    Messages:
    16,281
    Location:
    California, USA
    @Il Principe

    Indeed they are straight forward. Here is your first task. Make it in Caveman2Cosmos/Assets/Modules/Units/Unique/Tlaxcaltc. That way its in its own mod folder in with the other unique units.

    Tlaxcaltec Warrior [National Unit - Limit 15]
    Graphic: Here (Use the Triple Alliance Warrior)
    Icon: ?
    Type: Combatant/Melee
    Strength: 7
    Movement: 1
    Cost: 55
    Req Tech: Obsidian Weapons
    Req Resource: Tlaxcaltc
    Req Building: -
    Upgrades To: Swordsman

    Special Abilities

    • +20% City Attack
    • Builds 15% Faster with Stone
    • Builds 15% Faster with Flint
    • Builds 15% Faster with Obsidian
    • Starts with Shock I, Drill I

    Note: Use Obsidian Swordsman as a Base.

    @Yudishtira

    Here is yours when you are ready. You will want to do a simialr thing with Caveman2Cosmos/Assets/Modules/Units/Unique/Mixtec

    Cuachic [National Unit - Limit 15]
    Graphic: Here (Use the Mexica Cuachic)
    Icon: ?
    Type: Combatant/Melee
    Strength: 7
    Movement: 1
    Cost: 55
    Req Tech: Obsidian Weapons
    Req Resource: Mixtec
    Req Building: -
    Upgrades To: Swordsman

    Special Abilities

    • +20% City Attack
    • Builds 15% Faster with Stone
    • Builds 15% Faster with Flint
    • Builds 15% Faster with Obsidian
    • Starts with Shock I, Mobility

    Note: Use Obsidian Swordsman as a Base.

    ---

    Good luck you guys and post any questions you have. :goodjob:
     
  7. Il Principe

    Il Principe Prince

    Joined:
    Nov 11, 2005
    Messages:
    491
    Location:
    Hanau, Germany
    Ok first question:Where in all of C2Cs huge amount of files do I find the resources? Would like to look up the correct names for those 4 I need.

    Edit: Found them all in the unitInfo XML since the culture gives a bonus to the regular obsidian swordman.
    But would be nice to know for the future, just in case something doesn´t have the obvious name for some reason.
    Same goes for Promotions. The folder in modules is only a small part obviously
     
  8. Faustmouse

    Faustmouse Deity

    Joined:
    Jan 31, 2012
    Messages:
    3,523
    They are in Assets/Modules/Resources. Also, some are in Assets/XML/Terrain.
     
  9. Hydromancerx

    Hydromancerx C2C Modder

    Joined:
    Feb 27, 2008
    Messages:
    16,281
    Location:
    California, USA
    Yeah ere Faustmouse said.

    As for organization things can get crazy since this is a mod built on other mods and has had a bunch of different contributors over the years. However if you ever cannot find something let us know and some should know where to find it.
     
  10. Azurian

    Azurian The Azurian

    Joined:
    Apr 10, 2012
    Messages:
    2,092
    Location:
    Florida, USA
    I have lists of almost every game element, it makes modding easier. Here are the ones you requested.


    Resouces/Bonuses
    Spoiler :

    bonus_aborigine
    bonus_ainu
    bonus_aircraft
    bonus_aka
    bonus_algae
    bonus_american
    bonus_androids
    bonus_apache
    bonus_arabian
    bonus_arawak
    bonus_argentinian
    bonus_armenian
    bonus_assyrian
    bonus_atompunk
    bonus_australian
    bonus_austrian
    bonus_automobiles
    bonus_aztec
    bonus_babylonian
    bonus_bamboo
    bonus_bandanese
    bonus_bark
    bonus_barrels
    bonus_baskets
    bonus_basque
    bonus_beads
    bonus_belgian
    bonus_bengali
    bonus_benin
    bonus_berber
    bonus_berries
    bonus_bicycles
    bonus_bionic_suits
    bonus_biopolymers
    bonus_biopunk
    bonus_blender
    bonus_bone
    bonus_books
    bonus_brass
    bonus_brazilian
    bonus_bread
    bonus_bricks
    bonus_bullion
    bonus_burmese
    bonus_byzantine
    bonus_californian
    bonus_canadian
    bonus_candles
    bonus_candy
    bonus_cantonese
    bonus_carcass
    bonus_carib
    bonus_carpets
    bonus_carthaginian
    bonus_cat
    bonus_cellphones
    bonus_celtic
    bonus_ceylonese
    bonus_cham
    bonus_champagne
    bonus_charcoal
    bonus_cheese
    bonus_cherokee
    bonus_cheyenne
    bonus_chinese
    bonus_chocolate
    bonus_chola
    bonus_chumash
    bonus_clay2
    bonus_clockpunk
    bonus_cloth
    bonus_clothes
    bonus_comanche
    bonus_computers
    bonus_confederate
    bonus_copperwires
    bonus_cotton_fibers
    bonus_cree
    bonus_cuban
    bonus_cyberpunk
    bonus_dahomey
    bonus_dene
    bonus_dieselpunk
    bonus_dishwashers
    bonus_dog
    bonus_dolphin
    bonus_dried_fish
    bonus_dried_fruit
    bonus_dried_meat
    bonus_drugs
    bonus_dutch
    bonus_ecstasy
    bonus_eggs
    bonus_egyptian
    bonus_electrolyte_cells
    bonus_energy_drink
    bonus_english
    bonus_enzymes
    bonus_ethiopian
    bonus_exoskeletons
    bonus_feathers
    bonus_fiberglass
    bonus_fiberoptics
    bonus_firearms
    bonus_firecrackers
    bonus_fishoil
    bonus_flax_fibers
    bonus_flint
    bonus_flour
    bonus_flowers
    bonus_fossils
    bonus_franks
    bonus_french
    bonus_fruit
    bonus_fulani
    bonus_furniture
    bonus_furs
    bonus_german
    bonus_gheeoil
    bonus_goth
    bonus_grain
    bonus_graphene
    bonus_graphite
    bonus_grass
    bonus_greek
    bonus_haida
    bonus_hats
    bonus_hattian
    bonus_hausa
    bonus_hawaiian
    bonus_helicopters
    bonus_hemp_fibers
    bonus_herero
    bonus_hide
    bonus_hittite
    bonus_holo_projectors
    bonus_holyroman
    bonus_honey
    bonus_hopi
    bonus_hovercrafts
    bonus_huastec
    bonus_hun
    bonus_hungarian
    bonus_huron
    bonus_hydrogen
    bonus_icecream
    bonus_icelandic
    bonus_immunity_drugs
    bonus_incan
    bonus_indian
    bonus_indonesian
    bonus_ingot_brass
    bonus_ingot_bronze
    bonus_ingot_copper
    bonus_ingot_electrum
    bonus_ingot_gold
    bonus_ingot_iron
    bonus_ingot_lead
    bonus_ingot_platinum
    bonus_ingot_silver
    bonus_ingot_tin
    bonus_ingot_titanium
    bonus_inuit
    bonus_irish
    bonus_iroquois
    bonus_israeli
    bonus_italian
    bonus_ivory2
    bonus_jamaican
    bonus_japanese
    bonus_jet_aircrafts
    bonus_jewelry
    bonus_jivaro
    bonus_jomon
    bonus_joseon
    bonus_kanembornu
    bonus_kerosene
    bonus_kevlar
    bonus_khmer
    bonus_klamath
    bonus_kongolese
    bonus_korean
    bonus_lacquerware
    bonus_lard
    bonus_leather
    bonus_lithium
    bonus_lsd
    bonus_luba
    bonus_malinese
    bonus_manchurian
    bonus_manganese
    bonus_maori
    bonus_mapuche
    bonus_mars_rocks
    bonus_marzipan
    bonus_masai
    bonus_masks
    bonus_mayan
    bonus_merina
    bonus_meth
    bonus_mexican
    bonus_microwaves
    bonus_milk
    bonus_minoan
    bonus_mixtec
    bonus_moche
    bonus_mongolian
    bonus_moon_rocks
    bonus_moroccan
    bonus_mughal
    bonus_mutapa
    bonus_navajo
    bonus_nazca
    bonus_nepal
    bonus_nets
    bonus_neuroimplants
    bonus_newspapers
    bonus_newzealand
    bonus_nootka
    bonus_norwegian
    bonus_nubian
    bonus_nutella
    bonus_nuts
    bonus_nylon
    bonus_oliveoil
    bonus_olmec
    bonus_omega_acids
    bonus_organic_computers
    bonus_ottoman
    bonus_pakistani
    bonus_paper
    bonus_papuan
    bonus_parthian
    bonus_parts
    bonus_pasta
    bonus_peat
    bonus_pelts
    bonus_percussion
    bonus_perfume
    bonus_persian
    bonus_pharmaceuticals
    bonus_phoenican
    bonus_plastic
    bonus_poison
    bonus_polish
    bonus_polynesian
    bonus_portuguese
    bonus_potato_chips
    bonus_power_tools
    bonus_prussian
    bonus_quang
    bonus_quechua
    bonus_rapanui
    bonus_rawfish
    bonus_rawmeat
    bonus_reeds
    bonus_refrigerators
    bonus_replacement_organs
    bonus_rhodesian
    bonus_roasted_coffee
    bonus_rocketfuel
    bonus_roman
    bonus_rope
    bonus_russian
    bonus_saddles
    bonus_sails
    bonus_sami
    bonus_sand
    bonus_sassanian
    bonus_sausage
    bonus_saxon
    bonus_scottish
    bonus_scrolls
    bonus_sculpture_nok
    bonus_sculptures
    bonus_scythian
    bonus_seasoning
    bonus_seminole
    bonus_service_bots
    bonus_shang
    bonus_shellfish
    bonus_shoes
    bonus_siamese
    bonus_siberian
    bonus_silk_fibers
    bonus_sioux
    bonus_skis
    bonus_soap
    bonus_soda_pop
    bonus_somali
    bonus_southafrican
    bonus_soviet
    bonus_soylent_green
    bonus_spanish
    bonus_spartan
    bonus_sponges
    bonus_steampunk
    bonus_stonetools
    bonus_straw
    bonus_strings
    bonus_sumerian
    bonus_swahili
    bonus_swazi
    bonus_swiss
    bonus_syrian
    bonus_tablets
    bonus_taiwanese
    bonus_tamil
    bonus_tanks
    bonus_tannin
    bonus_tar
    bonus_tarascan
    bonus_tasmanian
    bonus_televisions
    bonus_texan
    bonus_thai
    bonus_theremin
    bonus_tibetan
    bonus_tires
    bonus_tlatilco
    bonus_tlaxcaltec
    bonus_toltec
    bonus_tongan
    bonus_tools
    bonus_totonac
    bonus_toys
    bonus_trojan
    bonus_tuareg
    bonus_tupi
    bonus_turkmen
    bonus_uighur
    bonus_unmanned_aircrafts
    bonus_vacuum
    bonus_vegetables
    bonus_venezuelan
    bonus_vietnamese
    bonus_viking
    bonus_vines
    bonus_vintage_red_wine
    bonus_vintage_white_wine
    bonus_ware_aluminum
    bonus_ware_brass
    bonus_ware_bronze
    bonus_ware_copper
    bonus_ware_electrum
    bonus_ware_gold
    bonus_ware_iron
    bonus_ware_lead
    bonus_ware_platinum
    bonus_ware_silver
    bonus_ware_steel
    bonus_ware_tin
    bonus_ware_titanium
    bonus_wares_porcelain
    bonus_wares_terracotta
    bonus_washer_dryer
    bonus_waterbottle
    bonus_wax
    bonus_welsh
    bonus_whaleoil
    bonus_wood
    bonus_woodwinds
    bonus_xiongu
    bonus_yamato
    bonus_zapotec
    bonus_zulu


    Promotions
    Spoiler :
    PROMOTION_ACCURACY
    PROMOTION_ACCURACY2
    PROMOTION_ACCURACY3
    PROMOTION_ACE
    PROMOTION_AIR_DEFENSE1
    PROMOTION_AIR_DEFENSE2
    PROMOTION_AIR_DEFENSE3
    PROMOTION_AIR_REFUEL
    PROMOTION_AIR_TO_AIR1
    PROMOTION_AIR_TO_AIR2
    PROMOTION_AIR_TO_AIR3
    PROMOTION_ALCHEMIST1
    PROMOTION_ALCHEMIST2
    PROMOTION_ALCHEMIST3
    PROMOTION_AMBUSH
    PROMOTION_AMBUSH2
    PROMOTION_AMBUSH3
    PROMOTION_AMPHIBIOUS
    PROMOTION_AMPHIBIOUS
    PROMOTION_ANTIBIOLOGICAL
    PROMOTION_ANTITANK_DEFENSE1
    PROMOTION_ANTITANK_DEFENSE2
    PROMOTION_ANTITANK_DEFENSE3
    PROMOTION_AQUARIUS
    PROMOTION_ARCHER_AID1
    PROMOTION_ARCHER_AID2
    PROMOTION_ARCHER_AID3
    PROMOTION_ARIES
    PROMOTION_ARMOR_UPGRADE1
    PROMOTION_ARMOR_UPGRADE2
    PROMOTION_ARMOR_UPGRADE3
    PROMOTION_AUTOMATIC_REPAIRS1
    PROMOTION_AUTOMATIC_REPAIRS2
    PROMOTION_AUTOMATIC_REPAIRS3
    PROMOTION_BARD1
    PROMOTION_BARD2
    PROMOTION_BARD3
    PROMOTION_BARRAGE1
    PROMOTION_BARRAGE1
    PROMOTION_BARRAGE2
    PROMOTION_BARRAGE2
    PROMOTION_BARRAGE3
    PROMOTION_BARRAGE3
    PROMOTION_BERZERKER1
    PROMOTION_BERZERKER2
    PROMOTION_BERZERKER3
    PROMOTION_BLITZ
    PROMOTION_BLITZ
    PROMOTION_BOMBARDING1
    PROMOTION_BOMBARDING2
    PROMOTION_BOMBARDING3
    PROMOTION_CANCER
    PROMOTION_CAPRICORN
    PROMOTION_CHAFF
    PROMOTION_CHAIN_SHOT
    PROMOTION_CHARGE
    PROMOTION_CHARGE
    PROMOTION_CHARGE2
    PROMOTION_CHARGE3
    PROMOTION_CHEMICAL1
    PROMOTION_CHEMICAL2
    PROMOTION_CHEMICAL3
    PROMOTION_CITY_GARRISON1
    PROMOTION_CITY_GARRISON1
    PROMOTION_CITY_GARRISON2
    PROMOTION_CITY_GARRISON2
    PROMOTION_CITY_GARRISON3
    PROMOTION_CITY_GARRISON3
    PROMOTION_CITY_RAIDER1
    PROMOTION_CITY_RAIDER1
    PROMOTION_CITY_RAIDER2
    PROMOTION_CITY_RAIDER2
    PROMOTION_CITY_RAIDER3
    PROMOTION_CITY_RAIDER3
    PROMOTION_CITY_RAIDER4
    PROMOTION_COASTAL_ASSAULT1
    PROMOTION_COASTAL_ASSAULT2
    PROMOTION_COASTAL_ASSAULT3
    PROMOTION_COASTAL_GUARD1
    PROMOTION_COASTAL_GUARD2
    PROMOTION_COASTAL_GUARD3
    PROMOTION_COLD0
    PROMOTION_COLD1
    PROMOTION_COLD2
    PROMOTION_COLD3
    PROMOTION_COMBAT_AI1
    PROMOTION_COMBAT_AI2
    PROMOTION_COMBAT_AI3
    PROMOTION_COMBAT_AI4
    PROMOTION_COMBAT1
    PROMOTION_COMBAT1
    PROMOTION_COMBAT2
    PROMOTION_COMBAT2
    PROMOTION_COMBAT3
    PROMOTION_COMBAT3
    PROMOTION_COMBAT4
    PROMOTION_COMBAT4
    PROMOTION_COMBAT5
    PROMOTION_COMBAT5
    PROMOTION_COMBAT6
    PROMOTION_COMBAT6
    PROMOTION_COMMAND1
    PROMOTION_COMMAND10
    PROMOTION_COMMAND2
    PROMOTION_COMMAND3
    PROMOTION_COMMAND4
    PROMOTION_COMMAND5
    PROMOTION_COMMAND6
    PROMOTION_COMMAND7
    PROMOTION_COMMAND8
    PROMOTION_COMMAND9
    PROMOTION_COMMANDO
    PROMOTION_COMMANDO
    PROMOTION_CONTROL
    PROMOTION_COPPER_PLATING
    PROMOTION_COVER
    PROMOTION_COVER
    PROMOTION_COVER2
    PROMOTION_COVER3
    PROMOTION_CROWDED
    PROMOTION_CRUCIBLE_STEEL
    PROMOTION_CRUSADER
    PROMOTION_DECEPTION1
    PROMOTION_DECEPTION2
    PROMOTION_DECEPTION3
    PROMOTION_DEDICATION
    PROMOTION_DEFENSIVE_PROTOCOLS1
    PROMOTION_DEFENSIVE_PROTOCOLS2
    PROMOTION_DEFENSIVE_PROTOCOLS3
    PROMOTION_DRILL1
    PROMOTION_DRILL2
    PROMOTION_DRILL3
    PROMOTION_DRILL4
    PROMOTION_ELECTROMAGNETIC_ARMOR1
    PROMOTION_ELECTROMAGNETIC_ARMOR2
    PROMOTION_ELECTROMAGNETIC_ARMOR3
    PROMOTION_ESCAPE1
    PROMOTION_ESCAPE2
    PROMOTION_FANATIC
    PROMOTION_FIELD1
    PROMOTION_FIELD2
    PROMOTION_FIELD3
    PROMOTION_FIREARMS1
    PROMOTION_FIREARMS2
    PROMOTION_FIREARMS3
    PROMOTION_FLANKING1
    PROMOTION_FLANKING1
    PROMOTION_FLANKING2
    PROMOTION_FLANKING2
    PROMOTION_FLANKING3
    PROMOTION_FLOWER_WAR
    PROMOTION_FORMATION
    PROMOTION_FORMATION2
    PROMOTION_FORMATION3
    PROMOTION_FUEL_TANK
    PROMOTION_FUSION_CANNON
    PROMOTION_FUSION_POWER_SOURCE
    PROMOTION_FUSION_SHELLS
    PROMOTION_FUZZY_LOGIC
    PROMOTION_GEMINI
    PROMOTION_GENERAL_STAFF1
    PROMOTION_GENERAL_STAFF10
    PROMOTION_GENERAL_STAFF2
    PROMOTION_GENERAL_STAFF3
    PROMOTION_GENERAL_STAFF4
    PROMOTION_GENERAL_STAFF5
    PROMOTION_GENERAL_STAFF6
    PROMOTION_GENERAL_STAFF7
    PROMOTION_GENERAL_STAFF8
    PROMOTION_GENERAL_STAFF9
    PROMOTION_GENTLEMEN
    PROMOTION_GLOBAL_AWERENESS
    PROMOTION_GPS
    PROMOTION_GRAPE_SHOT
    PROMOTION_GUARDIAN1
    PROMOTION_GUARDIAN2
    PROMOTION_GUARDIAN3
    PROMOTION_GUERILLA1
    PROMOTION_GUERILLA1
    PROMOTION_GUERILLA2
    PROMOTION_GUERILLA2
    PROMOTION_GUERILLA3
    PROMOTION_GUERILLA3
    PROMOTION_HEAL
    PROMOTION_HEAT_SEEKING
    PROMOTION_HERBAL_CURES
    PROMOTION_HEROIC
    PROMOTION_HEROIC2
    PROMOTION_HOLY_TRINITY
    PROMOTION_HUNTER_GREAT
    PROMOTION_HUNTER1
    PROMOTION_HUNTER2
    PROMOTION_HUNTER3
    PROMOTION_HUNTING_SIGHT1
    PROMOTION_HUNTING_SIGHT2
    PROMOTION_IMPROVED_RADAR
    PROMOTION_IMPROVISE1
    PROMOTION_IMPROVISE2
    PROMOTION_IMPROVISE3
    PROMOTION_IMPROVISE4
    PROMOTION_IMPROVISE5
    PROMOTION_INITIATIVE1
    PROMOTION_INITIATIVE2
    PROMOTION_INITIATIVE3
    PROMOTION_INITIATIVE4
    PROMOTION_INSTIGATOR1
    PROMOTION_INSTIGATOR2
    PROMOTION_INSTIGATOR3
    PROMOTION_INTERCEPTION1
    PROMOTION_INTERCEPTION1
    PROMOTION_INTERCEPTION2
    PROMOTION_INTERCEPTION2
    PROMOTION_JUMP_SETS
    PROMOTION_KAMIKAZE
    PROMOTION_KANAI
    PROMOTION_LAND_WARRIOR1
    PROMOTION_LAND_WARRIOR2
    PROMOTION_LAND_WARRIOR3
    PROMOTION_LASER_GUIDANCE
    PROMOTION_LEADER
    PROMOTION_LEADER
    PROMOTION_LEADERSHIP
    PROMOTION_LEADERSHIP
    PROMOTION_LEO
    PROMOTION_LEVIATHAN1
    PROMOTION_LEVIATHAN2
    PROMOTION_LEVIATHAN3
    PROMOTION_LIBRA
    PROMOTION_LIVE1
    PROMOTION_LIVE2
    PROMOTION_LOCALLORD
    PROMOTION_LOGISTICS1
    PROMOTION_LOGISTICS2
    PROMOTION_LOGISTICS3
    PROMOTION_LOOTER
    PROMOTION_LORDSHIP
    PROMOTION_LOW_ALTITUDE
    PROMOTION_LOYALTY
    PROMOTION_LOYALTY_NORM
    PROMOTION_MANUEVERING1
    PROMOTION_MANUEVERING2
    PROMOTION_MANUEVERING3
    PROMOTION_MARCH
    PROMOTION_MARCH
    PROMOTION_MARTIAL_ARTS
    PROMOTION_MEDIC1
    PROMOTION_MEDIC1
    PROMOTION_MEDIC2
    PROMOTION_MEDIC2
    PROMOTION_MEDIC3
    PROMOTION_MEDIC3
    PROMOTION_MELEE_AID1
    PROMOTION_MELEE_AID2
    PROMOTION_MELEE_AID3
    PROMOTION_MOBILITY
    PROMOTION_MOBILITY
    PROMOTION_MORALE
    PROMOTION_MORALE
    PROMOTION_MORALE1
    PROMOTION_MORALE2
    PROMOTION_MORALE3
    PROMOTION_MORALE4
    PROMOTION_MORALE5
    PROMOTION_MOUNTAIN_LEADER
    PROMOTION_MOUNTAINEER
    PROMOTION_MOUNTED_AID1
    PROMOTION_MOUNTED_AID2
    PROMOTION_MOUNTED_AID3
    PROMOTION_MUJAHID
    PROMOTION_NANOIDS
    PROMOTION_NAPALM_BOMBS
    PROMOTION_NAVIGATION1
    PROMOTION_NAVIGATION1
    PROMOTION_NAVIGATION2
    PROMOTION_NAVIGATION2
    PROMOTION_NAVIGATION3
    PROMOTION_OFFENSIVE_PROTOCOLS1
    PROMOTION_OFFENSIVE_PROTOCOLS2
    PROMOTION_OFFENSIVE_PROTOCOLS3
    PROMOTION_OFFICER_COMMISSION
    PROMOTION_OPERATIONS1
    PROMOTION_OPERATIONS2
    PROMOTION_OPERATIONS3
    PROMOTION_OPERATIONS4
    PROMOTION_ORDER_OF_ORMAZD
    PROMOTION_OVERWHELM
    PROMOTION_PANKRATION
    PROMOTION_PATROL
    PROMOTION_PATROL2
    PROMOTION_PATROL3
    PROMOTION_PHARAOH
    PROMOTION_PINCH
    PROMOTION_PINCH
    PROMOTION_PINCH2
    PROMOTION_PINCH3
    PROMOTION_PISCES
    PROMOTION_POISON_ARROWS
    PROMOTION_POWER_SOURCE_UPGRADE1
    PROMOTION_POWER_SOURCE_UPGRADE2
    PROMOTION_POWER_SOURCE_UPGRADE3
    PROMOTION_PRECISION_BOMBING
    PROMOTION_QUANTUM_ALGORITHMS
    PROMOTION_RAD_SHELLS
    PROMOTION_RANGE1
    PROMOTION_RANGE1
    PROMOTION_RANGE2
    PROMOTION_RANGE2
    PROMOTION_RAPID_DEPLOYMENT1
    PROMOTION_RAPID_DEPLOYMENT2
    PROMOTION_REINFORCED_STRUCTURE
    PROMOTION_RIOT_CONTROL1
    PROMOTION_RIOT_CONTROL2
    PROMOTION_RIOT_CONTROL3
    PROMOTION_RIOT_CONTROL4
    PROMOTION_RIOT_CONTROL5
    PROMOTION_RUGGED1
    PROMOTION_RUGGED2
    PROMOTION_RUGGED3
    PROMOTION_SAGITTARIUS
    PROMOTION_SCORPIO
    PROMOTION_SCOUT_AID1
    PROMOTION_SCOUT_AID2
    PROMOTION_SCOUT_AID3
    PROMOTION_SEA_CREATURE1
    PROMOTION_SEA_CREATURE2
    PROMOTION_SEA_HUNTER_GREAT
    PROMOTION_SEA_HUNTER1
    PROMOTION_SEA_HUNTER2
    PROMOTION_SEA_HUNTER3
    PROMOTION_SECURITY1
    PROMOTION_SECURITY2
    PROMOTION_SECURITY3
    PROMOTION_SEGMENTED_ARMOR
    PROMOTION_SELF_DESTRUCT
    PROMOTION_SELFPRESERVATION1
    PROMOTION_SELFPRESERVATION2
    PROMOTION_SELFPRESERVATION3
    PROMOTION_SENSORS
    PROMOTION_SENSORS2
    PROMOTION_SENSORS3
    PROMOTION_SENTRY
    PROMOTION_SENTRY
    PROMOTION_SENTRY2
    PROMOTION_SENTRY3
    PROMOTION_SHIELDING1
    PROMOTION_SHIELDING2
    PROMOTION_SHIELDING3
    PROMOTION_SHOCK
    PROMOTION_SHOCK
    PROMOTION_SHOCK2
    PROMOTION_SHOCK3
    PROMOTION_SIDESTEP1
    PROMOTION_SIDESTEP2
    PROMOTION_SIDESTEP3
    PROMOTION_SIEGE_AID1
    PROMOTION_SIEGE_AID2
    PROMOTION_SIEGE_AID3
    PROMOTION_SMALL_DIAMETER_BOMB
    PROMOTION_SNIPER
    PROMOTION_SONAR
    PROMOTION_SPEED
    PROMOTION_SPHINX
    PROMOTION_STEALTH1
    PROMOTION_STEALTH2
    PROMOTION_STEALTH3
    PROMOTION_SUPER_CAVITATION
    PROMOTION_TACTICIAN
    PROMOTION_TACTICS
    PROMOTION_TACTICS
    PROMOTION_TACTICS1
    PROMOTION_TACTICS2
    PROMOTION_TACTICS3
    PROMOTION_TACTICS4
    PROMOTION_TAURUS
    PROMOTION_TERRAIN_ANALYSIS1
    PROMOTION_TERRAIN_ANALYSIS2
    PROMOTION_TERRAIN_ANALYSIS3
    PROMOTION_TOPGUN
    PROMOTION_TORPEDOES
    PROMOTION_TRANSPORT1
    PROMOTION_TRANSPORT2
    PROMOTION_TRANSPORT3
    PROMOTION_TRENCH1
    PROMOTION_TRENCH2
    PROMOTION_TRENCH3
    PROMOTION_UPGRADE_DISCOUNT
    PROMOTION_URBAN_TACTICS1
    PROMOTION_URBAN_TACTICS2
    PROMOTION_URBAN_TACTICS3
    PROMOTION_VETERAN
    PROMOTION_VIRGO
    PROMOTION_WAIDAN
    PROMOTION_WALL_BREAKER
    PROMOTION_WARMTH0
    PROMOTION_WARMTH1
    PROMOTION_WARMTH2
    PROMOTION_WARMTH3
    PROMOTION_WEAPON_UPGRADE1
    PROMOTION_WEAPON_UPGRADE2
    PROMOTION_WEAPON_UPGRADE3
    PROMOTION_WEATHER_FORECAST_AIR
    PROMOTION_WEATHER_FORECAST_LAND
    PROMOTION_WEATHER_FORECAST_NAVAL
    PROMOTION_WETLAND1
    PROMOTION_WETLAND2
    PROMOTION_WETLAND3
    PROMOTION_WOODSMAN1
    PROMOTION_WOODSMAN1
    PROMOTION_WOODSMAN2
    PROMOTION_WOODSMAN2
    PROMOTION_WOODSMAN3
    PROMOTION_WOODSMAN3
    PROMOTION_ZEN
    PROMOTIONLINE_ARCTIC_NOMAD
    PROMOTIONLINE_DESERT_NOMAD
    PROMOTIONLINE_HARDY
    PROMOTIONLINE_NATIVE_HIGHLANDER
    PROMOTIONLINE_NATIVE_PLAINSMEN
    PROMOTIONLINE_NATIVE_WOODSMAN
    PROMOTIONLINE_SEAFARING
    PROMOTIONLINE_WATERWAYS
    RETINUE_ADVENTURER
    RETINUE_BANDIT
    RETINUE_BARD
    RETINUE_BODYGUARD
    RETINUE_BUILDER
    RETINUE_LIEUTENANT
    RETINUE_LOYAL_SERVANT
    RETINUE_MESSENGER
    RETINUE_PRIEST
    RETINUE_SCHOLAR
    RETINUE_SPOUSE
    RETINUE_STRATEGIST
    RETINUE_WAR_VETERAN

     
  11. Thunderbrd

    Thunderbrd C2C War Dog

    Joined:
    Jan 2, 2010
    Messages:
    28,215
    Gender:
    Male
    Location:
    Las Vegas
    Those are called Bonuses. Thus, BonusInfos.xml in Assets/XML/Terrain are where they are defined. And most Promotions are located in PromotionInfos.xml in Assets/XML/Units. Those Assets/XML files are the where you'll find core game infos.
     
  12. Koshling

    Koshling Vorlon

    Joined:
    Apr 11, 2011
    Messages:
    9,254
    ...and don't forget that modular mod-mods can add entities of any type (or redefine aspects of core ones), so the full generality of bonuses is defined in the set of files you get by searching for 'BonusInfos.xml' in the entire assets hierarchy. In general you should not depend on anything modular however unless you belong to that module (or do so in a way that is graceful if they are not defined, which is trickier)
     
  13. Il Principe

    Il Principe Prince

    Joined:
    Nov 11, 2005
    Messages:
    491
    Location:
    Hanau, Germany
    I can´t get it to work...
    where is the culture bonus Tlaxcaltec defined? I tried multiple possible typos, caps, no caps... when loading the game the error is always with that bonus.
     
  14. strategyonly

    strategyonly C2C Supreme Commander

    Joined:
    Mar 13, 2006
    Messages:
    20,603
    Gender:
    Male
    Location:
    MN
    For everyone, if you dont have a search files program (see top of attached), here is one of the best ones: It took me about 6 seconds or so to find this
     
  15. Yudishtira

    Yudishtira Spiritual/Creative

    Joined:
    Nov 2, 2012
    Messages:
    2,814
    Location:
    Brisbane
    Thanks for this and sorry again for not seeing it sooner.

    Q: There are 6 DDS files in the graphic download. Four of them clearly seem to relate to non-swordsmen, that still left me with two to guess between (aztecblade and aztecflag1jaguar). Which should I use? Do I need to be able to open DDS files?

    I used the 'blade' one and I can build it with WorldBuilder in the game. I changed it to the other one and I can't see any difference, so I just left it. The button looks identical to the standard Obsidian Swordsman, which is mildly disappointing (and possibly due to something I've done wrong).

    Anyway here is my Mixtec folder, so let me know if there's anything wrong with it...:crazyeye:

    PS: What did you mean by "Icon: ?"? Is it something I need to worry about? Also do you need me to WB myself the Tech and the Culture and see if I can build it (I'm hoping that's not necessary...)
     

    Attached Files:

  16. Faustmouse

    Faustmouse Deity

    Joined:
    Jan 31, 2012
    Messages:
    3,523
    "Icon" is the button that appears for example in the WB or in your city if you can build it. That's the one that looks identical to the obsidian Swordman and it can be edited quite easy.

    You do not need to view .dds files (that are the buttons), but if you want to, try this http://www.softpedia.com/get/Multimedia/Graphic/Graphic-Editors/DXTBmp.shtml freeware.

    You don't need to edit the required things in the WB so you can build it, if you place it directly with the WB and it looks good (not pink^^) and if the stats are correct (look that up in the Pedia) you should be fine.

    Thanks for doing this :goodjob:
     
  17. Yudishtira

    Yudishtira Spiritual/Creative

    Joined:
    Nov 2, 2012
    Messages:
    2,814
    Location:
    Brisbane
    I'm having trouble with the Biopunk unit Faustmouse asked me to try. First attempt it told me I used an invalid unitcombat, which was easy to fix.

    But now it just fails to load the mod.

    How do you debug XML? What's the next step when it all goes horribly wrong??? :eek: (see attached).
     

    Attached Files:

  18. Yudishtira

    Yudishtira Spiritual/Creative

    Joined:
    Nov 2, 2012
    Messages:
    2,814
    Location:
    Brisbane
    Thanks - this is going to be very helpful. :goodjob:

    However.....:D what do you do when the English name bears no relation to the XML name? Eg. what is the XML name of the Camouflage promo?
     
  19. Faustmouse

    Faustmouse Deity

    Joined:
    Jan 31, 2012
    Messages:
    3,523
    If something goes "horrible wrong" (which is often nothing more than you forgot a "<" :mischief:) you can debug it with Notepad++. There is a special XML debug tool, but I can't tell you what it is called :(

    You could look over your files again and make sure that:

    1) every tag starts with < and ends with >
    2) every tag that opens <tag> close after the imput </tag> (or is closed <tag/>)

    As for searchiing the correct tag for a name, look at other units and/or buildings that gives that promo. Or (I don't know if this exists) look in the promotion file and look for a tag that might be the right one. You will have fun when looking up techs in the TH era :lol: but if you keep on doing so, you know what tag is what name, or you can make a .txt file as dictionary.
     
  20. Azurian

    Azurian The Azurian

    Joined:
    Apr 10, 2012
    Messages:
    2,092
    Location:
    Florida, USA
    Look at files called Gametext and see how they connect.

    RoM_GameTextInfos_Promotions
    C2C_Promotions_CIV4GameText

    also recommend but not necessary to do the free XML course at Code Academy.

    http://www.codecademy.com/

    I did it and it helped me unsterstand quite a bit about XML. I am doing the Python one right now.
     

Share This Page