Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: diamondgeezer on March 04, 2003, 07:36:17 pm

Title: Ballistic Primaries
Post by: diamondgeezer on March 04, 2003, 07:36:17 pm
Forgiveness, please, but I cannae seem to get my ballistic primaries working. I checked in the stuff from the 3.5 readme, just like it said, but the weapon tbl refused to parse properly.

Since the previous threads have slid off the board in to forum limbo, could somebody please post or link to a working entry for a ship and a primary weapon with the whole ballistic thing wired in properly?
Title: Ballistic Primaries
Post by: ZylonBane on March 04, 2003, 08:26:37 pm
[insert usual rant against illiteracy here]
Title: Ballistic Primaries
Post by: diamondgeezer on March 04, 2003, 09:01:18 pm
[Insert usual "Zylon is a wanker" rant here]


Has this been an unreasonable request? Or is the above post merely Zylon being Zylon?
Title: Ballistic Primaries
Post by: Goober5000 on March 04, 2003, 09:48:11 pm
I'd post a link, but what I had up here earlier may have been a previous (unofficial) version that wouldn't be compatible.  What exactly isn't working?  Can you post an error message?

On the other hand, we're still squashing bugs in the weapons management routines, so it might be due to this instead...
Title: Ballistic Primaries
Post by: Sesquipedalian on March 05, 2003, 01:58:35 am
Quote
Originally posted by diamondgeezer
[Insert usual "Zylon is a wanker" rant here]


Has this been an unreasonable request? Or is the above post merely Zylon being Zylon?

ZB is referring to his longstanding contention that the term ballistic has been misapplied in this case, rather than to anything to do with you, DG.
Title: Ballistic Primaries
Post by: ZylonBane on March 05, 2003, 09:02:32 am
Right. :yes:
Title: Ballistic Primaries
Post by: Nico on March 05, 2003, 10:07:16 am
Quote
Originally posted by ZylonBane
[insert usual rant against illiteracy here]


well, you're one to talk :rolleyes:
check what illiteracy means :doubt:
Title: Ballistic Primaries
Post by: diamondgeezer on March 05, 2003, 11:18:53 am
Quote
Originally posted by Sesquipedalian
ZB is referring to his longstanding contention that the term ballistic has been misapplied in this case, rather than to anything to do with you, DG.



:wtf: I fail to see why this negates the validity of my earlier post


So - can anyone actually lend a hand here, or not?


------------------------

DG's opinions concerning ZylonBane do not represent those of the management
Title: Ballistic Primaries
Post by: Sesquipedalian on March 05, 2003, 11:40:37 am
It doesn't, and no one ever meant to say that it did.  I'd post something to help you with your problem if I had anything, but I don't.
Title: Ballistic Primaries
Post by: Goober5000 on March 05, 2003, 02:35:35 pm
Quote
Originally posted by Goober5000
I'd post a link, but what I had up here earlier may have been a previous (unofficial) version that wouldn't be compatible.  What exactly isn't working?  Can you post an error message?

On the other hand, we're still squashing bugs in the weapons management routines, so it might be due to this instead...


Update: The bugs should be squashed.  Use the latest build in the "weapons fixed" thread and see if it works.  If not, post the error message.
Title: Ballistic Primaries
Post by: diamondgeezer on March 05, 2003, 06:40:59 pm
OK, I'll try it again tomorrow - but like I said, the error was apparently in parsing the weapons table rather than a ship problem. And I'd stil like a verified working copy of a B.P enabled ship and weapon, so I can be certain I'm doing it right :nod:
Title: Ballistic Primaries
Post by: Goober5000 on March 06, 2003, 02:11:26 am
This works for me.

