Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: BiggerJ on Tue 22/04/2008 10:58:37

Title: Demo Quest 3-1 error (SOLVED)
Post by: BiggerJ on Tue 22/04/2008 10:58:37
I just downloaded AGS 3.0.1 and tried running Demo Quest 3-1, but it gave me an error.

In the Message column:
Error (line 377): '-' is already defined

In the File column:
GlobalScript.ash

In the Line column:
377

Here's that line of code:

writeprotected int X; // Player position in new room

And here's the lines around it:

struct AgsTerminal {
   // Public members
writeprotected int DoorSpr; // Sprite to display behind door
writeprotected int CrackSpr; // Sprite to display in wall gap
writeprotected int Exists; // True if room actually exists
writeprotected int X; // Player position in new room
writeprotected int Y;
import function Set(int DoorSpr, int CrackSpr, int X, int Y, int Exists=true);
};
Title: Re: Demo Quest 3-1 error
Post by: Gilbert on Tue 22/04/2008 11:01:10
From this post (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=34300.msg448205#msg448205):

Quote from: Pumaman on Mon 21/04/2008 20:33:49
This is caused by the following lines in the demo game GlobalScript.ash, lines 337-341:
#define X-Terms                         -24000
#define Y-Terms                         -25000
#define Z-Terms                         -26000

If you delete those lines, the game should run fine. I'll get it fixed for the next release.
Title: Re: Demo Quest 3-1 error
Post by: BiggerJ on Tue 22/04/2008 11:05:49
Thanks!
Title: Re: Demo Quest 3-1 error (SOLVED)
Post by: nuba on Wed 11/06/2008 21:48:54
Thanks for the solution, please update the release with this fix (and make sure bump the release number too) at your earliest convenience! Regards,