I need help identifying the cause for a crash that occurs for a player playing my campaign. He enters a trigger which fires a conversation and his game crashes. The script that’s attached on the trigger has been working in his game in other situations, so I know it’s not that. The conversation has a couple of action scripts attached to the first node.
ga_create_object and ga_vfx
The first one creates a creature. I already asked the player to tell me if the blueprint exists and its file size, because in my experience corrupted files have 0KB. It exists and has 23,9KB.
The second just spawns an effect on the location of a waypoint.
Some facts that may help
He is the first person to ever had this happen. I’ve never had anyone report a crash on that area.
His override is empty.
The first node is spoken by an ipoint that is already placed in the area. Any subsequent node by the creature that is created on the first node. However, the player crashes immediately. He doesn’t get to see any node.
If it is the sound issue I refer to, then it may be due to a Windows update gone awry, or simply another system level program messing with it, such as some video/sound editing software (with codecs). NB: Reinstalling NWN2 did not fix the issue for me.
I have tried to get to the bottom of my own NWN2 sound issue for some time (it’s at least a few months old or more for me), but have not been prepared to go as far as a Windows reinstall yet.
OK, I did some digging around on my theory that there was an issue with my sound somehow, and eventually managed to find this program that fixes codecs:-
This “temporarily” fixes my sound problem and crashing from toolset - but I am unable to confirm game crash fix as that is random. Basically, if I run this program to “fix” my codecs, then the toolset works again until I try running the VFX again, at which point the sounds appear broken again. I then have to rerun the utility to “fix” my codecs again to enable the toolset to work on a fresh opening.
Now that I have shown this to “fix” the problem, maybe somebody with more programming / sound codec knowledge will be able to provide a permanent fix.
EDIT: The specific “fix” that temporarily fixes my issue is the “Re-register base DirectShow filters”, which then must fail again after I close NWN2 toolset.
I suspect that there may be many players who may have this potential problem, as it is not an obvious one to track down.
Hi there Lance. I sent a DLG file to the player with the sound effects removed. He still crashed, but this time he heard no weird glitchy sounds while crashing. He also said that the game hanged for some seconds before crashing, almost as if trying to load a resource. I now sent him a replacement of the creature that is supposed to spawn there. Perhaps it was indeed corrupt in his instance. Will see.
Sounds like it may be that … EDIT: Does the creature spawn with a VFX/SOUND?
I have also been continuing my search down the sound/vfx route, and (for the record) note the following …
After applying the Codec “fix” …
VFX/sound crashes toolset if I try playing the VFX sef twice in a row. (It works if I play the VFX, close the VFX editor, open and play again.) However, playing more than once will crash the toolset.
Closing the toolset and reopening to play the VFX/Sound will crash the toolset again, but only if I have tested a VFX in the VFX editor.
Applying the Codec fix between toolset opening allows me to play the VFX/Sound again. It’s as if the NWN2 program “deregisters” some sound related codec on using the VFX editor to view a SEF file. (The file I use to test for consistency of failure is sp_holy_hit.sef.)
I will keep looking on this front, but let me know if removing the creature helps.
Cheers, Lance.
Graph below shows how bad this problem is for me on Windows … with multiple tests and crashes due to VFX/Sound issue.
You might be onto something. There is this parameter on ga_create_object called “Use appear animation” or something like that, I don’t have it in front of me right now. I usually leave it blank because I don’t really need it. In this case, it is set as TRUE, either as an oversight on my end or because I felt like it.
I guess it could be something hidden there. In any case, I wait now for the corrupted file check and then I’ll take it from there.
I finally got to the bottom of what was causing my sound issues after months of searching … It was the direct filters for sound related to some old programs I have on my computer that came with the CDROM I have on the computer: Nero and Cyberlink software. The software must be past its register date or something (or just corrupted) for as soon as I disabled all these filters my toolset now works as it should!
HOORAH!
Bear in mind that I was also having the occasional sound issue in game (causing me to crash), so this might have some bearing anyway.
EDIT: I used the tool I link to above to disable these direct filters. (I will probably uninstall the software too, as I hardly use it nowadays.)
EDIT: Maybe your user has some of these older programs or “possible” defunct filters?
Well, it wasn’t the UTC either. I had little hope for that anyway. I asked the player to try and find the filters as you say and see if there is anything there.
edit: I also asked the player to step by step try to spawn the creature and initiate the dialogie by console means. Let’s see at least which step fails.
Hey Lance, which software is this? The links take me to some forum posts and either I am blind or I see no links there for downloads . Probably the first is happening of course…
" OK, I did some digging around on my theory that there was an issue with my sound somehow, and eventually managed to find this program that fixes codecs:-
Hi all. The player disabled the filters and there was no change on game behavior. He then tried to spawn the creature which is supposed to spawn on the first line of the convo via console
and nothing happened. No creature spawned. Note he has a new version of the UTC file. Even if it was corrupted, he now has a fresh one in the override. So… can it be that the WP spawn point is problematic? Because I can’t really think of anything else.
// 'forcefent'
/*
Console script.
*/
void main()
{
object oPc = OBJECT_SELF;
object o = CreateObject(OBJECT_TYPE_CREATURE, "d02_fentomy0", GetLocation(oPc));
if (GetIsObjectValid(o))
SendMessageToPC(oPc, "utc d02_fentomy0 is valid");
else
SendMessageToPC(oPc, "utc d02_fentomy0 is NOT valid");
o = GetObjectByTag("genie_a");
if (GetIsObjectValid(o))
SendMessageToPC(oPc, "object exists in the module");
else
SendMessageToPC(oPc, "object does NOT exist in the module");
o = GetWaypointByTag("genie_a");
if (GetIsObjectValid(o))
SendMessageToPC(oPc, "waypoint exists in the module");
else
SendMessageToPC(oPc, "waypoint does NOT exist in the module");
o = GetNearestObjectByTag("genie_a");
if (GetIsObjectValid(o))
SendMessageToPC(oPc, "nearest exists in the area");
else
SendMessageToPC(oPc, "nearest does NOT exist in the area");
}