Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: LL Notorious B.I.G. Will C-H on Mon 26/05/2003 19:51:37

Title: SetCharacterView problem
Post by: LL Notorious B.I.G. Will C-H on Mon 26/05/2003 19:51:37
Hello, ive used the setcharacter view function in a bunch of scripts no problem during my game, but now suddenly the game keeps crashing with the latest one ive put in (which uses view number 20).  It says that it an invalid view number has been used, i.e. I havent set that number view, but i have. Any ideas why this is anyone?
Ive tried resaving the game and starting the editor up again in the hope that it would save the view properly but it still does the same thing.
Title: Re:SetCharacterView problem
Post by: Pumaman on Mon 26/05/2003 21:05:21
So view 20 definately exists in the editor and has a few loops within it?
Title: Re:SetCharacterView problem
Post by: LL Notorious B.I.G. Will C-H on Mon 26/05/2003 22:43:18
view 20 definetely exists. It only has one loop (and one frame) in it because im just using the one standing image, which is exactly what ive done when ive used the command.
Will putting extra loops make a difference? I`lll give it a go now

edit: nope, doesnt make a difference  ???
The only thing thats slightly different is that this is the only character in the game that i have changed the view for more than once so far, could that be it?
Title: Re:SetCharacterView problem
Post by: Pumaman on Mon 26/05/2003 23:05:02
Actually no, that shouldn't make any difference. What's the exact text of the error message that you get?
Title: Re:SetCharacterView problem
Post by: LL Notorious B.I.G. Will C-H on Tue 27/05/2003 20:54:43
It says:
An error has occured. Please contact the game author for support, as this problem is caused by the game rather than the intepreter.
(ACI version 2.54.522)

(Room 24 script line 10)
Error: SetCharacterView: invalid view number

Normally when I get a message like this ("caused by the game rather than the interpreter" yada yada) it is because ive forgotten to put something in, but this time it isn`t. The view loads up in the view editor everytime i load the game. Ive tried moving the command to another room (the change takes place between rooms) but it does the same thing wherever i put it.
Title: Re:SetCharacterView problem
Post by: Pumaman on Wed 28/05/2003 00:11:30
Hmm, try creating another view so that you have 21 of them, and then try again?
Title: Re:SetCharacterView problem
Post by: LL Notorious B.I.G. Will C-H on Thu 29/05/2003 17:52:57
Hi,
ok i tried that, i did it so that it tried to change the view to 21, and i did with it still trying for view 20 but with an extra view after it. Both had exactly the same thing happen to it.
What im gonna do instead is create another character for this view and just put him in the place of the old one when the player comes back in the room. Not ideal but the players never going to know!!!!! Mwuhahahah
An odd problem tho, I always seem to find odd bugs that dont happen to anyone but me, ho hum.
Title: Re:SetCharacterView problem
Post by: Pumaman on Fri 30/05/2003 17:17:05
I'll modify the next version to print more detailed information with that error message, so once the final of 2.55 is out, please upgrade and see what happens.