Page 1 of 1

Weapon base class "" not found -error [Solved]

Posted: Mon Dec 21, 2009 11:42 pm
by swado95
My swbf2 mod tool log says

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

And I cant seem to figure out how to fix. When I think of weapon base class I thing of ord and my ord is right.

Re: swbf2 mod exe log says Weapon base class "" not found how do

Posted: Mon Dec 21, 2009 11:43 pm
by 501st_commander
post the weapons odf's

Re: swbf2 mod exe log says Weapon base class "" not found how do

Posted: Mon Dec 21, 2009 11:46 pm
by swado95
Hidden/Spoiler:
[WeaponClass]
ClassLabel = "cannon"
GeometryName = "pistol.msh"

[Properties]
ScoreForMedalsType = "1"
MedalsTypeToLock = "1"

AnimationBank = "pistol"
GeometryName = "pistol"
HighResGeometry = "pistol"
OrdnanceName = "pistol_ord"

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

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

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

BarrageMin = "3"
BarrageMax = "6"
BarrageDelay = "0.13"

MinRange = "0"
OptimalRange = "100"
MaxRange = "550"

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

YawSpread = "0.1"
PitchSpread = "0.1"

KickSpread = "0.6"
SpreadRecover = "2.0"

KickStrength = "0.4"
KickBuildup = "999.0"

SpreadPerShot = "0.0"
SpreadRecoverRate = "1.0"
SpreadThreshold = "0.0"
SpreadLimit = "0.0"

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

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

RoundsPerClip = "12"
ReloadTime = "2.25"
ShotDelay = "0.4"
TriggerSingle = "1"

DisplayRefire = "0"

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


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

MuzzleFlash = "small_muzzle_flash"
FlashColor = "255 223 0 180"
FlashLength = 0.025
FlashColor = "255 223 0 180"
FlashLength = 0.025
FlashLightColor = "255 220 220 175"
FlashLightRadius = "2.0"
FlashLightDuration = "0.25"
Discharge = "small_smoke_effect"

RecoilLengthLight = "0.1"
RecoilLengthHeavy = "0.3"
RecoilStrengthLight = "0.1"
RecoilStrengthHeavy = "0.3"
RecoilDecayLight = "0.0"
RecoilDecayHeavy = "0.0"



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

FireSound = "pistol_shot"
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"
ProneSound = "com_weap_inf_rifle_mvt_squat"
SquatSound = "com_weap_inf_rifle_mvt_squat"
//StandSound = "com_weap_inf_rifle_mvt_getup"

Re: swbf2 mod exe log says Weapon base class "" not found how do

Posted: Tue Dec 22, 2009 12:25 am
by 501st_commander
the weapon base class (ClassLabel (i think)) cant be found.

ClassLabel = "cannon"

Re: swbf2 mod exe log says Weapon base class "" not found how do

Posted: Tue Dec 22, 2009 12:39 am
by Fiodis
Cannon is a perfectly valid ClassLabel.

Re: swbf2 mod exe log says Weapon base class "" not found how do

Posted: Tue Dec 22, 2009 12:40 am
by swado95
What happens if I just take it away? Hmmm so it say nothinh like this in the thread?

Re: swbf2 mod exe log says Weapon base class "" not found how do

Posted: Tue Dec 22, 2009 12:42 am
by Fiodis
If you have a wepaon with no classlabel, or no parent that has a classlabel, the weapon will crash.

Re: swbf2 mod exe log says Weapon base class "" not found how do

Posted: Tue Dec 22, 2009 12:44 am
by swado95
So how do I fix just take away class label?

Re: swbf2 mod exe log says Weapon base class "" not found how do

Posted: Tue Dec 22, 2009 5:55 am
by DarthD.U.C.K.
swado95 wrote:So how do I fix just take away class label?
/facepalm
this is a FORUM, that means you have to READ in order to get what you want- do you understand that?

and if battlefront cant find the classlabel, do you think taking it away will fix the problem?

my guess would be that the "GeometryName = "pistol.msh""-line below the classlabel somehow makes it impossible to find the lable for battlefront, try removing it and see what happens

Re: Weapon base class "" not found -error

Posted: Tue Dec 22, 2009 10:33 am
by swado95
sry it was 12 at night when reading. Ill try that when I get the chance.

Re: Weapon base class "" not found -error

Posted: Tue Dec 22, 2009 11:32 am
by MercuryNoodles
The GeometryName line under Classlabel is what allows you to see an object in ZE. It's ok to toss the line, since it's a usable weapon rather than a placeable object, but deleting the line doesn't fix anything. That's the correct format and syntax, so it should cause no issues at all.

It says baseclass "" is not found. So, according to the error message, there's a reference to a parent odf that was not named. (In other words ClassParent = "") If you set this line, the game will read it and try to find the odf. It's not like other parameters where you might get away with just removing the name. Look through your weapon odfs, and make sure this is not the case. If your odfs are fine, we can move on from there.

Re: Weapon base class "" not found -error

Posted: Tue Dec 22, 2009 10:35 pm
by swado95
No there is no class parent referring to another odf.

Re: Weapon base class "" not found -error

Posted: Wed Dec 23, 2009 5:53 am
by MercuryNoodles
I'm mostly referring to the child odfs, or any new odfs you may have made. Make sure they don't have a ClassParent = "" line as I just typed it.

Re: Weapon base class "" not found -error

Posted: Wed Dec 23, 2009 2:11 pm
by swado95
No I looked its not in there.

Re: Weapon base class "" not found -error

Posted: Wed Dec 23, 2009 2:57 pm
by MercuryNoodles
Alright, now's a good time to clean and remunge. If you're still having a problem, generate a new error log.

Re: Weapon base class "" not found -error

Posted: Wed Dec 23, 2009 3:02 pm
by swado95
Its the file Idk if I missed something. Could you look over the one I posted and see if you see anything wrong.

Re: Weapon base class "" not found -error

Posted: Wed Dec 23, 2009 7:27 pm
by MercuryNoodles
If it was in that file, I would've noticed it. To be quite clear, that odf didn't call for a classparent at all, so it has nothing to do with the error. I say again, now would be a good time to clean, remunge, and test. If you still have a CTD issue, generate a new error log and post it. I'm putting you through this process for a reason. :eobi:

Re: Weapon base class "" not found -error

Posted: Wed Dec 23, 2009 10:26 pm
by swado95
I did a few things and got it working.