*BUMP* Didn't work :( .
EDIT: Nevermind, got my unit in
.Finally
Ill post details on my newest problem tommorow. For tonight: After I build the Horde of units (I used Gil's Horde Builder with MordorOrc coding) The game crashes and gives me a game.dat. I looked over my code and it looks fine... Any Ideas? Here is my code:
[codebox]Object FirenationFirebenderHorde
; This is required for garrisoned objects - please put in all objects.
ButtonImage = WOR_OrcWarrior
SelectPortrait = UPMordor_OrcHorde
Draw = W3DScriptedModelDraw ModuleTag_W3DModelDraw
DependencySharedModelFlags = EMOTION_ALERT EMOTION_MORALE_HIGH EMOTION_MORALE_LOW EMOTION_AFRAID EMOTION_COWER SELECTED EMOTION_TERROR EMOTION_LOOK_TO_SKY SIEGE_CONTAIN
DefaultModelConditionState
Model = None ;InvisHrdeTmp
End
ModelConditionState = HORDE_EMPTY
Model = None
End
ModelConditionState = WORLD_BUILDER
Model = HordeMarkMUOrc
End
End
Side = Mordor
EditorSorting = UNIT
EmotionRange = 240
DisplayName = OBJECT:HordeMordorOrcs
DisplayNameStrategic = CONTROLBAR:LW_Unit_MordorFighterHorde
DescriptionStrategic = CONTROLBAR:LW_ToolTip_MordorFighterHorde
IsAutoBuilt = Yes;
WeaponSet
Conditions = None
Weapon = PRIMARY NormalMeleeHordeRangefinder
End
; *** AUDIO Parameters ***;
; Note: Don't put voice parameters here -- they will be ignored. Voice play requests
; are always passed through to members
#include "..\..\..\includes\StandardHordeEvaEvents.inc"
BuildCost = MORDOR_FIGHTER_BUILDCOST
BuildTime = MORDOR_FIGHTER_BUILDTIME
ShroudClearingRange = MORDOR_FIGHTER_HORDE_SHROUDCLEAR_RANGE
VisionRange = MORDOR_FIGHTER_HORDE_VISION_RANGE
VisionSide = 50%
VisionRear = 25%
VisionBonusPercentPerFoot = 1.0%
CrushableLevel = 0 ;What am I?: 0 = for infantry, 1 = for trees, 2 = general vehicles
CrusherLevel = 0 ;What can I crush?: 0 = small animals, 1 = infantry, 2 = trees, 3 = vehicles
CommandPoints = 60
CommandSet = MordorFighterHordeCommandSet
FormationWidth = 2 ; Width it occupies in formations. Current choices are 1 or 2.
FormationDepth = 2 ; Depth it occupies in formations. Current choices are 1 or 2.
TransportSlotCount = TRANSPORTSLOTCOUNT_LARGE_HORDE
KindOf = SELECTABLE CAN_ATTACK ATTACK_NEEDS_LINE_OF_SIGHT CAN_USE_SIEGE_TOWER INFANTRY HORDE ORC MELEE_HORDE ARMY_SUMMARY LARGE_RECTANGLE_PATHFIND ;BUILD_FOR_FREE - not anymore you dont.
ThreatLevel = MORDOR_FIGHTER_HORDE_THREAT
ThreatBreakdown MordorFighterHorde_DetailedThreat
AIKindOf = INFANTRY
End
Body = ImmortalBody ModuleTag_ImmortalBody
MaxHealth = 1
End
#include "..\..\..\includes\CaptureBuilding.inc"
Behavior = StancesBehavior ModuleTag_StancesBehavior
StanceTemplate = FighterHorde
End
Behavior = HordeAIUpdate ModuleTag_HordeAIUpdate
AutoAcquireEnemiesWhenIdle = Yes ATTACK_BUILDINGS
MoodAttackCheckRate = 500
AILuaEventsList = InfantryFunctions
MaxCowerTime = 5000
MinCowerTime = 3000
AttackPriority = AttackPriority_Infantry
End
Behavior = HordeContain ModuleTag_HordeContain
ObjectStatusOfContained =
InitialPayload = FirenationFirebender 6
Slots = 6
PassengerFilter = NONE
ShowPips = No
ThisFormationIsTheMainFormation = Yes
RandomOffset=X:8 Y:8
RankInfo = RankNumber:1 UnitType:FirenationFirebender Position:X:8 Y:8 Position:X:16 Y:8 Position:X:24 Y:8 Position:X:-8 Y:8 Position:X:-16 Y:8 Position:X:-24 Y:8
RanksToReleaseWhenAttacking = 1 2 3 4
End
End
[/codebox]
Idea: If my Horde Code and Object code Contradict, will it cause this kind of error?
Edited by Fingulfin, 23 May 2006 - 05:32 AM.