Demo Quest 3-1 error (SOLVED)

Started by BiggerJ, Tue 22/04/2008 10:58:37

Previous topic - Next topic

BiggerJ

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:

Code: ags
	writeprotected int X;				// Player position in new room 


And here's the lines around it:

Code: ags
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);
};

Gilbert

From this post:

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.


nuba

Thanks for the solution, please update the release with this fix (and make sure bump the release number too) at your earliest convenience! Regards,

SMF spam blocked by CleanTalk