Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Blobby 101 on Sun 10/10/2010 11:58:55

Title: AGS returns "Runtime Error: Unexpected eof" when testing my game [SOLVED]
Post by: Blobby 101 on Sun 10/10/2010 11:58:55
When trying to test my Red Dwarf game recently the error in the tile came up. I tried to fix it but the line number it reports is -10, Now, I don't have any code on line -10 :P

I've had a good look through this room script but can't find why this would be happening.

Here's my room script: // room script file

function hHotspot1_Interact()
{
cKryten.ChangeRoom(5, 460, 397);
}

function hHotspot2_Look()
{
cKryten.Say("These are the ship's Artificial Reality headsets.");
}

function hHotspot2_Interact()
{
cKryten.Say("I don't need to use the AR suite at the moment.");
}

function hHotspot3_Look()
{
cKryten.Say("It's a broken AR headset.");
cKryten.Say("This one blew up when Lister tried downloading a pirated copy of 'GELF Girls Interactive' onto the system.");
}

function hHotspot3_Interact()
{
if(goggleused == 0){
 cKryten.Say("I'll see if there are any components I can salvage.");
 cKryten.AddInventory(ivischip);
 cKryten.AddInventory(irecmodule);
 goggleused = 1;
 cKryten.Say("I managed to remove the visulisation chip and the I/O module.");
}
else{
 cKryten.Say("There's nothing else useable in there.");
}
}

function hHotspot1_Look()
{
 cKryten.Say("That's the door to the main coridoor"");
}

function hHotspot1_Talk()
{
 cKryten.Say("That's not going to work.");
}

function hHotspot1_UseInv()
{
 cKryten.Say("That's not going to work.");
}

function hHotspot2_Talk()
{
 cKryten.Say("That's not going to work.");
}

function hHotspot2_UseInv()
{
 cKryten.Say("That's not going to work.");
}

function hHotspot3_Talk()
{
 cKryten.Say("That's not going to work.");
}

function hHotspot3_UseInv()
{
 cKryten.Say("I don't want to break them, the AR suite hasn't been under warranty for about 2.5 million years!");
}


Any suggestions?
Title: Re: AGS returns "Runtime Error: Unexpected eof" when testing my game.
Post by: GarageGothic on Sun 10/10/2010 12:12:54
Quotefunction hHotspot1_Look()
{
  cKryten.Say("That's the door to the main coridoor""); // <--- double quotation marks
}


(also "corridor" is misspelled, but not the source of the error :))
Title: Re: AGS returns "Runtime Error: Unexpected eof" when testing my game.
Post by: Blobby 101 on Sun 10/10/2010 12:17:13
ahh! <facepalms> How did I miss that?!

Thanks a lot GarageGothic :D