| 
		
	
		| Raymond   Member
 
 Posts: 126
 Threads: 24
 Joined: Feb 2011
 Reputation: 
0
 | 
			| RE: Error when testing my map 
 
				 (02-27-2011, 12:22 PM)nkmol Wrote:  That's because you forgot </CATEGORY> again  
 <LANGUAGE>
 <RESOURCES>
 </RESOURCES>
 <CATEGORY Name="CustomStoryMain">
 <Entry Name="Description">Escape the castle!</Entry>
 </CATEGORY>
 <CATEGORY Name="Journal">
 <Entry Name="Note_Hotel01_Name">Hotel Room</Entry>
 <Entry Name="Note_Hotel01_Text">Test</Entry>
 </CATEGORY>
 </LANGUAGE>
 
 try to add that and tell me if it works
  
Finally, it worked   .
			 
 One World To Another [DEMO] coming soon. |  |  
	| 02-27-2011, 02:39 PM |  |  
	
		| XxItachi09xX   Junior Member
 
 Posts: 16
 Threads: 7
 Joined: Feb 2011
 Reputation: 
0
 | 
			| RE: Error when testing my map 
 
				hey can you please tell me how to find those certain script? find the "i need certain script" tread
			 
				
(This post was last modified: 02-28-2011, 10:24 AM by XxItachi09xX.)
 |  |  
	| 02-28-2011, 10:23 AM |  |  
	
		| Raymond   Member
 
 Posts: 126
 Threads: 24
 Joined: Feb 2011
 Reputation: 
0
 | 
			| RE: Error when testing my map 
 
				 (02-28-2011, 10:23 AM)XxItachi09xX Wrote:  hey can you please tell me how to find those certain script? find the "i need certain script" tread 
?
 
Anyways
 
<LANGUAGE> 
<CATEGORY Name="CustomStoryMain"> 
	<Entry Name="Description">Escape the castle!</Entry> 
</CATEGORY> 
<CATEGORY Name="Inventory"> 
      <Entry Name="ItemName_PrisonKey">Prison Key</Entry> 
      <Entry Name="ItemDesc_PrisonKey">Key to unlock the 1st padlock from the door with 2 padlocks.</Entry> 
      <Entry Name="ItemName_PrivateRoomKey">Private Room Key</Entry> 
      <Entry Name="ItemDesc_PrivateRoomKey">Key to unlock the door to the Private Room.</Entry> 
</CATEGORY> 
<CATEGORY Name="Journal"> 
	<Entry Name="Note_Hotel01_Name">Hotel Room</Entry> 
	<Entry Name="Note_Hotel01_Text">Test</Entry> 
</CATEGORY> 
</LANGUAGE>
 
My description doesn't have words again, please help   . 
 
Wait, i fixed it.
			 
 One World To Another [DEMO] coming soon. 
				
(This post was last modified: 02-28-2011, 10:29 AM by Raymond.)
 |  |  
	| 02-28-2011, 10:26 AM |  |  
	
		| nkmol   Senior Member
 
 Posts: 252
 Threads: 19
 Joined: Feb 2011
 Reputation: 
4
 | 
			| RE: Error when testing my map 
 
				Good you fixed it     (02-28-2011, 10:23 AM)XxItachi09xX Wrote:  hey can you please tell me how to find those certain script? find the "i need certain script" tread 
u mean the wiki site where the scripts listed?    here it is : http://wiki.frictionalgames.com/hpl2/amn..._functions
				
(This post was last modified: 02-28-2011, 04:02 PM by nkmol.)
 |  |  
	| 02-28-2011, 03:59 PM |  |  
	
		| Raymond   Member
 
 Posts: 126
 Threads: 24
 Joined: Feb 2011
 Reputation: 
0
 | 
			| RE: Error when testing my map 
 
				//////////////////////////// 
// Run when entering map 
void OnEnter() 
{ 
 AddUseItemCallback("", "prisonkey_1", "mansion_3", "UsedKeyOnDoor", true); 
}
 
void UsedKeyOnDoor(string &in asItem, string &in asEntity) 
{ 
 SetSwingDoorLocked("mansion_3", false, true); 
 PlaySoundAtEntity("", "unlock_door", "mansion_3", 0, false); 
 RemoveItem("prisonkey_1"); 
}
 
