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


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Weird Fatal Error?
dailycreepypasta Offline
Junior Member

Posts: 32
Threads: 18
Joined: Aug 2014
Reputation: 0
#1
Weird Fatal Error?

I have this weird problem going on. Some people who downloaded my custom story is getting a fatal error that I'm not sure how to fix.

[Image: image.png]

[Image: error.png]

The .hps file is down below (I cut out a bunch of lines to show you what might be causing the crash).

PHP Code: (Select All)
//////////////////////////////////////////////////////////////////////////////////////    
//OnStart
//////////////////////////////////////////////////////////////////////////////////////
void OnStart()
{        
        
AddEntityCollideCallback("Player""Scene_2""Talk"true1);
}

//////////////////////////////////////////////////////////////////////////////////////    
//Opening Lines
//////////////////////////////////////////////////////////////////////////////////////

void Talk(string &in asParentstring &in asChildint alState)
{
    
SetPlayerMoveSpeedMul(0);
    
SetPlayerRunSpeedMul(0);
    
SetPlayerJumpForceMul(0);
    
AddEffectVoice("" ,"johnathan 1.ogg""Dialogue""John1"false""00);
    
AddEffectVoice("" ,"guide1.ogg""Dialogue""Guide1"false""00);
    
AddEffectVoice("" ,"johnathan 2.ogg""Dialogue""John2"false""00);
    
AddEffectVoice("" ,"guide2.ogg""Dialogue""Guide2"false""00);
    
AddEffectVoice("" ,"johnathan 3.ogg""Dialogue""John3"false""00);
    
AddEffectVoice("" ,"guide3.ogg""Dialogue""Guide3"false""00);
    
AddEffectVoice("" ,"johnathan 4.ogg""Dialogue""John4"false""00);
    
SetEffectVoiceOverCallback("Memento");
}

//////////////////////////////////////////////////////////////////////////////////////    
//Mementos
//////////////////////////////////////////////////////////////////////////////////////

void Memento()
{
    
AddQuest("Guide_Hint""Familiar");
    
SetPlayerMoveSpeedMul(1);
    
SetPlayerRunSpeedMul(1);
    
SetPlayerJumpForceMul(1);
    
PlayMusic("Track4.ogg"true211true);


Does anyone have an idea about why this happened? It looks about right to me.

Creator of "The Night I Went Insane".

http://www.moddb.com/mods/the-night-i-went-insane
(This post was last modified: 04-23-2015, 05:43 AM by dailycreepypasta.)
04-23-2015, 05:38 AM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#2
RE: Weird Fatal Error?

Have you made sure that they are using the 1.3 update and not just 1.2? If they don't update, they can't run these new script functions.

04-23-2015, 07:25 AM
Find
Neelke Offline
Senior Member

Posts: 668
Threads: 82
Joined: Apr 2013
Reputation: 26
#3
RE: Weird Fatal Error?

My guess is that you're trying to block the player from jumping? Just set SetPlayerJumpDisabled(false); if so? If you don't use 1.3 then, use this instead.

Derp.
(This post was last modified: 04-23-2015, 11:35 AM by Neelke.)
04-23-2015, 11:34 AM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#4
RE: Weird Fatal Error?

Setting the jump force to 1 resets it. Of course the only reason to do that would be if you altered it before. So either he did set it to 0, effectively disabling it, or use another value to change it. But yes, as you say it's probably used to disable, seeing as it's next to more resettings scripts.

Edit: Nvm, it IS. Only noticed the bottom scripts.

(This post was last modified: 04-23-2015, 07:17 PM by Mudbill.)
04-23-2015, 07:16 PM
Find




Users browsing this thread: 3 Guest(s)