Modified Ulysses ship entry...
Code: [Select]
$Name:                          GTF Ulysses
$Short name:            TFight
$Species:                       Terran
+Type:                          XSTR("Space Superiority", 2939)
+Maneuverability:       XSTR("Excellent", 2940)
+Armor:                         XSTR("Light", 2941)
+Manufacturer:          XSTR("Triton / Mekhu", 2942)
+Description: XSTR( " ", 2943)
$end_multi_text
+Tech Description:
XSTR("Affectionately nicknamed 'The Bat' by its pilots, the GTF Ulysses is a well-designed craft that has had a far longer useful life than its engineers ever imagined. Developed jointly by Terran and Vasudan contractors, the Ulysses was first deployed near the end of the Great War. Its excellent maneuverability and high top speed give it an agility that pilots love, but at a cost of thin armor and a small secondary weapon loadout. The Ulysses is a better choice for offensive missions than defensive ones.", 2944)
$end_multi_text
+Length:          16 m
+Gun Mounts:      4
+Missile Banks:   1
$POF file:                      fighter01.pof
$Detail distance:       (0, 80, 300, 900)
; $ND: 42 42 244
$Show damage:           YES
$Density:                       1
$Damp:                          0.1
$Rotdamp:                       0.35
$Max Velocity:          0.0, 0.0, 70.0                  ;; in x/y/z -- z only specified forward.  use special tokens for backward movement
$Rotation time:         3.0, 2.6, 5.0
$Rear Velocity:         0.0
$Forward accel:         2.0
$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:        ( "M-72" "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:        ( "Subach HL-7" "Prometheus R" )
$PBank Capacity:        ( 1 )
$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" )
$SBank Capacity:        ( 40 )
$Shields:                       380
$Shield Color: 100 100 255
$Power Output:          2.0
$Max Oclk Speed:        94.0
$Max Weapon Eng:        80.0
$Hitpoints:                     180
$Flags:                         ( "player_ship" "default_player_ship" "fighter" "in tech database" "ballistic primaries" )
$AI Class:                      Captain
$Afterburner:           YES
+Aburn Max Vel: 0.0, 0.0, 150.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:           shield-f01
$Ship_icon:                     iconfighter01
$Ship_anim:                     ssfighter01
$Ship_overhead: loadfighter01
$Score:             8
$Trail:
+Offset: -7.75 -2.8 0.75
+Start Width: 0.25
+End Width: 0.05
+Start Alpha: 1.0
+End Alpha: 0.0
+Max Life: 1.0
+Spew Time: 60
+Bitmap: Contrail01
$Trail:
+Offset: 7.75 -2.8 0.75
+Start Width: 0.25
+End Width: 0.05
+Start Alpha: 1.0
+End Alpha: 0.0
+Max Life: 1.0
+Spew Time: 60
+Bitmap: Contrail01
$Subsystem:                     communication,  10, 0
$Subsystem:                     navigation,             10, 0
$Subsystem:                     weapons,                        20, 0
$Subsystem:                     sensors,                        10, 0
$Subsystem:                     engines,                        35, 0


Here, I basically took a Tempest and made it a ballistic primary weapon.  Make sure you put it in the Primary section - that may be the problem. :)