//////////////////////////// 
// Run when leaving map 
void OnLeave() 
{ 
}
 
void OnStart() 
{ 
  AddEntityCollideCallback("Player" , "ScriptArea_1" , "MonsterFunc1" , true , 1); 
  AddEntityCollideCallback("Player" , "ScriptArea_2" , "Collide_Area" , true , 1); 
} 
void MonsterFunc1(string &in asParent , string &in asChild , int alState) 
void Collide_Area(string &in asParent , string &in asChild , int alState) 
{ 
  SetEntityActive("servant_grunt_1" , true); 
  SetEntityActive("slime_anim_wall_1" , true); 
}
 
Another problem, i am trying to spawn a Slime, but Did i put something wrong, please help   .
			
 One World To Another [DEMO] coming soon. 
				
(This post was last modified: 03-02-2011, 10:49 AM by Raymond.)
 |  |  
	| 03-02-2011, 10:47 AM |  |  
	
		| nkmol   Senior Member
 
 Posts: 252
 Threads: 19
 Joined: Feb 2011
 Reputation: 
4
 | 
			| RE: Error when testing my map 
 
				 (03-02-2011, 10:47 AM)Raymond Wrote:  ////////////////////////////// Run when entering map
 void OnEnter()
 {
 AddUseItemCallback("", "prisonkey_1", "mansion_3", "UsedKeyOnDoor", true);
 }
 
 void UsedKeyOnDoor(string &in asItem, string &in asEntity)
 {
 SetSwingDoorLocked("mansion_3", false, true);
 PlaySoundAtEntity("", "unlock_door", "mansion_3", 0, false);
 RemoveItem("prisonkey_1");
 }
 
 ////////////////////////////
 // Run when leaving map
 void OnLeave()
 {
 }
 
 void OnStart()
 {
 AddEntityCollideCallback("Player" , "ScriptArea_1" , "MonsterFunc1" , true , 1);
 AddEntityCollideCallback("Player" , "ScriptArea_2" , "Collide_Area" , true , 1);
 }
 void MonsterFunc1(string &in asParent , string &in asChild , int alState)
 void Collide_Area(string &in asParent , string &in asChild , int alState)
 {
 SetEntityActive("servant_grunt_1" , true);
 SetEntityActive("slime_anim_wall_1" , true);
 }
 
 Another problem, i am trying to spawn a Slime, but Did i put something wrong, please help
  . you made 2 void callback whith one function, so one callback doesn't have a function( the MonsterFunc1). try this : 
 ////////////////////////////// Run when entering map
 void OnEnter()
 {
 AddUseItemCallback("", "prisonkey_1", "mansion_3", "UsedKeyOnDoor", true);
 }
 
 void UsedKeyOnDoor(string &in asItem, string &in asEntity)
 {
 SetSwingDoorLocked("mansion_3", false, true);
 PlaySoundAtEntity("", "unlock_door", "mansion_3", 0, false);
 RemoveItem("prisonkey_1");
 }
 
 ////////////////////////////
 // Run when leaving map
 void OnLeave()
 {
 }
 
 void OnStart()
 {
 AddEntityCollideCallback("Player" , "ScriptArea_1" , "MonsterFunc1" , true , 1);
 AddEntityCollideCallback("Player" , "ScriptArea_2" , "Collide_Area" , true , 1);
 }
 
 void MonsterFunc1(string &in asParent , string &in asChild , int alState)
 {
 SetEntityActive("servant_grunt_1" , true);
 }
 
 void Collide_Area(string &in asParent , string &in asChild , int alState)
 {
 SetEntityActive("slime_anim_wall_1" , true);
 }
think about it. how can the game know that the void MonsterFunc1 needs to active a grunt? because u'll say it has 2things, grunt and slime_wall. First be detailerd about the script, that will help a bit, though    
				
(This post was last modified: 03-02-2011, 04:13 PM by nkmol.)
 |  |  
	| 03-02-2011, 04:10 PM |  |  
	
		| Raymond   Member
 
 Posts: 126
 Threads: 24
 Joined: Feb 2011
 Reputation: 
