Hard Light Productions Forums

General FreeSpace => FreeSpace & FreeSpace Open Support => Topic started by: Mobius on October 14, 2008, 02:52:07 pm

Title: Game Crashes when a particular explosion-effect SEXP is triggered...
Post by: Mobius on October 14, 2008, 02:52:07 pm
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
Title: Re: Game Crashes when a particular explosion-effect SEXP is triggered...
Post by: karajorma on October 14, 2008, 03:40:33 pm
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.
Title: Re: Game Crashes when a particular explosion-effect SEXP is triggered...
Post by: Mobius on October 16, 2008, 11:55:19 am
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.
Title: Re: Game Crashes when a particular explosion-effect SEXP is triggered...
Post by: phreak on October 17, 2008, 07:53:22 am
http://scp.indiegames.us/mantis/view.php?id=1773

I fixed something similar about a month ago.
Title: Re: Game Crashes when a particular explosion-effect SEXP is triggered...
Post by: karajorma on October 17, 2008, 08:27:15 am
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.
Title: Re: Game Crashes when a particular explosion-effect SEXP is triggered...
Post by: Mobius on October 17, 2008, 01:13:48 pm
What sound should I use, then? "-1" is the default one for none.wav...
Title: Re: Game Crashes when a particular explosion-effect SEXP is triggered...
Post by: karajorma on October 17, 2008, 01:49:26 pm
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.
Title: Re: Game Crashes when a particular explosion-effect SEXP is triggered...
Post by: Mobius on October 17, 2008, 02:06:01 pm
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?