Code: [Select]
; ----------------------------------------------------------------------------------
; M-72
;
$Name:                                  @M-72
+Title:                                 XSTR("M-72 Ballistic Primary", 3317)
+Description:
XSTR(
"Standard Issue
High-Payload Dumbfire", 3318)
$end_multi_text
+Tech Title:   XSTR("GTM MX-6 Tempest", 3319)
+Tech Anim:   Tech_GTM_MX-6_Tempest
+Tech Description:
XSTR(
"The GTM MX-6 Tempest improves upon its predecessor, the Fury missile. Faster and more deadly than the Fury, the Tempest is also smaller, enabling flight crews to load more into each Secondary weapon bay. The Tempest is a dumbfire missile, moving in a straight line from its point of release. The missile detonates when it strikes a solid object or when it reaches its effective range of approximately 600 meters. Tempests are best used at close range. With a velocity of 360 m/s, nothing outruns a Tempest.", 3320)
$end_multi_text
$Model File: Tempest.pof
$Mass: 0.1
$Velocity: 360.0
$Fire Wait: 0.30
$Damage: 45                                        ;; damage applied when within inner radius
$Blast Force: 0.2
$Inner Radius: 10.0 ;; radius at which damage is full (0 for impact only)
$Outer Radius: 20.0 ;; max radius for attenuated damage (0 for impact only)
$Shockwave Speed: 0                                         ;; velocity of shockwave.  0 for none.
$Armor Factor: 0.9
$Shield Factor: 0.5
$Subsystem Factor: 0.6
$Lifetime: 1.8
$Energy Consumed: 0.0 ;; Energy used when fired
$Cargo Size: 0.001 ;; Amount of space taken up in weapon cargo
$Homing: NO
$LaunchSnd: 90                                        ;; The sound it makes when fired
$ImpactSnd: 88                                        ;; The sound it makes when it hits something
$FlyBySnd: -1
$Rearm Rate: 100.0 ;; number of missiles/sec that are rearmed
$Flags: ("in tech database" "player allowed" "ballistic" )
$Trail: ;; Trail cannot be set if Exhaust is set
+Start Width: 0.1                                       ;; Width of trail nearest missile
+End Width: 0.2                                       ;; Width of trail before it "evaporates"
+Start Alpha: 1.0
+End Alpha: 0.0
+Max Life: 0.3                                       ;; how many seconds before trail disappears
+Bitmap: newmiss2 ;; Bitmap used to draw trail
$Icon: iconTempest
$Anim: Tempest
$Impact Explosion: ExpMissileHit1
$Impact Explosion Radius: 3.0


Lastly, remember to copy the sound entries as specified in the readme.

EDIT: Don't forget to allow the new weapon in the mission you're testing it with.  It's a primary, so it comes with a magazine of ammo determined by the cargo size.  With the M-72 here, you drop one weapon on the slot but get a magazine of 1000 bullets.
Title: Ballistic Primaries
Post by: diamondgeezer on March 06, 2003, 11:22:45 am
Thanks. That's all I wanted :)
Title: Ballistic Primaries
Post by: Rampage on April 29, 2003, 04:43:54 pm
Do you think that this might have something to do with FS_OPEN 3.5.3 itself?  FRED2 can't open it, saying that weapons.tbl is invalid.  It didn't say anything about ships.tbl though.
Title: Ballistic Primaries
Post by: Goober5000 on April 29, 2003, 04:57:00 pm
Eh... :wtf: It works fine for me.  Go back and double-check that everything is set up correctly.
Title: Ballistic Primaries
Post by: TrashMan on April 30, 2003, 02:01:02 am
Could anyone actually point me to that readme?:wtf:
Title: Ballistic Primaries
Post by: Charmande on April 30, 2003, 09:14:40 am
ZylonBane has a point though... i mean, why are they called ballistic primaries when they're not even ballistic?  isn't "ballistic" like an artillary shell?  something that flies up, and come sback down?  i never quite understood why they were called "ballistic" primaries...  you could have named them something like.... ummm........ i dunno.  ..... maybe ballistic primaries IS the best name... i mean, i can't think of anything better.
Title: Ballistic Primaries
Post by: Black Wolf on April 30, 2003, 11:15:39 am
Quote
Originally posted by Charmande
ZylonBane has a point though... i mean, why are they called ballistic primaries when they're not even ballistic?  isn't "ballistic" like an artillary shell?  something that flies up, and come sback down?  i never quite understood why they were called "ballistic" primaries...  you could have named them something like.... ummm........ i dunno.  ..... maybe ballistic primaries IS the best name... i mean, i can't think of anything better.


A point - yes. A particularly important one - no. It's a name, something to identify the feature by. Does it matter if it doesn;t describe it precisely accurately? The point is that when you say Ballistic primaries, everyone knows what you're talking about, and that's what really matters.
Title: Ballistic Primaries
Post by: LAW ENFORCER on April 30, 2003, 11:21:19 am
Zylon wouldn't like that! Im pretty sure what he is arguing is that EVERYTHING in FS is ballistic not -nothing- (unless thats what char was saying?)

I belive your talking about balistic missiles that, after being fired and guied for a short time, move under gravitiy to miss their targets significantly....:doubt:
Title: Ballistic Primaries
Post by: Goober5000 on April 30, 2003, 11:22:27 am
At its most basic level, "ballistic" describes anything that moves and obeys the laws of physics.  Therefore, even the normal Freespace energy weapons can be ballistic, according to ZylonBane.  But normally we think of ballistic as having to do with projectiles, and this connotation fits ammo-based primaries quite well.

Quote
Originally posted by TrashMan
Could anyone actually point me to that readme?:wtf:


:wtf: :rolleyes:
http://fs2source.warpcore.org/readme/

[rant]

How many times do I have to provide a link?  It's literally in about five threads on this page - most notably the very first post in this (http://www.hard-light.net/forums/index.php/topic,14400.0.html) stickied thread.  Please, make a little effort and search first. :mad:

[/rant]
Title: Ballistic Primaries
Post by: Terorist on April 30, 2003, 11:24:53 am
Ammo primaries... ( /munition/ammunition, slug thrower primaries, mass driver primaries, anything!) Ballistic just feels totally out of place in this context, and it's annoying to force the brain from misunderstanding it every time.
Title: Ballistic Primaries
Post by: karajorma on April 30, 2003, 01:17:06 pm
Quote
From MW dictionary.

bal·lis·tics
Pronunciation: b&-'lis-tiks
Function: noun plural but singular or plural in construction
Date: circa 1753
1 a : the science of the motion of projectiles in flight b : the flight characteristics of a projectile
2 a : the study of the processes within a firearm as it is fired b : the firing characteristics of a firearm or cartridge

pro·jec·tile  
Pronunciation: pr&-'jek-t&l, -"tIl, chiefly British 'prä-jik-"tIl
Function: noun
Date: 1665
1 : a body projected by external force and continuing in motion by its own inertia; especially : a missile for a weapon (as a firearm)
2 : a self-propelling weapon (as a rocket)


Ballistic sounds fine to me based on that but projectile sounds much better.
Title: Ballistic Primaries
Post by: CP5670 on April 30, 2003, 01:47:19 pm
I always thought ballistic generally meant parabolic or arcing... (as in being acted on by gravity while moving forward)
Title: Ballistic Primaries
Post by: karajorma on April 30, 2003, 04:15:30 pm
Me too. Which is why I looked it up. That and the fact that there was a better word on the tip of my tongue and I was hoping I'd get it when I looked it up.

I think Projectile weapon is both more accurate and better sounding than ballistic. Especially since so many people seem to have the wrong idea about what the word means.