[Solved] Adding Weapons to flyer crashes the game

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
Kroete
Posts: 4
Joined: Mon Oct 21, 2019 9:02 pm
Projects :: No Mod project currently.
Games I'm Playing :: Battlefront 2
xbox live or psn: No gamertag set

[Solved] Adding Weapons to flyer crashes the game

Post by Kroete »

I want to add Weapons to a flyer but certain weapons break it. I have two hardpoints for weapons: hp_fire1, hp_fire2. The first weapon i used was the aat laser (cis_weap_hover_aat_cannon or something) and it worked. But the weapon is garbage for shooting other Fighters so i tried adding weapons from the tiefighter, awing and arc170 but all of them cause the game to crash while loading in. Do I have to do something different compared to the aat weapon or is it easier to just create my own?
I have problems finding tutorials for setting up flyers and such anyway so any link to one would be appreciated as well.

Here is the section of my .odf for weapons (My plan is to change hp_fire2 to missiles or something but i think i wouldn't be able to do that if i cant even add starship weapons correctly):

Code: Select all

WEAPONSECTION       = 1 
WeaponName          = "cis_weap_hover_aat_cannon"
WeaponAmmo          = 0
FirePointName       = "hp_fire1"

WEAPONSECTION       = 2 
WeaponName          = "cis_weap_hover_aat_cannon"
WeaponAmmo          = 0
FirePointName       = "hp_fire2"
Last edited by Kroete on Thu Jun 25, 2020 12:36 pm, edited 1 time in total.
INMR
Private Recruit
Posts: 25
Joined: Mon May 18, 2020 11:11 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set

Re: Adding Weapons to flyer crashes the game

Post by INMR »

I'm out of my depth here since I have never worked with flyers before. However, there's a ton of stuff on here about flyers, which you can look through by typing "flyers" in the search box above here. There's also some stuff on flyers in the documentation (although I'm not sure if there's enough information to resolve your issue).

A potential suggestion that I have is to try altering the properties of weapons that you were able to get working. Even if it doesn't work, it might give you more information as to why you are having issues with your flyers.
Comparing the code from your flyer to that of the stock assets might also provide some information.

Sorry that I am not able to provide more helpful information. Hopefully, someone with more knowledge than I have is able to come along and provide some additional suggestions.
Kroete
Posts: 4
Joined: Mon Oct 21, 2019 9:02 pm
Projects :: No Mod project currently.
Games I'm Playing :: Battlefront 2
xbox live or psn: No gamertag set

Re: Adding Weapons to flyer crashes the game

Post by Kroete »

I found pretty simple solution. Because i'm fairly new i forgot about the common side aswell. I made my own Side and put the flyer in there ( I simply added it in the world folder the first time). Now i can add whatever weapon i want

Sorry that I am not able to provide more helpful information. Hopefully, someone with more knowledge than I have is able to come along and provide some additional suggestions.
Thank you anyway, it was simply a beginner problem (i think) but i'll use your advice on finding more information about flyers as i still want to know more about how they work
Last edited by Kroete on Thu Jun 25, 2020 12:37 pm, edited 1 time in total.
Post Reply