Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: HLD_Prophecy on February 15, 2017, 08:06:45 am

Title: Is the GTF Angel a player-capable fighter?
Post by: HLD_Prophecy on February 15, 2017, 08:06:45 am
I'm trying to set the GTF Angel (table data taken from FSPort) as the player fighter, but upon trying to save the mission I get this error message:

Code: [Select]
Invalid ship type for a player. Ship has been reset to a non-player ship.
Does anyone know if the Angel was ever supposed to be player-flyable?
Title: Re: Is the GTF Angel a player-capable fighter?
Post by: Lorric on February 15, 2017, 08:50:51 am
You can steal the Angel from Frontlines if you want. You can fly it there. :)
Title: Re: Is the GTF Angel a player-capable fighter?
Post by: Nyctaeus on February 15, 2017, 09:21:19 am
Check if she has "player_ship" flag.
Title: Re: Is the GTF Angel a player-capable fighter?
Post by: mjn.mixael on February 15, 2017, 12:51:35 pm
Player_flyable in most cases (capships are kind of a special case) is just an arbitrary table setting. You just gotta edit the entry for the Angel to add "player_ship" as Nyctaeus said. Just wanted to clear up where that setting actually is. Look in ships.tbl (http://www.hard-light.net/wiki/index.php/Ships.tbl).
Title: Re: Is the GTF Angel a player-capable fighter?
Post by: xenocartographer on February 15, 2017, 09:11:34 pm
Quote
(capships are kind of a special case)
How so? /curious
Title: Re: Is the GTF Angel a player-capable fighter?
Post by: HLD_Prophecy on February 16, 2017, 08:12:18 pm
"player_ship" is definitely there. Still no dice, I get that error whenever I try to change the player ship to an Angel.
Title: Re: Is the GTF Angel a player-capable fighter?
Post by: AdmiralRalwood on February 16, 2017, 09:51:46 pm
"player_ship" is definitely there. Still no dice, I get that error whenever I try to change the player ship to an Angel.
That error only checks that specific flag; the only way to get that error is for FSO not to see that flag set on that ship class (so make sure the file you've been editing is the same file FSO is actually loading, make sure you're actually editing the class you're using, and make sure the line isn't commented out or something).
Title: Re: Is the GTF Angel a player-capable fighter?
Post by: HLD_Prophecy on February 18, 2017, 06:44:55 pm
Yup, FSO is loading that .tbm. Here's the entry (it's at the beginning so I included the beginning bit also)

Code: [Select]
#Default Player Ship

$Name: GTF Angel

#End

#Ship Classes

$Name: GTF Angel
$Short name: TFight5a
$Species: Terran
+Type: XSTR("Recon", 349)
+Maneuverability: XSTR("Good", 342)
+Armor: XSTR("Light", 331)
+Manufacturer: XSTR("", 338)
+Description: XSTR("", 354)
$end_multi_text
+Tech Description:
XSTR("", 355)
$end_multi_text
+Length: 16 m
+Gun Mounts: 2
+Missile Banks: 1
$POF file: Angel.pof
$Detail distance: (0, 130, 300, 1000)
$Show damage: YES
$Density: 1
$Damp: 0.3
$Rotdamp: 0.27
$Max Velocity: 0.0, 0.0, 65.0
$Rotation time: 4.0, 4.0, 4.0
$Rear Velocity: 0.0
$Forward accel: 1.0
$Forward decel: 0.5
$Slide accel: 0.0
$Slide decel: 0.0
$Expl inner rad: 25.0
$Expl outer rad: 55.0
$Expl damage: 10.0
$Expl blast: 400.0
$Expl Propagates: NO
$Shockwave Speed: 0.0
$Allowed PBanks: ( "Prometheus R" "Subach HL-7" )
$Allowed Dogfight PBanks: ( "Prometheus R" )
$Default PBanks: ( "Subach HL-7" )
$Allowed SBanks: ( "Harpoon" )
$Allowed Dogfight SBanks: ( "Harpoon" )
$Default SBanks: ( "Harpoon" )
$SBank Capacity: ( 40 )
$Shields: 200
$Shield Color: 100 100 255
$Power Output: 2.0
$Max Oclk Speed: 80.0
$Max Weapon Eng: 100.0
$Hitpoints: 200
$Flags: ( "fighter" "player_ship" )
$AI Class: Captain
$Afterburner: YES
 +Aburn Max Vel: 0.0, 0.0, 105.0
 +Aburn For accel: 0.7
 +Aburn Fuel: 400.0
 +Aburn Burn Rate: 40.0
 +Aburn Rec Rate: 25.0
