[SCRIPT] My script doesn't work in my map. - 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: [SCRIPT] My script doesn't work in my map. (/thread-19704.html) |
My script doesn't work in my map. - Aquatric - 12-27-2012 Alright, this is the 2nd post today haha, I am a big newbie LOL. So I've tried in 2 days now to make my script to work, the 00_castle.hps. It still doesn't work. I've tried everything, I made Script Areas in the Level editor named them and everything, I copy and pasted from wiki.. Nothing happends, I can only play on the map just running around opening doors, it's no crash. Here is my script: Quote:void OnStart() Please help, I need help with the Sound and unlocking doors aswell. Both of them doesn't work. Please help! RE: My script doesn't work in my map. - The chaser - 12-27-2012 Code: void OnStart() Ok, fixed some things. Now, delete .map_cache if you have and check the names. Stuff like that is what causes errors. RE: My script doesn't work in my map. - Aquatric - 12-27-2012 Hm, check this picture out, I can't find the map_cache Ok, so I found those: 00_castle.map_cache 00_castle.hps.map_cache or wat it was called, I deleted them both, opening the game and the script still didn't work, then I checked the folder once again, and the 00_castle.map_cache was there again... RE: My script doesn't work in my map. - TheGreatCthulhu - 12-28-2012 Are there any parts of the script that do work? (Like, does the introvoice play when you start the map?) Are you maybe loading the map from a saved position? That can cause some problems for WIP map. You could add an AddDebugMessage() call to the beginning of each function (and maybe in other interesting places), to see what get's called and what doesn't, so that you can have at least some clue about where the problem could be. Like this: AddDebugMessage("Inside: <funct_name_here>", false); RE: My script doesn't work in my map. - Aquatric - 12-28-2012 Hey guys! I found out yesterday that I used wrong HPS file at my map LOL what a big mistake. I've been saving the HPS script at the desktop.. Not in the Custom Story folder LOL DDD So it works now, but the Introvoice is looping all the time :/ and key unlock door doesn't even work either. RE: My script doesn't work in my map. - i3670 - 12-28-2012 Make sure that the key and door has the corresponding name. As for the sound, check the snt file. Loop should be false. |