Author Topic: Larger Tables  (Read 9381 times)

0 Members and 1 Guest are viewing this topic.

Offline jr2

  • The Mail Man
  • 212
  • It's prounounced jayartoo 0x6A7232
    • Steam
OK, I followed my own instructions on takashi's last post, this is what I got, does this fix any problems? :
Code: [Select]
#Ship Classes


;------------------------------------------------------------
;

$Name:                          AF Kato

$Short name:            AFight

$Species:                       Terran

+Type:                          XSTR("Space Superiority", 2939)

+Maneuverability:       XSTR("Excellent", 2940)

+Armor:                         XSTR("Light", 2941)

+Manufacturer:          XSTR("MA Technologies", 2942)

+Description:         XSTR( " ", 2943)

$end_multi_text

+Tech Description:

XSTR("This is the main fighter of the Ancient fleet comprising nearly one third of all Ancient fighter groups. It has a mediocre hull and a fair shield, making a few direct hits enough to destroy it. However the Kato's maneuverability and speed are superb, this coupled with two banks of three primaries, and two secondary banks, makes the Kato one of the most dangerous fighters that have ever been encountered. ", 2944)

$end_multi_text

+Length:          10 m

+Gun Mounts:      6

+Missile Banks:   2

$POF file:                      Kato.pof

$Detail distance:       (0, 100, 900, 2000)

$ND:                154 172 184

$ND:                103 159 158

$ND:                52 101 210

$ND:                172 113 220

$ND:                67 117 108

$ND:                88 122 211

$ND:                153 143 171

$ND:                118 127 156

$ND:                156 140 160

$ND:                145 126 145

$ND:                123 99 32

$Show damage:           YES

$Density:                       2

$Damp:                          0.10

$Rotdamp:                       0.30

$Max Velocity:          0.0, 0.0, 90.0                  ;; in x/y/z -- z only specified forward.  use special tokens for backward movement

$Rotation time:         2.4, 1.9, 4.0

$Rear Velocity:         60.0

$Forward accel:         2.7

$Forward decel:         1.5

$Slide accel:           0.0

$Slide decel:           0.0

$Expl inner rad:        25.0

$Expl outer rad:        55.0

$Expl damage:           15.0

$Expl blast:            1000.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:        ( "Pharnec" "Subach HL-7" "Akheton SDG" "Morning Star" "Prometheus S" "Prometheus R" "Lamprey" "Circe" "Maxim" "Targeting Laser")

$Allowed Dogfight PBanks:        ( "Subach HL-D" "Prometheus D" )

$Default PBanks:        ( "Pharnec" "Pharnec" )

$Allowed SBanks:        ( "Rockeye" "Tempest"  "Hornet" "Tornado" "Hornet#Weak" "Harpoon" "Harpoon#Weak" "EMP Adv." "TAG-A" )

$Allowed Dogfight SBanks:    ( "Tempest D"  "Hornet D" "Harpoon D" )

$Default SBanks:        ( "Harpoon" "Harpoon" )

$SBank Capacity:        ( 20, 20 )

$Shields:                       380

$Shield Color:      255 255 75

$Power Output:          2.0

$Max Oclk Speed:        100.0

$Max Weapon Eng:        60.0

$Hitpoints:                     175

$Flags:                         ( "player_ship" "default_player_ship" "fighter" "in tech database")

$AI Class:                      Captain

$Afterburner:           YES

   +Aburn Max Vel: 0.0, 0.0, 140.0

   +Aburn For accel:       0.7

   +Aburn Fuel:            300.0

   +Aburn Burn Rate:       50.0

   +Aburn Rec Rate:        25.0

$Countermeasures:       25

$Scan time:                     2000

$EngineSnd:       128                   ;; Engine sound of ship

$Closeup_pos:           0.0, 0.0, -22

$Closeup_zoom:          0.5

$Shield_icon:           Katoshell

$Ship_icon:                     katoicon

$Ship_anim:                     Kato

$Ship_overhead: loadKato

$Score:             8

$Trail:

   +Offset:      -5.8 -6.6 1.6

   +Start Width:   0.1

   +End Width:   0.05

   +Start Alpha:   1.0

   +End Alpha:   0.0

   +Max Life:   1.0

   +Spew Time:   60

   +Bitmap:   Contrail01

