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


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using a lever to get to the next level (Crashing) Amnesia
Arklancer Offline
Junior Member

Posts: 10
Threads: 4
Joined: Feb 2013
Reputation: 0
#1
Question  Using a lever to get to the next level (Crashing) Amnesia

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


Attached Files
.jpg   Issue1.JPG (Size: 57.78 KB / Downloads: 102)
(This post was last modified: 04-03-2013, 01:36 PM by Arklancer.)
04-03-2013, 01:29 PM
Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#2
RE: Using a lever to get to the next level (Crashing) Amnesia

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.

"Veni, vidi, vici."
"I came, I saw, I conquered."
(This post was last modified: 04-03-2013, 02:04 PM by PutraenusAlivius.)
04-03-2013, 02:02 PM
Find
Arklancer Offline
Junior Member

Posts: 10
Threads: 4
Joined: Feb 2013
Reputation: 0
#3
RE: Using a lever to get to the next level (Crashing) Amnesia

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.
04-03-2013, 06:13 PM
Find
Yoilickturtles Offline
Junior Member

Posts: 48
Threads: 9
Joined: Mar 2013
Reputation: 1
#4
RE: Using a lever to get to the next level (Crashing) Amnesia

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
04-04-2013, 01:19 AM
Find
Rapture Offline
Posting Freak

Posts: 1,078
Threads: 79
Joined: May 2011
Reputation: 30
#5
RE: Using a lever to get to the next level (Crashing) Amnesia

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
Find
Yoilickturtles Offline
Junior Member

Posts: 48
Threads: 9
Joined: Mar 2013
Reputation: 1
#6
RE: Using a lever to get to the next level (Crashing) Amnesia

(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
04-04-2013, 01:25 AM
Find
Tiger Away
Posting Freak

Posts: 1,874
Threads: 16
Joined: Nov 2012
Reputation: 55
#7
RE: Using a lever to get to the next level (Crashing) Amnesia

void Lever3(string &in asEntity, int alState)
{
if (alState ==-1) //up
{
FadeIn(1.0f);
SetPlayerActive(false);
ChangeMap("Maps/Excavation_02.map", "")
04-04-2013, 01:36 AM
Find
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#8
RE: Using a lever to get to the next level (Crashing) Amnesia

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

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
04-04-2013, 02:01 PM
Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#9
RE: Using a lever to get to the next level (Crashing) Amnesia

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

"Veni, vidi, vici."
"I came, I saw, I conquered."
04-04-2013, 02:24 PM
Find




Users browsing this thread: 1 Guest(s)