Page 1 of 1

[Solved] Adding Weapons to flyer crashes the game

Posted: Mon Jun 22, 2020 9:16 am
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"

Re: Adding Weapons to flyer crashes the game

Posted: Wed Jun 24, 2020 9:20 pm
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.

Re: Adding Weapons to flyer crashes the game

Posted: Thu Jun 25, 2020 12:35 pm
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