KingErikII
Chieftain
I am trying to convert a Civ 4 unit to Civ 5, namely the Maceman. I imported maceman.nif to NifSkope, and then exported it to .obj. Now I have the file open in Blender 2.79, and I am not sure what to do now.
<Asset>
<Mesh file="maceman.gr2"/>
<Animation file="Warrior_IdleA.gr2" ec="1000"/>
<Animation file="Warrior_FidgetA.gr2" ec="1040"/>
<Animation file="Warrior_IdleA_Trans_IdleB.gr2" ec="1020"/>
<Animation file="Warrior_IdleB.gr2" ec="2000"/>
<Animation file="Warrior_FidgetB.gr2" ec="2040"/>
<Animation file="Warrior_IdleB_Trans_IdleA.gr2" ec="2020"/>
<Animation file="Warrior_Fortify.gr2" ec="1500"/>
<Animation file="Warrior_Fortify_Idle.gr2" ec="1520"/>
<Animation file="Warrior_Fortify_Idle_Fidget.gr2" ec="1540"/>
<Animation file="Warrior_Fortify_Idle_Trans_Combat_Ready_Idle.gr2" ec="1560"/>
<Animation file="Warrior_Fortify_Idle_Trans_IdleA.gr2" ec="1580"/>
<Animation file="Warrior_Combat_Ready.gr2" ec="1600"/>
<Animation file="Warrior_Shuffle.gr2" ec="1450"/>
<Animation file="Warrior_Combat_Ready_Idle.gr2" ec="1620"/>
<Animation file="Warrior_Combat_Ready_Idle_Trans_IdleA.gr2" ec="1640"/>
<Animation file="Warrior_Run.gr2" ec="1400"/>
<Animation file="Warrior_Stop_Run.gr2" ec="1440"/>
<Animation file="Warrior_Stop_Run_IdleB.gr2" ec="2440"/>
<Animation file="Warrior_Charge_Run.gr2" ec="1120"/>
<Animation file="Warrior_Charge_Attack.gr2" ec="1140"/>
<Animation file="Warrior_AttackA.gr2" ec="1100"/>
<Animation file="Warrior_AttackB.gr2" ec="2100"/>
<Animation file="Warrior_Attack_City.gr2" ec="1160, 1180"/>
<Animation file="Warrior_Victory.gr2" ec="1800"/>
<Animation file="Warrior_Bombard_Defense.gr2" ec="1280"/>
<Animation file="Warrior_Bombard_Defense_Idle.gr2" ec="1285"/>
<Animation file="Warrior_Bombard_Defense_Idle_Trans_IdleA.gr2" ec="1290"/>
<Animation file="Warrior_DeathA.gr2" ec="1200"/>
<Animation file="Warrior_DeathA_Idle.gr2" ec="1220"/>
<Animation file="Warrior_DeathB.gr2" ec="2200"/>
<Animation file="Warrior_DeathB_Idle.gr2" ec="2220"/>
<Texture file="Unit_Environment_Dull.dds"/>
<Texture file="Unit_Environment_Sharp.dds"/>
<Texture file="Unit_Irradiance.dds"/>
<Texture file="maceman_128.dds"/>
<Texture file="maceman_128_gloss.dds"/>
<TimedTrigger file="FX_Triggers_Warrior.ftsxml"/>
<BoneUsage>
<Bone name="bone_CLUB"/>
<Bone name="Base HumanSpine2"/>
<Bone name="Base HumanRPalm"/>
</BoneUsage>
<AnimGraph file="RUN_CHARGE_SHUFFLE_TO_SHUFFLE_RUN_CHARGE.dge"/>
<AnimGraph file="IDLE_OFFSET_CONTINUE_TRUE_GRAPH.dge"/>
<AnimGraph file="FORTIFY_FIDGET_GRAPH.dge"/>
<AnimGraph file="ENTER_FORTIFY.dge"/>
<AnimGraph file="LEAVE_BOMBARD_DEFEND_TRANS_IDLE_A_GRAPH.dge"/>
<AnimGraph file="DEATH_FINAL_GRAPH.dge"/>
<AnimGraph file="BOMBARD_DEFEND_LOOP_GRAPH.dge"/>
<AnimGraph file="ENTER_BOMBARD_DEFEND_GRAPH.dge"/>
<AnimGraph file="DEATH_GRAPH.dge"/>
<AnimGraph file="LEAVE_COMBAT_READY.dge"/>
<AnimGraph file="ENTER_COMBAT_READY_GRAPH.dge"/>
<AnimGraph file="FORTIFY_LEAVE_GRAPH.dge"/>
<AnimGraph file="COMBAT_READY_GRAPH.dge"/>
<AnimGraph file="FORTIFY_GRAPH.dge"/>
<AnimGraph file="TRANSITIONS_FOR_IDLES.dge"/>
<AnimGraph file="STOP_RUNNING.dge"/>
<AnimGraph file="IDLE_GRAPH.dge"/>
<AnimGraph file="FIDGETS_GRAPH.dge"/>
<AnimGraph file="MELEE_ATTACKS.dge"/>
<StateMachine file="1_OMNI_STATE_01.fsmxml"/>
<AnimGraph file="RUN_CHARGE_SHUFFLE_LOOP.dge"/>
<AnimGraph file="ATTACK_TO_RUN_CHARGE_SHUFFLE.dge"/>
<AnimGraph file="ATTACK_CITY_TO_RUN_CHARGE_SHUFFLE.dge"/>
<AnimGraph file="START_RUN_CHARGE_SHUFFLE.dge"/>
<AnimGraph file="SHUFFLE_STOP_GRAPH.dge"/>
</Asset>
Oh, it's not replacing the warrior. I am not sure what the details in the message say either. Also, how do I make sure the images are connected to the model properly?Is this replacing the warrior? If not, you will need to give it a code name in the coding and make sure that all files are connected to the correct images.
P.S. Did you click the details and see what it said?
<!-- UNIT_MACEMAN ************************************************** -->
<ArtDefine_UnitInfos>
<Row>
<Type>ART_DEF_UNIT_MACEMAN</Type>
<Formation>DefaultMelee</Formation>
<DamageStates>1</DamageStates>
</Row>
</ArtDefine_UnitInfos>
<ArtDefine_UnitInfoMemberInfos>
<Row>
<UnitInfoType>ART_DEF_UNIT_MACEMAN</UnitInfoType>
<UnitMemberInfoType>ART_DEF_UNIT_MEMBER_MACEMAN</UnitMemberInfoType>
<NumMembers>12</NumMembers>
</Row>
</ArtDefine_UnitInfoMemberInfos>
<ArtDefine_UnitMemberInfos>
<Row>
<Type>ART_DEF_UNIT_MEMBER_MACEMAN</Type>
<Scale>0.14</Scale>
<Model>Art/Maceman/maceman.fxsxml</Model>
<MaterialTypeTag>CLOTH</MaterialTypeTag>
<MaterialTypeSoundOverrideTag>FLESH</MaterialTypeSoundOverrideTag>
</Row>
</ArtDefine_UnitMemberInfos>
<ArtDefine_UnitMemberCombats>
<Row>
<UnitMemberType>ART_DEF_UNIT_MEMBER_MACEMAN</UnitMemberType>
<EnableActions>Idle Attack RunCharge AttackCity Bombard Death BombardDefend Run Fortify CombatReady Walk AttackCharge</EnableActions>
<ShortMoveRadius>12.0</ShortMoveRadius>
<ShortMoveRate>0.35</ShortMoveRate>
<TargetHeight>8.0</TargetHeight>
<HasRefaceAfterCombat>1</HasRefaceAfterCombat>
<ReformBeforeCombat>1</ReformBeforeCombat>
</Row>
</ArtDefine_UnitMemberCombats>
<ArtDefine_UnitMemberCombatWeapons>
<Row>
<UnitMemberType>ART_DEF_UNIT_MEMBER_MACEMAN</UnitMemberType>
<Index>0</Index>
<SubIndex>0</SubIndex>
<WeaponTypeTag>METAL</WeaponTypeTag>
<WeaponTypeSoundOverrideTag>SWORD</WeaponTypeSoundOverrideTag>
</Row>
</ArtDefine_UnitMemberCombatWeapons>
<ArtDefine_StrategicView>
<Row>
<StrategicViewType>ART_DEF_UNIT_MACEMAN</StrategicViewType>
<TileType>Unit</TileType>
<Asset>SV_Warrior.dds</Asset>
</Row>
</ArtDefine_StrategicView>
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
at System.Collections.Generic.List`1.get_Item(Int32 index)
at NexusBuddy.FileOps.NB2Exporter.exportNB2Model(IGrannyFile grannyFile, Int32 modelId) in D:\mod\gitprojects\Nexus-Buddy-2\NexusBuddy\NexusBuddy\FileOps\NB2Exporter.cs:line 265
at NexusBuddy.NexusBuddyApplicationForm.exportNB2CurrentModelButtonClick(Object sender, EventArgs e) in D:\mod\gitprojects\Nexus-Buddy-2\NexusBuddy\NexusBuddy\NexusBuddyApplicationForm.cs:line 1733
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4180.0 built by: NET48REL1LAST_B
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
NexusBuddy2
Assembly Version: 0.0.0.0
Win32 Version: 0.0.0.0
CodeBase: file:///C:/Users/erik/Desktop/Civ%205%20modding/Nexus%20Buddy%202/NexusBuddy2.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4150.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4001.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3752.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Firaxis.Framework.Granny
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Users/erik/Desktop/Civ%205%20modding/Nexus%20Buddy%202/Firaxis.Framework.Granny.DLL
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4180.0 built by: NET48REL1LAST_B
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
Firaxis.Framework
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Users/erik/Desktop/Civ%205%20modding/Nexus%20Buddy%202/Firaxis.Framework.DLL
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4190.0 built by: NET48REL1LAST_B
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3752.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.DirectoryServices
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3752.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.DirectoryServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.DirectoryServices.dll
----------------------------------------
Firaxis.Framework.Granny.ImplWin32
Assembly Version: 1.0.0.0
Win32 Version:
CodeBase: file:///C:/Users/erik/Desktop/Civ%205%20modding/Nexus%20Buddy%202/Firaxis.Framework.Granny.ImplWin32.DLL
----------------------------------------
Firaxis.Framework.FirePlace
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Users/erik/Desktop/Civ%205%20modding/Nexus%20Buddy%202/Firaxis.Framework.FirePlace.DLL
----------------------------------------
msvcm90
Assembly Version: 9.0.30729.9619
Win32 Version: 9.00.30729.9619
CodeBase: file:///C:/WINDOWS/WinSxS/x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.9619_none_508d9c7abcbd32b6/msvcm90.dll
----------------------------------------
PresentationCore
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4180.0 built by: NET48REL1LAST_B
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/PresentationCore/v4.0_4.0.0.0__31bf3856ad364e35/PresentationCore.dll
----------------------------------------
WindowsBase
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4180.0 built by: NET48REL1LAST_B
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/WindowsBase/v4.0_4.0.0.0__31bf3856ad364e35/WindowsBase.dll
----------------------------------------
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.