Wintermute Engine Forum

Wintermute Engine => Bug reports => Topic started by: metamorphium on June 29, 2008, 10:59:56 PM

Title: Invalid instruction.
Post by: metamorphium on June 29, 2008, 10:59:56 PM
Hi Mnemonic,

strange problem popped on me in log:

23:58:59:  Fatal: Invalid instruction -557797922 ('scenes\Salia6\scr\scanlines.script', line 74, IP:0x0)

where the line is: if (Scene.EndLines) break;

this line works ok most of the time, just once I got this. Any ideas? (not that it would block game or something, but still, I don't like unexplainable stuff in my code :))
Title: Re: Invalid instruction.
Post by: Mnemonic on June 30, 2008, 07:46:43 AM
That's typically connected to the nested loop/switch bug...
Title: Re: Invalid instruction.
Post by: metamorphium on June 30, 2008, 07:55:51 AM
not this time it's in while loop, but no nesting there.

something like:

while (!Scene.Discovery)
{
    ...
    ...
    if (Scene.EndLines) break;
    ...
}

It can be though somehow connected to detaching the script, but it would mean that the scheduler got berserk.
Title: Re: Invalid instruction.
Post by: rkitting on August 19, 2008, 03:42:17 PM
I just had this problem, but I fixed it. It was because I had a while-loop within another while-loop. It said the break; was an invalid instruction.