Unit thread - help needed!

Agent327

Observer
Joined
Oct 28, 2006
Messages
16,102
Location
In orbit
I've been looking over the sci-fi units download pages (here: http://forums.civfanatics.com/downloads.php?do=cat&id=51) and noticed the number of MOO2 ship downloads. Anybody wanting to help implement ships/units into MOO2Civ mod would be grately appreciated!

2D models can be found with MoOjr4: http://forums.civfanatics.com/downloads.php?do=file&id=8267.

Some pre-release 3D MoO III models here: http://www.moo3.at/gallery/categories.php?sessionid=fcc14d0b1b340856a5b0339a8a3850e1

I'm including this post by tuxu as it contains some very clear install instructions for models:

and about XML coding; you've said something about giving special units to civs, right?
this is a longshot because you prolly already knows that but here goes nothing:

(check the red part)

Spoiler :

Code:
>>>CIV4CivilizationInfos.xml<<<

        <CivilizationInfo>
            <Type>CIVILIZATION_DARLOK</Type>
            <Description>TXT_KEY_CIV_DARLOK_DESC</Description>
            <ShortDescription>TXT_KEY_CIV_DARLOK_SHORT_DESC</ShortDescription>
            <Adjective>TXT_KEY_CIV_DARLOK_ADJECTIVE</Adjective>
            <Civilopedia>TXT_KEY_CIV_DARLOK_PEDIA</Civilopedia>
            <DefaultPlayerColor>PLAYERCOLOR_GREEN</DefaultPlayerColor>
            <ArtDefineTag>ART_DEF_CIVILIZATION_DARLOK</ArtDefineTag>
            <ArtStyleType>ARTSTYLE_GRECO_ROMAN</ArtStyleType>
            <bPlayable>1</bPlayable>
            <bAIPlayable>1</bAIPlayable>
            <Cities>
                <City>TXT_KEY_CITY_DARLOK_0</City>
                <City>Arietis</City>
                <City>Beta Ceti</City>
                <City>Tau Cygni</City>
                <City>Chorazin</City>
                <City>Delphi </City>
                <City>Elysia</City>
                <City>Ghav</City>
                <City>Hoshi</City>
                <City>Kelev</City>
                <City>Maalor</City>
                <City>Agab</City>
                <City>Lara</City>
                <City>Tuna</City>
                <City>Aruc</City>
                <City>Caeleb</City>
                <City>Sapsih</City>
                <City>Scaliger</City>
                <City>Nath</City>
            </Cities>
            <Buildings>
                <Building>
                    <BuildingClassType>BUILDINGCLASS_INTELLIGENCE_FACILITY</BuildingClassType>
                    <BuildingType>BUILDING_DARLOK_CELL</BuildingType>
                </Building>
            </Buildings>
            <Units>
                <Unit>
                    <UnitClassType>UNITCLASS_SCOUT_PROBE</UnitClassType>
                    <UnitType>UNIT_DARLOK_OBSERVER</UnitType>
                </Unit>
                <Unit>
                    <UnitClassType>UNITCLASS_SPY</UnitClassType>
                    <UnitType>UNIT_DARLOK_ASSILENT</UnitType>
                </Unit>
            </Units>
            <FreeUnitClasses>
                <FreeUnitClass>
                    <UnitClassType>UNITCLASS_SCOUT_PROBE</UnitClassType>
                    <iFreeUnits>1</iFreeUnits>
                </FreeUnitClass>
            </FreeUnitClasses>
            <FreeBuildingClasses>
                <FreeBuildingClass>
                    <BuildingClassType>BUILDINGCLASS_CAPITOL</BuildingClassType>
                    <bFreeBuildingClass>1</bFreeBuildingClass>
                </FreeBuildingClass>
            </FreeBuildingClasses>
            <FreeTechs>
                <FreeTech>
                    <TechType>TECH_MILITARY_0</TechType>
                    <bFreeTech>0</bFreeTech>
                </FreeTech>
            </FreeTechs>
            <DisableTechs/>
            <InitialCivics>
                <CivicType>CIVIC_TRADITIONAL_MILITARY</CivicType>
                <CivicType>CIVIC_FRONTIER</CivicType>
                <CivicType>CIVIC_DEFAULT_LABOR</CivicType>
                <CivicType>CIVIC_SIMPLE_ECONOMY</CivicType>
            </InitialCivics>
            <Leaders>
                <Leader>
                    <LeaderName>LEADER_DARLOK_I</LeaderName>
                    <bLeaderAvailability>1</bLeaderAvailability>
                </Leader>
                <Leader>
                    <LeaderName>LEADER_DARLOK_II</LeaderName>
                    <bLeaderAvailability>1</bLeaderAvailability>
                </Leader>
            </Leaders>
            <DerivativeCiv>NONE</DerivativeCiv>
            <CivilizationSelectionSound>AS3D_CARTHAGE_SELECT</CivilizationSelectionSound>
            <CivilizationActionSound>AS3D_CARTHAGE_ORDER</CivilizationActionSound>
        </CivilizationInfo>

thats only the 1st step though, go to \XML\Units and edit CIV4UnitInfos.xml to your liking and look for its mash-group.

Spoiler :

Code:
            <UnitMeshGroups>
                <iGroupSize>2</iGroupSize>
                <fMaxSpeed>2.75</fMaxSpeed>
                <fPadTime>1</fPadTime>
                <iMeleeWaveSize>1</iMeleeWaveSize>
                <iRangedWaveSize>1</iRangedWaveSize>
                <UnitMeshGroup>
                    <iRequired>1</iRequired>
                    <EarlyArtDefineTag>ART_DEF_UNIT_SCOUT_I</EarlyArtDefineTag>
                </UnitMeshGroup>
            </UnitMeshGroups>
this means that the game looks in another file for directions, not the mashes yet...
go to \XML\Art and look for CIV4ArtDefines_Unit.xml, in every <UnitArtInfo> there is a <NIF> section. this <NIF> section is what leads you to the actual model file.


I hope that was helpful and that I didn't wasted your time mate.

Thx, you didn't. ;)
 
That's cool. (My problem is that I'm really a noob at adding/editing unit/models...) :blush:
 
Top Bottom