Frictional Games Forum (read-only)

Full Version: My costum story keeps crashing after some time?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4
I worked on my costum story lately. Everything worked well but a few days ago my game kept crashing after about 2 minutes, and I have no idea why. I screenshoted the error message.
Since the last thing I was doing before the game started crashing was adding a monster I'll post my script too. I do not see any problems but maybe someone professional can take a look at it. Maybe I overlooked something important..



////////////////////////////
// Run first time starting map
void OnStart()

{
AddUseItemCallback("", "key_1", "mansion_1", "KeyOnDoor", true);
AddUseItemCallback("", "torture_1", "torture", "KeyOnDoor_2", true);
AddUseItemCallback("", "torture_2", "torture_3", "KeyOnDoor_3", true);
AddUseItemCallback("", "escape", "cellar_1", "KeyOnDoor_4", true);
AddEntityCollideCallback("Player", "scr_enemy1", "MonsterFunction", true, 1);
AddEntityCollideCallback("Player", "bridgeenemy", "MonsterFunction_2", true, 1);
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_1", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_4", 0.001, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_8", 0.003, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_10", 0, "");
AddEnemyPatrolNode("brute_1", "PathNodeArea_11", 0, "");
AddEnemyPatrolNode("brute_1", "PathNodeArea_27", 0, "");

}
void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_1", false, true);
PlaySoundAtEntity("", "unlock_door", "mansion_1", 0, false);
RemoveItem("key_1");
}
void KeyOnDoor_2(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("torture", false, true);
PlaySoundAtEntity("", "unlock_door", "torture", 0, false);
RemoveItem("torture_1");
}
void KeyOnDoor_3(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("torture_3", false, true);
PlaySoundAtEntity("", "unlock_door", "torture_3", 0, false);
RemoveItem("torture_2");
}
void KeyOnDoor_4(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("cellar_1", false, true);
PlaySoundAtEntity("", "unlock_door", "cellar_1", 0, false);
RemoveItem("escape");
}
void MonsterFunction(string &in asParent, string &in asChild, int alState)
{SetEntityActive("servant_grunt_2", true);
}
void MonsterFunction_2(string &in asParent, string &in asChild, int alState)
{SetEntityActive("brute_1", true);
}
////////////////////////////
// Run when entering map
void OnEnter()
{

}

////////////////////////////
// Run when leaving map
void OnLeave()
{

}


I hope someone can help me.
Greetings.
if you get a black box its not the script.
something makes the game crash.

did you mess with some files.
your hpl log is the best you can post right now
After the aamfp patch, a new bug has been appearing, it happens instantly when you bring brute to the map. Maybe this is something similiar? Do you use default Amnesia The Dark Descent version? Or some of the aamfp beta patches?
Post your hpl log (in Documents/Amnesia). Smile
I did not mess with some files, neither did I do an update. But it is true that there might be something wrong with the brute, because at the and I added one with a trigger effect. I'm not sure why it keeps crashing on exactly this one, because I already have a brute right at the beginning, but with no trigger effect...Undecided Would be stupid if I could not spawn a brute that way.

However, here's my hps file.

Thank you for your help, everybody.
Your hpl.log seems to be in order, except you seem to be missing a lot of graphical stuff (not the settings, but information about graphics card).

Have you gotten this log file from right after the problem having occurred?
(05-10-2014, 01:48 PM)Romulator Wrote: [ -> ]Your hpl.log seems to be in order, except you seem to be missing a lot of graphical stuff (not the settings, but information about graphics card).

Have you gotten this log file from right after the problem having occurred?

The problem is occuring since... I guess it's about 3 days or something. Since then I've changed nothing, just sometimes tried to load the costum story. So yeah, you could sayit's right after the problem occured.
Well, what I mean is, have you run Amnesia since the problem had occured? Smile Every time Amnesia runs, it recreates the hpl.log file. If you have run Amnesia since, and not actually had the error happen, then we won't see it Smile
Ahhh, now I got it I think. ^^ Yes, I had run Amnesia a few times. The error did not occur in the uh.. 'original' game.

Btw I've now changed all the brutes in my story into grunts but the game still keeps crashing with the same error. Dodgy
Well, when the error pops up, try reposting the hpl log Smile We'll take another look for you!
Pages: 1 2 3 4