Author Topic: a picture causes the game to crash!  (Read 3047 times)

0 Members and 1 Guest are viewing this topic.

Offline humanity

a picture causes the game to crash!
« on: November 07, 2003, 11:51:00 PM »
I browsed through somel older posts and couldn't find anything about this. I am working on a game, and have drawn 25 previous pictures with no problems. Tonight, however, I encountered a problem with number 26. It is a picture of a church, slightly more detailed than other pictures. I ran the game several times, to make sure proportions were accurate. After adding priority lines, however, the next time I tested the game I got this message:
     "c:\oldgames\curtsq~1/sciv.exe
     the ntvdm cpu has encountered an illegal instruction
     cs: 4c9e IP:68c9 OP: 63 72 69 70 74
     choose close to terminate the application."
Does anybody know what could be causing this? Thanks.



Offline Brian Provinciano

Re:a picture causes the game to crash!
« Reply #1 on: November 08, 2003, 02:09:36 AM »
How large is the picture resource? Depending on the interpreter version, sometimes they are limited to 13K~35K. Also, how are you using your fills? If you use a lot of flood fills in detailed areas, it could possibly cause a stack overflow like AGI.

Offline humanity

Re:a picture causes the game to crash!
« Reply #2 on: November 09, 2003, 11:07:02 PM »
Thanks! I believe the crash was due to overuse of the fill button. I had two lines of slightly different angles conjoining to form the roof, and after filling the main roof section, I used "fill" to fill in the remaining 2 pixel areas, as well. After changing those offsets to the pen button, the game worked fine. Thanks for your help.


SMF 2.0.19 | SMF © 2021, Simple Machines
Simple Audio Video Embedder

Page created in 0.05 seconds with 21 queries.