Frictional Games Forum (read-only)
Using a lever to get to the next level (Crashing) Amnesia - 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)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Using a lever to get to the next level (Crashing) Amnesia (/thread-21031.html)



Using a lever to get to the next level (Crashing) Amnesia - Arklancer - 04-03-2013

Hello Everyone.
I'm having an issue again with the game crashing when I pull a lever to go to the next level.

This is the part in the hps file.
void OnStart()
{
SetEntityConnectionStateChangeCallback("Lever3", "Lever3");
}

void Lever3(string &in asEntity, int alState)
{
if (alState ==-1) //up
{
FadeIn(1);
SetPlayerActive(false);
ChangeMap("Maps/Excavation_02.map", "PlayerStartArea_1", "","");
}
}

void OnEnter()
{
}

void OnLeave()
{
//////////////////////
//Load Screen Setup
SetupLoadScreen("LoadingText", "Ch01_Beginning", 5, "game_loading_rose.jpg");
}

This is the crash message, I have no idea what any of it even means inside the box. >.> - (See Attached)


I'm trying to finish the first chapter to TBH The Bro Heresy and I want to get it out this weekend at the latest.

Can somebody help me with this? >.<


RE: Using a lever to get to the next level (Crashing) Amnesia - PutraenusAlivius - 04-03-2013

void OnStart()
{
SetEntityConnectionStateChangeCallback("Lever3", "Lever3");
}

void Lever3(string &in asEntity, int alState)
{
if (alState == -1) //up
{
FadeOut(1);
SetPlayerActive(false);
ChangeMap("Excavation_02.map", "PlayerStartArea_1", "","");
}
}

void OnEnter()

{
}

void OnLeave()
{
SetupLoadScreen("LoadingText", "Ch01_Beginning", 5, "game_loading_rose.jpg");
}

Tell me if the problem still persists.


RE: Using a lever to get to the next level (Crashing) Amnesia - Arklancer - 04-03-2013

Its still continuing to crash, I've had this same issue with other maps I'm trying to create and I can't figure it out.


RE: Using a lever to get to the next level (Crashing) Amnesia - Yoilickturtles - 04-04-2013

void OnStart()
{
SetEntityConnectionStateChangeCallback("Lever3", "Lever3");
}

void Lever3(string &in asEntity, int alState)
{
if (alState ==-1) //up
{
FadeIn(1);
SetPlayerActive(false);
ChangeMap("Maps/Excavation_02.map", "PlayerStartArea_1", "","");
}


void OnEnter()
{
}

void OnLeave()
{
//////////////////////
//Load Screen Setup
SetupLoadScreen("LoadingText", "Ch01_Beginning", 5, "game_loading_rose.jpg");
}


Try that


RE: Using a lever to get to the next level (Crashing) Amnesia - Rapture - 04-04-2013

Does it crash when you pull the lever, or after the level ends and the next one tries to load? Problem might be a script in your next map.


RE: Using a lever to get to the next level (Crashing) Amnesia - Yoilickturtles - 04-04-2013

(04-04-2013, 01:21 AM)Rapture Wrote: Does it crash when you pull the lever, or after the level ends and the next one tries to load? Problem might be a script in your next map.
Yea right, thats smart.

And post your hpl log


RE: Using a lever to get to the next level (Crashing) Amnesia - Tiger - 04-04-2013

void Lever3(string &in asEntity, int alState)
{
if (alState ==-1) //up
{
FadeIn(1.0f);
SetPlayerActive(false);
ChangeMap("Maps/Excavation_02.map", "")


RE: Using a lever to get to the next level (Crashing) Amnesia - The chaser - 04-04-2013

(04-03-2013, 01:29 PM)Arklancer Wrote: Hello Everyone.
I'm having an issue again with the game crashing when I pull a lever to go to the next level.

This is the part in the hps file.
void OnStart()
{
SetEntityConnectionStateChangeCallback("Lever3", "Lever3");
}

void Lever3(string &in asEntity, int alState)
{
if (alState ==-1) //up
{
FadeIn(1);
SetPlayerActive(false);
ChangeMap("Maps/Excavation_02.map", "PlayerStartArea_1", "","");
}
}

void OnEnter()
{
}

void OnLeave()
{
//////////////////////
//Load Screen Setup
SetupLoadScreen("LoadingText", "Ch01_Beginning", 5, "game_loading_rose.jpg");
}

This is the crash message, I have no idea what any of it even means inside the box. >.> - (See Attached)


I'm trying to finish the first chapter to TBH The Bro Heresy and I want to get it out this weekend at the latest.

Can somebody help me with this? >.<

void OnStart()
{
SetEntityConnectionStateChangeCallback("Lever3", "Lever3");
}

void Lever3(string &in asEntity, int alState)
{
if (alState ==-1) //up
{
FadeIn(1);
SetPlayerActive(false);
ChangeMap("Excavation_02.map", "PlayerStartArea_1", "","");
}
}

void OnEnter()
{
}

void OnLeave()
{
//////////////////////
//Load Screen Setup
SetupLoadScreen("LoadingText", "Ch01_Beginning", 5, "game_loading_rose.jpg");
}

That should be fine. Give us the script from your other map "Excavation_02.map"


RE: Using a lever to get to the next level (Crashing) Amnesia - PutraenusAlivius - 04-04-2013

Give us the script for Excavation_02.map file. And if you want to do FadeIn, don't you have to do FadeOut first?