![]() |
Unexplainable 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) +--- Thread: Unexplainable Error! (/thread-53235.html) Pages:
1
2
|
Unexplainable Error! - Verkehr - 11-14-2016 I keep having the following error: FATAL ERROR: Could not load script file 'custom_stories/betrayal/maps/Map1.hps'! main (75, 2) : ERR : Unexpected end of file and I use the following script(this is the entire script used, the end is associated with the error, so the OnLeave): PHP Code: //////////////////////////// What did I do wrong? Whoever explains it from Romulator or Mudbill (they usually explain it ![]() RE: Unexplainable Error! - Mudbill - 11-14-2016 PHP Code: void Load1Enter(string &in asParent, string &in asChild, int alState) Missing semicolon. RE: Unexplainable Error! - Verkehr - 11-14-2016 (11-14-2016, 10:18 PM)Mudbill Wrote: Thanks for that, but I still experience the same problem! It's probably because you can't use "if" statements in OnLeave properly, I will try to make it using Interact Callbacks. However, that's gonna wait for tomorrow, I gtg sleep. ![]() EDIT: Man I'm busy, I'll do it eventually. ![]() RE: Unexplainable Error! - Verkehr - 11-16-2016 How do I make different pictures for each door? I can't think of a solution, but the "if" statements don't work apparently. :/ RE: Unexplainable Error! - Mudbill - 11-16-2016 Different pictures? What do you mean? Loading screens? RE: Unexplainable Error! - Verkehr - 11-16-2016 (11-16-2016, 05:57 PM)Mudbill Wrote: Different pictures? What do you mean? Loading screens? Oh my god I JUST realized the mistake! :D PHP Code: void note_room_1_1(string &in asEntity) Just now how do I make the picture load? I use this directory: C:\Program Files (x86)\Steam\steamapps\common\Amnesia The Dark Descent\custom_stories\betrayal\textures\loading\map_2_edited.png How do I make it load? It doesn't load that, and so neither the lang I use! :/ Until that part, everything works just as it should, which is good! RE: Unexplainable Error! - Verkehr - 11-16-2016 (11-16-2016, 05:57 PM)Mudbill Wrote: Different pictures? What do you mean? Loading screens? And yes, I do. RE: Unexplainable Error! - Mudbill - 11-17-2016 Add a debug message in your if statement to see that it actually runs. RE: Unexplainable Error! - Verkehr - 11-17-2016 OK, but if it doesn't, can you tell me the best option I have? I use right now areas for it. Nope, didn't work. :/ RE: Unexplainable Error! - FlawlessHappiness - 11-17-2016 Is it possible that OnEnter() doesn't trigger if this is the map the player spawns in? If so, then the "Load1Enter" starts at 0, causing the if-statement not to trigger. Another thing: Is it on purpose that you used AddGlobalVarInt and not SetGlobalVarInt? If the player enters the level 2 times "Load1Enter" will then be 2 and the if-statement won't trigger anymore. |