Mines now working but trooper scaling failing [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

User avatar
Dakota
Field Commander
Field Commander
Posts: 991
Joined: Mon Dec 06, 2010 8:21 pm
Projects :: making random weapon assets
Games I'm Playing :: SWBF2 and more
xbox live or psn: PS3 beats xbox
Location: at a computer desk floating around in space

Mines now working but trooper scaling failing [Solved]

Post by Dakota »

I have been working on a mod for a few months now and all of a sudden it started crashing. I haven't changed the mines at all since over a month ago but now they are giving grief.

heres the error i have in the log.
Hidden/Spoiler:
Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\WeaponDispenser.cpp(573)
Dispenser missing entity class "com_weap_inf_landmine"
i've looked in the odfs and couldn't find a problem but here are the odfs anyway.

here is the mine
Hidden/Spoiler:
[GameObjectClass]
ClassLabel = "mine"

[Properties]
GeometryName = "com_weap_inf_landmine_placed"
//HighResGeometry = "com_1st_weap_inf_landmine"

TrailEffect = "com_sfx_weap_grenade_red"
LightColor = "247 56 65 150"
LightRadius = "3.0"

ExplosionTrigger = "com_weap_inf_landmine_exp"
ExplosionDeath = "com_weap_inf_landmine_destroyed_exp"
ExplosionExpire = "com_weap_inf_landmine_destroyed_exp"

TriggerContact = "1"
TriggerRadius = "1.0"
//SuppressRadius = "1.0"

HealthType = "Mine"

LifeSpan = "99999.0"
NoLifeSpanDisplay = "1"

MaxHealth = "250"
Velocity = "0.0"
Gravity = "1.0"
Rebound = "0.0"
Friction = "1.0"

CollisionOtherSound = "com_weap_mine_land"
here is the dispenser
Hidden/Spoiler:
[WeaponClass]
ClassLabel = "dispenser"

[Properties]
RoundsPerClip = "1"
ReloadTime = "1.0"

//AnimationBank = "grenade"
OffhandWeapon = 1

TrackingSound = ""

ShotDelay = "0.0"
MaxItems = "100.0"
AutoAimSize = "1.0"

SalvoCount = "1"
SalvoDelay = "0.0"
InitialSalvoDelay = "0.5"

MinStrength = "0.3"
MaxStrength = "0.4"

//MaxPressedTime = "1.5"
Last edited by Dakota on Thu Jun 07, 2012 12:46 am, edited 2 times in total.
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: Entity class for landmine not being read

Post by Fiodis »

The dispenser should have an Ordnance line telling it what to dispense, I believe. Or is that not the whole odf, or a common odf?
User avatar
Dakota
Field Commander
Field Commander
Posts: 991
Joined: Mon Dec 06, 2010 8:21 pm
Projects :: making random weapon assets
Games I'm Playing :: SWBF2 and more
xbox live or psn: PS3 beats xbox
Location: at a computer desk floating around in space

Re: Entity class for landmine not being read

Post by Dakota »

that was the common odf here is the side one.
Hidden/Spoiler:
[WeaponClass]
ClassParent = "com_weap_inf_mine_dispenser"
GeometryName = "com_weap_inf_landmine.msh"

[Properties]

//OrdnanceName = ""

//NextCharge = 0.99
OrdnanceName = "com_weap_inf_landmine"

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

FireSound = "com_weap_throw"
FireEmptySound = "com_weap_inf_ammo_empty"
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"
Lephenix
Captain
Captain
Posts: 497
Joined: Tue Jul 12, 2011 6:46 am
Projects :: Becoming a Concept Artist-Illustrator
Contact:

Re: Entity class for landmine not being read

Post by Lephenix »

I don't know much in odfs, but two OrdnanceName isn't too much ?
Last edited by Lephenix on Tue May 22, 2012 1:22 pm, edited 1 time in total.
THEWULFMAN
Space Ranger
Posts: 5557
Joined: Tue Aug 17, 2010 3:30 pm
Projects :: Evolved 2
Location: Columbus, Ohio
Contact:

Re: Entity class for landmine not being read

Post by THEWULFMAN »

Lephenix wrote:I don't much in odfs, but two OrdnanceName isn't too much ?

Well it shouldn't really matter, he has the first one commented out. It shouldn't be there either way, as it just clutters the ODF up needlessly.
User avatar
Dakota
Field Commander
Field Commander
Posts: 991
Joined: Mon Dec 06, 2010 8:21 pm
Projects :: making random weapon assets
Games I'm Playing :: SWBF2 and more
xbox live or psn: PS3 beats xbox
Location: at a computer desk floating around in space

Re: Entity class for landmine not being read

Post by Dakota »

any ideas what could be wrong with it? i have made sure it was the mines, it doesn't crash on maps without the mines and it crashes on all maps with mines. so far i'm completely unsure what is wrong with it.

i've actually been at a complete stop on my mod i've been working on.
User avatar
lucasfart
Sith
Sith
Posts: 1440
Joined: Tue Feb 24, 2009 5:32 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: Australia

Re: Entity class for landmine not being read

Post by lucasfart »

This is random, and probably not right, but could it be something to do with a .req file. Usually the classes are composed through .req, and if it can't find the entity class, it might not be in your req? That's probably just with units though....
User avatar
Dakota
Field Commander
Field Commander
Posts: 991
Joined: Mon Dec 06, 2010 8:21 pm
Projects :: making random weapon assets
Games I'm Playing :: SWBF2 and more
xbox live or psn: PS3 beats xbox
Location: at a computer desk floating around in space

Re: Entity class for landmine not being read

Post by Dakota »

its in my ingame.req for the common side but its not in the reqs of my sides, i also noticed that the error was in there twice so maybe this is whats wrong. i am munging now and will be back with results.

EDIT: Didn't work, but now there is only 1 of the errors in the log.
User avatar
lucasfart
Sith
Sith
Posts: 1440
Joined: Tue Feb 24, 2009 5:32 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: Australia

Re: Entity class for landmine not being read

Post by lucasfart »

Could you post the whole error log?
icemember
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 318
Joined: Thu Jun 11, 2009 3:02 am
Projects :: Designated Days Chapter 1
Games I'm Playing :: SWBF2 Mortal Komabt
xbox live or psn: icemember x
Location: 6 planet of the Hoth system

Re: Entity class for landmine not being read

Post by icemember »

Just curious what the names of your odf files are and what folders there in?
User avatar
Dakota
Field Commander
Field Commander
Posts: 991
Joined: Mon Dec 06, 2010 8:21 pm
Projects :: making random weapon assets
Games I'm Playing :: SWBF2 and more
xbox live or psn: PS3 beats xbox
Location: at a computer desk floating around in space

Re: Entity class for landmine not being read

Post by Dakota »

Names and folders:

com_weap_inf_mine_dispenser.odf: sides/common/odf
com_weap_inf_landmine_exp.odf: sides/common/odf
com_weap_inf_landmine_destroyed_exp.odf: sides/common/odf
com_weap_inf_landmine.odf: sides/common/odf

imp_weap_inf_mine_dispenser.odf: sides/imp/odf

That last one is also in the all side since they use the same weapon, it also calls for the mine from the odf in the common folder.

i'll have to edit in the full error log later as its too big to post here.

EDIT
uploaded it to minus as i can't use gamefront as of now.

http://minus.com/mFCGUMwct
icemember
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 318
Joined: Thu Jun 11, 2009 3:02 am
Projects :: Designated Days Chapter 1
Games I'm Playing :: SWBF2 Mortal Komabt
xbox live or psn: icemember x
Location: 6 planet of the Hoth system

Re: Entity class for landmine not being read

Post by icemember »

Have you checked that the odf file "com_weap_inf_landmine" is in the commons folder?

I would suggest a manual side cleaning then remunging.

Manual side cleaning
--------------------------------------------------------------------------------------------
Delete all files and folder here: C:\BF2_ModTools\data_ABC\_BUILD\Sides\IMP
But do not delete the clean.bat and munge.bat.

Delete your imp.lvl and impshell.lvl here: C:\BF2_ModTools\data_ABC\_LVL_PC\SIDE

Lastly delete your imp.lvl and impshell.lvl in your addon folder, where ever you have it. (games directory)

Then remunge.

Just even more curious, what OS are you running?
What patch of the game are you using?
User avatar
Dakota
Field Commander
Field Commander
Posts: 991
Joined: Mon Dec 06, 2010 8:21 pm
Projects :: making random weapon assets
Games I'm Playing :: SWBF2 and more
xbox live or psn: PS3 beats xbox
Location: at a computer desk floating around in space

Re: Entity class for landmine not being read

Post by Dakota »

its in the common folder and the common folder in sides, i am using windows XP and i have the 1.1 patch and Zerted's 1.3 patch.

i'll try the manual clean again soon.
User avatar
lucasfart
Sith
Sith
Posts: 1440
Joined: Tue Feb 24, 2009 5:32 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: Australia

Re: Entity class for landmine not being read

Post by lucasfart »

You did munge the common side first, right?
User avatar
Dakota
Field Commander
Field Commander
Posts: 991
Joined: Mon Dec 06, 2010 8:21 pm
Projects :: making random weapon assets
Games I'm Playing :: SWBF2 and more
xbox live or psn: PS3 beats xbox
Location: at a computer desk floating around in space

Re: Entity class for landmine not being read

Post by Dakota »

yes it has already been munged.
User avatar
lucasfart
Sith
Sith
Posts: 1440
Joined: Tue Feb 24, 2009 5:32 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: Australia

Re: Entity class for landmine not being read

Post by lucasfart »

Try moving the common landmine files (mesh, texture and odf) into your custom side and see if that makes a difference. Do a manual clean before you munge just to be sure.
User avatar
Dakota
Field Commander
Field Commander
Posts: 991
Joined: Mon Dec 06, 2010 8:21 pm
Projects :: making random weapon assets
Games I'm Playing :: SWBF2 and more
xbox live or psn: PS3 beats xbox
Location: at a computer desk floating around in space

Re: Entity class for landmine not being read

Post by Dakota »

munged, still not working.
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Entity class for landmine not being read

Post by Marth8880 »

Try adding the completely stock mine weapon, test it, and gradually edit it to be like your new one, munging after most changes.
User avatar
Dakota
Field Commander
Field Commander
Posts: 991
Joined: Mon Dec 06, 2010 8:21 pm
Projects :: making random weapon assets
Games I'm Playing :: SWBF2 and more
xbox live or psn: PS3 beats xbox
Location: at a computer desk floating around in space

Re: Entity class for landmine not being read

Post by Dakota »

i was thinking of that, the only thing modded in my mine is the lifespan and the explosion damage but i'll test it out anyway.
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Entity class for landmine not being read

Post by Marth8880 »

Wow, and it doesn't work? Ouch.
Post Reply