Back to the Vavoom Forum Archives


Forum

[Fixed] Problems with Skyboxes

Sat, 13 Mar 2004 00:21:52

Firebrand

I have been working on some skyboxes for the town map in Scattered Evil, but I get some problems when trying to load them into the map (Segmentation Violation), I thought it was related to a file name I wrote wrong , but I check the SKYBOXES lump in the WAD file and it seems to be all right, so I think the issue is related to the TGA file format  ???, do I need to use an specific format for it? I have downloaded the example WAD for the skyboxes and I'm using it's format for the SKYBOXES lump, I'm declaring it into the "skybox" into the MAPINFO lump, but I still get the error, any suggestions will be apreciated  :).
Mon, 15 Mar 2004 16:46:39

Janis Legzdinsh

What's the stack trace you get?
Tue, 16 Mar 2004 07:00:02

Firebrand

It says something like this (from debug.txt):<br><br>- LoadTGA<br>- Mod_LoadSkin<br>- VDirect3DDrawer::SetSkyTexture<br>- R_InitSkyBox<br>- R_InitSky<br>- R_Start<br>- CL_ParseServerInfo<br>- CL_ParseServerMessage<br>- CL_ReadFromServer<br>- Host_Frame<br><br><br>ERROR: Segmentation Violation<br><br>I have also found something funny, if I save the textures for the skybox in PSP 8.10, I get the error, but if I use an older version 6.0, they load just fine, so I think the problem comes from the format each version uses, of course, I could be wrong on this...
Tue, 16 Mar 2004 16:37:53

Janis Legzdinsh

It seams like it's the file format. Can you upload some of those bad textures to koraxdev?
Wed, 17 Mar 2004 06:57:24

Firebrand

Sure! I have uploaded the files to my directory on the FTP, the bad textures are into the "skybox1" directory, "bad textures".
Thu, 18 Mar 2004 17:13:18

Janis Legzdinsh

Found the problem.
Fri, 19 Mar 2004 01:03:08

Firebrand

Could you please tell me what was the problem?  ???
Fri, 19 Mar 2004 17:04:54

Janis Legzdinsh

Basicly with patette type of 0 (i.e. no palette) it left garbage in number of palette colors field and not a 0. Since I didn't have a check for palette type when loading palette, it readed some data as a palette and started to read image data from wrong place.

Back to the Vavoom Forum Archives