Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Dave Gilbert on Fri 30/11/2007 05:02:01

Title: Strange error: "character is turned off" [SOLVED]
Post by: Dave Gilbert on Fri 30/11/2007 05:02:01
Hi all,

I am at a loss to explain this crashing error.  In a specific room where the player character has a walking command, the game crashes with the error "This character is turned off and is unable to be moved." I didn't know it was was possible to turn a character on and off like that.  I can't seem to find anything in the manual to shed any light on why this happened.  Moving the character to any other room causes no crashes with the walk command.

I am mega confuzzled.  Any help is appreciated!

-Dave
Title: Re: Strange error: "character is turned off"
Post by: MrColossal on Fri 30/11/2007 05:31:33
without opening AGS and testing... is the "hide player character" check box checked in the room? Is it the player character is probably what I should be asking...
Title: Re: Strange error: "character is turned off"
Post by: SSH on Fri 30/11/2007 06:47:47
RTFM n00b  ;)
Title: Re: Strange error: "character is turned off"
Post by: Dave Gilbert on Fri 30/11/2007 08:25:46
Quote from: MrColossal on Fri 30/11/2007 05:31:33
without opening AGS and testing... is the "hide player character" check box checked in the room? Is it the player character is probably what I should be asking...

...

GAH.

In other words, yes. :-\  Very good catch. 

CJ: I'm obviously using the non fancy 3.0 version, so this might be redundant, but is it possible to change the text of this error message so it's clear what the problem is?  Unless, of course, there are other ways to turn a character "off".

Title: Re: Strange error: "character is turned off"
Post by: monkey0506 on Fri 30/11/2007 16:58:44
Well it's not a highly likely cause, but I can think of some modules that have made use of the unsupported, undocumented, non-auto-completing value Character.on which essentially works the same way as GUI/Object.Visible except for the fact that it's unsupported and undocumented. I once asked CJ and he said that the problem is he's not 100% sure it works properly and it's something he'd like to fix one day but it's not high priority. :=
Title: Re: Strange error: "character is turned off"
Post by: Pumaman on Fri 30/11/2007 20:31:52
Fair enough, I'll update the wording of that error message :D
Title: Re: Strange error: "character is turned off"
Post by: Dave Gilbert on Fri 30/11/2007 20:33:23
Thanks CJ!