Frictional Games Forum (read-only)

Full Version: MovePlayerforward Function not recognized
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey everyone. I am having a problem with the MovePlayerForward function that is enabled with the Justine patch. I am getting a run time error saying that it is not recognized. Any ideas as to the issue? (I do have the patch already installed)

Thanks,
Daniel47
I can only assume the patch wasn't actually properly installed. From where did you get the game? If it was Steam, this wouldn't make sense, but I get the feeling it isn't.
Are you also able to post your code? You may have actually encountered a syntax error on that or another line in the hps file.
(10-24-2014, 07:02 AM)Mudbill Wrote: [ -> ]I can only assume the patch wasn't actually properly installed. From where did you get the game? If it was Steam, this wouldn't make sense, but I get the feeling it isn't.

I have a hard copy of the game. Justine patch was downloaded from this forum.

(10-24-2014, 08:33 AM)Romulator Wrote: [ -> ]Are you also able to post your code? You may have actually encountered a syntax error on that or another line in the hps file.

Here is a sample of the code I am testing with the function. I am looking around for a solution, but no luck so far. I am convinced that it is not installed properly. If so, there are no descriptions on how to properly install the patch.
void OnStart()
{
AddTimer("TimerTest", 2.0f, "Test"); //Testing only
}
void Test(string &in asTimer) //Testing only
{
MovePlayerForward(0.5f);
AddTimer(asTimer, 2.0f, "Test");
}
void OnStart()
{
AddTimer("TimerTest", 2.0f, "Test"); //Testing only
}
void Test(string &in asTimer) //Testing only
{
MovePlayerForward(0.5f);
AddTimer(asTimer, 2.0f, "Test");
}


I think the second AddTimer is wrong.
AddTimer(asTimer, 2.0f, "Test");
instead of putting asTimer there, put "" so its AddTimer("", 2.0f, "Test");
(10-24-2014, 05:54 PM)Datguy5 Wrote: [ -> ]void OnStart()
{
AddTimer("TimerTest", 2.0f, "Test"); //Testing only
}
void Test(string &in asTimer) //Testing only
{
MovePlayerForward(0.5f);
AddTimer(asTimer, 2.0f, "Test");
}


I think the second AddTimer is wrong.
AddTimer(asTimer, 2.0f, "Test");
instead of putting asTimer there, put "" so its AddTimer("", 2.0f, "Test");

I tried your solution, and I am still getting the following error: No matching signature 'MovePlayerForward(const float)'. I have uninstalled and re installed the update as well.
Are you able to play the Justine expansion though?
It seems you're not installing the Justine patch correctly, that error should stop.
Are you sure you're doing it right?

Get the patch from here, and put it in your game directory before you install it.

If you have several versions of Amnesia installed, make sure you're testing your mod in the same place you installed the patch.
(10-25-2014, 01:49 AM)Mudbill Wrote: [ -> ]Are you able to play the Justine expansion though?

I am not able to play Justine, however now I am only concerned with being able to access the new entities. I can work around the MovePlayerForward function.

Thanks for the given advice!
The only problem is that the MovePlayerForward function requires the 1.2 version of Amnesia (that is, the Justine expansion). While you may only need the new entities, which can be acquired otherwise, the MovePlayerForward function is only able to be read by Amnesia's 1.2 version (or above).

This was just a For Your Information post, you can work around it, as you said. I won't stop you and I wish you luck on your project Smile