Author Topic: multiple primary banks  (Read 3142 times)

0 Members and 1 Guest are viewing this topic.

Offline origin

  • 27
multiple primary banks
This is driving me crazy.  I am sure I am missing something horribly obvious. 

I cannot get 2 primary banks to show up in a ship I made.  I made a ship and the POF has 2 weapon banks but when I run the game I only have one choice for primary weapons.  When I look in fred at the weapons, I have 2 banks with the proper guns loaded in both banks, but there is only one bank in the game.  Is there some flag or something that needs to be checked?

 

Offline Solatar

  • 211
Re: multiple primary banks
Maybe you've borked your table entry?

Is the second weapon a modded weapon?  If you forget to make it a player usable weapon, it will still "load" on the ship in FRED, but not appear in game.

Sounds like you've messed up something in a table.

 

Offline origin

  • 27
Re: multiple primary banks
In the ship.tbm I have the Default Primary as ("AX_laser"  "AX_massdriver).  If I put the laser first that is the one that shows up, if I put the massdriver first that is the one that shows up but the don't both show up in the game at the same time as differnt banks.  So it sounds like the weapons are alright it has to do with the multiple banks aspect.

 

Online Aardwolf

  • 211
  • Posts: 16,384
Re: multiple primary banks
Are both of the pof's banks primary banks?

 

Offline origin

  • 27
Re: multiple primary banks
They are both gun points and the designated in the POF under gunpopints as bank 1 and bank 2.  there are 2 guns in bank 1 and 2 guns in bank 2.

edited to add: I have 3 missle banks that show up fine - it is just a primaries problem.

 

Online Aardwolf

  • 211
  • Posts: 16,384
Re: multiple primary banks
Do both banks actually have firing points?
Is the default primary allowed for the ship you want to use it in?

You may have to post the -shp.tbm

 

Offline origin

  • 27
Re: multiple primary banks
All points in the 2 banks are filled.

Here is an entry example from the Shp_tbm:

$Name:                          ganja
$Short name:               ganja
$Species:                       Terran
+Type:                          XSTR("Heavy Assault", 2945)
+Maneuverability:            XSTR("Poor", 2946)
+Armor:                         XSTR("Heavy", 2947)
+Manufacturer:               XSTR("Han-Ronald Corp", 2948)
+Description:               XSTR( " ", 2949)
$end_multi_text
+Tech Description:
XSTR("Heavy fighter2950)
$end_multi_text
+Length:                  20 m
+Gun Mounts:               1
+Missile Banks:               2

$POF file:                      ganja.pof
$Detail distance:            (0, 80, 300, 900)
$Show damage:               YES
$Density:                       1
$Damp:                          0.2
$Rotdamp:                       0.35
$Max Velocity:               0.0, 0.0, 66.7                  ;; in x/y/z -- z only specified forward.  use special tokens for backward movement
$Rotation time:               4.7, 4.7, 4.7
$Rear Velocity:               0.0
$Forward accel:               3.0
$Forward decel:               1.5
$Slide accel:               0.0
$Slide decel:               0.0
$Expl inner rad:            25.0
$Expl outer rad:            75.0
$Expl damage:               25.0
$Expl blast:               1000.0
$Expl Propagates:            NO                                                      ;; If set to Yes, then when the ship dies, the explosion propagates through it.
$Shockwave Speed:            0.0                                             ;; speed shockwave expands at, 0 means no shockwave
$Allowed PBanks:            ( "AX_laser" "AX_massdriver")
$Allowed Dogfight PBanks:         ( "AX_laser" "AX_massdriver")
$Default PBanks:            ( "AX_laser" "AX_massdriver")
$Allowed SBanks:            ( "heatseak"  "Imagerecon" "friendfoe" )
$Allowed Dogfight SBanks:         ( "heatseak"  "Imagerecon" "friendfoe" )
$Default SBanks:            ( "heatseak"  "Imagerecon" "friendfoe" )
$SBank Capacity:            (8, 8, 8)
$Shields:                       150
$Shield Color:         100 100 255
$Power Output:               3.0
$Max Oclk Speed:            64.0
$Max Weapon Eng:            150.0
$Hitpoints:                     150
$Flags:                         ( "player_ship" "default_player_ship" "fighter")
$AI Class:                      Captain
$Afterburner:               YES
   +Aburn Max Vel: 0.0, 0.0, 120.0
   +Aburn For accel:       0.7
   +Aburn Fuel:            300.0
   +Aburn Burn Rate:       60.0
   +Aburn Rec Rate:        25.0
$Countermeasures:            0
$Scan time:                     2000
$EngineSnd:                  126                   ;; Engine sound of ship
$Closeup_pos:               0.0, 0.0, -30
$Closeup_zoom:               0.5
$Shield_icon:               shieldgra
$Ship_icon:                     iconfighter06
$Ship_anim:                     ssfighter06
$Ship_overhead:               loadfighter06
$Score:                     10

 

Offline Spoon

  • 212
  • ヾ(´︶`♡)ノ
Re: multiple primary banks
Try
$Allowed PBanks:            ( "AX_laser" "AX_massdriver") ( "AX_laser" "AX_massdriver")
Urutorahappī!!

[02:42] <@Axem> spoon somethings wrong
[02:42] <@Axem> critically wrong
[02:42] <@Axem> im happy with these missions now
[02:44] <@Axem> well
[02:44] <@Axem> with 2 of them

 

Offline origin

  • 27
Re: multiple primary banks
Try
$Allowed PBanks:            ( "AX_laser" "AX_massdriver") ( "AX_laser" "AX_massdriver")

Nope didn't make any difference.

 

Offline Spoon

  • 212
  • ヾ(´︶`♡)ノ
Re: multiple primary banks
Can you upload the .pof file and tables so I can take a look at it?
Urutorahappī!!

[02:42] <@Axem> spoon somethings wrong
[02:42] <@Axem> critically wrong
[02:42] <@Axem> im happy with these missions now
[02:44] <@Axem> well
[02:44] <@Axem> with 2 of them

 

Offline origin

  • 27
Here is a POF file

[attachment deleted by admin]

 

Offline Spoon

  • 212
  • ヾ(´︶`♡)ノ
The things i've noticed when looking at the .pof is that 1. It doesn't have special points, aka subsystems. I always had the impression that a ship needed a weapons subsystem to work properly. But that's just an assumption on my part, don't know if thats actually true or not.
2. It only has Gun bank 1 and Gun bank 2 but no missile points. So i'm not sure how your missiles are suppose to be working at all in game. I'm guessing this is the culprit to your problem. Give the fighter a missile bank in the .pof.
3. It's no use making a engine subobject if you are not going to define it as a '$special=subsystem'.
Urutorahappī!!

[02:42] <@Axem> spoon somethings wrong
[02:42] <@Axem> critically wrong
[02:42] <@Axem> im happy with these missions now
[02:44] <@Axem> well
[02:44] <@Axem> with 2 of them

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Did you try creating a new pilot file and test with that?  I've seen corrupted pilot files do things like this. 
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras

 

Offline origin

  • 27
The things i've noticed when looking at the .pof is that 1. It doesn't have special points, aka subsystems. I always had the impression that a ship needed a weapons subsystem to work properly. But that's just an assumption on my part, don't know if thats actually true or not.
2. It only has Gun bank 1 and Gun bank 2 but no missile points. So i'm not sure how your missiles are suppose to be working at all in game. I'm guessing this is the culprit to your problem. Give the fighter a missile bank in the .pof.
3. It's no use making a engine subobject if you are not going to define it as a '$special=subsystem'.

The POF I sent was a slightly earlier version with no missles - I don't have a newer version on me.  Missle points are not I still am unable to have multiple gun points usable in the game.  Most of my ships do not have subsystems I can certainly put them on and will try that later today, but I suspect that is not the problem - I think there must be something in the tables that is gimped up.

 

Offline origin

  • 27
Did you try creating a new pilot file and test with that?  I've seen corrupted pilot files do things like this. 

Tried a new pilot file, but alas still only one primary bank.

 

Offline origin

  • 27
apparently there is something wrong in the weapons tbm, if I change one of the weapons to a standard Subach HL-7 then I have 2 banks - so I still am not sure what the problem is but I now I know where the problem is!

 

Offline Spoon

  • 212
  • ヾ(´︶`♡)ノ
Have you tried running in debug yet?
Urutorahappī!!

[02:42] <@Axem> spoon somethings wrong
[02:42] <@Axem> critically wrong
[02:42] <@Axem> im happy with these missions now
[02:44] <@Axem> well
[02:44] <@Axem> with 2 of them

 

Offline Dragon

  • Citation needed
  • 212
  • The sky is the limit.
I'd like to take a look at it, but for some reason I can't DL the file.
It always comes corrupt.

 

Offline Spoon

  • 212
  • ヾ(´︶`♡)ノ
I'd like to take a look at it, but for some reason I can't DL the file.
It always comes corrupt.
Well the .pof is useless when it comes to solving the error because he uploaded an earlier version  :doubt:
Urutorahappī!!

[02:42] <@Axem> spoon somethings wrong
[02:42] <@Axem> critically wrong
[02:42] <@Axem> im happy with these missions now
[02:44] <@Axem> well
[02:44] <@Axem> with 2 of them

 

Offline Solatar

  • 211
Just out of curiosity, can I see the $Flags: you have on each of the weapons?