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
|
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
|