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

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
swado95
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 304
Joined: Wed Apr 08, 2009 7:36 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Where I whant to be.

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

Post 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.
501st_commander
Master Bounty Hunter
Master Bounty Hunter
Posts: 1570
Joined: Wed Dec 10, 2008 7:48 pm

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

Post by 501st_commander »

post the weapons odf's
User avatar
swado95
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 304
Joined: Wed Apr 08, 2009 7:36 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Where I whant to be.

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

Post 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"
501st_commander
Master Bounty Hunter
Master Bounty Hunter
Posts: 1570
Joined: Wed Dec 10, 2008 7:48 pm

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

Post by 501st_commander »

the weapon base class (ClassLabel (i think)) cant be found.

ClassLabel = "cannon"
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

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

Post by Fiodis »

Cannon is a perfectly valid ClassLabel.
User avatar
swado95
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 304
Joined: Wed Apr 08, 2009 7:36 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Where I whant to be.

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

Post by swado95 »

What happens if I just take it away? Hmmm so it say nothinh like this in the thread?
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

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

Post by Fiodis »

If you have a wepaon with no classlabel, or no parent that has a classlabel, the weapon will crash.
User avatar
swado95
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 304
Joined: Wed Apr 08, 2009 7:36 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Where I whant to be.

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

Post by swado95 »

So how do I fix just take away class label?
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

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

Post 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
User avatar
swado95
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 304
Joined: Wed Apr 08, 2009 7:36 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Where I whant to be.

Re: Weapon base class "" not found -error

Post by swado95 »

sry it was 12 at night when reading. Ill try that when I get the chance.
MercuryNoodles
Jedi
Jedi
Posts: 1003
Joined: Sun Mar 12, 2006 7:16 pm
Projects :: Space - Boarding Action
xbox live or psn: No gamertag set

Re: Weapon base class "" not found -error

Post 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.
User avatar
swado95
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 304
Joined: Wed Apr 08, 2009 7:36 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Where I whant to be.

Re: Weapon base class "" not found -error

Post by swado95 »

No there is no class parent referring to another odf.
MercuryNoodles
Jedi
Jedi
Posts: 1003
Joined: Sun Mar 12, 2006 7:16 pm
Projects :: Space - Boarding Action
xbox live or psn: No gamertag set

Re: Weapon base class "" not found -error

Post 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.
User avatar
swado95
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 304
Joined: Wed Apr 08, 2009 7:36 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Where I whant to be.

Re: Weapon base class "" not found -error

Post by swado95 »

No I looked its not in there.
MercuryNoodles
Jedi
Jedi
Posts: 1003
Joined: Sun Mar 12, 2006 7:16 pm
Projects :: Space - Boarding Action
xbox live or psn: No gamertag set

Re: Weapon base class "" not found -error

Post by MercuryNoodles »

Alright, now's a good time to clean and remunge. If you're still having a problem, generate a new error log.
User avatar
swado95
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 304
Joined: Wed Apr 08, 2009 7:36 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Where I whant to be.

Re: Weapon base class "" not found -error

Post 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.
MercuryNoodles
Jedi
Jedi
Posts: 1003
Joined: Sun Mar 12, 2006 7:16 pm
Projects :: Space - Boarding Action
xbox live or psn: No gamertag set

Re: Weapon base class "" not found -error

Post 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:
User avatar
swado95
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 304
Joined: Wed Apr 08, 2009 7:36 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Where I whant to be.

Re: Weapon base class "" not found -error

Post by swado95 »

I did a few things and got it working.
Post Reply