[SCRIPT] FRRRRRRRGH FATAL 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) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: [SCRIPT] FRRRRRRRGH FATAL ERROR (/thread-15012.html) |
FRRRRRRRGH FATAL ERROR - Popnotes - 04-22-2012 Alright, so I did some searching and got nowhere. I'm making a custom story and I successfully completed stage 1, but on stage 2, I get this error: ExecuteString(1, 2):ERR :Expected expression value ExecuteString(1, 2):ERR :Expected expression value ExecuteString(1, 2):ERR :Expected expression value ExecuteString(1, 2):ERR :Expected expression value ExecuteString(1, 2):ERR :Expected expression value ExecuteString(1, 2):ERR :Expected expression value ExecuteString(1, 1):ERR :No matching signatures to 'OnLeave()' main(38, 2:ERR :Unexpected end of file - And this is my code: void OnStart() { AddEntityCollideCallback("Player", "StephArea", "StephanoFunc", true, 1); } void StephanoFunc(string &in asParent, string &in asChild, int alState) { StartPlayerLookAt("Stephano", 5, 5, ""); AddTimer("",2.0f,"StephanoAppear"); AddTimer("",2.7f,"Stephanotalk"); Addtimer("",4.0f,"StopLook"); } void StephanoAppear(string &in asTimer) { PlaySoundAtEntity("", "impact_wood_heavy_med.snt", "Stephano", 0, false); SetEntityActive("Stephano", true); SetEntityActive("StephLight1", true); SetEntityActive("StephLight2", true); } void Stephanotalk(string &in asTimer) { PlaySoundAtEntity("", "iamstephano.snt", "Stephano, 0, false); } void StopLook(string &in asTimer) { StopPlayerLookAt(); } void OnEnter() { } void OnLeave() { } - Any ideas as to what's causing this? (If there's already a thread for this, let me know and i'll take this down) RE: FRRRRRRRGH FATAL ERROR - SilentStriker - 04-22-2012 PlaySoundAtEntity("", "iamstephano.snt", "Stephano", 0, false); that's the error, you forgot the " on stephano. It's not any of my business but are you making a pewdiepie map? RE: FRRRRRRRGH FATAL ERROR - DRedshot - 04-22-2012 PlaySoundAtEntity("", "iamstephano.snt", "Stephano, 0, false); you forgot to close the quotation marks, you should use Notepad++, these spelling errors become super rare and it makes it a lot easier to organise your code too. edit: Ninja'd RE: FRRRRRRRGH FATAL ERROR - Popnotes - 04-22-2012 (04-22-2012, 10:15 PM)DRedshot Wrote: PlaySoundAtEntity("", "iamstephano.snt", "Stephano, 0, false);I DO use Notepad++, and I didn't have C++ set as language, FAILURE on my part for that. Now it says Line 11 Char 1: No matching signatures to blahblahstring@&etcetc. Ideas? (04-22-2012, 10:13 PM)SilentStriker Wrote: PlaySoundAtEntity("", "iamstephano.snt", "Stephano", 0, false);Well, the only pewdie-related part will be the stephano and FGSFDSBARRELZ!1!one1! near the end, other than that no, it isn't a pewdiemap. RE: FRRRRRRRGH FATAL ERROR - SilentStriker - 04-22-2012 (04-22-2012, 10:21 PM)Popnotes Wrote:Ok I'm just saying because there is too many PDP maps out there.(04-22-2012, 10:15 PM)DRedshot Wrote: PlaySoundAtEntity("", "iamstephano.snt", "Stephano, 0, false);I DO use Notepad++, and I didn't have C++ set as language, FAILURE on my part for that. Now it says Line 11 Char 1: No matching signatures to blahblahstring@&etcetc. Ideas? RE: FRRRRRRRGH FATAL ERROR - Popnotes - 04-22-2012 (04-22-2012, 10:26 PM)SilentStriker Wrote:Yeah, yeah, I know. I just decided to make a few quick PDP reference insertions in the map to give a friendly nudge to other bros who play it. It isn't going to be LOL PIGGAY LOL BARULZ LOL STEPHANOES LOL MARTIN YAY, that kind of map is just stupid. It is simply... well you can guess what happens in the code, then you (Optionally) pick up stephano and go on with the level. At the very end, a barrel flies at you while it goes BARREL! and that ends it.(04-22-2012, 10:21 PM)Popnotes Wrote:Ok I'm just saying because there is too many PDP maps out there.(04-22-2012, 10:15 PM)DRedshot Wrote: PlaySoundAtEntity("", "iamstephano.snt", "Stephano, 0, false);I DO use Notepad++, and I didn't have C++ set as language, FAILURE on my part for that. Now it says Line 11 Char 1: No matching signatures to blahblahstring@&etcetc. Ideas? RE: FRRRRRRRGH FATAL ERROR - overscore - 04-23-2012 I noticed one of your timers: Addtimer("",4.0f,"StopLook"); T ^ should be capitalized. |