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
#11
RE: Strange map glitch !?

help please!?
11-14-2010, 01:36 PM
Find
Chilton Offline
Member

Posts: 138
Threads: 9
Joined: Sep 2010
Reputation: 0
#12
RE: Strange map glitch !?

Thats an unusual issue -- Ah... Hm.
Have you considered uploading the file to see if its just on your end? Im sure some people would be willing to test/fix it for you... I think
11-14-2010, 01:39 PM
Find
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
Hooumeri Offline
Member

Posts: 57
Threads: 11
Joined: Oct 2010
Reputation: 0
#14
RE: Strange map glitch !?

About the space thing.. I can have spaces in my story name (in .cfg file) but not in the folders. For example if my story was "The House", I would call the folder "thehouse"
11-15-2010, 01:57 PM
Find
LoneWolf Offline
Senior Member

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

Tried it... i have noticed that my description for my level wont show up, so it must have something to do with my extra_english.LANG file.

EDIT: OMG, now that i change my file name, the hand for intercating with things no longer shows up, i chnage the name back to normal and it still wont show up... wtf ?
Finally found my problem Big Grin I put down </category> twice near the ending, so it messed up all my lang scripts. Now everythign works as it should, BUT MY HAND WONT SHOW UP !?

The players hand wont show up so i cant open doors or interact with anything. I changed the name of my map from The House to TheHouse. i couldnt open doors or that after i change its name. I now chaneg the name back and i still have the same problem...
(This post was last modified: 11-18-2010, 06:03 PM by LoneWolf.)
11-15-2010, 02:47 PM
Find
house Offline
Member

Posts: 195
Threads: 11
Joined: Oct 2010
Reputation: 1
#16
RE: Strange map glitch !?

HOLY COW! Wow, its very big, I don't know If I'll be able to fix anything. Sad
11-17-2010, 03:28 AM
Find
LoneWolf Offline
Senior Member

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

(11-17-2010, 03:28 AM)house Wrote: HOLY COW! Wow, its very big, I don't know If I'll be able to fix anything. Sad

Anyway to fix the issue? its still messed up. Was hoping for developer support on this one but seems my issue is extremely rare. I just cant interact with anything the hand icon doesnt show up to doors or any objects. Its really weird.My other maps hand works fine and the actual games hand works. Odd.
(This post was last modified: 11-18-2010, 06:04 PM by LoneWolf.)
11-18-2010, 06:00 PM
Find




Users browsing this thread: 2 Guest(s)