Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: Gai Daigoji on September 10, 2004, 03:59:43 pm

Title: Quick Question
Post by: Gai Daigoji on September 10, 2004, 03:59:43 pm
I wish to add a new ship to my campaign, however I've never gone about doing this before with Freespace 2. I have data I need to place in the fs2 ship.tbl file but it won't let me edit the file itself (Won't let me paste the new information in)

Do I need a program to do this? Or I'm I just going about it the wrong way?

Any help you can give me would be great.
Title: Quick Question
Post by: an0n on September 10, 2004, 04:02:25 pm
Don't use TBL View. Just open it up in NotePad and paste it in that way.
Title: Quick Question
Post by: aldo_14 on September 10, 2004, 06:41:49 pm
NB: FS2 tbls are just ASCII text files. :)
Title: Quick Question
Post by: Liberator on September 10, 2004, 11:03:11 pm
Make it easier on yourself, use a modular table file.

Just paste:

#Ship Classes

on it's own line at the beginning, and

#end

on it's own line at the end of the table entry.

As I understand it you don't have to have a whole entry, if you are modding an existing ship, you can just have the parts that change and it works.  This last part could be wrong however.

Here is the Raynor done as a modular table entry:
#Ship Classes
$Name:                          GTD Raynor
$Short name:               TCap
$Species:                       Terran
+Tech Description:
XSTR("Designed to more adequately hold its own against Shivan ships first enountered during the second great war, the Terran Raynor class is the largest production destroyer in service within the GTVA.  Its twelve primary beam cannons, each devastating in its own right, can focus at least 50% of the ship's main firepower across most of the ship's length.  The Raynor was designed more to provide heavy fire support than to deploy fighter wings, and has a significantly smaller hanger bay as a result.  At present, Raynor class vessles generally operate in conjunction with a Hecate destroyer, with the Hecate providing a large fighterbase and the Raynor providing heavy fire support; however, Raynor class vessles have been effectively deployed alone, and can hold their own against all but the most relentless enemy attack.  The GTD Raynor measures over three kilometers in length, and has an onboard crew compliment of 12,000 men and women.", 3051)
$end_multi_text
$POF file:               raynor.pof
$Detail distance:         (0, 11500, 311000, 441000)
$Show damage:            NO
$Density:               1
$Damp:                  0.2
$Rotdamp:               1.5
$Max Velocity:            0.0, 0.0, 20.0
$Rotation time:            150.0, 150.0, 150.0
$Rear Velocity:            0.0
$Forward accel:            20.0
$Forward decel:            10.0
$Slide accel:            0.0
$Slide decel:            0.0
$Expl inner rad:         100.0
$Expl outer rad:         2400.0
$Expl damage:            400.0
$Expl blast:            6500.0
$Expl Propagates:         YES                                                    
$Shockwave Speed:         600.0                                           ;; speed shockwave expands at, 0 means no shockwave
$Shockwave Count:         4
$Default PBanks:         ()
$Default SBanks:         ()
$SBank Capacity:         ()
$Shields:               0
$Power Output:            100.0
$Max Oclk Speed:         8.0
$Max Weapon Eng:         100.0
$Hitpoints:               150000
$Flags:                  ( "capital" "big damage" "in tech database")
$AI Class:               Captain
$Afterburner:            NO
$Countermeasures:         0
$Scan time:                     2000
$EngineSnd:       138                   ;; Engine sound of ship
$Closeup_pos:           0.0, 0.0, -2820
$Closeup_zoom:          0.5
$Score:             1000
$Subsystem:                     Turret01, 1.875, 3.0
   $Default PBanks:        ( "BGreen" )
$Subsystem:                     Turret02, 1.875, 3.0
   $Default PBanks:        ( "BGreen" )
$Subsystem:                     Turret03, 1.875, 3.0
   $Default PBanks:        ( "BGreen" )
$Subsystem:                     Turret04, 1.875, 3.0
   $Default PBanks:        ( "BGreen" )
$Subsystem:                     Turret05, 1.875, 3.0
   $Default PBanks:        ( "BGreen" )
$Subsystem:                     Turret06, 1.875, 3.0
   $Default PBanks:        ( "BGreen" )
$Subsystem:                     Turret07, 1.875, 3.0
   $Default PBanks:        ( "BGreen" )
$Subsystem:                     Turret08, 1.875, 3.0
   $Default PBanks:        ( "BGreen" )
$Subsystem:                     Turret09, 1.875, 3.0
   $Default PBanks:        ( "BGreen" )
$Subsystem:                     Turret10, 1.875, 3.0
   $Default PBanks:        ( "BGreen" )
$Subsystem:                     Turret11, 1.875, 3.0
   $Default PBanks:        ( "BGreen" )
