Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Strange map glitch !?
LoneWolf Offline
Senior Member

Posts: 308
Threads: 43
Joined: Sep 2010
Reputation: 0
#13
RE: Strange map glitch !?

Nah i dont like showing people unfinished work, but i have no choice so i will show you my scripting so far.

Extra_English.LANG (below)

<LANGUAGE>
  <CATEGORY Name="CustomStoryMain">
    <Entry Name="Description">The House.[br][br] Dont believe your safe. </Entry>
  </CATEGORY>
  <CATEGORY Name="DoorMessage">
    <Entry Name="Entry1">
    </Entry>
  </CATEGORY>
  <CATEGORY Name="Example">
    <Entry Name="Entry1"> Peeyu that smells rotten. Why did no one clean that up.
    </Entry>
  </CATEGORY>
  <CATEGORY Name="Example2">
    <Entry Name="Entry2"> Wawl... this place looks beutiful.
    </Entry>
  </CATEGORY>
  <CATEGORY Name="Example3">
    <Entry Name="Entry3"> Strange, whats all this stuff doing here?
    </Entry>
  </CATEGORY>
  <CATEGORY Name="Example4">
    <Entry Name="Entry4"> Hmm.. looks really cozy in here.
    </Entry>
  </CATEGORY>
  <CATEGORY Name="Example5">
    <Entry Name="Entry5"> Looks like some sort of machinery diagrams.
    </Entry>
  </CATEGORY>
  <CATEGORY Name="Example6">
    <Entry Name="Entry6"> Wawl... this must be the biggest dining room i've ever seen.
    </Entry>
  </CATEGORY>
  <CATEGORY Name="Example7">
    <Entry Name="Entry7"> Uhg! it stinks in here!
    </Entry>
  </CATEGORY>
  <CATEGORY Name="Example8">
    <Entry Name="Entry8"> Yuck! is that supposed to be bread!?
    </Entry>
  </CATEGORY>
  <CATEGORY Name="Example9">
    <Entry Name="Entry9"> Some sort of rotten fruit.
    </Entry>
  </CATEGORY>
  <CATEGORY Name="Example10">
    <Entry Name="Entry10"> Excellent i'm in for a real treat tonight... ketchup soup... mmhhh. (*sarcasm*)
    </Entry>
  </CATEGORY>
  <CATEGORY Name="Example11">
    <Entry Name="Entry11"> Ration!? what on earth is ration. I dont think i want to know.
    </Entry>
  </CATEGORY>
  <CATEGORY Name="Example12">
    <Entry Name="Entry12"> Well i wont be cookign anything on this tonight. (*sighs*)
    </Entry>
  </CATEGORY>
  <CATEGORY Name="Example13">
    <Entry Name="Entry13"> There smashed. I wonder why.
    </Entry>
  </CATEGORY>
  <CATEGORY Name="Example14">
    <Entry Name="Entry14"> Its locked, i wonder whats down there.
    </Entry>
  </CATEGORY>
  <CATEGORY Name="Example15">
    <Entry Name="Entry15"> What was that?
    </Entry>
  </CATEGORY>
  </CATEGORY>
  <CATEGORY Name="Example17">
    <Entry Name="Entry17"> The bottle must have fell. But how?
    </Entry>
  </CATEGORY>
  <CATEGORY Name="Example18">
    <Entry Name="Entry18"> Wow... now thats a bed!
    </Entry>
  </CATEGORY>
  <CATEGORY Name="Example19">
    <Entry Name="Entry19"> Ewh... im definetaly not sleeping on that.
    </Entry>
  </CATEGORY>
  <CATEGORY Name="Example20">
    <Entry Name="Entry20"> A type writer. Looks like its in good condition too.
    </Entry>
  </CATEGORY>
  <CATEGORY Name="Example21">
    <Entry Name="Entry21"> Hmm... the door seems to be locked and boarded up. That cant be good.
    </Entry>
  </CATEGORY>
  <CATEGORY Name="Example22">
    <Entry Name="Entry22"> I'm best going to sleep soon after i look around.
    </Entry>
  </CATEGORY>
  <CATEGORY Name="Example23">
    <Entry Name="Entry23"> What... was... that.
    </Entry>
  </CATEGORY>
