Frictional Games Forum (read-only)
My costum story keeps crashing after some time? - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+--- Thread: My costum story keeps crashing after some time? (/thread-25250.html)

Pages: 1 2 3 4


My costum story keeps crashing after some time? - Melaara - 05-09-2014

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.


RE: My costum story keeps crashing after some time? - FlawlessHappiness - 05-09-2014

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


RE: My costum story keeps crashing after some time? - Red - 05-09-2014

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?


RE: My costum story keeps crashing after some time? - MsHannerBananer - 05-09-2014

Post your hpl log (in Documents/Amnesia). Smile


RE: My costum story keeps crashing after some time? - Melaara - 05-10-2014

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.


RE: My costum story keeps crashing after some time? - Romulator - 05-10-2014

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?


RE: My costum story keeps crashing after some time? - Melaara - 05-10-2014

(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.


RE: My costum story keeps crashing after some time? - Romulator - 05-10-2014

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


RE: My costum story keeps crashing after some time? - Melaara - 05-10-2014

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


RE: My costum story keeps crashing after some time? - Romulator - 05-10-2014

Well, when the error pops up, try reposting the hpl log Smile We'll take another look for you!