$Subsystem:                     Turret12, 1.875, 3.0
   $Default PBanks:        ( "BGreen" )
$Subsystem:                     Turret13, 1.875, 3.0
   $Default PBanks:        ( "Heavy Flak" "Heavy Flak" )
$Subsystem:                     Turret14, 1.875, 3.0
   $Default PBanks:        ( "Heavy Flak" "Heavy Flak" )
$Subsystem:                     Turret15, 1.875, 3.0
   $Default PBanks:        ( "Heavy Flak" "Heavy Flak" )
$Subsystem:                     Turret16, 1.875, 3.0
   $Default PBanks:        ( "Heavy Flak" "Heavy Flak" )
$Subsystem:                     Turret17, 1.875, 3.0
   $Default PBanks:        ( "Heavy Flak" "Heavy Flak" )
$Subsystem:                     Turret18, 1.875, 3.0
   $Default PBanks:        ( "Heavy Flak" "Heavy Flak" )
$Subsystem:                     Turret19, 1.875, 3.0
   $Default PBanks:        ( "Heavy Flak" "Heavy Flak" )
$Subsystem:                     Turret20, 1.875, 3.0
   $Default SBanks:        ( "Cyclops" "Cyclops" )
$Subsystem:                     Turret21, 1.875, 3.0
   $Default SBanks:        ( "Cyclops" "Cyclops" )
$Subsystem:                     Turret22, 1.875, 3.0
   $Default SBanks:        ( "Cyclops" "Cyclops" )
$Subsystem:                     Turret23, 1.875, 3.0
   $Default SBanks:        ( "Cyclops" "Cyclops" )
$Subsystem:                     Turret24, 1.875, 3.0
   $Default SBanks:        ( "Cyclops" "Cyclops" )
$Subsystem:                     Turret25, 1.875, 3.0
   $Default SBanks:        ( "Cyclops" "Cyclops" )
$Subsystem:                     Turret26, 1.875, 3.0
   $Default PBanks:        ( "Terran Turret" )
$Subsystem:                     Turret27, 1.875, 3.0
   $Default PBanks:        ( "Terran Turret" )
$Subsystem:                     Turret28, 1.875, 3.0
   $Default PBanks:        ( "AAAf" )
$Subsystem:                     Turret29, 1.875, 3.0
   $Default PBanks:        ( "AAAf" )
$Subsystem:                     Turret30, 1.875, 3.0
   $Default PBanks:        ( "Terran Turret" )
$Subsystem:                     Turret31, 1.875, 3.0
   $Default PBanks:        ( "Terran Turret" )
$Subsystem:                     Turret32, 1.875, 3.0
   $Default PBanks:        ( "Terran Turret" )
$Subsystem:                     Turret33, 1.875, 3.0
   $Default PBanks:        ( "Terran Turret" )
$Subsystem:                     Turret34, 1.875, 3.0
   $Default PBanks:        ( "AAAf" )
$Subsystem:                     Turret35, 1.875, 3.0
   $Default PBanks:        ( "AAAf" )
$Subsystem:                     Turret36, 1.875, 3.0
   $Default PBanks:        ( "AAAf" )
$Subsystem:                     Turret37, 1.875, 3.0
   $Default PBanks:        ( "AAAf" )
$Subsystem:                     Turret38, 1.875, 3.0
   $Default PBanks:        ( "AAAf" )
$Subsystem:                     Turret39, 1.875, 3.0
   $Default PBanks:        ( "AAAf" )

$Subsystem:                     navigation,     5, 0.0
$Subsystem:                     communications,  5, 0.0
$Subsystem:                     weapons,        15, 0.0
$Subsystem:                     sensors,        5, 0.0
$Subsystem:                     engines,        35, 0.0
   $Engine Wash:   Default900
$Subsystem:                     fighterbay,     0, 0.0
#end

Works like a charm.

The only downside is it will appear at the end of the Tech Room list.
Title: Quick Question
Post by: Galemp on September 10, 2004, 11:10:19 pm
You guys are forgetting one important fact... save the new table to your Freespace2/data/tables/ folder.
Title: shame on you GE!
Post by: Getter Robo G on September 10, 2004, 11:17:48 pm
You forgot the most important part of all, Do NOT save with  SAVE AS... Use simply SAVE and overwrite old file. Otherwise it will save it as a text file and not work with FS2 anymore...

  Using SAVE even with note or wordpad will still save it in the form of a FS2 table file.

   Pretend people are doing this for the first time, it's nice to know trivia like that.
Title: Quick Question
Post by: Galemp on September 10, 2004, 11:20:33 pm
Well if you save it from when you open it in VPView or TableView it would just save it to the temporary directory the application extracted it to. Naturally the table file needs the .tbl extension for it to work.