0
 | 
			| RE: Error when testing my map 
 
				 (03-02-2011, 04:10 PM)nkmol Wrote:   (03-02-2011, 10:47 AM)Raymond Wrote:  ////////////////////////////you made 2 void callback whith one function, so one callback doesn't have a function( the MonsterFunc1). try this :// Run when entering map
 void OnEnter()
 {
 AddUseItemCallback("", "prisonkey_1", "mansion_3", "UsedKeyOnDoor", true);
 }
 
 void UsedKeyOnDoor(string &in asItem, string &in asEntity)
 {
 SetSwingDoorLocked("mansion_3", false, true);
 PlaySoundAtEntity("", "unlock_door", "mansion_3", 0, false);
 RemoveItem("prisonkey_1");
 }
 
 I see, thanks for the tip
  . ////////////////////////////
 // Run when leaving map
 void OnLeave()
 {
 }
 
 void OnStart()
 {
 AddEntityCollideCallback("Player" , "ScriptArea_1" , "MonsterFunc1" , true , 1);
 AddEntityCollideCallback("Player" , "ScriptArea_2" , "Collide_Area" , true , 1);
 }
 void MonsterFunc1(string &in asParent , string &in asChild , int alState)
 void Collide_Area(string &in asParent , string &in asChild , int alState)
 {
 SetEntityActive("servant_grunt_1" , true);
 SetEntityActive("slime_anim_wall_1" , true);
 }
 
 Another problem, i am trying to spawn a Slime, but Did i put something wrong, please help
  . 
 ////////////////////////////// Run when entering map
 void OnEnter()
 {
 AddUseItemCallback("", "prisonkey_1", "mansion_3", "UsedKeyOnDoor", true);
 }
 
 void UsedKeyOnDoor(string &in asItem, string &in asEntity)
 {
 SetSwingDoorLocked("mansion_3", false, true);
 PlaySoundAtEntity("", "unlock_door", "mansion_3", 0, false);
 RemoveItem("prisonkey_1");
 }
 
 ////////////////////////////
 // Run when leaving map
 void OnLeave()
 {
 }
 
 void OnStart()
 {
 AddEntityCollideCallback("Player" , "ScriptArea_1" , "MonsterFunc1" , true , 1);
 AddEntityCollideCallback("Player" , "ScriptArea_2" , "Collide_Area" , true , 1);
 }
 
 void MonsterFunc1(string &in asParent , string &in asChild , int alState)
 {
 SetEntityActive("servant_grunt_1" , true);
 }
 
 void Collide_Area(string &in asParent , string &in asChild , int alState)
 {
 SetEntityActive("slime_anim_wall_1" , true);
 }
think about it. how can the game know that the void MonsterFunc1 needs to active a grunt? because u'll say it has 2things, grunt and slime_wall. First be detailerd about the script, that will help a bit, though
  
 One World To Another [DEMO] coming soon. |  |  
	| 03-03-2011, 08:35 AM |  |  
	
		| Zuul   Junior Member
 
 Posts: 5
 Threads: 1
 Joined: Feb 2011
 Reputation: 
0
 | 
			| RE: Error when testing my map 
 
				 (02-28-2011, 10:26 AM)Raymond Wrote:   (02-28-2011, 10:23 AM)XxItachi09xX Wrote:  hey can you please tell me how to find those certain script? find the "i need certain script" tread ?
 
 Anyways
 
 <LANGUAGE>
 <CATEGORY Name="CustomStoryMain">
 <Entry Name="Description">Escape the castle!</Entry>
 </CATEGORY>
 <CATEGORY Name="Inventory">
 <Entry Name="ItemName_PrisonKey">Prison Key</Entry>
 <Entry Name="ItemDesc_PrisonKey">Key to unlock the 1st padlock from the door with 2 padlocks.</Entry>
 <Entry Name="ItemName_PrivateRoomKey">Private Room Key</Entry>
 <Entry Name="ItemDesc_PrivateRoomKey">Key to unlock the door to the Private Room.</Entry>
 </CATEGORY>
 <CATEGORY Name="Journal">
 <Entry Name="Note_Hotel01_Name">Hotel Room</Entry>
 <Entry Name="Note_Hotel01_Text">Test</Entry>
 </CATEGORY>
 </LANGUAGE>
 
 My description doesn't have words again, please help
  . Wait, i fixed it.
 
