Announcement

Collapse
No announcement yet.

Can't a civ have more than one unique unit?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Can't a civ have more than one unique unit?

    I added multiple unique units to my custom civilization, but I getting errors for the extra ones despite where the first is when starting the game and seems to not be loaded in games I start. Why is that? All of the information for the unique units have been entered correctly in civunitinfos.xml
    This is just annoying...

    -mellian

  • #2
    (better description of my problem )

    Okay, added some extra special units for my civs which I added in CivUnitInfos.xml by just copy and pasting something else and just rename and changing the stats for my civ as I am not interested in creating new graphics or entire new civlopedia entries. Apart from the Macky Warrior, the game doesn't seem to accept the rest of them and then doesn't load them when the game starts. Can't see anything I have done wrong nor in the UnitInfos. The errors are coming from civilizationsinfos, nowhere else.

    The error is:

    "Tag: UNIT_MACKY_RIFLEMAN in Info class was incorrect
    Current XML file is: Civilizations/Civ4CiviliazationsInfos.xml"

    Any ideas in what is going on?

    -mellian



    PHP Code:
                <Units>
                    <
    Unit>
                        <
    UnitClassType>UNITCLASS_RIFLEMAN</UnitClassType>
                        <
    UnitType>UNIT_MACKY_RIFLEMAN</UnitType>
                    </
    Unit>
                    <
    Unit>
                        <
    UnitClassType>UNITCLASS_WARRIOR</UnitClassType>
                        <
    UnitType>UNIT_MACKY_WARRIOR</UnitType>
                    </
    Unit>
                    <
    Unit>
                        <
    UnitClassType>UNITCLASS_SWORDSMAN</UnitClassType>
                        <
    UnitType>UNIT_MACKY_LEGION</UnitType>
                    </
    Unit>
                    <
    Unit>
                        <
    UnitClassType>UNITCLASS_CAVALRY</UnitClassType>
                        <
    UnitType>UNIT_MACKY_CALVARY</UnitType>
                    </
    Unit>
                    <
    Unit>
                        <
    UnitClassType>UNITCLASS_SPEARMAN</UnitClassType>
                        <
    UnitType>UNIT_MACKY_PHALANX</UnitType>
                    </
    Unit>
                </
    Units

    Comment


    • #3
      Grrr, I just carefully went through the UnitInfos, especially after the Warrior and notice all the new units I accidently place them after the (/UnitInfos) tag, hence they were not loaded properlly and the CivilizationInfos couldn't find them.

      -mellian

      Comment


      • #4
        Check out the Civ4CivilizationInfos in, e.g., the Rise of Rome scenario. The civs there have more than one unique unit and they also use those tags to control what units civs *cannot* build.

        Comment

        Working...
        X