Author Topic: Is the GTF Angel a player-capable fighter?  (Read 4667 times)

0 Members and 1 Guest are viewing this topic.

Offline HLD_Prophecy

  • PVD_Hope in a former life
  • 29
Is the GTF Angel a player-capable fighter?
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?

 

Offline Lorric

  • 212
Re: Is the GTF Angel a player-capable fighter?
You can steal the Angel from Frontlines if you want. You can fly it there. :)

 

Offline Nyctaeus

  • The Slavic Engineer
  • 212
  • My "FS Ships" folder is 582gb.
    • Minecraft
    • Exile
Re: Is the GTF Angel a player-capable fighter?
Check if she has "player_ship" flag.
Exile | Shadow Genesis | Inferno | Series Resurrecta  | DA Profile | P3D Profile

Proud owner of NyctiShipyards. Remember - Nyx will fix it!

All of my assets including models, textures, skyboxes, effects may be used under standard CC BY-NC 4.0 license.

 

Offline mjn.mixael

  • Cutscene Master
  • 212
  • Chopped liver
    • Steam
    • Twitter
Re: Is the GTF Angel a player-capable fighter?
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.
Cutscene Upgrade Project - Mainhall Remakes - Between the Ashes
Youtube Channel - P3D Model Box
Between the Ashes is looking for committed testers, PM me for details.
Freespace Upgrade Project See what's happening.

 
Re: Is the GTF Angel a player-capable fighter?
Quote
(capships are kind of a special case)
How so? /curious

 

Offline HLD_Prophecy

  • PVD_Hope in a former life
  • 29
Re: Is the GTF Angel a player-capable fighter?
"player_ship" is definitely there. Still no dice, I get that error whenever I try to change the player ship to an Angel.

 

Offline AdmiralRalwood

  • 211
  • The Cthulhu programmer himself!
    • Skype
    • Steam
    • Twitter
Re: Is the GTF Angel a player-capable fighter?
"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).
Ph'nglui mglw'nafh Codethulhu GitHub wgah'nagl fhtagn.

schrödinbug (noun) - a bug that manifests itself in running software after a programmer notices that the code should never have worked in the first place.

When you gaze long into BMPMAN, BMPMAN also gazes into you.

"I am one of the best FREDders on Earth" -General Battuta

<Aesaar> literary criticism is vladimir putin

<MageKing17> "There's probably a reason the code is the way it is" is a very dangerous line of thought. :P
<MageKing17> Because the "reason" often turns out to be "nobody noticed it was wrong".
(the very next day)
<MageKing17> this ****ing code did it to me again
<MageKing17> "That doesn't really make sense to me, but I'll assume it was being done for a reason."
<MageKing17> **** ME
<MageKing17> THE REASON IS PEOPLE ARE STUPID
<MageKing17> ESPECIALLY ME

<MageKing17> God damn, I do not understand how this is breaking.
<MageKing17> Everything points to "this should work fine", and yet it's clearly not working.
<MjnMixael> 2 hours later... "God damn, how did this ever work at all?!"
(...)
<MageKing17> so
<MageKing17> more than two hours
<MageKing17> but once again we have reached the inevitable conclusion
<MageKing17> How did this code ever work in the first place!?

<@The_E> Welcome to OpenGL, where standards compliance is optional, and error reporting inconsistent

<MageKing17> It was all working perfectly until I actually tried it on an actual mission.

<IronWorks> I am useful for FSO stuff again. This is a red-letter day!
* z64555 erases "Thursday" and rewrites it in red ink

<MageKing17> TIL the entire homing code is held up by shoestrings and duct tape, basically.

 

Offline HLD_Prophecy

  • PVD_Hope in a former life
  • 29
Re: Is the GTF Angel a player-capable fighter?
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

 

Offline AdmiralRalwood

  • 211
  • The Cthulhu programmer himself!
    • Skype
    • Steam
    • Twitter
Re: Is the GTF Angel a player-capable fighter?
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?
Ph'nglui mglw'nafh Codethulhu GitHub wgah'nagl fhtagn.

schrödinbug (noun) - a bug that manifests itself in running software after a programmer notices that the code should never have worked in the first place.

When you gaze long into BMPMAN, BMPMAN also gazes into you.

"I am one of the best FREDders on Earth" -General Battuta

<Aesaar> literary criticism is vladimir putin

<MageKing17> "There's probably a reason the code is the way it is" is a very dangerous line of thought. :P
<MageKing17> Because the "reason" often turns out to be "nobody noticed it was wrong".
(the very next day)
<MageKing17> this ****ing code did it to me again
<MageKing17> "That doesn't really make sense to me, but I'll assume it was being done for a reason."
<MageKing17> **** ME
<MageKing17> THE REASON IS PEOPLE ARE STUPID
<MageKing17> ESPECIALLY ME

<MageKing17> God damn, I do not understand how this is breaking.
<MageKing17> Everything points to "this should work fine", and yet it's clearly not working.
<MjnMixael> 2 hours later... "God damn, how did this ever work at all?!"
(...)
<MageKing17> so
<MageKing17> more than two hours
<MageKing17> but once again we have reached the inevitable conclusion
<MageKing17> How did this code ever work in the first place!?

<@The_E> Welcome to OpenGL, where standards compliance is optional, and error reporting inconsistent

<MageKing17> It was all working perfectly until I actually tried it on an actual mission.

