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
MovePlayerforward Function not recognized
DanielRand47 Away
Member

Posts: 109
Threads: 16
Joined: Mar 2012
Reputation: 3
#1
MovePlayerforward Function not recognized

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
10-24-2014, 05:55 AM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#2
RE: MovePlayerforward Function not recognized

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.

10-24-2014, 07:02 AM
Find
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#3
RE: MovePlayerforward Function not recognized

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.

Discord: Romulator#0001
[Image: 3f6f01a904.png]
10-24-2014, 08:33 AM
Find
DanielRand47 Away
Member

Posts: 109
Threads: 16
Joined: Mar 2012
Reputation: 3
#4
RE: MovePlayerforward Function not recognized

(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");
}
(This post was last modified: 10-24-2014, 04:45 PM by DanielRand47.)
10-24-2014, 04:25 PM
Find
Datguy5 Offline
Senior Member

Posts: 629
Threads: 25
Joined: Dec 2011
Reputation: 12
#5
RE: MovePlayerforward Function not recognized

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");

(This post was last modified: 10-24-2014, 05:55 PM by Datguy5.)
10-24-2014, 05:54 PM
Find
DanielRand47 Away
Member

Posts: 109
Threads: 16
Joined: Mar 2012
Reputation: 3
#6
RE: MovePlayerforward Function not recognized

(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.
10-24-2014, 06:57 PM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#7
RE: MovePlayerforward Function not recognized

Are you able to play the Justine expansion though?

10-25-2014, 01:49 AM
Find
Daemian Offline
Posting Freak

Posts: 1,129
Threads: 42
Joined: Dec 2012
Reputation: 49
#8
RE: MovePlayerforward Function not recognized

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:53 AM
Find
DanielRand47 Away
Member

Posts: 109
Threads: 16
Joined: Mar 2012
Reputation: 3
#9
RE: MovePlayerforward Function not recognized

(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!
10-29-2014, 03:46 AM
Find
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#10
RE: MovePlayerforward Function not recognized

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

Discord: Romulator#0001
[Image: 3f6f01a904.png]
(This post was last modified: 10-29-2014, 06:15 AM by Romulator.)
10-29-2014, 06:15 AM
Find




Users browsing this thread: 1 Guest(s)