Author Topic: Beam Help  (Read 3309 times)

0 Members and 1 Guest are viewing this topic.

Offline Grey Wolf

I was trying to make a fighter beam weapon (using the targeting laser and AAAs for models), but I got an error when trying to go into FRED2. It also treated the primaries as secondaries. Here's the error msg.:  
Quote
Error: Error parsing 'weapons.tbl'
Error code = 1.

File:C:\projects\freespace2\code\Weapon\Weapons.cpp
Line: 1432

Call stack:
------------------------------------------------------------------
    FRED2.EXE 0064ec0e()
    FRED2.EXE 0064ec88()
    FRED2.EXE 0063a544()
    FRED2.EXE 00639528()
    FRED2.EXE 00639731()
    KERNEL32.DLL bff7363b()
    KERNEL32.DLL bff94407()
------------------------------------------------------------------
And here's the TBL file:  
Quote
; Thor
;
$Name:                                  Thor
+Title:                                 XSTR("GTW-42 Thor")
+Description:
XSTR(
"Beam Weapon
Level 9 Hull Damage")
$end_multi_text
+Tech Title:               XSTR("GTW-42 Thor")
+Tech Anim:                  Thor
+Tech Description:
XSTR(
"After the Second Great War the GTVA started work on technologies")
$end_multi_text
$Model File:               none
; The following fields (preceded by @) are only required for laser
; rendering, which requires that "Model File:" be none.
; These are the same values that used to be hard-coded:
@Laser Bitmap:               laserglow01
@Laser Color:               192, 255, 200
@Laser Length:               0.0
@Laser Head Radius:            0.30
@Laser Tail Radius:            0.30
$Mass:                          0.5
$Velocity:                      1000.0         ;; speed of the weapon (initially) -- may or may not change
$Fire Wait:                     0.5            ;; in seconds
$Damage:                        15
$Armor Factor:               1.0
$Shield Factor:               1.0
$Subsystem Factor:            1.0
$Lifetime:                      0.0            ;; How long this thing lives
$Energy Consumed:            2.0         ;; Energy used when fired
$Cargo Size:               0.0            ;; Amount of space taken up in weapon cargo
$Homing:                        NO
$LaunchSnd:                     181         ;; The sound it makes when fired
$ImpactSnd:                     88            ;; The sound it makes when it hits something
$Flags:                         ( "player allowed" "shudder" "beam" )
$Icon:                                 iconKayser
$Anim:                                 Thor
$Impact Explosion:            ExpMissileHit1
$BeamInfo:                              ;; for beam_lite beams - we don't have any associated warmup or warmdown
   +Type:                  2            ;; 0 - 4 are valid #'s
   +Life:                    2.0            ;; how long it lasts once the beam is actually firing
   +Warmup:                 0            ;; warmup time in ms
   +Warmdown:               0            ;; warmdown time in ms
   +Radius:                 1.0            ;; muzzle glow radius in meters
   +PCount:               15            ;; particles spewed every interval
   +PRadius:               2.0            ;; particle radius
   +PAngle:               45.0            ;; angle of the random "cone" where the particles are generated
   +PAni:                  particleexp01   ;; particle ani
   +Miss Factor:            0.0 0.0 0.0 0.0 0.0         ;; magic # - higher == miss more (1 for each skill level)
   +BeamSound:               115            ;; the looping beam-firing sound
   +WarmupSound:            0            ;; associated warmup sound
   +WarmdownSound:            0            ;; associated warmdown sound
   +Muzzleglow:            thrusterglow01   ;; muzzle glow bitmap   
   +Shots:                  0            ;; only used for TYPE 3 beams
   +ShrinkFactor:            1.5         ;; what percentage of lifetime where beam starts shrinking (0.1 == 10% life left)
   +ShrinkPct:               20.0         ;; what percentage of max width we subtract per second
   $Section:                        ;; one section of the beam (you can have up to 5)
      +Width:               0.5            ;; width of the section
      +Texture:            beam-white      ;; texture for this section
      +RGBA Inner:         255 255 255 255   ;; rgba values (only for non-textured beam compiles)
      +RGBA Outer:         150 150 150 10   ;; rgba values (only for non-textured beam compiles)
      +Flicker:            0.1            ;; how much it flickers (0.0 to 1.0)
      +Zadd:               2.0            ;; hehe
   $Section:                        ;; one section of the beam
      +Width:               0.75         ;; width of the section
      +Texture:            beam-white      ;; texture for this section
      +RGBA Inner:         160 160 0 255   ;; rgba values (only for non-textured beam compiles)
      +RGBA Outer:         60 60 0 10      ;; rgba values (only for non-textured beam compiles)
      +Flicker:            0.1            ;; how much it flickers (0.0 to 1.0)
      +Zadd:               1.0            ;; hehe
   $Section:                        ;; one section of the beam
      +Width:               1.0            ;; width of the section
      +Texture:            none         ;; texture for this section
      +RGBA Inner:         192 255 200   255   ;; rgba values (only for non-textured beam compiles)
      +RGBA Outer:         192 255 200   10   ;; rgba values (only for non-textured beam compiles)
      +Flicker:            0.1            ;; how much it flickers (0.0 to 1.0)
      +Zadd:               0.0            ;; hehe
Please help!

------------------
Webmaster of GTD Wolf

Any and all Bosch Beer is hereby stolen - ahem, confiscated - by the GTVA - No, ensign, don't get out the cups yet - and must be sent to the GTXD Mars Class Destroyer, the GTD Wolf - Corporal, I said we wanted pizza, not hamburgers! - stationed in this system. Any reluctance to comply and we'll make you our pinata - ahem, PoW - until further notice.

[This message has been edited by Grey Wolf 2009 (edited 04-26-2001).]
You see things; and you say "Why?" But I dream things that never were; and I say "Why not?" -George Bernard Shaw

 

Offline Warlock

  • Death Angel
  • 29
    • Holocron Productions
Oh Shrike!!!!


He's the man to ask  

Also try checking :

A: Weapons tbl size...just to be save.

B: Make sure all the model files and pcx files are correct etc etc

just to make 100% sure  

But other than that I'm clueless

------------------
Warlock
 
DeathAngel Squadron
CO

Do or Do Not,..There Is No Spoon
Ghosts of the Past Forum
Ghosts of the Past WebSite
To Fly Exotic Ships, Meet Exotic People, and Kill Them.


We may rise and fall, but in the end
 We meet our fate together
Warlock



DeathAngel Squadron, Forever remembered.


Do or Do Not,..There Is No Spoon

To Fly Exotic Ships, Meet Exotic People, and Kill Them.

We may rise and fall, but in the end
 We meet our fate together

 

Offline The Claw

  • Run! Chickens Incoming!
  • 27
Make sure the gun is entered into the right section, if it isn't move it. And if it's down the bottom of the primaries, move it to the top.

------------------
"Supernova, ya supernova, supernova goes pop
supernova, ya think it's over but the supernova don't stop" PM5K
Death:"Arnold Judas Rimmer... your life is over. You will travel with me to the-"
#knees death in the groin#
Rimmer:"Remember matey, it's only the good that die young"
Kudoth, god of pointless educational programs.
"I love the English for three reasons. One, we always beat you at rugby. Two, your wives are always friendly. Three you fought like devils to save us" Old French bloke at my uncles pub.
"One has plenty of time for contemplation while waiting for the endless waves of bad doggie werewolf monsters that chew your toes while you sleep"-Dradeel, BG2

 

Offline Shrike

  • Postadmin
  • 211
    • http://www.3dap.com/hlp
mmm......I suggest changing the life entry to 0

also, do you know how powerful this weapon is going to be?  A 15 damage beam is very nasty.....trust me.
WE ARE HARD LIGHT PRODUCTIONS. YOU WILL LOWER YOUR FIREWALLS AND SURRENDER YOUR KEYBOARDS. WE WILL ADD YOUR INTELLECTUAL AND VERNACULAR DISTINCTIVENESS TO OUR OWN. YOUR FORUMS WILL ADAPT TO SERVICE US. RESISTANCE IS FUTILE.

 

Offline Woomeister

  • Infyrno Missile
  • 213
    • Inferno SCP
Error parsing 'weapons.tbl'
This usually means either:

1. Something is missing from the table entry
2. The entry is in the wrong part of the Weapons.tbl.

 

Offline The Claw

  • Run! Chickens Incoming!
  • 27
Unfortunatly, as I found out with my expriments, there is no way to limit the amount of time a player beam fires, which is extremely annoying. And also, I don't think u can get it to use energy either...

------------------
"Supernova, ya supernova, supernova goes pop
supernova, ya think it's over but the supernova don't stop" PM5K
Death:"Arnold Judas Rimmer... your life is over. You will travel with me to the-"
#knees death in the groin#
Rimmer:"Remember matey, it's only the good that die young"
Kudoth, god of pointless educational programs.
"I love the English for three reasons. One, we always beat you at rugby. Two, your wives are always friendly. Three you fought like devils to save us" Old French bloke at my uncles pub.
"One has plenty of time for contemplation while waiting for the endless waves of bad doggie werewolf monsters that chew your toes while you sleep"-Dradeel, BG2

 

Offline Grey Wolf

Claw, it's a type-2 beam, which means it's player controlled just like the targeting laser. And Shrike, I've yet to hammer out the details so it may be weaker in the final version.
You see things; and you say "Why?" But I dream things that never were; and I say "Why not?" -George Bernard Shaw

 

Offline Grey Wolf

Oh yeah, I changed the life to 0 and got the same error.
You see things; and you say "Why?" But I dream things that never were; and I say "Why not?" -George Bernard Shaw

 

Offline Warlock

  • Death Angel
  • 29
    • Holocron Productions
Did anyone ever solve the mystery of getting a player beam to fire from mulitple points?

Like the targetting laser no matter what ship and weapons slot only fires from a single point.

Also Grey,..awhile back someone made the targetting laser into the argon lance or something like that,..it was on Vwatch so you might want to check and compare their tbl data with yours  

------------------
Warlock
 
DeathAngel Squadron
CO

Do or Do Not,..There Is No Spoon
Ghosts of the Past Forum
Ghosts of the Past WebSite
To Fly Exotic Ships, Meet Exotic People, and Kill Them.


We may rise and fall, but in the end
 We meet our fate together
Warlock



DeathAngel Squadron, Forever remembered.


Do or Do Not,..There Is No Spoon

To Fly Exotic Ships, Meet Exotic People, and Kill Them.

We may rise and fall, but in the end
 We meet our fate together

 

Offline Grey Wolf

Found it. It was part of HyperMOD 2.
You see things; and you say "Why?" But I dream things that never were; and I say "Why not?" -George Bernard Shaw

 

Offline Shrike

  • Postadmin
  • 211
    • http://www.3dap.com/hlp
I got one to work fine, I just set the damage on the targeting laser to something other than 0.  The whole 'firing from one point' thing annoyed me though, as the general cheesy effectiveness of it.
WE ARE HARD LIGHT PRODUCTIONS. YOU WILL LOWER YOUR FIREWALLS AND SURRENDER YOUR KEYBOARDS. WE WILL ADD YOUR INTELLECTUAL AND VERNACULAR DISTINCTIVENESS TO OUR OWN. YOUR FORUMS WILL ADAPT TO SERVICE US. RESISTANCE IS FUTILE.

 

Offline Warlock

  • Death Angel
  • 29
    • Holocron Productions
Yea that firing from one point thing is driving me nuts  lol

One of GOTP's new fighters is designed around a fighter scale beam weapon (Babylon 5-ish) but unless I can get 4 points to fire for the gun it's prolly gonna be a scrapped idea  

------------------
Warlock
 
DeathAngel Squadron
CO

Do or Do Not,..There Is No Spoon
Ghosts of the Past Forum
Ghosts of the Past WebSite
To Fly Exotic Ships, Meet Exotic People, and Kill Them.


We may rise and fall, but in the end
 We meet our fate together
Warlock



DeathAngel Squadron, Forever remembered.


Do or Do Not,..There Is No Spoon

To Fly Exotic Ships, Meet Exotic People, and Kill Them.

We may rise and fall, but in the end
 We meet our fate together

 

Offline Grey Wolf

Got mine to work. Don't mind the one point firing because I'm probably going to either lock the loadouts or allow only one per mission, not to mention most ships won't be allowed to carry it. I only wish there was a way to make it so the gun will use some of the power output and also to make it so the beam will stop once in a while!
You see things; and you say "Why?" But I dream things that never were; and I say "Why not?" -George Bernard Shaw

 

Offline The Claw

  • Run! Chickens Incoming!
  • 27
 
Quote
I only wish there was a way to make it so the gun will use some of the power output and also to make it so the beam will stop once in a while!
Like I said above, there is no way... which is a shame.

------------------
"Supernova, ya supernova, supernova goes pop
supernova, ya think it's over but the supernova don't stop" PM5K
Death:"Arnold Judas Rimmer... your life is over. You will travel with me to the-"
#knees death in the groin#
Rimmer:"Remember matey, it's only the good that die young"
Kudoth, god of pointless educational programs.
"I love the English for three reasons. One, we always beat you at rugby. Two, your wives are always friendly. Three you fought like devils to save us" Old French bloke at my uncles pub.
"One has plenty of time for contemplation while waiting for the endless waves of bad doggie werewolf monsters that chew your toes while you sleep"-Dradeel, BG2