<IronWorks> I am useful for FSO stuff again. This is a red-letter day!
* z64555 erases "Thursday" and rewrites it in red ink

<MageKing17> TIL the entire homing code is held up by shoestrings and duct tape, basically.

 

Offline HLD_Prophecy

  • PVD_Hope in a former life
  • 29
Re: Is the GTF Angel a player-capable fighter?
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.

 

Offline AdmiralRalwood

  • 211
  • The Cthulhu programmer himself!
    • Skype
    • Steam
    • Twitter
Re: Is the GTF Angel a player-capable fighter?
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.
Ph'nglui mglw'nafh Codethulhu GitHub wgah'nagl fhtagn.

schrödinbug (noun) - a bug that manifests itself in running software after a programmer notices that the code should never have worked in the first place.

When you gaze long into BMPMAN, BMPMAN also gazes into you.

"I am one of the best FREDders on Earth" -General Battuta

<Aesaar> literary criticism is vladimir putin

<MageKing17> "There's probably a reason the code is the way it is" is a very dangerous line of thought. :P
<MageKing17> Because the "reason" often turns out to be "nobody noticed it was wrong".
(the very next day)
<MageKing17> this ****ing code did it to me again
<MageKing17> "That doesn't really make sense to me, but I'll assume it was being done for a reason."
<MageKing17> **** ME
<MageKing17> THE REASON IS PEOPLE ARE STUPID
<MageKing17> ESPECIALLY ME

<MageKing17> God damn, I do not understand how this is breaking.
<MageKing17> Everything points to "this should work fine", and yet it's clearly not working.
<MjnMixael> 2 hours later... "God damn, how did this ever work at all?!"
(...)
<MageKing17> so
<MageKing17> more than two hours
<MageKing17> but once again we have reached the inevitable conclusion
<MageKing17> How did this code ever work in the first place!?

<@The_E> Welcome to OpenGL, where standards compliance is optional, and error reporting inconsistent

<MageKing17> It was all working perfectly until I actually tried it on an actual mission.

<IronWorks> I am useful for FSO stuff again. This is a red-letter day!
* z64555 erases "Thursday" and rewrites it in red ink

<MageKing17> TIL the entire homing code is held up by shoestrings and duct tape, basically.

  

Offline HLD_Prophecy

  • PVD_Hope in a former life
  • 29
Re: Is the GTF Angel a player-capable fighter?
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.

 

Offline AdmiralRalwood

  • 211
  • The Cthulhu programmer himself!
    • Skype
    • Steam
    • Twitter
Re: Is the GTF Angel a player-capable fighter?
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.
Ph'nglui mglw'nafh Codethulhu GitHub wgah'nagl fhtagn.

schrödinbug (noun) - a bug that manifests itself in running software after a programmer notices that the code should never have worked in the first place.

When you gaze long into BMPMAN, BMPMAN also gazes into you.

"I am one of the best FREDders on Earth" -General Battuta

<Aesaar> literary criticism is vladimir putin

<MageKing17> "There's probably a reason the code is the way it is" is a very dangerous line of thought. :P
<MageKing17> Because the "reason" often turns out to be "nobody noticed it was wrong".
(the very next day)
<MageKing17> this ****ing code did it to me again
<MageKing17> "That doesn't really make sense to me, but I'll assume it was being done for a reason."
<MageKing17> **** ME
<MageKing17> THE REASON IS PEOPLE ARE STUPID
<MageKing17> ESPECIALLY ME

<MageKing17> God damn, I do not understand how this is breaking.
<MageKing17> Everything points to "this should work fine", and yet it's clearly not working.
<MjnMixael> 2 hours later... "God damn, how did this ever work at all?!"
(...)
<MageKing17> so
<MageKing17> more than two hours
<MageKing17> but once again we have reached the inevitable conclusion
<MageKing17> How did this code ever work in the first place!?

<@The_E> Welcome to OpenGL, where standards compliance is optional, and error reporting inconsistent

<MageKing17> It was all working perfectly until I actually tried it on an actual mission.

<IronWorks> I am useful for FSO stuff again. This is a red-letter day!
* z64555 erases "Thursday" and rewrites it in red ink

<MageKing17> TIL the entire homing code is held up by shoestrings and duct tape, basically.

 

Offline HLD_Prophecy

  • PVD_Hope in a former life
  • 29
Re: Is the GTF Angel a player-capable fighter?
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. :)

 

Offline Goober5000

  • HLP Loremaster
  • 214
    • Goober5000 Productions
Re: Is the GTF Angel a player-capable fighter?
Are you still having trouble with this, PVD_Hope?

 

Offline herkie423

  • 29
  • Plunge into the chaos!
Re: Is the GTF Angel a player-capable fighter?
You can make a "*-shp.tbm" file with a duplicate entry of the GTF Angel and rename it to "GTF Angel#player"
« Last Edit: May 11, 2017, 01:55:17 am by herkie423 »

 
Re: Is the GTF Angel a player-capable fighter?
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" )?
« Last Edit: June 12, 2017, 12:47:57 am by LaineyBugsDaddy »
There are only 10 kinds of people in the world;
those who understand binary and those who don't.

 
Re: Is the GTF Angel a player-capable fighter?
No.

 
Re: Is the GTF Angel a player-capable fighter?
Ok. Asked and answered. I guess since the line looked vaguely like SQL syntax, I thought maybe a misplaced comma could be a problem.
There are only 10 kinds of people in the world;
those who understand binary and those who don't.