$Trail:

   +Offset:      5.8 -6.6 1.6

   +Start Width:   0.1

   +End Width:   0.05

   +Start Alpha:   1.0

   +End Alpha:   0.0

   +Max Life:   1.0

   +Spew Time:   60

   +Bitmap:   Contrail01

$Trail:

   +Offset:      -7.5 -7.1 -1.3

   +Start Width:   0.1

   +End Width:   0.05

   +Start Alpha:   1.0

   +End Alpha:   0.0

   +Max Life:   1.0

   +Spew Time:   60

   +Bitmap:   Contrail01

$Trail:

   +Offset:      7.5 -7.1 -1.3

   +Start Width:   0.1

   +End Width:   0.05

   +Start Alpha:   1.0

   +End Alpha:   0.0

   +Max Life:   1.0

   +Spew Time:   60

   +Bitmap:   Contrail01

$Trail:

   +Offset:      0 -11.5 0

   +Start Width:   0.5

   +End Width:   0.3

   +Start Alpha:   1.0

   +End Alpha:   0.3

   +Max Life:   1.0

   +Spew Time:   70

   +Bitmap:   Contrail01

$Subsystem:                     communication,  10, 0

$Subsystem:                     navigation,             10, 0

$Subsystem:                     weapons,                        20, 0

$Subsystem:                     sensors,                        10, 0

$Subsystem:                     engine01,                        15, 0

$Subsystem:                     engine01,                        15, 0



#End

 
The parser interprets spaces and tabs the same way, so there should be absolutely zero difference with how the game handles those.


Personally I'd like to see tables in XML.  We could use xml verifiers to validate the tables.
It's been suggested before, but not even a single tangible benefit was given for doing that.  A bunch of negatives, but no real positives over the current way parsing is handled.

I can see a table editor being possible, and a heck of alot easier to make than with tbm format.
Less chances of this type of problem:  $Subsystem:   weapons, 20 ,0
I would imagine a stronger validation process.

but anyhow....
That's cool and ....disturbing at the same time o_o  - Vasudan Admiral

"Don't play games with me. You just killed someone I like, that is not a safe place to stand. I'm the Doctor. And you're in the biggest library in the universe. Look me up."

"Quick everyone out of the universe now!"

 

Offline takashi

  • Better than TrashMan
  • 29
forgot to mention, the .tbm file scruched up only AFTER i used the ship ingame. and it showed up invisible to...in both d3d and ogl mode.

 

Offline jr2

  • The Mail Man
  • 212
  • It's prounounced jayartoo 0x6A7232
    • Steam
What?!?

  

Offline jr2

  • The Mail Man
  • 212
  • It's prounounced jayartoo 0x6A7232
    • Steam
You use the one I posted?

 

Offline Turey

  • Installer dude
  • 211
  • The diminutive form of Turambar.
    • FreeSpace Open Installer Homepage
forgot to mention, the .tbm file scruched up only AFTER i used the ship ingame. and it showed up invisible to...in both d3d and ogl mode.

Did you put a texture on it?
Creator of the FreeSpace Open Installer.
"Calm. The ****. Down." -Taristin
why would an SCP error be considered as news? :wtf: *smacks Cobra*It's a feature.

 

Offline takashi

  • Better than TrashMan
  • 29
bob made the model. bob made the texture. everything was in the right folders, textures in maps, .pof in models.

 

Offline Turey

  • Installer dude
  • 211
  • The diminutive form of Turambar.
    • FreeSpace Open Installer Homepage
bob made the model. bob made the texture. everything was in the right folders, textures in maps, .pof in models.

Is the texture a JPG or TGA and you have -jpgtga turned off?

Perhaps to fix the cockpit problem?
Creator of the FreeSpace Open Installer.
"Calm. The ****. Down." -Taristin
why would an SCP error be considered as news? :wtf: *smacks Cobra*It's a feature.

 

Offline takashi

  • Better than TrashMan
  • 29
they're .pcx's. from the .vp off of hades-combine. the vp on its own has the same crashes/failings.

 

Offline Turey

  • Installer dude
  • 211
  • The diminutive form of Turambar.
    • FreeSpace Open Installer Homepage
they're .pcx's. from the .vp off of hades-combine. the vp on its own has the same crashes/failings.

Link me to the VP and I'll see what I can figure out.
Creator of the FreeSpace Open Installer.
"Calm. The ****. Down." -Taristin
why would an SCP error be considered as news? :wtf: *smacks Cobra*It's a feature.