</LANGUAGE>



The House.hps (below)

////////////////////////////
// Run first time starting map
void OnStart()
{
AddEntityCollideCallback("Player", "RoomTwoArea", "CollideRoomTwo", true, 1);
AddEntityCollideCallback("Player", "playsound", "PlaySound", true, 0);
AddEntityCollideCallback("Player", "Example", "CollideRoomThree", true, 1);
AddEntityCollideCallback("Player", "Example2", "CollideRoomFour", true, 1);
AddEntityCollideCallback("Player", "Example3", "CollideRoomFive", true, 1);
AddEntityCollideCallback("Player", "Example4", "CollideRoomFive1", true, 1);
AddEntityCollideCallback("Player", "Example5", "CollideRoomFive2", true, 1);
AddEntityCollideCallback("Player", "Example6", "CollideRoomFive3", true, 1);
AddEntityCollideCallback("Player", "Example7", "CollideRoomFive4", true, 1);
AddEntityCollideCallback("Player", "Example8", "CollideRoomFive5", true, 1);
AddEntityCollideCallback("Player", "Example9", "CollideRoomFive6", true, 1);
AddEntityCollideCallback("Player", "Example10", "CollideRoomFive7", true, 1);
AddEntityCollideCallback("Player", "Example11", "CollideRoomFive8", true, 1);
AddEntityCollideCallback("Player", "Example12", "CollideRoomFive9", true, 1);
AddEntityCollideCallback("Player", "Example13", "CollideRoomFive10", true, 1);
AddEntityCollideCallback("Player", "Example14", "CollideRoomFive11", true, 1);
AddEntityCollideCallback("Player", "playsound", "PlaySound", true, 0);
AddEntityCollideCallback("Player", "Example15", "CollideRoomFive12", true, 1);
AddEntityCollideCallback("Player", "Example17", "CollideRoomFive13", true, 1);
AddEntityCollideCallback("Player", "Example18", "CollideRoomFive14", true, 1);
AddEntityCollideCallback("Player", "Example19", "CollideRoomFive15", true, 1);
AddEntityCollideCallback("Player", "Example20", "CollideRoomFive16", true, 1);
AddEntityCollideCallback("Player", "Example21", "CollideRoomFive17", true, 1);
AddEntityCollideCallback("Player", "Example22", "CollideRoomFive18", true, 1);
AddEntityCollideCallback("Player", "Example23", "CollideRoomFive19", true, 1);
}
void CollideRoomTwo(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("mansion_3", true, true);
GiveSanityDamage(15, true);
}
void CollideRoomThree(string &in asParent, string &in asChild, int alState)
{
SetMessage("Example", "Entry1", 7);
}
void CollideRoomFour(string &in asParent, string &in asChild, int alState)
{
SetMessage("Example2", "Entry2", 7);
}
void CollideRoomFive(string &in asParent, string &in asChild, int alState)
{
SetMessage("Example3", "Entry3", 5);
}
void CollideRoomFive1(string &in asParent, string &in asChild, int alState)
{
SetMessage("Example4", "Entry4", 5);
}
void CollideRoomFive2(string &in asParent, string &in asChild, int alState)
{
SetMessage("Example5", "Entry5", 5);
}
void CollideRoomFive3(string &in asParent, string &in asChild, int alState)
{
SetMessage("Example6", "Entry6", 5);
}
void CollideRoomFive4(string &in asParent, string &in asChild, int alState)
{
SetMessage("Example7", "Entry7", 5);
}
void CollideRoomFive5(string &in asParent, string &in asChild, int alState)
{
SetMessage("Example8", "Entry8", 5);
}
void CollideRoomFive6(string &in asParent, string &in asChild, int alState)
{
SetMessage("Example9", "Entry9", 5);
}
void CollideRoomFive7(string &in asParent, string &in asChild, int alState)
{
SetMessage("Example10", "Entry10", 5);
}
void CollideRoomFive8(string &in asParent, string &in asChild, int alState)
{
SetMessage("Example11", "Entry11", 5);
}
void CollideRoomFive9(string &in asParent, string &in asChild, int alState)
{
SetMessage("Example12", "Entry12", 5);
}
void CollideRoomFive10(string &in asParent, string &in asChild, int alState)
{
SetMessage("Example13", "Entry13", 5);
}
void CollideRoomFive11(string &in asParent, string &in asChild, int alState)
{
SetMessage("Example14", "Entry14", 5);
}
void CollideRoomFive12(string &in asParent, string &in asChild, int alState)
{
SetMessage("Example15", "Entry15", 5);
}
void CollideRoomFive13(string &in asParent, string &in asChild, int alState)
{
SetMessage("Example17", "Entry17", 5);
}
void CollideRoomFive14(string &in asParent, string &in asChild, int alState)
{
SetMessage("Example18", "Entry18", 5);
}
void CollideRoomFive15(string &in asParent, string &in asChild, int alState)
{
SetMessage("Example19", "Entry19", 5);
}
void CollideRoomFive16(string &in asParent, string &in asChild, int alState)
{
SetMessage("Example20", "Entry20", 5);
}
void CollideRoomFive17(string &in asParent, string &in asChild, int alState)
{
SetMessage("Example21", "Entry21", 5);
}
void CollideRoomFive18(string &in asParent, string &in asChild, int alState)
{
SetMessage("Example22", "Entry22", 5);
}
void CollideRoomFive19(string &in asParent, string &in asChild, int alState)
{
SetMessage("Example23", "Entry23", 5);
}
void PlaySound(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("break_glass_bottle.snt", "break_glass_bottle.snt" , "Player", 0, false);
}
////////////////////////////
// Run when entering map
void OnEnter()
{
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}



