Author Topic: ssm.tbl  (Read 3982 times)

0 Members and 1 Guest are viewing this topic.

Offline Wanderer

  • Wiki Warrior
  • 211
  • Mostly harmless
I decided to try this table out but since instructions on how to use have been lost in time i have made relatively little success.

So here are the tables i use. Nothing fancy, just trying to get those to work.

ssm.tbl
Code: [Select]
$SSM:
   +Weapon:       Cyclops
   +Count:        1
   +WarpRadius:   100
   +WarpTime:     10
   +Radius:       500
   +Offset:       500

#End

ssm-wep.tbm
Code: [Select]
#Secondary Weapons

$Name:         @TAG-C
   +nocreate
$Flags:                                ( "player allowed")
$SSM:          0

#End

ssm-shp.tbm
Code: [Select]
#Ship Classes

$Name:         GTF Ulysses
   +nocreate
$Allowed SBanks: ( "TAG-C")

#End


Now with that setup when i fire a TAG-C missile on a hostile ship i get the artillery fire noticifation on screen indicating that ssm.tbl is working. However just when the warp effect(s) caused by the ssm appears (when the warp effects has already existed for a short amount of time)i get hit by and assert.

Code: [Select]
Assert: team != -1
File: d:\steven\projects\fsscp\unstable\fs2_open\code\object\object.cpp
Line: 2407
That is it seems to happen in int obj_team(object *objp)



All using the WMC's fs2_open_C05202007_d.exe build. http://www.hard-light.net/forums/index.php/topic,47201.0.html
Any help, ideas, should this be posted to Mantis, is my setup flawed?


I already tried 'PM Bobboau' option so any other advices?
Do not meddle in the affairs of coders for they are soggy and hard to light

 

Offline phreak

  • Gun Phreak
  • 211
  • -1
have you tried using the targeting laser instead?
Offically approved by Ebola Virus Man :wtf:
phreakscp - gtalk
phreak317#7583 - discord

 

Offline akenbosch

  • Pretentious Noob
  • 29
  • doesent care about canon
the equivelant would be allowing the $Tag: field on primary weapons.

Burn the sucker out of the sky!
EAT PHOTONS INFIDEL! MAY THE HEAT OF A THOUSAND SUNS CONSUME YOU! :mad2:


snail gives a debriefing: http://www.hard-light.net/forums/index.php/topic,48825.msg991954.html#msg991954

 

Offline Wanderer

  • Wiki Warrior
  • 211
  • Mostly harmless
Made these changes...

Code: [Select]
#Primary Weapons

$Name:               Targeting Laser
   +nocreate
$Damage:             10
$Flags:              (  "player allowed")
$Impact Explosion:                  ExpMissileHit1
$Impact Explosion Radius:           1.0
$BeamInfo:           
   +Type:               2
   +Life:               0.1
$SSM:                0

#End

And when i hit the target with that targeting laser (ie. see the impact explosions)... nothing happens



And some more SSM related issues...
Local SSMs have issues too (i had enabled these too for comparisons)

I get warnings when maneuvering and firing multiple local SSMs. Local SSMs can be fired without lock, ie. weapon fired when target in sight, and aspect lock is not gained. Then missile jumps somewhere. Sometimes missiles miss their subspace windows... That is probably enough for starters

Warning
Code: [Select]
Warning: Null vec3d in vec3d normalize.
Trace out of vecmat.cpp and find offending code.

File:d:\steven\projects\fsscp\unstable\fs2_open\code\math\vecmat.cpp
Line: 809
Sometimes when this error hits the player crafts start spinning wildly.

Table entry
Code: [Select]
#Secondary Weapons

$Name:               Harpoon
   +nocreate
$Flags:              (  "local ssm" )
$Local SSM:
   +Warpout Delay:      500
   +Warpin Delay:       5000
   +Stage 5 Velocity:   350
   +Warpin Radius:      300
   +Lock Range:         10000

#End
Do not meddle in the affairs of coders for they are soggy and hard to light

 

Offline phreak

  • Gun Phreak
  • 211
  • -1
the equivelant would be allowing the $Tag: field on primary weapons.

no, because the targeting laser is actually a beam and you need to keep the beam on target for two seconds before the SSMs actually fire.  Either way it didn't matter since I looked at the code more and Wanderer's error would still happen.
Offically approved by Ebola Virus Man :wtf:
phreakscp - gtalk
phreak317#7583 - discord

 

Offline Wanderer

  • Wiki Warrior
  • 211
  • Mostly harmless
Retried with targeting laser having fire wait of 20 s and lifetime 10 s - No artillery.

And also with fire wait 0.1 and lifetime 0.1 - again no artillery

Both times beams were kept on target for 10 s.
Do not meddle in the affairs of coders for they are soggy and hard to light

 

Offline akenbosch

  • Pretentious Noob
  • 29
  • doesent care about canon
try copying and rewriting the TAG code... im reading it now and it works alot like, well, something that tells capships to beam TAGed ships. all you need to do is make one that makes warheads come out of subpsace, and have the game recognize them as something launched by a friendly capship

(?)

Burn the sucker out of the sky!
EAT PHOTONS INFIDEL! MAY THE HEAT OF A THOUSAND SUNS CONSUME YOU! :mad2:


snail gives a debriefing: http://www.hard-light.net/forums/index.php/topic,48825.msg991954.html#msg991954

 

Offline Snail

  • SC 5
  • 214
  • Posts: ☂
try copying and rewriting the TAG code... im reading it now and it works alot like, well, something that tells capships to beam TAGed ships. all you need to do is make one that makes warheads come out of subpsace, and have the game recognize them as something launched by a friendly capship

No code changes are needed. Bob the Greater has been able to do it in retail. Unless the code was messed up.

 

Offline phreak

  • Gun Phreak
  • 211
  • -1
try copying and rewriting the TAG code... im reading it now and it works alot like, well, something that tells capships to beam TAGed ships. all you need to do is make one that makes warheads come out of subpsace, and have the game recognize them as something launched by a friendly capship

No code changes are needed. Bob the Greater has been able to do it in retail. Unless the code was messed up.

The FS2 code was changed to assume that everything was assigned a team.  SSMs never were assigned a team, and the default interpretation was to use TEAM_FRIENDLY.  in the day and age of species_defs, this won't work.

Wanderer, can you post this on mantis
Offically approved by Ebola Virus Man :wtf:
phreakscp - gtalk
phreak317#7583 - discord

 

Offline Topgun

  • 210
try copying and rewriting the TAG code... im reading it now and it works alot like, well, something that tells capships to beam TAGed ships. all you need to do is make one that makes warheads come out of subpsace, and have the game recognize them as something launched by a friendly capship

No code changes are needed. Bob the Greater has been able to do it in retail. Unless the code was messed up.
I think he means the table code :p.

 

Offline akenbosch

  • Pretentious Noob
  • 29
  • doesent care about canon
actualy, i was going to recomend automaticly asinging the missle to whatever team "called" it, but i thought that was too obvious.

Burn the sucker out of the sky!
EAT PHOTONS INFIDEL! MAY THE HEAT OF A THOUSAND SUNS CONSUME YOU! :mad2:


snail gives a debriefing: http://www.hard-light.net/forums/index.php/topic,48825.msg991954.html#msg991954

 

Offline phreak

  • Gun Phreak
  • 211
  • -1
As stated in the mantis report, I have a fix in for this.  It should be in kara's build in this thread.

http://www.hard-light.net/forums/index.php/topic,53978.0.html
Offically approved by Ebola Virus Man :wtf:
phreakscp - gtalk
phreak317#7583 - discord