Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Bizarretimes on Tue 28/01/2025 21:09:35

Title: Unexpected End of File on a line that doesn't exist
Post by: Bizarretimes on Tue 28/01/2025 21:09:35
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?

Title: Re: Unexpected End of File on a line that doesn't exist
Post by: Khris on Tue 28/01/2025 21:26:33
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
Title: Re: Unexpected End of File on a line that doesn't exist
Post by: Bizarretimes on Tue 28/01/2025 22:23:20
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.