How? I'm dealing with pretty much the same problem.
 <LANGUAGE><RESOURCES>
 </RESOURCES>
 <CATEGORY Name="CustomStoryMain">
 <Entry Name="Description">Filler description[br][br]etc.</Entry>
 </CATEGORY>
 <CATEGORY Name="Journal">
 <Entry Name="Note_RejectionLetter_Name">Rejection Letter</Entry>
 <Entry Name="Note_RejectionLetter_Text">Lots and lots of text[br][br]Some more text[br][br]Even more text, would ya look at that.[br][br]These lines actually have proper text in the map[br][br]Text. Moar text.[br][br]Blahblah[br][br][br]asdfghj[br]I just removed it from the copy-pasted contents of the extra_english.lang[br]The description works fine.[br]sdfsdfsdfg</Entry>
 </CATEGORY>
 </LANGUAGE>
^ Wont appear in-game.
			 |  |  
	| 03-03-2011, 10:38 AM |  |  
	
		| Raymond   Member
 
 Posts: 126
 Threads: 24
 Joined: Feb 2011
 Reputation: 
0
 | 
			| RE: Error when testing my map 
 
				//////////////////////////// 
// Run when entering map 
void OnEnter() 
{ 
AddUseItemCallback("", "prisonkeylight_1", "mansion_3", "UsedKeyOnDoor1", true) 
AddUseItemCallback("", "prisonkeydark_1", "mansion_3", "UsedKeyOnDoor2", true) 
}
 
void UsedKeyOnDoor1(string &in asItem, string &in asEntity) 
{ 
SetSwingDoorLocked("mansion_3", false, true); 
PlaySoundAtEntity("", "unlock_door", "mansion_3", 0, false); 
RemoveItem("prisonkeylight_1"); 
}
 
void UsedKeyOnDoor2(string &in asItem, string &in asEntity) 
{ 
SetSwingDoorLocked("mansion_3", false, true); 
PlaySoundAtEntity("", "unlock_door", "mansion_3", 0, false); 
RemoveItem("prisonkeydark_1"); 
}
 
//////////////////////////// 
// Run when leaving map 
void OnLeave() 
{ 
}
 
void OnStart() 
{ 
  AddEntityCollideCallback("Player" , "ScriptArea_1" , "MonsterFunc1" , true , 1); 
  AddEntityCollideCallback("Player" , "ScriptArea_2" , "Collide_Area1" , true , 1); 
 AddEntityCollideCallback("Player", "AreaPlayerTeleport", "CollidePlayerTeleport", true, 1); 
}
 
void MonsterFunc1(string &in asParent , string &in asChild , int alState) 
{ 
  SetEntityActive("servant_grunt_1" , true); 
  AddDebugMessage("You better hide!", false); 
}
 
void Collide_Area1(string &in asParent , string &in asChild , int alState) 
{ 
  SetEntityActive("slime_anim_wall_1" , true); 
}
 
void CollidePlayerTeleport(string &in asParent, string &in asChild, int alState) 
{ 
   TeleportPlayer("PlayerStartArea_2"); 
   FadeOut(0); 
   FadeIn(20); 
   AddDebugMessage("Welcome To the Prison World!", false); 
}
 
Problem again   , i got another problem, please help again. 
The error says: "Could not load script file "custom_stories/One World To Another/maps/One World To Another.hps" main (6,1) ERR :Expected ";""
			
 One World To Another [DEMO] coming soon. 
				
(This post was last modified: 03-05-2011, 08:43 AM by Raymond.)
 |  |  
	| 03-05-2011, 08:40 AM |  |  
	
		| Oscar House   Senior Member
 
 Posts: 302
 Threads: 3
 Joined: Nov 2010
 Reputation: 
9
 | 
			| RE: Error when testing my map 
 
				AddUseItemCallback("", "prisonkeylight_1", "mansion_3", "UsedKeyOnDoor1", true);AddUseItemCallback("", "prisonkeydark_1", "mansion_3", "UsedKeyOnDoor2", true);
 Always remember to check your syntax, you missed the semicolons [;]
 
 
				
(This post was last modified: 03-05-2011, 08:57 AM by Oscar House.)
 |  |  
	| 03-05-2011, 08:57 AM |  |  |