Frictional Games Forum (read-only)
Weird Fatal Error? - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Weird Fatal Error? (/thread-29848.html)



Weird Fatal Error? - dailycreepypasta - 04-23-2015

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:
//////////////////////////////////////////////////////////////////////////////////////    
//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.


RE: Weird Fatal Error? - Mudbill - 04-23-2015

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.


RE: Weird Fatal Error? - Neelke - 04-23-2015

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.


RE: Weird Fatal Error? - Mudbill - 04-23-2015

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.