Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Gametee


Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
My costum story keeps crashing after some time?
Author Message
Melaara Offline
Junior Member

Posts: 19
Joined: Apr 2014
Reputation: 1
Post: #1
My costum story keeps crashing after some time?

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.


Attached File(s)
.jpg  error.jpg (Size: 280.4 KB / Downloads: 15)
05-09-2014 12:11 PM
Find all posts by this user Quote this message in a reply
FlawlessHappiness Offline
Posting Freak

Posts: 3,986
Joined: Mar 2012
Reputation: 171
Post: #2
RE: My costum story keeps crashing after some time?

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

Being happy is the first step to success.
05-09-2014 12:26 PM
Find all posts by this user Quote this message in a reply
Red Offline
Posting Freak

Posts: 1,751
Joined: Feb 2012
Reputation: 54
Post: #3
RE: My costum story keeps crashing after some time?

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?
05-09-2014 06:24 PM
Find all posts by this user Quote this message in a reply
MsHannerBananer Offline
Member

Posts: 218
Joined: Sep 2013
Reputation: 10
Post: #4
RE: My costum story keeps crashing after some time?

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

05-09-2014 08:58 PM
Find all posts by this user Quote this message in a reply
Melaara Offline
Junior Member

Posts: 19
Joined: Apr 2014
Reputation: 1
Post: #5
RE: My costum story keeps crashing after some time?

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.


Attached File(s)
.log  hpl.log (Size: 3.81 KB / Downloads: 5)
05-10-2014 01:39 PM
Find all posts by this user Quote this message in a reply
Romulator Offline
G'day mate! :3

Posts: 3,508
Joined: Jan 2013
Reputation: 191
Post: #6
RE: My costum story keeps crashing after some time?

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?

Discord: Romulator#4942
[Image: 8f5d099c7b.png]
05-10-2014 01:48 PM
Find all posts by this user Quote this message in a reply
Melaara Offline
Junior Member

Posts: 19
Joined: Apr 2014
Reputation: 1
Post: #7
RE: My costum story keeps crashing after some time?

(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.
05-10-2014 01:51 PM
Find all posts by this user Quote this message in a reply
Romulator Offline
G'day mate! :3

Posts: 3,508
Joined: Jan 2013
Reputation: 191
Post: #8
RE: My costum story keeps crashing after some time?

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

Discord: Romulator#4942
[Image: 8f5d099c7b.png]
05-10-2014 01:58 PM
Find all posts by this user Quote this message in a reply
Melaara Offline
Junior Member

Posts: 19
Joined: Apr 2014
Reputation: 1
Post: #9
RE: My costum story keeps crashing after some time?

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
05-10-2014 02:05 PM
Find all posts by this user Quote this message in a reply
Romulator Offline
G'day mate! :3

Posts: 3,508
Joined: Jan 2013
Reputation: 191
Post: #10
RE: My costum story keeps crashing after some time?

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

Discord: Romulator#4942
[Image: 8f5d099c7b.png]
05-10-2014 02:07 PM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)