Frictional Games Forum (read-only)

Full Version: Using a lever to get to the next level (Crashing) Amnesia
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
{
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.
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.
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
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.
(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
void Lever3(string &in asEntity, int alState)
{
if (alState ==-1) //up
{
FadeIn(1.0f);
SetPlayerActive(false);
ChangeMap("Maps/Excavation_02.map", "")
(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"
Give us the script for Excavation_02.map file. And if you want to do FadeIn, don't you have to do FadeOut first?