Arklancer   
 
 
		
			Junior Member 
			
			
			
 
			
	Posts: 10 
	Threads: 4 
	Joined: Feb 2013
	
 Reputation: 
0  
		 
	 
	
		
			
  
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  
 
 
  Issue1.JPG  (Size: 57.78 KB / Downloads: 260)
 
			
			
				
(This post was last modified: 04-03-2013, 01:36 PM by Arklancer .) 
 
				
			 
		  
	
 
 
	04-03-2013, 01:29 PM   
	
		
	 
 
	
		 
		PutraenusAlivius   
 
 
		
			Posting Freak 
			
			
			
 
			
	Posts: 4,713 
	Threads: 75 
	Joined: Dec 2012
	
 Reputation: 
119  
		 
	 
	
		
			
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." 
			
		  
	
 
 
	04-03-2013, 02:02 PM   
	
		
	 
 
	
		 
		Arklancer   
 
 
		
			Junior Member 
			
			
			
 
			
	Posts: 10 
	Threads: 4 
	Joined: Feb 2013
	
 Reputation: 
0  
		 
	 
	
		
			
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   
	
		
	 
 
	
		 
		Yoilickturtles   
 
 
		
			Junior Member 
			
			
			
 
			
	Posts: 48 
	Threads: 9 
	Joined: Mar 2013
	
 Reputation: 
1  
		 
	 
	
		
			
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   
	
		
	 
 
	
		 
		Rapture   
 
 
		
			Posting Freak 
			
			
			
 
			
	Posts: 1,078 
	Threads: 79 
	Joined: May 2011
	
 Reputation: 
30  
		 
	 
	
		
			
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   
	
		
	 
 
	
		 
		Yoilickturtles   
 
 
		
			Junior Member 
			
			
			
 
			
	Posts: 48 
	Threads: 9 
	Joined: Mar 2013
	
 Reputation: 
1  
		 
	 
	
		
			
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   
	
		
	 
 
	
		 
		Tiger   
 
 
		
			Posting Freak 
			
			
			
 
			
	Posts: 1,874 
	Threads: 16 
	Joined: Nov 2012
	
 Reputation: 
55  
		 
	 
	
		
			
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   
	
		
	 
 
	
		 
		The chaser   
 
 
		
			Posting Freak 
			
			
			
 
			
	Posts: 2,486 
	Threads: 76 
	Joined: Jun 2012
	
 Reputation: 
113  
		 
	 
	
		
			
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)
 
Aculy iz dolan.
 
			
		  
	
 
 
	04-04-2013, 02:01 PM   
	
		
	 
 
	
		 
		PutraenusAlivius   
 
 
		
			Posting Freak 
			
			
			
 
			
	Posts: 4,713 
	Threads: 75 
	Joined: Dec 2012
	
 Reputation: 
119  
		 
	 
	
		
			
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