| 
		
	
		| goodcap   Member
 
 Posts: 193
 Threads: 112
 Joined: Jun 2012
 Reputation: 
3
 | 
			| FATAL ERROR COULD NOT LOAD SCRIPT *CUSTOM STORY* 
 
				FATAL ERROR, COULD NOT LOAD SCRIPT FILE (something with HPS)////////////////////////////
 
 
 // Run first time starting map
 void OnStart()
 {
 AddUseItemCallback("", "kaasje", "eerstedeur", "UsedKeyOnDoor", true);
 }
 
 void UsedKeyOnDoor(string &in asitem, string &in asEntity)
 {
 SetSwingDoorLocked("eerstedeur", false, true);
 PlaySoundAtEntity("", "unlock_door", "eerstedeur", 0, false);
 RemoveItem("kaasje");
 }
 
 
 
 
 ////////////////////////////
 // Run when entering map
 void OnEnter()
 {
 
 }
 
 ////////////////////////////
 // Run when leaving map
 void OnLeave()
 
 
 
 |  |  
	| 06-10-2012, 02:53 PM |  |  
	
		| Putkimato   Junior Member
 
 Posts: 25
 Threads: 8
 Joined: Jun 2012
 Reputation: 
0
 | 
			| RE: FATAL ERROR COULD NOT LOAD SCRIPT *CUSTOM STORY* 
 
				// Run first time starting map
 void OnStart()
 {
 AddUseItemCallback("", "kaasje", "eerstedeur", "UsedKeyOnDoor", true);
 }
 void UsedKeyOnDoor(string &in asitem, string &in asEntity)
 {
 SetSwingDoorLocked("eerstedeur", false, true);
 PlaySoundAtEntity("", "unlock_door", "eerstedeur", 0, false);
 RemoveItem("kaasje");
 }
 ////////////////////////////
 
 // Run when entering map
 
 void OnEnter()
 {
 
 }
 ////////////////////////////
 
 // Run when leaving map
 
 void OnLeave()
 
 {
 
 }
 
 Try this, you forgot these { } at end
 
 
				
(This post was last modified: 06-10-2012, 03:06 PM by Putkimato.)
 |  |  
	| 06-10-2012, 03:04 PM |  |  
	
		| Science   Junior Member
 
 Posts: 9
 Threads: 0
 Joined: Jun 2012
 Reputation: 
0
 | 
			| RE: FATAL ERROR COULD NOT LOAD SCRIPT *CUSTOM STORY* 
 
				Make sure that both the .map and the .hps files are named the same.
			 
 I'm smart enough to know that I'm dumb. |  |  
	| 06-10-2012, 03:34 PM |  |  
	
		| goodcap   Member
 
 Posts: 193
 Threads: 112
 Joined: Jun 2012
 Reputation: 
3
 | 
			| RE: FATAL ERROR COULD NOT LOAD SCRIPT *CUSTOM STORY* 
 
				They are named the same
 THANKS SO MUCH! IT WORKS! I WANT YOUR BABIES!
 
				
(This post was last modified: 06-10-2012, 03:41 PM by goodcap.)
 |  |  
	| 06-10-2012, 03:40 PM |  |  
	
		| Science   Junior Member
 
 Posts: 9
 Threads: 0
 Joined: Jun 2012
 Reputation: 
0
 | 
			| RE: FATAL ERROR COULD NOT LOAD SCRIPT *CUSTOM STORY* 
 
				Is the .hps file in the same folder as the .map? It should be custom_stories/yourstory/maps/.hps and .map here
			 
 I'm smart enough to know that I'm dumb. |  |  
	| 06-10-2012, 04:01 PM |  |  
	
		| goodcap   Member
 
 Posts: 193
 Threads: 112
 Joined: Jun 2012
 Reputation: 
3
 | 
			| RE: FATAL ERROR COULD NOT LOAD SCRIPT *CUSTOM STORY* 
 
				it' works now, thanks so much    |  |  
	| 06-10-2012, 04:02 PM |  |  |