Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 2 Votes - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
.hps URGENT HELP
Author Message
JackoIsDeath Offline
Member

Posts: 171
Joined: Jun 2011
Reputation: 0
Post: #1
.hps URGENT HELP
Guys, I really need help.

If I don't get this done there will be no custom story coming from me ):

I have three levels in the demo.
-The starting map will not use it's .hps even though they are have the same name
-The 2nd map uses it's .hps correctly
-The final map will not use it's .hps even the map and the .hps have the same name.

They all have scripting on them. They all have vital scripting on them. I NEED THIS TO WORK Angry

First map .hps
////////////////////////////
//Run when entering map
void OnStart()
{
AddEntityCollideCallBack("Player", "deathroominsanity", "CollideInsanity", true, 1);
}

void CollideInsanity(string &in asParent, string &in asChild, int alState)
{
GiveSanityDamage(20, true);
}

////////////////////////////
//Run when entering map
void OnEnter()

{
SetPlayerLampOil(20);
SetPlayerSanity(50);
}

////////////////////////////
//Run when leaving map
void OnLeave()

{
SetupLoadScreen("LoadingText", "CastleBase", 1, "");
}

The second:
////////////////////////
//Run when starting map
void OnStart()

{
    AddUseItemCallback("", "bigroomdoorkey_01", "bigroomdoor_01", "UsedKeyOnDoor", true);
    SetMessage ("M", "v1", 0);
    AddEntityCollideCallback("Player", "Shocked", "CollideShocked", true, 1);
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
  SetSwingDoorLocked("bigroomdoor_01", false, true);
    PlaySoundAtEntity("","react_scare.snt", "Player", 0, false);
    PlaySoundAtEntity("","unlock_door","binladen_2", 0, false);
    RemoveItem("bigroomdoorkey_01");
    SetEntityActive("binladen_2", true);
    ShowEnemyPlayerPosition("binladen_2");
    GiveSanityDamage(20, true);
}

void CollideShocked(string &in asParent, string &in asChild, int alState)
{
    SetMessage ("M", "v2", 0);
}

////////////////////////
//Run when entering map
void OnEnter()
{
}

//////////////////////
//Run when leaving map
void OnLeave()

{
    SetupLoadScreen("LoadingText", "MansionBaseDemo", 1, "Amnesia.jpg");
}

And finally, the third
////////////////////////
//Run when entering map
void OnStart()
{
}

////////////////////////////
//Run when entering map
void OnEnter()
{
}

////////////////////////////
//Run when leaving map
void OnLeave()
{

StartCredits("29_amb_loop.snt", true, "Ending", "MainCredits", 1);

}

Do I need to add debugging scripts? Maybe that's why the .hps files don't activate? Or is everything being strange?

This is really getting on my case Angry

Please, please help!!

(This post was last modified: 07-27-2011 05:17 PM by JackoIsDeath.)
07-27-2011 05:17 PM
Find all posts by this user Quote this message in a reply
Kyle Offline
Posting Freak

Posts: 910
Joined: Sep 2010
Reputation: 7
Post: #2
RE: .hps URGENT HELP
You don't need debugging script, I know fully they are not needed.

So what is the problem? Error report? Or just not working in-game?

07-27-2011 05:22 PM
Find all posts by this user Quote this message in a reply
JackoIsDeath Offline
Member

Posts: 171
Joined: Jun 2011
Reputation: 0
Post: #3
RE: .hps URGENT HELP
(07-27-2011 05:22 PM)Kyle Wrote:  You don't need debugging script, I know fully they are not needed.

So what is the problem? Error report? Or just not working in-game?

Not working at all. No error pop-ups. Nothing.

07-27-2011 05:23 PM
Find all posts by this user Quote this message in a reply
Khyrpa Offline
Senior Member

Posts: 615
Joined: Apr 2011
Reputation: 24
Post: #4
RE: .hps URGENT HELP
Assume you've tried checking if the script files work by for example putting FadeOut(0);
inside OnStart?

Also try and change the whole folder and rename every file?

07-27-2011 05:26 PM
Find all posts by this user Quote this message in a reply
JackoIsDeath Offline
Member

Posts: 171
Joined: Jun 2011
Reputation: 0
Post: #5
RE: .hps URGENT HELP
(07-27-2011 05:26 PM)Khyrpa Wrote:  Assume you've tried checking if the script files work by for example putting FadeOut(0);
inside OnStart?

Also try and change the whole folder and rename every file?

Renamed them before. Nothing.

What is the FadeOut script do? Confused

07-27-2011 05:28 PM
Find all posts by this user Quote this message in a reply
Kyle Offline
Posting Freak

Posts: 910
Joined: Sep 2010
Reputation: 7
Post: #6
RE: .hps URGENT HELP
(07-27-2011 05:28 PM)Lolnesia09 Wrote:  
(07-27-2011 05:26 PM)Khyrpa Wrote:  Assume you've tried checking if the script files work by for example putting FadeOut(0);
inside OnStart?

Also try and change the whole folder and rename every file?

Renamed them before. Nothing.

What is the FadeOut script do? Confused

Fades the screen to black. ^^

07-27-2011 05:29 PM
Find all posts by this user Quote this message in a reply
Khyrpa Offline
Senior Member

Posts: 615
Joined: Apr 2011
Reputation: 24
Post: #7
RE: .hps URGENT HELP
just thought it'd be an fast and easy way to check if the actual file works but the script inside doesn't...

07-27-2011 05:30 PM
Find all posts by this user Quote this message in a reply
JackoIsDeath Offline
Member

Posts: 171
Joined: Jun 2011
Reputation: 0
Post: #8
RE: .hps URGENT HELP
(07-27-2011 05:29 PM)Kyle Wrote:  
(07-27-2011 05:28 PM)Lolnesia09 Wrote:  
(07-27-2011 05:26 PM)Khyrpa Wrote:  Assume you've tried checking if the script files work by for example putting FadeOut(0);
inside OnStart?

Also try and change the whole folder and rename every file?

Renamed them before. Nothing.

What is the FadeOut script do? Confused

Fades the screen to black. ^^

Okay. I doubt it'll work so, before I try, any more suggestions?

07-27-2011 05:30 PM
Find all posts by this user Quote this message in a reply
Khyrpa Offline
Senior Member

Posts: 615
Joined: Apr 2011
Reputation: 24
Post: #9
RE: .hps URGENT HELP
Take another custom story and replace the files with your ones?

07-27-2011 05:31 PM
Find all posts by this user Quote this message in a reply
JackoIsDeath Offline
Member

Posts: 171
Joined: Jun 2011
Reputation: 0
Post: #10
RE: .hps URGENT HELP
(07-27-2011 05:31 PM)Khyrpa Wrote:  Take another custom story and replace the files with your ones?

I'll give it a go :/ Anything else?
(07-27-2011 05:30 PM)Khyrpa Wrote:  just thought it'd be an fast and easy way to check if the actual file works but the script inside doesn't...

Right the map itself works but the scripts don't

(This post was last modified: 07-27-2011 05:56 PM by JackoIsDeath.)
07-27-2011 05:36 PM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)