MovePlayerforward Function not recognized - 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: MovePlayerforward Function not recognized (/thread-26938.html) |
MovePlayerforward Function not recognized - DanielRand47 - 10-24-2014 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 RE: MovePlayerforward Function not recognized - Mudbill - 10-24-2014 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. RE: MovePlayerforward Function not recognized - Romulator - 10-24-2014 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. RE: MovePlayerforward Function not recognized - DanielRand47 - 10-24-2014 (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"); } RE: MovePlayerforward Function not recognized - Datguy5 - 10-24-2014 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"); RE: MovePlayerforward Function not recognized - DanielRand47 - 10-24-2014 (10-24-2014, 05:54 PM)Datguy5 Wrote: void OnStart() 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. RE: MovePlayerforward Function not recognized - Mudbill - 10-25-2014 Are you able to play the Justine expansion though? RE: MovePlayerforward Function not recognized - Daemian - 10-25-2014 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. RE: MovePlayerforward Function not recognized - DanielRand47 - 10-29-2014 (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! RE: MovePlayerforward Function not recognized - Romulator - 10-29-2014 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 |