Bit of an issue with my script - 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: Bit of an issue with my script (/thread-13629.html) |
Bit of an issue with my script - A Tricky Carnie - 02-27-2012 There seems to be a problem with my script that when I enter the map it gives me this error: Quote: (1,1): ERR: No matching signatures to 'OnGameStart()' main (29,2): ERR : Unexpected end of file Now I've never seen the 'OnGameStart(),' so I replaced my 'OnStart()' line to 'OnGameStart().' So now my script looks like this: Quote:////////////////////////////However I'm still getting the same error and I have no idea what to do. If anyone knows what to do the help would be appreciated. Also I did do a search on "OnGameStart()' on the wiki and didn't find anything but like I said, if anyone could point me in the right direction it'd be appreciated. RE: Bit of an issue with my script - SilentStriker - 02-27-2012 Try OnStart() and then make a void OnEnter() and OnLeave Try if it works when you have all those 3 RE: Bit of an issue with my script - A Tricky Carnie - 02-27-2012 (02-27-2012, 06:30 PM)SilentStriker Wrote: Try OnStart()nope I get the same error. RE: Bit of an issue with my script - Obliviator27 - 02-27-2012 Try setting up a global.hps in your custom story folder (The one where the maps folder is) and in it, put void OnGameStart() { } RE: Bit of an issue with my script - A Tricky Carnie - 02-27-2012 (02-27-2012, 06:57 PM)Obliviator27 Wrote: Try setting up a global.hps in your custom story folder (The one where the maps folder is) and in it, putThat didn't seem to work. Just to make sure, the global.hps should be in amnesia the dark descent\custom_stories\[name of custom story] RE: Bit of an issue with my script - Obliviator27 - 02-27-2012 Yes, that's where it's supposed to go. Assuming you're still getting the same error, try just putting void OnGameStart() { } into your .hps. Leave the code block empty, and put everything else in your OnStart function. If the error still appears, then I'm out of ideas. RE: Bit of an issue with my script - A Tricky Carnie - 02-27-2012 I found the issue, it seems that I was so focused on the 'OnGameStart()' because I've never seen that before, that I completely missed the fact that my void OnLeave command was missing a closing curly bracket underneath it. I feel dumb. But thanks for the help. RE: Bit of an issue with my script - Obliviator27 - 02-27-2012 Don't feel dumb. Nobody else caught it. ^^ |