Radical Batz 
			Posting Freak25  
	
		
			
What is this error and where is it? [SOLVED] 
 
				I did the code right and it gets me an error! just great. well here is the code that i'm using for my map
void OnStart()
ok well this is the error that it gets me when I load the map
FATAL ERROR: Could not load script file 'custom_stories/Lifeless_The Abandon/maps/Mansion.hps'!
what does that even mean?
can you guys help me and tell me If you can see where the error is pls, I really do understand some errors but not this one, what does "expected data type" even mean? pls help
			
				
(This post was last modified: 02-23-2014, 07:03 PM by Radical Batz .) 
 
				
			 
		 
 
 
	02-23-2014, 05:59 PM  
		
	 
 
	
		daortir 
			Senior Member18  
	
		
			
RE: What is this error and where is it? 
 
				void BreakDoor("", string &in asChild, int alState)  makes no sense 'v'.  You want it to be 
			
			
				
(This post was last modified: 02-23-2014, 06:11 PM by daortir .) 
 
				
			 
		 
 
 
	02-23-2014, 06:11 PM  
		
	 
 
	
		MsHannerBananer 
			Member10  
	
		
			
RE: What is this error and where is it? 
 
				 (02-23-2014, 05:59 PM) Badcat5550 Wrote:  void OnStart()
FATAL ERROR: Could not load script file 'custom_stories/Lifeless_The Abandon/maps/Mansion.hps'!
It seems it's because you touched some void bracket functions.
In your void Breakdoor function, you replaced (string &in asParent, string &in asChild, int alState) with ("", string &in asChild, int alState). I'm only 80% sure, but I think that's the problem. 
I don't see any other problems, and when putting it in Notepad++ that is the exact area your error is calling for. 
Corrected script
Spoiler below!  
void OnStart()
 
 
Tell me if that works and if not, we'll wrangle someone else up. ;D
			
 
			
			
 
 
 
	02-23-2014, 06:14 PM  
		
	 
 
	
		Radical Batz 
			Posting Freak25  
	
		
			
RE: What is this error and where is it? 
 
				thanks it's working now 
 I should stay more focused on my script, but yeah, thanks.
			
 
 
 
	02-23-2014, 07:02 PM  
		
	 
 
	
		FoodOnCrack 
			Junior Member0  
	
		
			
RE: What is this error and where is it? [SOLVED] 
 
				 (02-23-2014, 05:59 PM) Badcat5550 Wrote:  void OnStart()
FATAL ERROR: Could not load script file 'custom_stories/Lifeless_The Abandon/maps/Mansion.hps'!
In a "void"  function line you want only   string &in  OR int alStates between the brackets. If i am correct,  "double quotes"  cause a crash in a void function line. 
Plus, a good way to solve the error is taking a look at the FATAL ERROR message, when it says (21, 16)  it gives the location of the error in your script. So if you use Notepad++ or Geany, it says the row (21)  and the letter in the row (, 16) where the error is located.
Another good tip that i have is to look at 
http://wiki.frictionalgames.com/hpl2/amn..._functions  at the scripts which call a function. For example an collidecallback between you and a sript area, it will say under the line: Callback syntax: void MyFunc(string &in asName, int alCount) . The correct void function is always listed under the callback line so just copy paste that one 
.
			
 
			
			
			
		 
 
 
	02-23-2014, 08:05 PM