Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: LeGuille on March 23, 2005, 01:21:49 am

Title: Ship table entry problems..
Post by: LeGuille on March 23, 2005, 01:21:49 am
I am getting that annoying message
Code: [Select]
Error: Can't open file
File:C:\projects\freespace2\code\Model\ModelRead.cpp
Line: 1198

Call stack:
------------------------------------------------------------------
------------------------------------------------------------------


I have just tried entering a ship based on the serapis design, with a different skin...it's giving me issues and not recognizing it in FRED. BTW, I am using the HOTU version of FS2.

Here is the table entry:

Code: [Select]

$Name: HLF Camros
$Short name:            HLFight1
$Species: None
+Type: XSTR("Advanced Interceptor", -1)
+Maneuverability:       XSTR("Unknown", -1)
+Armor: XSTR("Unknown", -1)
+Manufacturer:          XSTR("Hammer of Light", -1)
+Description: XSTR(" ", -1)
$end_multi_text
+Tech Description:
XSTR(
"The Camros, in simple terms, is a Serapis body, stripped to the basic hull, and refitted with some kind new armor developed by the Hammer of Light. The Camros is faster, stronger, and more manuverable than it's Serapis counterpart. This fighter is to be considered to be dangerous, and eliminated at all costs. It is beleived that there are only a few hundred of these fighters produced.", -1)
$end_multi_text
+Length: 14 Meters
+Gun Mounts: 2
+Missile Banks: 2

$POF file: camros.pof
$Detail distance:       (0, 70, 200, 700)
$Show damage:           YES
$Density: 1
$Damp: 0.2
$Rotdamp: 0.3
$Max Velocity:          0.0, 0.0, 90.0
$Rotation time:         2.0, 2.1, 2.1
$Rear Velocity:         0.0
$Forward accel:         3.0
$Forward decel:         1.5
$Slide accel:           0.0
$Slide decel:           0.0
$Expl inner rad:        65.0
$Expl outer rad:        85.0
$Expl damage:           45.0
$Expl blast:            1110.0
$Expl Propagates:       NO                                                      ;; If set to Yes, then when the ship dies, the explosion propagates through it.
$Shockwave Speed:       0.0                                             ;; speed shockwave expands at, 0 means no shockwave
$Allowed PBanks:        ( "Mekhu HL-7" "Akheton SDG" "Morning Star" "Prometheus S" "Prometheus R" "Circe" "Lamprey" "Maxim")
$Allowed Dogfight PBanks:        ( "MorningStar D" "Prometheus D" "Maxim D" "Circe" )
$Default PBanks:        ( "Prometheus R" "Akheton SDG" )
$Allowed SBanks:        ( "Rockeye"  "Tempest" "Harpoon" "Hornet" "TAG-B" "Tornado" "Hornet#Weak" "EMP Adv." )
$Allowed Dogfight SBanks:        ( "Tempest D" "Harpoon D"  "Tornado D" )
$Default SBanks:        ( "Harpoon" "Harpoon")
$SBank Capacity:        ( 60, 30 )
$Shields:               450
$Shield Color: 255 100 100
$Power Output:          3.4
$Max Oclk Speed:        78.0
$Max Weapon Eng:        170.0
$Hitpoints:             330
$Flags: ( "fighter" )
$AI Class: General
$Afterburner:           YES
+Aburn Max Vel: 0.0, 0.0, 205.0
+Aburn For accel: 0.75
+Aburn Fuel: 550.0
+Aburn Burn Rate: 55.0
+Aburn Rec Rate: 35.0
$Countermeasures:       40
$Scan time: 3550
$EngineSnd: 129                   ;; Engine sound of ship
$Closeup_pos:           0.0, 0.0, -27
$Closeup_zoom:          0.5
$Shield_icon:           shieldfv-01
$Ship_icon: iconfighter2v-01
$Ship_anim: ssfighter2v-01
$Ship_overhead: loadfighter2v-01
$Score: 110
$Trail:
+Offset: 9.9 -0.2 2
+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: -9.9 -0.2 2
+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: weapons,        15,0.0
$Subsystem: sensors,        5,0.0
$Subsystem: communications, 5,0.0
$Subsystem: navigation,     5,0.0
$Subsystem: engine, 35,0.0

Title: Ship table entry problems..
Post by: StratComm on March 23, 2005, 01:26:07 am
It looks like something wrong with the model.  If it was just the table then you'd get a parser error rather than a modelread error.  Try replacing the model reference in your tables with the original Serapis model and see if Fred loads it.  If it does, then it's the model.  If it still fails, then it's the tables.
Title: Ship table entry problems..
Post by: LeGuille on March 23, 2005, 01:28:34 am
I tested it, and found it must be my model. Any suggestions?
Title: Ship table entry problems..
Post by: LeGuille on March 23, 2005, 01:32:24 am
AGH!! Nevermind... :hopping:
I fixed it... *slaps hismelf* Thanks for the reply.
Title: Ship table entry problems..
Post by: StratComm on March 23, 2005, 01:46:37 am
No problem, glad you got it sorted :)