Error message: "requested area is outside the surface" without line reference

Started by GarageGothic, Sun 22/03/2009 14:52:02

Previous topic - Next topic

GarageGothic

Not sure if this is considered a bug, but it definitely makes it hard to troubleshoot my code. I briefly tested my game with the latest engine, and got the error message:

QuoteError: DynamicSprite.CreateFromDrawingSurface: requested area is outside the surface

This is nothing new to me, though I thought I had fixed the problem causing it. However, all the previous times when the game crashed, AGS either told me or sent me to the relevant line in the script. This time, nothing, so I have no idea where to look. I tried running through it with the step-by-step debug function, but since it's cause by a repeatedly execute script several seconds into gameplay, it takes forever to get to to the crash - I held down F11 for several minutes before giving up.

Pumaman


SMF spam blocked by CleanTalk