Map has been Crashed

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
Noobi-Wan
Private Recruit
Posts: 16
Joined: Thu Jul 15, 2010 2:14 am
Projects :: [DM-S] Nova-Squad-Map
Games I'm Playing :: swbf2 medieval 2
Location: germany

Map has been Crashed

Post 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.
User avatar
SW_elite
Filthy Thief
Filthy Thief
Posts: 507
Joined: Sat Jan 02, 2010 6:43 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Australia!!!

Re: Map has been Crashed

Post 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!
User avatar
Culvar
1st Lieutenant
1st Lieutenant
Posts: 429
Joined: Thu Jul 10, 2008 10:36 am

Re: Map has been Crashed

Post 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.
User avatar
SAMofBIA
Major General
Major General
Posts: 649
Joined: Tue Jun 15, 2010 3:38 pm
Projects :: Nothing....nothing at all.
Games I'm Playing :: League of Legends
xbox live or psn: No gamertag set
Location: MIA and not stopping in often anymore.

Re: Map has been Crashed

Post 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.
Noobi-Wan
Private Recruit
Posts: 16
Joined: Thu Jul 15, 2010 2:14 am
Projects :: [DM-S] Nova-Squad-Map
Games I'm Playing :: swbf2 medieval 2
Location: germany

Re: Map has been Crashed

Post 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.
User avatar
SAMofBIA
Major General
Major General
Posts: 649
Joined: Tue Jun 15, 2010 3:38 pm
Projects :: Nothing....nothing at all.
Games I'm Playing :: League of Legends
xbox live or psn: No gamertag set
Location: MIA and not stopping in often anymore.

Re: Map has been Crashed

Post 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.
User avatar
Culvar
1st Lieutenant
1st Lieutenant
Posts: 429
Joined: Thu Jul 10, 2008 10:36 am

Re: Map has been Crashed

Post 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.
User avatar
SAMofBIA
Major General
Major General
Posts: 649
Joined: Tue Jun 15, 2010 3:38 pm
Projects :: Nothing....nothing at all.
Games I'm Playing :: League of Legends
xbox live or psn: No gamertag set
Location: MIA and not stopping in often anymore.

Re: Map has been Crashed

Post by SAMofBIA »

good idea. probobly simpler than mine.
Noobi-Wan
Private Recruit
Posts: 16
Joined: Thu Jul 15, 2010 2:14 am
Projects :: [DM-S] Nova-Squad-Map
Games I'm Playing :: swbf2 medieval 2
Location: germany

Re: Map has been Crashed

Post by Noobi-Wan »

Thanks for the new Opportunity.
Post Reply