Adventure Game Studio | Forums

AGS Support => Beginners' Technical Questions => Topic started by: eatseverything on Sun 09/12/2018 08:53:02

Title: Error: SetCharacterView: Invalid view number SOLVED
Post by: eatseverything on Sun 09/12/2018 08:53:02
Hi Guys,

I need some help debugging an error I keep getting. The occurrence time is random.
There error is as follows:

An error has occurred. ACI version 3.4.1.15
Error: SetCharacterView: invalid view number (You said 25, max is 3).

I really have no idea why this is happening... The line error is a different location every time. But always the same error.
It even happens if I let the game run and I don't touch anything... just wait.

I'm using the 'Lightweight BASS Template'

Can anyone help?
Title: Re: Error: SetCharacterView: Invalid view number
Post by: eatseverything on Sun 09/12/2018 09:08:20
I've checked all over and I really can't seem to find anything wrong.
It also happens when compiled.
Like I said, the timing of the error is random. But always under 2 minutes approx.
Title: Re: Error: SetCharacterView: Invalid view number
Post by: eatseverything on Sun 09/12/2018 09:25:35
I found it.
It was an invalid idle view.
Title: Re: Error: SetCharacterView: Invalid view number
Post by: Slasher on Sun 09/12/2018 10:58:46
Quote from: eatseverything on Sun 09/12/2018 09:25:35
I found it.
It was an invalid idle view.
Don't you feel silly (laugh)

It happens...
Title: Re: Error: SetCharacterView: Invalid view number
Post by: Crimson Wizard on Sun 09/12/2018 13:25:57
I think error message could be improved by telling which type of view engine tries to set (idle, normal etc).
Title: Re: Error: SetCharacterView: Invalid view number
Post by: eatseverything on Sun 09/12/2018 21:23:21
The thing that was throwing me off was the error was showing me script line highlighting at random locations. Making me think it was my code. Is there a way to not use idle, blinking, or thinking views?