Ehm i had an idea, could th eproblems be from having my map name... The House ? because i heard it can cause problems to have a space. Also i am not addign my .cfg file in because its small and simple and if there was a problem with it then my map wouldnt work. But it does and its just the text script files, sound script files work and so does the close door once walking in an area. My map file is at 1MB, i had to delete 100's of trees due to the game not being playable due to lag, i then added in a fog to conpensate that. But something tells me i have too much in my map so the text scripts dont show? Or they do show but i dont see them? (possible because i dont have a sky box yet, so when i look at the sky its pretty weird.)
(This post was last modified: 11-15-2010, 10:52 AM by LoneWolf.)
11-15-2010, 10:49 AM
Find


Messages In This Thread
Strange map glitch !? - by LoneWolf - 11-11-2010, 10:08 PM
RE: Strange map glitch !? - by Gamemakingdude - 11-11-2010, 10:39 PM
RE: Strange map glitch !? - by LoneWolf - 11-11-2010, 10:48 PM
RE: Strange map glitch !? - by Gamemakingdude - 11-11-2010, 10:55 PM
RE: Strange map glitch !? - by LoneWolf - 11-11-2010, 11:13 PM
RE: Strange map glitch !? - by Gamemakingdude - 11-11-2010, 11:16 PM
RE: Strange map glitch !? - by Kyle - 11-12-2010, 03:34 AM
RE: Strange map glitch !? - by LoneWolf - 11-12-2010, 01:20 PM
RE: Strange map glitch !? - by Hooumeri - 11-12-2010, 03:21 PM
RE: Strange map glitch !? - by LoneWolf - 11-12-2010, 04:13 PM
RE: Strange map glitch !? - by LoneWolf - 11-14-2010, 01:36 PM
RE: Strange map glitch !? - by Chilton - 11-14-2010, 01:39 PM
RE: Strange map glitch !? - by LoneWolf - 11-15-2010, 10:49 AM
RE: Strange map glitch !? - by Hooumeri - 11-15-2010, 01:57 PM
RE: Strange map glitch !? - by LoneWolf - 11-15-2010, 02:47 PM
RE: Strange map glitch !? - by house - 11-17-2010, 03:28 AM
RE: Strange map glitch !? - by LoneWolf - 11-18-2010, 06:00 PM



Users browsing this thread: 1 Guest(s)