Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Sonja on Sun 01/01/2006 20:51:54

Title: AGS error message
Post by: Sonja on Sun 01/01/2006 20:51:54
Whenever I try to save the game I'm designing, it gives me an error message, and I am unable to save.

(http://www.kisa.ca/ags-error.gif)

I never touched the global script, so I don't know why it's suddenly buggy. Here are the lines near where it says the bug is:


  // ** CUSTOM INVENTORY WINDOW
  gInventory.Visible = true;
  // switch to the Use cursor (to select items with)
  mouse.Mode = eModeInteract;
  // But, override the appearance to look like the arrow
  mouse.UseModeGraphic(eModePointer);

}


Any ideas on what went wrong here?
Title: Re: AGS error message
Post by: Dr Lecter on Sun 01/01/2006 20:58:47
Did you change anything in the cursor section?
Title: Re: AGS error message
Post by: Sonja on Sun 01/01/2006 21:06:35
Aha, yes I did. I think I renamed "interact" to "Paw", since the player character is a panda in my game.
Title: Re: AGS error message
Post by: Sonja on Sun 01/01/2006 21:07:52
OK I changed it back to Interact and it works fine now. Yay! You rule.
Title: Re: AGS error message
Post by: ManicMatt on Sun 01/01/2006 21:16:43
well, there must be a way to have it say paw instead! Don't give up yet!
Title: Re: AGS error message
Post by: strazer on Sun 01/01/2006 21:18:58
Quote from: Sonja on Sun 01/01/2006 20:51:54Error (line 28): undefined symbol 'eModeInteract'

Just use "eModePaw" instead. The latter part of the word is generated from the name you give the cursor in the editor.
Title: Re: AGS error message
Post by: ManicMatt on Sun 01/01/2006 21:25:21
That's exactly what I would have tried, but it's best to leave it to the pro's like you strazer! I must be learning something!  :D
Title: Re: AGS error message
Post by: Dr Lecter on Sun 01/01/2006 22:10:04
It works when you change them both, but it seems abit pointless since they mean the same and the name isn't normally called during game so it wouldn't be noticed.
Title: Re: AGS error message
Post by: Ishmael on Mon 02/01/2006 13:34:30
You need to change the name for a LEC style statusline.

The modes are in the autocomplete, anyway ;)
Title: Re: AGS error message
Post by: Elliott Hird on Wed 04/01/2006 18:55:15
^ no you don't, unless there was a eModeSomething.Name.