Weapon crashes [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
skelltor
Sith
Sith
Posts: 1431
Joined: Fri Dec 11, 2009 6:24 pm
Projects :: BFSM
Games I'm Playing :: SWBFII
xbox live or psn: skelltor95
Location: minisnowta
Contact:

Weapon crashes [solved]

Post by skelltor »

hi i made a rail detanator (a det pack lancher) but the game crashes when the map is lodeing i have i solated it so i know it is the rail det here are the odfs
Hidden/Spoiler:
[WeaponClass]
ClassParent = "com_weap_inf_detpack"
ClassLabel = "launcher"
GeometryName = "com_weap_inf_torpedo.msh"

[Properties]
GeometryName = "com_weap_inf_torpedo"
HighResGeometry = "com_1st_weap_inf_torpedo"
HUDTag = "com_weap_inf_detpack"
OrdnanceName = "imp_weap_inf_raildetonator_ord"


RoundsPerClip = "1"
ShotDelay = "0.1"
ReloadTime = "0.1"
InitialSalvoDelay = "0.25"

TriggerAll = "1"

AnimationBank = "rifle"

OffhandWeapon = 1
TrackingSound = ""

MaxItems = "1"

RefillFromItem = "0"

AutoAimSize = "1.0"

MaxPressedTime = "0.5"
MinStrength = "0.2"
MaxStrength = "1.0"

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

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

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

ScopeTexture = "weapon_scope2"

MuzzleFlash = "small_muzzle_flash"
FlashColor = "255 198 62"
FlashLength = "0.075"
FlashLightColor = "255 198 62 175"

FlashLightRadius = "5.0"
FlashLightDuration = "0.25"
Discharge = "small_smoke_effect"

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

FireSound = "imp_weap_inf_rocket_launcher_fire"
FireEmptySound = "com_weap_inf_ammo_empty"
FireLoopSound = ""
ReloadSound = "com_weap_inf_reload_lg"
ChargeSound = "imp_weap_inf_rocket_launcher_tracking"
ChangeModeSound = "com_weap_inf_equip_lg"
WeaponChangeSound = "com_weap_inf_equip_lg"
JumpSound = "com_weap_inf_bazooka_mvt_jump"
LandSound = "com_weap_inf_bazooka_mvt_land"
RollSound = "com_weap_inf_bazooka_mvt_roll"
//ProneSound = "com_weap_inf_bazooka_mvt_lie"
SquatSound = "com_weap_inf_bazooka_mvt_squat"
//StandSound = "com_weap_inf_bazooka_mvt_getup"
ord
Hidden/Spoiler:
[WeaponClass]
ClassParent = "com_weap_inf_detpack"
[GameObjectClass]
ClassLabel = "mine"
GeometryName = "com_weap_inf_detpack.msh"

[Properties]
TrailEffect = "com_sfx_mineblink_red"
LightColor = "250 50 50 150"
LightRadius = "3.0"

GeometryName = "com_weap_inf_detpack"

LifeSpan = "60.0"
NoLifeSpanDisplay = "1"

Velocity = "120.0"
Gravity = "0.0"
Rebound = "0.0
//Friction = "1.0

MaxHealth = "200"

StickPerson = 1
StickAnimal = 1
StickDroid = 1
StickVehicle = 1
StickBuilding = 1
StickBuildingDead = 1
StickBuildingUnbuilt= 1
StickTerrain = 1

CollisionSound = "com_sticky_stick"

ExplosionTrigger = "imp_weap_inf_raildetonator_exp"
ExplosionExpire = "imp_weap_inf_detpack_destroyed_exp"
ExplosionDeath = "imp_weap_inf_detpack_destroyed_exp"
exp
Hidden/Spoiler:
[ExplosionClass]
ClassParent = "com_weap_inf_detpack_exp"

[Properties]
Damage = "2000.0"
DamageRadiusInner = "4.0"
DamageRadiusOuter = "6.0"

Push = "10.0"
PushRadiusInner = "6.0"
PushRadiusOuter = "10.0"

Shake = "1.0"
ShakeLength = "1.0"
ShakeRadiusInner = "10.0"
ShakeRadiusOuter = "12.0"

WaterEffect = "com_timebomb_exp_con_water"
Effect = "com_timebomb_exp_con"
Decal = "decal_explosion"

LightColor = "46 252 5 150"
LightRadius = "8.0"
LightDuration = "1.0"

PersonScale = "1.0"
DroidScale = "1.0"
BuildingScale = "1.0"
AnimalScale = "1.0"
VehicleScale = "1.0"

SoundProperty = "com_weap_obj_med_exp"

PushDeadOnly = 0
AffectFriends = "0"
help would be great
Last edited by skelltor on Wed Feb 03, 2010 10:06 pm, edited 1 time in total.
User avatar
sampip
General
General
Posts: 792
Joined: Mon Mar 16, 2009 12:08 pm
Projects :: Something big. And exciting.
Games I'm Playing :: Battlefield 3
xbox live or psn: masowner66
Location: Zebra

Re: wepon crashes

Post by sampip »

Can you post your error log?
User avatar
skelltor
Sith
Sith
Posts: 1431
Joined: Fri Dec 11, 2009 6:24 pm
Projects :: BFSM
Games I'm Playing :: SWBFII
xbox live or psn: skelltor95
Location: minisnowta
Contact:

Re: wepon crashes

Post by skelltor »

i dont get an error log i have never gotten an error log what i get is the game is lodeing then all of a suddon it closes out it happens when i mod stuff wrong
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Weapon crashes

Post by AQT »

It sounds like you don't know what an error log is:
Hidden/Spoiler:
[quote="The FAQ / Everything You Need Thread Version 2.0 "]Question - I have the CD version of SWBF2 and I get a binkw32.dll error when trying to launch the BF2_modtools.exe, what's wrong?
Answer - The BF2_modtools.exe is the debug executable, copy it from the main BF2_modtools folder and paste it in the same folder as your battlefront2.exe, usually:
C:\Program Files\LucasArts\Star Wars Battlefront II\GameData
then you can launch BF2_modtools.exe and play your map to get a BFront2.log located in that same folder.
If you have the DVD version check THIS LINK for a DVD version of BF2_modtools.exe

Note to Vista users:
If you can't find your BFront2.log it may be saved to this location:
C:\Users\<username>\AppData\Local\VirtualStore\Program Files\LucasArts\Star Wars Battlefront II\GameData[/quote]
Anyway, your _exp ODF looks fine but the first two are a huge mess. One of the main reasons being you can't have a ClassLabel and a ClassParent at the same time.
User avatar
skelltor
Sith
Sith
Posts: 1431
Joined: Fri Dec 11, 2009 6:24 pm
Projects :: BFSM
Games I'm Playing :: SWBFII
xbox live or psn: skelltor95
Location: minisnowta
Contact:

Re: Weapon crashes

Post by skelltor »

Oh by error log do u mean the word pad that pops up after munging? if so there was nothing about the rail det thanks for the tip about class parents i didn't know that anything else??
User avatar
sampip
General
General
Posts: 792
Joined: Mon Mar 16, 2009 12:08 pm
Projects :: Something big. And exciting.
Games I'm Playing :: Battlefield 3
xbox live or psn: masowner66
Location: Zebra

Re: Weapon crashes

Post by sampip »

No, read the post, you need to download BF2Modtools.exe and put it in the folder specified. Then you run your map, and if it crashes, look at BFront2.log and post it here.
--Note, if you already have BFront2.log in your GameData folder before you run the game, delete it.
User avatar
skelltor
Sith
Sith
Posts: 1431
Joined: Fri Dec 11, 2009 6:24 pm
Projects :: BFSM
Games I'm Playing :: SWBFII
xbox live or psn: skelltor95
Location: minisnowta
Contact:

Re: Weapon crashes

Post by skelltor »

is this 4 side mods to cuz thats what i am doing??
User avatar
destos
Chief Warrant Officer
Chief Warrant Officer
Posts: 349
Joined: Sat Sep 22, 2007 10:37 pm

Re: Weapon crashes

Post by destos »

its for any map you play, no matter if its the common maps or custom. basically it logs on what the game is doing. so yes it would work for side mods, as long as the sidemod is inside a map, and has been munged into the game.


@Sam pip: why would he have to delete the bf2log? i never have had to delete it before running the modtool. it always resets itself. unless there is something i never learned about it.
User avatar
skelltor
Sith
Sith
Posts: 1431
Joined: Fri Dec 11, 2009 6:24 pm
Projects :: BFSM
Games I'm Playing :: SWBFII
xbox live or psn: skelltor95
Location: minisnowta
Contact:

Re: Weapon crashes

Post by skelltor »

hmmm that dosent work cuz when i put it in the folder and ran it it asked for disc 1 but i downloded it form ign d2d any ideas and what all is wrong with the odfs besides the class parent class lable thing??
501st_commander
Master Bounty Hunter
Master Bounty Hunter
Posts: 1570
Joined: Wed Dec 10, 2008 7:48 pm

Re: Weapon crashes

Post by 501st_commander »

The FAQ / Everything You Need Thread Version 2.0 wrote: If you have the DVD version check THIS LINK for a DVD version of BF2_modtools.exe

Download the DVD version and put it in the gamedata folder C:\Program Files\LucasArts\Star Wars Battlefront II\GameData. We cant help much if you dont post the log.
User avatar
skelltor
Sith
Sith
Posts: 1431
Joined: Fri Dec 11, 2009 6:24 pm
Projects :: BFSM
Games I'm Playing :: SWBFII
xbox live or psn: skelltor95
Location: minisnowta
Contact:

Re: Weapon crashes

Post by skelltor »

ok i got it not to crash but i am not quite sure how to make it do what i want it to
do i want it to look like a torpedo lancher and it dose
but the units holding it by the but of it and the barrols pointing straght down and i want it to fire det packs that move quit fast and have no gravity but right now they just slowly drop and flote down here are the odfs

rail det
Hidden/Spoiler:
[WeaponClass]

ClassParent = "com_weap_inf_detpack"
GeometryName = "com_weap_inf_torpedo.msh"

[Properties]
GeometryName = "com_weap_inf_torpedo"
HighResGeometry = "com_1st_weap_inf_torpedo"
HUDTag = "hud_vehicle_torpedo"
OrdnanceName = "imp_weap_inf_raildetonator_ord"


RoundsPerClip = "1"
ShotDelay = "0.1"
ReloadTime = "0.1"
InitialSalvoDelay = "0.25"

TriggerAll = "1"

AnimationBank = "rifle"

OffhandWeapon = 1
TrackingSound = ""

MaxItems = "1"

RefillFromItem = "0"

AutoAimSize = "1.0"

MaxPressedTime = "0.5"
MinStrength = "0.2"
MaxStrength = "1.0"

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

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

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

ScopeTexture = "weapon_scope2"

MuzzleFlash = "small_muzzle_flash"
FlashColor = "255 198 62"
FlashLength = "0.075"
FlashLightColor = "255 198 62 175"

FlashLightRadius = "5.0"
FlashLightDuration = "0.25"
Discharge = "small_smoke_effect"

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

FireSound = "imp_weap_inf_rocket_launcher_fire"
FireEmptySound = "com_weap_inf_ammo_empty"
FireLoopSound = ""
ReloadSound = "com_weap_inf_reload_lg"
ChargeSound = "imp_weap_inf_rocket_launcher_tracking"
ChangeModeSound = "com_weap_inf_equip_lg"
WeaponChangeSound = "com_weap_inf_equip_lg"
JumpSound = "com_weap_inf_bazooka_mvt_jump"
LandSound = "com_weap_inf_bazooka_mvt_land"
RollSound = "com_weap_inf_bazooka_mvt_roll"
//ProneSound = "com_weap_inf_bazooka_mvt_lie"
SquatSound = "com_weap_inf_bazooka_mvt_squat"
//StandSound = "com_weap_inf_bazooka_mvt_getup"
rail det ord
Hidden/Spoiler:
[WeaponClass]

[GameObjectClass]
ClassParent = "com_weap_inf_detpack_ord"
GeometryName = "com_weap_inf_detpack.msh"

[Properties]
TrailEffect = "com_sfx_mineblink_red"
LightColor = "250 50 50 150"
LightRadius = "3.0"

GeometryName = "com_weap_inf_detpack"

LifeSpan = "60.0"
NoLifeSpanDisplay = "1"

Velocity = "2000.0"
Gravity = "0.2"
Rebound = "0.0
Friction = "0.0

MaxHealth = "200"

StickPerson = 1
StickAnimal = 1
StickDroid = 1
StickVehicle = 1
StickBuilding = 1
StickBuildingDead = 1
StickBuildingUnbuilt= 1
StickTerrain = 1

CollisionSound = "com_sticky_stick"

ExplosionTrigger = "imp_weap_inf_raildetonator_exp"
ExplosionExpire = "imp_weap_inf_detpack_destroyed_exp"
ExplosionDeath = "imp_weap_inf_detpack_destroyed_exp"
det pack (parent odf)
Hidden/Spoiler:
[WeaponClass]
ClassLabel = "detonator"

[Properties]
HUDTag = "com_weap_inf_detpack"

RoundsPerClip = "1"
ShotDelay = "0.5"
ReloadTime = "3.0"
InitialSalvoDelay = "0.25"

TriggerAll = "1"

//AnimationBank = "grenade"

OffhandWeapon = 1
TrackingSound = ""

MaxItems = "1.0"

RefillFromItem = "0"

AutoAimSize = "1.0"

MaxPressedTime = "0.5"
MinStrength = "0.2"
MaxStrength = "1.0"

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

TargetPerson = "0"
TargetAnimal = "0"
TargetDroid = "0"
TargetVehicle = "1"
TargetBuilding = "1"
TargetMine = "0"
det pack ord (parent ord)
Hidden/Spoiler:
[GameObjectClass]
ClassLabel = "mine"
GeometryName = "com_weap_inf_detpack.msh"

[Properties]
TrailEffect = "com_sfx_mineblink_red"
LightColor = "250 50 50 150"
LightRadius = "3.0"

GeometryName = "com_weap_inf_detpack"

LifeSpan = "60.0"
NoLifeSpanDisplay = "1"

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

MaxHealth = "20"

StickPerson = 1
StickAnimal = 1
StickDroid = 1
StickVehicle = 1
StickBuilding = 1
StickBuildingDead = 1
StickBuildingUnbuilt= 1
StickTerrain = 1

CollisionSound = "com_sticky_stick"
any help woulde be awesome if u need the exp or the unit odfs let me know please


thanks skelltor
Post Reply