+- 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: Unexpected End of File (/thread-16740.html)
I'm getting the error message "Unexpected end of file" when I try to run my custom map. I've looked through my code a few times, and I can't find the problem. Any help will be appreciated
void SpawnDoorGrunt(string &in asParent, string &in asChild, int alState)
{
PlayMusic("enabled02.ogg, false, 0.9, 2, 0, true);
Missing the closing " .
Because of mistakes like this, you should set up geany. It helps a lot, and this is how I found your mistake in 10 seconds.
In the callback "SpawnDoorGrunt", the function PlayMusic isn't correct; you forgot to put the sound file in quotations. You just missed 1 little ". Amazing what such a small mistake can do.