Page 1 of 1
codey log error
Posted: Sat Jan 17, 2009 12:55 pm
by Reaven
i wanna add commander codey to my mod.
i placed the files where they should be.
the problem is:
when i click the name on the unit selection it crashes.
log file:
Code: Select all
Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\EntitySoldier.cpp(11385)
EntitySoldierClass::Build 'rep_inf_default_cody' with no high res geometry!
Message Severity: 2
C:\Battlefront2\main\Battlefront2\Source\EntitySoldier.cpp(11386)
EntitySoldierClass::Build 'rep_inf_default_cody' with no low res geometry!
help would be great.
Re: codey log error
Posted: Sat Jan 17, 2009 1:04 pm
by DarthD.U.C.K.
can you post codys odf?
Re: codey log error
Posted: Sat Jan 17, 2009 1:05 pm
by Fiodis
It's telling you exactly what's missing. Go into your unit's odf and look for the GeometryName lines. They're missing a geometry.
Re: codey log error
Posted: Sat Jan 17, 2009 2:35 pm
by Reaven
there isn“t a geometry missing i beleve.....maybe you see my mistake in the odf:
Code: Select all
[GameObjectClass]
ClassParent = "rep_inf_default"
[Properties]
UnitType = "Trooper"
PointsToUnlock = 6
MaxHealth = 800.0
AISizeType = "HOVER"
ControlSpeed = "jet 1.50 1.25 1.25"
JetJump = "30.0" //7 //The initial jump-push given when enabling the jet
JetPush = "50.0" //The constant push given while the jet is enabled (20 is gravity)
JetAcceleration = "60.0" //Acceleration while hovering.
JetEffect = "jetpack_single_cody"
JetType = "hover"
JetFuelRechargeRate = "0.20" //Additional fuel per second (fuel is 0 to 1)
JetFuelCost = "0.1" //Cost per second when hovering (only used for jet-hovers)(fuel is 0 to 1)
JetFuelInitialCost = "0.1" //initial cost when jet jumping(fuel is 0 to 1)
JetFuelMinBorder = "0.1" //minimum fuel to perform a jet jump(fuel is 0 to 1)
WEAPONSECTION = 1
WeaponName = "rep_weap_inf_rifle"
WeaponAmmo = 6
WEAPONSECTION = 2
WeaponName = "rep_weap_inf_pistol"
WeaponAmmo = 0
WEAPONSECTION = 3
WeaponName = "rep_weap_inf_electrobinoculars"
WeaponAmmo = 0
WEAPONSECTION = 4
WeaponName = "rep_weap_inf_thermaldetonator"
WeaponAmmo = 2
WeaponChannel = 1
WEAPONSECTION = 5
WeaponName = "rep_weap_inf_crackgrenade"
WeaponAmmo = 2
WeaponChannel = 1
VOUnitType = 121
CollisionScale = "0.0 0.0 0.0"
EngineSound = "rep_inf_Jetpack_engine_parameterized"
TurnOnSound = "rep_weap_jetpack_turnon"
TurnOffSound = "rep_weap_jetpack_turnoff"
TurnOffTime = 0.0
Re: codey log error
Posted: Sat Jan 17, 2009 2:55 pm
by DarthD.U.C.K.
fiodis is right, the odf doesnt have any geometry line
under gameobjectclass add:
and under properties:
(you ofcourse have to replace the xxx with codys meshname
Re: codey log error
Posted: Sat Jan 17, 2009 4:41 pm
by Reaven
thaks, it workes fine
