Author Topic: How to edit the number of secondary banks for an existing ship?  (Read 1056 times)

0 Members and 1 Guest are viewing this topic.

Offline emark4

  • 27
How to edit the number of secondary banks for an existing ship?
Noob modding question, and not sure if I'm posting at the right section of the forum so sorry bout that in advance.

I wanted to know about modifying an existing ship using the tables.  I like to modify the number of secondary banks on a ship but I am not sure how to do it.

 

Offline Trivial Psychic

  • 212
  • Snoop Junkie
Re: How to edit the number of secondary banks for an existing ship?
You need to make changes on the model as well.
The Trivial Psychic Strikes Again!

  

Offline 0rph3u5

  • 211
  • Oceans rise. Empires fall.
Re: How to edit the number of secondary banks for an existing ship?
1. (As Trivial Psychic said) You have to go into the model's .pof. There you have the option to add the data for where the firing points for the model need to be; a bank needs at least one valid firing point. In PCS, you add the bank first and then have the option to add the firing points.
If you are doing this to an existing ship, I highly advise you to save the result in a seperate file because banks that are on the model but not in the tables tend to produce an error message on start-up (and that muddles every debug).

2. Then you need to add the bank to the tables. Which generally just means finding the lines "$Default PBanks" or "$Default SBanks" respecitvely in the ships tbl/.tbm-entry and adding another data point in the ( [...] ).
Like so: [before - - - > after]
$Default PBanks: ( "Mekhu HL-7" "Mekhu HL-7" )  - - > $Default PBanks: ( "Mekhu HL-7" "Mekhu HL-7" "Mekhu HL-7" )

2a. If you also want the weapon banks to be restricted to certain weapons (FS_Open 3.6+ or newer), you also need to find the lines with "$Allowed SBanks:" or "$Allowed PBanks:" and add additional data.
Like so: [before - - - > after]
$Allowed SBanks: ( "Rockeye" ) - - ->  $Allowed SBanks: ( "Rockeye" ) ( "Tempest" ) ( "Tempest" )

If you are using a seperate model you should be using a seperate .tbl/.tbm entry.
 If you remove the "in tech database" from the $flags:-line it won't show in the tech room; anything you add to the name of the entry after a # should also be invisible during gameplay.

Edit: I really shouldn't type during a lecture
« Last Edit: January 16, 2018, 09:20:01 am by 0rph3u5 »
"As you sought to steal a kingdom for yourself, so must you do again, a thousand times over. For a theft, a true theft, must be practiced to be earned." - The terms of Nyrissa's curse, Pathfinder: Kingmaker

==================

"I am Curiosity, and I've always wondered what would become of you, here at the end of the world." - The Guide/The Curious Other, Othercide

"When you work with water, you have to know and respect it. When you labour to subdue it, you have to understand that one day it may rise up and turn all your labours into nothing. For what is water, which seeks to make all things level, which has no taste or colour of its own, but a liquid form of Nothing?" - Graham Swift, Waterland

"...because they are not Dragons."