Page 1 of 1

Deployable building not being built

Posted: Fri Jun 03, 2016 11:06 am
by JimmyAngler
I'm trying to implement a deployable barrier but I can't seem to place any object down in-game.

The Dispenser
Hidden/Spoiler:
[code][WeaponClass]
ClassLabel = "dispenser"

[Properties]

//HUDTag = "com_weap_inf_dropturret"
OrdnanceName = "cov_weap_inf_deployable_shield"


RoundsPerClip = "1"
ReloadTime = "1.25"

//AnimationBank = "grenade"
OffhandWeapon = 1

TrackingSound = ""

ShotDelay = "0.0"
MaxItems = "4.0"
AutoAimSize = "1.0"

SalvoCount = "1"
SalvoDelay = "0.0"
InitialSalvoDelay = "0.5"

MinStrength = "0.3"
MaxStrength = "0.4"

//MaxPressedTime = "1.5"

TargetEnemy = "1"
TargetNeutral = "0"
TargetFriendly = "0"

TargetPerson = "1"
TargetAnimal = "1"
TargetDroid = "1"
TargetVehicle = "1"
TargetBuilding = "1"

AITargetPerson = "1"
AITargetAnimal = "1"
AITargetDroid = "1"
AITargetVehicle = "1"
AITargetBuilding = "1"

//**********************************************
//****************** SOUND *********************
//**********************************************


FireSound = ""
ReloadSound = "com_weap_inf_equip_med"
FireEmptySound = "com_weap_inf_ammo_empty"
ChargeSound = ""
ChargeSoundPitch = ""
ChangeModeSound = "com_weap_inf_equip_med"
WeaponChangeSound = "com_weap_inf_equip_med"
JumpSound = "com_weap_inf_rifle_mvt_jump"
LandSound = "com_weap_inf_rifle_mvt_land"
RollSound = "com_weap_inf_rifle_mvt_roll"
//ProneSound = "com_weap_inf_rifle_mvt_lie"
SquatSound = "com_weap_inf_rifle_mvt_squat"
//StandSound = "com_weap_inf_rifle_mvt_getup"[/code]
The Barrier
Hidden/Spoiler:
[code][GameObjectClass]
ClassLabel = "destructablebuilding"
GeometryName = "cov_deployable_shield.msh"

[Properties]

GeometryName= "cov_deployable_shield"

//DestroyedGeometryName= ""

ExplosionName = "cov_weap_inf_deployable_shield_exp"


MaxShield = 500
MaxHealth= 1.0
Lifetime= 30.0

HideHealthBar= 1

FoleyFXGroup = "metal_foley"[/code]
and the error
Hidden/Spoiler:
[code]Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\EntityBuilding.cpp(592)
Building "cov_weap_inf_deployable_shield" not built: "ALL YOUR MODEL ARE BELONG TO US."[/code]
The model has its basic model named "body" the collision named "collision_-b-body" and an hp_active.

Re: Deployable building not being built

Posted: Sun Jun 05, 2016 11:46 am
by Oceans14
I had this show up once, unfortunately I can't remember the circumstances. I guess for now you could make sure your odfs are calling the correct dependencies - for example your first prefix is "cov"... I'd check to make sure you didn't name something "com" by mistake.

Re: Deployable building not being built

Posted: Tue Jun 07, 2016 1:16 pm
by JimmyAngler
Thanks Oceans, but it found that the problem consisted somewhere in the dispenser and barrier odf. I cleaned everything, copied over from the stock dispenser and stock destructible buildings, and the problem was fixed. However, the barrier deploys in mid-air, at the angle I am looking at in-game. Any suggestions?

Re: Deployable building not being built

Posted: Tue Jun 07, 2016 2:30 pm
by Oceans14
I'm not certain, but it sounds like the root of the model isn't placed correctly (or the model placed wrong in relation to the root). This could cause floating I believe. If you have xsi you can inspect the model and adjust it.

Re: Deployable building not being built

Posted: Tue Jun 07, 2016 4:16 pm
by JimmyAngler
The root "dummyroot" is centered at 0,0,0 and the model is aligned accordingly.