Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: xenocartographer on February 27, 2018, 09:59:54 am

Title: Why is my ship the Boadicea?
Post by: xenocartographer on February 27, 2018, 09:59:54 am
So, I've got a ships.tbl entry:

Code: [Select]
$Name: GTI Eddystone
$Short name: gefbase
$Species: Terran
+Tech Description:
XSTR("[REDACTED]", -1)
$POF file: GEF_Habitat.pof
$Detail distance: (0)
$Density: 2
$Damp: 0.2
$Rotdamp: 0.2
$Max Velocity: 0.0, 0.0, 0.0
$Rotation time: 100.0, 100.0, 100.0
$Rear Velocity: 0.0
$Forward accel: 0.0
$Forward decel: 0.0
$Slide accel: 0.0
$Slide decel: 0.0
$Expl inner rad: 50.0
$Expl outer rad: 400.0
$Expl damage: 50.0
$Expl blast: 1000.0
$Expl Propagates: YES
$Shockwave Speed: 250.0
$Default PBanks: ()
$Default SBanks: ()
$SBank Capacity: ()
$Shields: 0
$Power Output: 0.0
$Max Oclk Speed: 0.0
$Max Weapon Eng: 0.0
$Hitpoints: 20000
$Flags: ( "capital" "big damage" "in tech database" "in tech database multi" )
$AI Class: None
$Afterburner: NO
$Countermeasures: 0
$Scan time: 2000
$EngineSnd: -1
$Closeup_pos: 0.0, 1.0, -800
$Closeup_zoom: 0.5
$Score: 50
$Subsystem: sensors, 7.5, 0
$Subsystem: communication, 5, 0

So, y'know, it's the GEF habitat from BP, reflavored as a GTA installation. Nothing weird there, right?

Well...


Why is my ship the Boadicea?! (https://i.imgur.com/vOwRh94.png)

I've checked GEF_Habitat.pof in PCS2, and it looks right there. FRED shows me the systems for the Boadicea (probably reading them from the POF), but the TBL info is correct. Nothing else references either ship or model.

I really don't know what to make of this.





EDIT: I don't know if this was related or not, but I also had several copies of FRED hanging out in my process list after they should have been closed.
Title: Re: Why is my ship the Boadicea?
Post by: JSRNerdo on February 27, 2018, 10:20:30 am
You forgot $End Multi Text, so the tech description is your table entry while the actual ship is the Boadecia which is the ship next down the line
Title: Re: Why is my ship the Boadicea?
Post by: xenocartographer on February 27, 2018, 10:50:41 am
Well shove all the planets in the universe up my ass, that fixed it.
Title: Re: Why is my ship the Boadicea?
Post by: redsniper on February 27, 2018, 01:01:03 pm
:wakka::wakka::wakka:
Title: Re: Why is my ship the Boadicea?
Post by: Nightmare on February 27, 2018, 02:22:23 pm
BTW there's a button called TBL Info in the window you get when you double click on the ship in Fred.
Title: Re: Why is my ship the Boadicea?
Post by: Novachen on February 27, 2018, 02:44:11 pm
Quote
Why is my ship the Boadicea?!

Because Aken Bosch's secret projects are cool  :cool:
Title: Re: Why is my ship the Boadicea?
Post by: xenocartographer on February 27, 2018, 03:23:46 pm
BTW there's a button called TBL Info in the window you get when you double click on the ship.

Yeah. I checked that, but for whatever reason, it showed the "correct" values - just the cometary habitat stuff, I mean, and not the Boadicea stuff.
Title: Re: Why is my ship the Boadicea?
Post by: Nightmare on February 27, 2018, 03:29:08 pm
Didn't such things resulted in debug warnings on earlier builts?
Title: Re: Why is my ship the Boadicea?
Post by: JSRNerdo on February 27, 2018, 05:13:26 pm
Didn't such things resulted in debug warnings on earlier builts?

Don't recall it. It just parses the entire ship table as just part of the tech description, and since the tech description is just another string it just skips a ship entirely which has some really odd effects but doesn't throw a formal error.
Title: Re: Why is my ship the Boadicea?
Post by: AdmiralRalwood on February 28, 2018, 02:24:32 pm
A missing "$End Multi Text" will cause an error, but one wasn't missing; it just didn't find the one the modder was expecting.
Title: Re: Why is my ship the Boadicea?
Post by: xenocartographer on February 28, 2018, 03:48:55 pm
Yeah, I'm not really sure how you would even detect that programmatically.