SuperSoldier333 
 
 
		
			Junior Member 
			
			
			
 
			
	Posts: 12 
	Threads: 2 
	Joined: Aug 2012
	
 Reputation: 
0
		
	 | 
	
		
			
Can't play my custom story 
			 
			
				So here is the message that i got when I try to load my custom story: 
 
 
FATAL ERROR: Could not load script file 
'custom_stories/SuperSoldierAdventures/maps/custom_stories/SuperS 
oldierAdventures/maps/map1.hps'! 
main (13,1) :ERR :Unexpected end of file 
 
Please help me I don't know how to fix this. 
 
 
Here's my file with the script if this can help: 
 
 
void OnStart() 
{ 
AddUseItemCallback("", "keydoor", "mansion_1", "OuvrirPorte", true; 
} 
 
 
void OuvrirPorte(string &in asItem, string &in asEntity) 
{ 
SetSwingDoorLocked("mansion_1", false, true);  
PlaySoundAtEntity("", unlock_door", "mansion_1", 0, false);  
RemoveItem("keydoor"); 
}
			 
			
			
			
		 |  
	 
 | 
 
	| 08-05-2012, 04:01 AM  | 
	
		
	 | 
 
 
	
		
		Froge 
 
 
		
			Posting Freak 
			
			
			
 
			
	Posts: 2,955 
	Threads: 176 
	Joined: Jul 2012
	
 Reputation: 
125
		
	 | 
	
		
			
RE: Can't play my custom story 
			 
			
				) after true
			 
			
			
 
			
		 |  
	 
 | 
 
	| 08-05-2012, 04:09 AM  | 
	
		
	 | 
 
 
	
		
		SuperSoldier333 
 
 
		
			Junior Member 
			
			
			
 
			
	Posts: 12 
	Threads: 2 
	Joined: Aug 2012
	
 Reputation: 
0
		
	 | 
	
		
			
RE: Can't play my custom story 
			 
			
				I tried, but I still get the error.
			 
			
			
			
		 |  
	 
 | 
 
	| 08-05-2012, 04:12 AM  | 
	
		
	 | 
 
 
	
		
		KingCrimson 
 
 
		
			Junior Member 
			
			
			
 
			
	Posts: 45 
	Threads: 14 
	Joined: Jul 2012
	
 Reputation: 
0
		
	 | 
	
		
			
RE: Can't play my custom story 
			 
			
				Have you got the  
void OnEnter(){ } 
void OnLeave(){ }
 
after those things? It should look like this if it does:
 Quote://////////////////////////// 
// Run when the map starts 
void OnStart() 
{ 
AddUseItemCallback("", "keydoor", "mansion_1", "OuvrirPorte", true; 
} 
 
void OuvrirPorte(string &in asItem, string &in asEntity) 
{ 
SetSwingDoorLocked("mansion_1", false, true);  
PlaySoundAtEntity("", unlock_door", "mansion_1", 0, false);  
RemoveItem("keydoor"); 
} 
 
//////////////////////////// 
// Run when entering map 
void OnEnter() 
{ 
 
} 
 
//////////////////////////// 
// Run when leaving map 
void OnLeave() 
{ 
 
} 
And i think you missed a ")" after what i marked in red
 
Hope it works
			  
			
			
 
Current Projects: 
DADDY - 10%  
			
		 |  
	 
 | 
 
	| 08-05-2012, 04:52 AM  | 
	
		
	 | 
 
 
	
		
		Kazakarumariou 
 
 
		
			An angry man. 
			
			
			
 
			
	Posts: 283 
	Threads: 8 
	Joined: Jul 2012
	
 Reputation: 
14
		
	 | 
	
		
			
RE: Can't play my custom story 
			 
			
				void OnStart() 
{ 
AddUseItemCallback("", "keydoor", "mansion_1", "OuvrirPorte", true); 
} 
 
 
 
mine's the easiest to understand. :]
			 
			
			
			
		 |  
	 
 | 
 
	| 08-05-2012, 05:18 AM  | 
	
		
	 | 
 
 
	
		
		SuperSoldier333 
 
 
		
			Junior Member 
			
			
			
 
			
	Posts: 12 
	Threads: 2 
	Joined: Aug 2012
	
 Reputation: 
0
		
	 | 
	
		
			
RE: Can't play my custom story 
			 
			
				 (08-05-2012, 04:52 AM)ExenderVes Wrote:  Have you got the  
 
void OnEnter(){ } 
void OnLeave(){ } 
 
after those things? It should look like this if it does: 
 
Quote://////////////////////////// 
// Run when the map starts 
void OnStart() 
{ 
AddUseItemCallback("", "keydoor", "mansion_1", "OuvrirPorte", true; 
} 
 
void OuvrirPorte(string &in asItem, string &in asEntity) 
{ 
SetSwingDoorLocked("mansion_1", false, true);  
PlaySoundAtEntity("", unlock_door", "mansion_1", 0, false);  
RemoveItem("keydoor"); 
} 
 
//////////////////////////// 
// Run when entering map 
void OnEnter() 
{ 
 
} 
 
//////////////////////////// 
// Run when leaving map 
void OnLeave() 
{ 
 
} 
 
And i think you missed a ")" after what i marked in red 
 
Hope it works I copied this in my file, but I still get the error. I tried to copy the on from the frictional games site ( http://wiki.frictionalgames.com/hpl2/tut...t_beginner), and this one works.
 
 
Ok, so I know I can enter my map. But my key dosen't open the door.
 
//////////////////////////// 
// Run when the map starts 
void OnStart() 
{ 
AddUseItemCallback("", "keydoor", "mansion_1", "OuvrirPorte", true; 
}
 
void OuvrirPorte(string &in asItem, string &in asEntity) 
{ 
SetSwingDoorLocked("mansion_1", false, true);  
PlaySoundAtEntity("", unlock_door", "mansion_1", 0, false);  
RemoveItem("keydoor"); 
}
 
//////////////////////////// 
// Run when entering map 
void OnEnter() 
{
 
}
 
//////////////////////////// 
// Run when leaving map 
void OnLeave() 
{
 
}
			  
			
			
			
		 |  
	 
 | 
 
	| 08-05-2012, 02:06 PM  | 
	
		
	 | 
 
 
	
		
		KingCrimson 
 
 
		
			Junior Member 
			
			
			
 
			
	Posts: 45 
	Threads: 14 
	Joined: Jul 2012
	
 Reputation: 
0
		
	 | 
	
		
			
RE: Can't play my custom story 
			 
			
				 (08-05-2012, 02:06 PM)SuperSoldier333 Wrote:  //////////////////////////// 
// Run when the map starts 
void OnStart() 
{ 
AddUseItemCallback("", "keydoor", "mansion_1", "OuvrirPorte", true;) 
} 
 
void OuvrirPorte(string &in asItem, string &in asEntity) 
{ 
SetSwingDoorLocked("mansion_1", false, true);  
PlaySoundAtEntity("", unlock_door", "mansion_1", 0, false);  
RemoveItem("keydoor"); 
} 
 
//////////////////////////// 
// Run when entering map 
void OnEnter() 
{ 
 
} 
 
//////////////////////////// 
// Run when leaving map 
void OnLeave() 
{ 
 
} You're still missing a ")" after "true;"
 
I marked in red where the ) should be
			  
			
			
 
Current Projects: 
DADDY - 10%  
			
		 |  
	 
 | 
 
	| 08-05-2012, 04:14 PM  | 
	
		
	 | 
 
 
	
		
		SuperSoldier333 
 
 
		
			Junior Member 
			
			
			
 
			
	Posts: 12 
	Threads: 2 
	Joined: Aug 2012
	
 Reputation: 
0
		
	 | 
	
		
			
RE: Can't play my custom story 
			 
			
				Yeah I noticed after posting this.
			 
			
			
			
		 |  
	 
 | 
 
	| 08-05-2012, 04:25 PM  | 
	
		
	 | 
 
 
	
		
		SuperSoldier333 
 
 
		
			Junior Member 
			
			
			
 
			
	Posts: 12 
	Threads: 2 
	Joined: Aug 2012
	
 Reputation: 
0
		
	 | 
	
		
			
RE: Can't play my custom story 
			 
			
				I don't know if this can help but here's the way to my custom story files; 
 
/amnesia the dark descent 
//custom_stories 
///SuperSoldierAdventures 
////Maps 
///map1.hps and map1.map 
 
Maybe they are just not at the right place, I don't know.
			 
			
			
			
		 |  
	 
 | 
 
	| 08-05-2012, 06:04 PM  | 
	
		
	 | 
 
 
	
		
		Steve 
 
 
		
			Member 
			
			
			
 
			
	Posts: 178 
	Threads: 17 
	Joined: Jun 2012
	
 Reputation: 
7
		
	 | 
	
		
			
RE: Can't play my custom story 
			 
			
				I think I foun dyour problem you forgot an " at PlaySoundAtEntity("", unlock_door", "mansion_1", 0, false);  
  
so make it this: 
PlaySoundAtEntity("", "unlock_door", "mansion_1", 0, false);
			 
			
			
 
CURRENTLY WORKING ON:
Final Light = 40% 
Need of voice actors.  
			
		 |  
	 
 | 
 
	| 08-05-2012, 06:18 PM  | 
	
		
	 | 
 
 
	 
 |