$Countermeasures: 20
$Scan time: 2000
$EngineSnd: 192
$Closeup_pos: 0.0, 0.0, -24
$Closeup_zoom: 0.5
$Shield_icon: shield-angel
$Ship_icon: iconangel
$Ship_anim: techangel
$Ship_overhead: loadangel
$Score: 10
$Trail:
 +Offset: 5.7 -1.8 -4.4
 +Start Width: 0.25
 +End Width: 0.05
 +Start Alpha: 1.0
 +End Alpha: 0.0
 +Max Life: 1.0
 +Spew Time: 120
 +Bitmap: Contrail01
$Trail:
 +Offset: -5.7 -1.8 -4.4
 +Start Width: 0.25
 +End Width: 0.05
 +Start Alpha: 1.0
 +End Alpha: 0.0
 +Max Life: 1.0
 +Spew Time: 120
 +Bitmap: Contrail01
$Subsystem: communication, 10,0.0
$Subsystem: engine, 35,0.0
$Subsystem: navigation, 10,0.0
$Subsystem: sensors, 10,0.0
$Subsystem: weapons, 20,0.0
Title: Re: Is the GTF Angel a player-capable fighter?
Post by: AdmiralRalwood on February 18, 2017, 09:16:54 pm
Yup, FSO is loading that .tbm.
And are there any other -shp.tbm files containing GTF Angel entries that might be overriding its flag list?
Title: Re: Is the GTF Angel a player-capable fighter?
Post by: HLD_Prophecy on February 20, 2017, 09:04:24 pm
Yup, FSO is loading that .tbm.
And are there any other -shp.tbm files containing GTF Angel entries that might be overriding its flag list?

Uh... nope, only one shp.tbm in the tables folder. This is a simple mod.
Title: Re: Is the GTF Angel a player-capable fighter?
Post by: AdmiralRalwood on February 20, 2017, 10:09:04 pm
Uh... nope, only one shp.tbm in the tables folder. This is a simple mod.
So you aren't using FSPort as a dependency?

EDIT: Never mind, the FSPort version has "player_ship" set anyway.
Title: Re: Is the GTF Angel a player-capable fighter?
Post by: HLD_Prophecy on February 23, 2017, 07:46:03 pm
Uh... nope, only one shp.tbm in the tables folder. This is a simple mod.
So you aren't using FSPort as a dependency?

EDIT: Never mind, the FSPort version has "player_ship" set anyway.

Yes, FSPort is not a dependency.

Sorry if this bug is really dragging things out.
Title: Re: Is the GTF Angel a player-capable fighter?
Post by: AdmiralRalwood on February 23, 2017, 08:11:21 pm
Well, there's not any more troubleshooting I can do without a test case, because the flag obviously isn't broken or no ships would work.
Title: Re: Is the GTF Angel a player-capable fighter?
Post by: HLD_Prophecy on March 01, 2017, 09:00:17 pm
Well, there's not any more troubleshooting I can do without a test case, because the flag obviously isn't broken or no ships would work.

Thanks for the help anyway. :)
Title: Re: Is the GTF Angel a player-capable fighter?
Post by: Goober5000 on April 17, 2017, 06:00:33 pm
Are you still having trouble with this, PVD_Hope?
Title: Re: Is the GTF Angel a player-capable fighter?
Post by: herkie423 on May 11, 2017, 01:49:56 am
You can make a "*-shp.tbm" file with a duplicate entry of the GTF Angel and rename it to "GTF Angel#player"
Title: Re: Is the GTF Angel a player-capable fighter?
Post by: LaineyBugsDaddy on June 12, 2017, 12:08:13 am
This is perhaps a silly question, but should there be a comma between the two entries on your flags line?
It currently reads:
$Flags: ( "fighter" "player_ship" )

Should it be:
$Flags: ( "fighter", "player_ship" )?
Title: Re: Is the GTF Angel a player-capable fighter?
Post by: xenocartographer on June 12, 2017, 06:04:24 am
No.
Title: Re: Is the GTF Angel a player-capable fighter?
Post by: LaineyBugsDaddy on June 12, 2017, 10:43:49 am
Ok. Asked and answered. I guess since the line looked vaguely like SQL syntax, I thought maybe a misplaced comma could be a problem.