Computer Science Canada Screenshot not working |
Author: | SNIPERDUDE [ Thu Jun 07, 2007 11:43 am ] |
Post subject: | Screenshot not working |
I am making a isometric tile based game, and I have the drawing of the map working. But when I save the screenshot of the map, when I call the map to draw it an error appears saying the image was probably does not exist. This only seems to happen when I make my map larger than 14 * 14 (each tile is about 66 * 33 px) The reason I am trying to do this is so I can just call a screenshot to prevent lag when drawing the map How can I avoid or fix this error? |
Author: | DIIST [ Thu Jun 07, 2007 10:26 pm ] |
Post subject: | Re: Screenshot not working |
Could you please post a sample of the code involving the problem. By the looks of it it seems you are having trouble with the pic module. Possible common reasons could be: --You are not Pic Freeing and instead adding more resources each frame.. --You have several large images already loading and turing dosn't have enough space to create another image. Anyway the exact error cant be known until you most a piece of the code. ![]() |
Author: | SNIPERDUDE [ Fri Jun 08, 2007 1:00 pm ] | ||
Post subject: | Re: Screenshot not working | ||
Yea, here's the code. sorry I didn't comment, just ask if you need anything cleared up. Oh yea, the first proc is to get the tiles from a tilemap.
|
Author: | SNIPERDUDE [ Wed Jun 13, 2007 11:51 am ] |
Post subject: | Re: Screenshot not working |
Why won't anyone help me? so alone... ![]() |
Author: | SNIPERDUDE [ Wed Jul 04, 2007 11:37 am ] |
Post subject: | Re: Screenshot not working |
hello? Anyone? |
Author: | McKenzie [ Wed Jul 04, 2007 12:14 pm ] |
Post subject: | Re: Screenshot not working |
Well Dude, 1. It's summertime so everyone's out having fun. 2. You did not attach tiles.bmp and testmap.txt. |
Author: | Mazer [ Wed Jul 04, 2007 12:21 pm ] |
Post subject: | RE:Screenshot not working |
You're probably getting values outside of the window boundaries when you're calling Pic.New, and Turing probably doesn't like that. You know, you could've just pasted that Pic.New line, or even pointed out that it was the relevant line. It's very likely that nobody replied because nobody cared to wade through the rest of that. |
Author: | SNIPERDUDE [ Tue Jul 10, 2007 9:42 pm ] |
Post subject: | Re: Screenshot not working |
I know people don't like reading that much (I blame the lazy society that has become of us because of technology), but it is the only way one can fully understand my problem. And no, it is not reading past the max coordinates. My guess is that turing just doesn't have that much memory. I am going to try another method (saving mini pics and just tile them together) Let me know if anyone has come up with a better solution |
Author: | CodeMonkey2000 [ Wed Jul 11, 2007 2:12 pm ] |
Post subject: | RE:Screenshot not working |
You know it would really helpful if you included the txt file and the images. |