![]() |
Hollow needle - 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: Hollow needle (/thread-19461.html) Pages:
1
2
|
RE: Hollow needle - Storfigge - 12-07-2012 (12-07-2012, 03:33 AM)TheGreatCthulhu Wrote: Are you sure about the names? You can use the Print() or the AddDebugMessage() function to check if the script is loaded at all (just call it from OnEnter()). For the first one, you'll have to check the log file, so make it print something distinctive, like:I'm not sure i quite understand what you mean with the debug thing :S. But I have quick reloaded the map and i have never loaded a saved file on this CS. I have about 6 other maps in this CS that works perfectly fine. I'm not sure if this matter but the map was made on another PC. Maybe it's protected or something... It loads everything i write in the .lang file but not the .hps file. RE: Hollow needle - The chaser - 12-07-2012 Check the name of the .hps file. Or if it's hps. It happened me once that the script wasn't an .hps, it was a .hpd. RE: Hollow needle - Storfigge - 12-07-2012 (12-07-2012, 10:26 AM)The chaser Wrote: Check the name of the .hps file. Or if it's hps. It happened me once that the script wasn't an .hps, it was a .hpd.I've checked the name multiple times, I even remade the .hps file and it still wont work. RE: Hollow needle - FlawlessHappiness - 12-07-2012 Whats the name of the hps file? RE: Hollow needle - Storfigge - 12-07-2012 (12-07-2012, 10:51 AM)beecake Wrote: Whats the name of the hps file?the files are dungeon.map and dungeon.hps RE: Hollow needle - TheGreatCthulhu - 12-07-2012 (12-07-2012, 10:21 AM)Storfigge Wrote: I'm not sure i quite understand what you mean with the debug thing :S. But I have quick reloaded the map and i have never loaded a saved file on this CS. I have about 6 other maps in this CS that works perfectly fine. I'm not sure if this matter but the map was made on another PC. Maybe it's protected or something... It loads everything i write in the .lang file but not the .hps file. It shouldn't matter; heck, the whole Amnesia game itself was made on another PC. The AddDebugMessage() function displays custom info messages in the lower left part of the screen, so you can use it to check if the script is getting loaded and also to check what is going on during execution. Just make sure that the option "Show debug messages" is checked in the Debug menu (F1). Then you can try something like this: Code: void OnStart() If the script was loaded, the output should show: INSIDE OnStart() INSIDE OnEnter() And then when you interact with the needle: INSIDE UsedNeedleOnPdoor() That said, I just noticed something. In your original post, it says: void Onstart() Is this a forum typo, or is this how it is in the actual script file? If so, then it's an error, since the script language is case-sensitive. It has to be: void OnStart() Otherwise, the function never get's called, and the callback is never assigned. RE: Hollow needle - The chaser - 12-07-2012 How could I miss that? Is void OnStart(), not void Onstart(). This thread is just a big LOL. RE: Hollow needle - Storfigge - 12-08-2012 (12-07-2012, 03:38 PM)The chaser Wrote: How could I miss that? Is void OnStart(), not void Onstart(). This thread is just a big LOL.Oh wow ![]() ![]() |