Author Topic: Game Crashes when a particular explosion-effect SEXP is triggered...  (Read 2263 times)

0 Members and 1 Guest are viewing this topic.

Offline Mobius

  • Back where he started
  • 213
  • Porto l'azzurro Dolce Stil Novo nella fantascienza
    • Skype
    • Twitter
    • The Lightblue Ribbon | Cultural Project
Game Crashes when a particular explosion-effect SEXP is triggered...
I wanted a light  and periodic EMP effect(no nebula or EMP weapons as cause) and realized that explosion-effect should have been a nice way to represent it. I don't know why, but the game crashes when the event becomes true. All info here:


Repeat Count: 9999

Interval Time: 8


Code: [Select]
when

and
 - has-arrived-delay
   7
   <Ship>
 not
    or
       - is-destroyed-delay
         0
         <Ship>
       - is-subsystem-destroyed-delay
         <Ship>
         <Subsystem>
         0

explosion-effect
- get-object-x
  Alpha 1
- get-object-y
 Alpha 1
- get-object-z
 Alpha1
0
0
0
0
0
0
0
-1
2
2
The Lightblue Ribbon

Inferno: Nostos - Alliance
Series Resurrecta: {{FS Wiki Portal}} -  Gehenna's Gate - The Spirit of Ptah - Serendipity (WIP) - <REDACTED> (WIP)
FreeSpace Campaign Restoration Project
A tribute to FreeSpace in my book: Riflessioni dall'Infinito
My interviews: [ 1 ] - [ 2 ] - [ 3 ]

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Game Crashes when a particular explosion-effect SEXP is triggered...
Reproduce that in a mission for FS2 + media VPs and submit it to Mantis.

And unless your next comment is that Mantis ate your registration I'm locking this thread.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline Mobius

  • Back where he started
  • 213
  • Porto l'azzurro Dolce Stil Novo nella fantascienza
    • Skype
    • Twitter
    • The Lightblue Ribbon | Cultural Project
Re: Game Crashes when a particular explosion-effect SEXP is triggered...
And unless your next comment is that Mantis ate your registration I'm locking this thread.

Prophet...

Looks like it did. I'd like to wait 24 hours to be sure, however.
The Lightblue Ribbon

Inferno: Nostos - Alliance
Series Resurrecta: {{FS Wiki Portal}} -  Gehenna's Gate - The Spirit of Ptah - Serendipity (WIP) - <REDACTED> (WIP)
FreeSpace Campaign Restoration Project
A tribute to FreeSpace in my book: Riflessioni dall'Infinito
My interviews: [ 1 ] - [ 2 ] - [ 3 ]

 

Offline phreak

  • Gun Phreak
  • 211
  • -1
Re: Game Crashes when a particular explosion-effect SEXP is triggered...
http://scp.indiegames.us/mantis/view.php?id=1773

I fixed something similar about a month ago.
Offically approved by Ebola Virus Man :wtf:
phreakscp - gtalk
phreak317#7583 - discord

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Game Crashes when a particular explosion-effect SEXP is triggered...
I know what's causing this one actually. I've had a chat with Goober and we'll have to come up with a solution cause yet again it opens another can of worms.

The immediate problem can be solved by not using -1 as an argument though.
« Last Edit: October 17, 2008, 08:45:18 am by karajorma »
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline Mobius

  • Back where he started
  • 213
  • Porto l'azzurro Dolce Stil Novo nella fantascienza
    • Skype
    • Twitter
    • The Lightblue Ribbon | Cultural Project
Re: Game Crashes when a particular explosion-effect SEXP is triggered...
What sound should I use, then? "-1" is the default one for none.wav...
The Lightblue Ribbon

Inferno: Nostos - Alliance
Series Resurrecta: {{FS Wiki Portal}} -  Gehenna's Gate - The Spirit of Ptah - Serendipity (WIP) - <REDACTED> (WIP)
FreeSpace Campaign Restoration Project
A tribute to FreeSpace in my book: Riflessioni dall'Infinito
My interviews: [ 1 ] - [ 2 ] - [ 3 ]

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Game Crashes when a particular explosion-effect SEXP is triggered...
Check the table. You probably have others.


$Name:   162   Empty,         0, 0.50, 0
$Name:   163   Empty,         0, 0.50, 0
$Name:   164   Empty,         0, 0.50, 0
$Name:   165   Empty,         0, 0.50, 0
$Name:   166   Empty,         0, 0.50, 0
$Name:   167   Empty,         0, 0.50, 0
$Name:   168   Empty,         0, 0.50, 0
$Name:   169   Empty,         0, 0.50, 0
$Name:   170   Empty,         0, 0.50, 0
$Name:   171   Empty,         0, 0.50, 0
$Name:   172   Empty,         0, 0.50, 0

Any of those might work. They might crash it too . You can always add an actual blank .wav file. That is definitely going to work.



The bigger problem is that FRED is allowing you to enter -1 in the first place. It shouldn't. explosion-effect says that the argument must be positive but FRED2 isn't checking that for reasons to do with compatibility, etc.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline Mobius

  • Back where he started
  • 213
  • Porto l'azzurro Dolce Stil Novo nella fantascienza
    • Skype
    • Twitter
    • The Lightblue Ribbon | Cultural Project
Re: Game Crashes when a particular explosion-effect SEXP is triggered...
No crash this time, but the effect doesn't work...maybe due to the intensity level...I don't know if it should be expressed with very high numbers...

What's the intensity EMP value of an intense nebula storm?
The Lightblue Ribbon

Inferno: Nostos - Alliance
Series Resurrecta: {{FS Wiki Portal}} -  Gehenna's Gate - The Spirit of Ptah - Serendipity (WIP) - <REDACTED> (WIP)
FreeSpace Campaign Restoration Project
A tribute to FreeSpace in my book: Riflessioni dall'Infinito
My interviews: [ 1 ] - [ 2 ] - [ 3 ]