Unexpected End of File on a line that doesn't exist

Started by Bizarretimes, Tue 28/01/2025 21:09:35

Previous topic - Next topic

Bizarretimes

Hi, I've just begun learning how to use AGS and I've ran into an issue with the code on a test room I'm making. I am unable to save this particular room and test it because it keeps giving me an End of File error, but the line it refers to doesn't exist. My room script only goes as far as 67 lines but my output indicates that the EOF error is on line 68. Can anyone help me figure out what's going on?


Khris

That's a very common error meaning you have a " somewhere but no matching close quote. Check your strings and the color of your code lines.

With specific error messages try searching the forums first; here's the first result when I search for "unexpected end of file" in the topic subjects of just the beginner's tech forum:

https://www.adventuregamestudio.co.uk/forums/beginners-technical-questions/unexpected-end-of-file-lucasarts-template/msg636573912/#msg636573912

Bizarretimes

Thank you, I didn't realize that I had missed that and became hung up on the output message. In the future I'll be sure to search the forums if I come across another issue.

SMF spam blocked by CleanTalk