Page 1 of 1

Map has been Crashed

Posted: Thu Jul 15, 2010 5:47 am
by Noobi-Wan
I need your help very urgently.
Its my first Map.
I have bin insert a new weapon. All things work.
and now in the Bfront2.log this Error Message would be come:

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\Weapon.cpp(1604)
Weapon base class "" not found

:( :( :(

I need Your help and I now, that my English is horrible.

Re: Map has been Crashed

Posted: Thu Jul 15, 2010 8:29 am
by SW_elite
Thats pretty self explainitry, but dont worry because this sounds like its a first attempt and everyone is like this when they start off (trust me, I was a shocker). It basicly means that you dont have a base class for your weapon. I can't go into deatail much but I know plenty of others can. Plus I'm a bit tired right now... 10:27 PM here at the moment :runaway:

So dont worry, someone will help you soon.

And welcome to GameToast!

Re: Map has been Crashed

Posted: Thu Jul 15, 2010 12:01 pm
by Culvar
Could be two things:


1. You messed around with the ODF of a weapon and forgot to give it something to base off of.

2. You either didn't munge or copy the common side.

Re: Map has been Crashed

Posted: Thu Jul 15, 2010 12:59 pm
by SAMofBIA
i believe it is #1 culvar. he forgot to make a base weapon for his weapon (ex: the rep_weap_inf_rifle (blaster rifle) has a base weapon of com_weap_inf_rifle) you forgot to either
A. make a base weapon for your weapon
B. say in your weapon's odf what its base weapon is
or C. forgot both.

Re: Map has been Crashed

Posted: Thu Jul 15, 2010 1:00 pm
by Noobi-Wan
Weapon ODF:
Hidden/Spoiler:
[WeaponClass]
ClassLabel = "cannon"
GeometryName = "rep_weap_inf_T21.msh"

[Properties]
AnimationBank = "rifle"

GeometryName = "rep_weap_inf_T21"
HighResGeometry = "rep_weap_inf_T21"
OrdnanceName = "rep_weap_inf_T21_ord"
FirePointName = "hp_fire"

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

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

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

MinRange = "0"
OptimalRange = "24"
MaxRange = "64"

LockOnRange = "40.0"
LockTime = "0.4"
lockOnAngle = "1.0"

ZoomMin = "2.5"
ZoomMax = "2.5"
ZoomRate = "0.0"

YawSpread = "0.225"
PitchSpread = "0.225"

SpreadPerShot = "0.75"
SpreadRecoverRate = "2.0"
SpreadThreshold = "3.0"
SpreadLimit = "1.25"

StandStillSpread = "0.0"
StandMoveSpread = "0.0"
CrouchStillSpread = "0.0"
CrouchMoveSpread = "0.0"
ProneStillSpread = "0.0"
ProneMoveSpread = "0.0"




RoundsPerClip = "75"
ReloadTime = "1.8"
ShotDelay = "0.133"
TriggerSingle = "0"

DisplayRefire = "0"

HeatPerShot = "0.06"
HeatRecoverRate = "0.3"
HeatThreshold = "0.25"

SalvoCount = "1"
SalvoDelay = "0.0"
InitialSalvoDelay = "0.0"
SalvoTime = "0.0"

BonusAmplification = "0.75"

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

HUDTag = "hud_rep_rifle_icon"
MuzzleFlash = "small_muzzle_flash"
FlashColor = "80 80 255 255"
FlashLength = 0.025
FlashColor = "100 100 255 255"
FlashLength = 0.025
FlashLightColor = "220 220 255 175"
FlashLightRadius = "3.0"
FlashLightDuration = "0.25"
Discharge = "small_smoke_effect"

RecoilLengthLight = "0.1"
RecoilLengthHeavy = "0.1"
RecoilStrengthLight = "1.0"
RecoilStrengthHeavy = "0.2"
RecoilDecayLight = "0.0"
RecoilDecayHeavy = "0.0"

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

FireSound = "rep_weap_inf_rifle_fire"
ReloadSound = "com_weap_inf_reload_med"
ChangeModeSound = "com_weap_inf_equip_med"
FireEmptySound = "com_weap_inf_ammo_empty"
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"
SquatSound = "com_weap_inf_rifle_mvt_squat"
I know that there is no ClassParent but I have give the Weapon all Features that the ClassParent has and Pinguin/Aman say that this must work.

When this the mistake was please tell me what can I do that this weapon is'nt bound at these ClassParent.

Re: Map has been Crashed

Posted: Thu Jul 15, 2010 1:11 pm
by SAMofBIA
hmmm, try changing this weapon odf to com_weap_inf_T21 and then make a new odf that is named rep_weap_inf_T21 that says classparent com_weap_inf_T21 and see if it helps, because the only weapon i know of that dont have a base weapon, is the ewok spear.

Re: Map has been Crashed

Posted: Thu Jul 15, 2010 1:13 pm
by Culvar
Just add this anyways to test it. It goes under weapon class:

Code: Select all

ClassParent         = "com_weap_inf_rifle"
Your stuff will overwrite it, but it'll at least be searching for a base.

Re: Map has been Crashed

Posted: Thu Jul 15, 2010 1:15 pm
by SAMofBIA
good idea. probobly simpler than mine.

Re: Map has been Crashed

Posted: Thu Jul 15, 2010 1:15 pm
by Noobi-Wan
Thanks for the new Opportunity.