PNG Error?
Displaying 1-4 of 4 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
redhalo

Greets and what-not. My scripts compile flawlessly, but when it's run Verge2.6 crashes. I checked the verge.log file and it says this at the end:
----------
Import_PNG started...
Sys: Exiting with message: Internal VC execution error. (1145)
----------
I'm assuming it's having a problem loading my graphic, I tried different formats only to get the same problem. Cand anyone lend me a hand here.



~redhalo redhalo@sega.net

Posted on 2001-06-12 18:40:25

grenideer

I'm not very familiar with 2.6 but I can offer a few possible solutions. Are you trying to load a hicolor pic in locolor? Is hicolor in user.cfg? Try loading an 8 bit pcx.
You may want to show us the line of code with the problem. You may be messing something up with the memory rather than with blitting the picture - I'm not sure.



Posted on 2001-06-12 19:13:13

redhalo

Nope...it's definatly in hicolor. Here's the code where the image gets loaded, complete with comments to aid:
----------
1:void GenerateSky(int color)
2:{
3: RectFill(0, 0,screenx, screeny, color);
4: sky_overlay=RandomSkyOverlay();
5: SetLucent(1);
6: TWrapBlit(0, 0, 512, 512, sky_overlay);
7: SetLucent(0);
8: SwapScreen("swap2.raw");
9: sky_swap=LoadRAWImage(screenx, screeny, "swap2.raw");
11:}
12:
13:int RandomSkyOverlay()
14:{
15: switch (Random(1))
16: {
17: case 0: return LoadImage("skymap1.png");
18: case 1: return LoadImage("skymap2.png");
19: }
20:}
----------
Ok, what this is supposed to do when GenerateSky is called is make a random sky background by filling the screen with a random shade of blue (variable not shown) and the overlay a 512*512 tileable cloud image (skymap*.png) and save the whole damn screen buffer to a *.raw file (SwapScreen("swap2.raw");) to be called later in the program. I tried dumbing down the code by eliminating unecessary variables so that it just loads the *.png directly with no choice, but alas I still have the same problem. Feel free to ask any questions about the code.



~redhalo [ redhalo@sega.net ]

Posted on 2001-06-12 19:36:26

redhalo

Nevermind, 2.6 doesn't seem to like switch/case statements, I replaced it with an if/then logic and it works fine and dandy. I appreciate the help grenideer, thanks.



~redhalo [ redhalo@sega.net ]

Posted on 2001-06-12 19:52:16


Displaying 1-4 of 4 total.
1
 
Newest messages

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.