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
-
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:
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?
-
You can steal the Angel from Frontlines if you want. You can fly it there. :)
-
Check if she has "player_ship" flag.
-
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).
-
(capships are kind of a special case)
How so? /curious
-
"player_ship" is definitely there. Still no dice, I get that error whenever I try to change the player ship to an Angel.
-
"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).
-
Yup, FSO is loading that .tbm. Here's the entry (it's at the beginning so I included the beginning bit also)
#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
-
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?
-
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.
-
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.
-
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.
-
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.
-
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. :)
-
Are you still having trouble with this, PVD_Hope?
-
You can make a "*-shp.tbm" file with a duplicate entry of the GTF Angel and rename it to "GTF Angel#player"
-
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" )?
-
No.
-
Ok. Asked and answered. I guess since the line looked vaguely like SQL syntax, I thought maybe a misplaced comma could be a problem.