Page 1 of 1

Random error

Posted: Mon Sep 12, 2011 8:09 pm
by Dakota
i keep getting this message when i attempt to use my box dispensing weapon

Code: Select all

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\Weapon.cpp(1719)
Weapon "rep_weap_inf_box_dispenser" missing ordnance 0.000000 "com_item_inf_box"
i don't understand why though since it is in both the common folder and the republic odf folders.

i've made about 10-20 other dispenser type weapons in the past month or so and have been trying to make this weapon able to dispense boxes that can be used as bricks for building forts and other objects. i tested the box in a few different ways once as a turret, once as a mine, once as a sticky grenade type ordanence and now as a powerupstation.

the mine and turret ones crashed. the turret one crashed with this same error. the sticky grenade one worked but when it was ingame it didn't have collision and it had no texture and was missing half the msh.

heres my odf for the current one i am testing the powerupstation type one.
Hidden/Spoiler:
[GameObjectClass]
ClassLabel = "powerupstation"
GeometryName = "Box.msh"


[Properties]
Label = "Box"
MapTexture = "rechargedroid_icon"
MapScale = "1.00"
//UnbuiltHoloOdf = "com_holo_ammo"

GeometryName = "Box"
//UnbuiltGeometryName = "com_prop_buildzone"
ExplosionName = "com_inf_rechargedroid_exp"
MaxHealth = 50000
//HealthType = "person"

PowerupDelay = "999999.0" //<delay time, default 0.5>
SoldierAmmo = "0.0"//<ammo to add, default 0>
//Powerupsound = "com_item_weaponrecharge"
Powerupsound = ""

AutoBarrierEnable = "1"
AutoBarrierRemoveOnDeath = "1"
AutoBarrierSize = "1.0 1.0"

Lighting = "dynamic"

[InstanceProperties]
EffectRegion = ""
Radius = 0.0
heres the dispenser for the common folder
Hidden/Spoiler:
[WeaponClass]
ClassLabel = "grenade"

[Properties]
GeometryName = "com_weap_inf_grenadethermal"
HighResGeometry = "com_1st_weap_inf_grenadethermal"

OffhandWeapon = 1

//***********************************************
//************* TARGET & RANGE VALUES **********
//***********************************************

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

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

MinRange = "0"
OptimalRange = "0"
MaxRange = "0"

LockOnRange = "30.0"

//***********************************************
//*********** WEAPON PERFORMANCE VALUES *********
//***********************************************

RoundsPerClip = "0"
ReloadTime = "0.0"
ShotDelay = "0.01"
ShotElevate = "0.0"
MaxPressedTime = "0.0"

InitialSalvoDelay = "0.1"

//***********************************************
//*********** HUD & CONTROLLER VALUES *********
//***********************************************

ChargeRateLight = "1.0"
MaxChargeStrengthLight = "1.0"
ChargeDelayLight = "0.0"
ChargeRateHeavy = "1.0"
MaxChargeStrengthHeavy = "0.25"
ChargeDelayHeavy = "1.45"

RecoilLengthLight = "0.1"
RecoilLengthHeavy = "0.1"
RecoilStrengthLight = "0"
RecoilStrengthHeavy = "0"


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

FireSound = "com_weap_throw"
FireEmptySound = "com_weap_inf_ammo_empty"
and heres the one for the rep side folder
Hidden/Spoiler:
[WeaponClass]
ClassParent = "com_weap_inf_box_dispenser"

[Properties]
HUDTag = "com_weap_inf_dropturret"
OrdnanceName = "com_item_inf_box"

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

FireLoopSound = ""
ReloadSound = "com_weap_inf_equip_med"
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"

Re: random error

Posted: Mon Sep 12, 2011 8:27 pm
by Firefang
Doesn't a dispenser weapon have to have the classlabel of dispenser?

Re: random error

Posted: Tue Sep 13, 2011 5:53 pm
by Dakota
Firefang wrote:Doesn't a dispenser weapon have to have the classlabel of dispenser?

well... i tried setting it as a dispenser before and it didn't work. i tested it with all the types i had and it still didn't work. so when i tested sticky i decided to try setting it to grenade after the first test ended in a crash. after that i got it to work ingame with grenade with sticky ord but as i said above the msh and texture and collision failed.

EDIT: ok i redid it with dispenser again and got 5-6 of these errors


Message Severity: 3
C:\Battlefront2\main\RedEngineFL\Memory\RedMemory.cpp(538)
Allocating 505032708 bytes failed - no free blocks left in Heap 5 (Runtime)

Re: random error

Posted: Tue Sep 13, 2011 7:10 pm
by Tears2Roses
Anytime you get the word red you have hit an ingame limit. It seems its trying to open a 5GB or so file.
Hidden/Spoiler:
no worries I think thats kind of funny :funny2:
As far as getting the block working, it SEEMS like reducing the file size might be a good idea. But
Hidden/Spoiler:
[code]RedEngineFL\Memory\red\Memory[/code]
^ - - - that line means you have hit an in-game limit ( thanks to teancum for pointing this out in an FAQ ) So yeah. Hopefully this helps :thumbs:

Re: random error

Posted: Tue Sep 13, 2011 7:28 pm
by Dakota
i already know red memory errors mean an ingame limit but sometimes they can also be caused by something not set up or working right like my box dispenser. i have even gotten red memory errors that were only severity 2 and didn't crash anything.