Custom textures crash Radiant

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
User avatar
NaotoKhan
Corporal
Posts: 45
Joined: Sat Jan 20, 2007 12:05 am
Location: South Carolina
Contact:

Custom textures crash Radiant

Post by NaotoKhan »

Some of you may have seen this same post over at TMT, this is something that I'm trying to figure out ASAP but I've not had any luck finding this error described anywhere.

What happens is I've made some custom textures (for in-game wall posters), and followed all the guidelines and used the right shader format and pk3 structure and everything, but whenever I go to load the texture group Radiant just crashes. No error message, there might be something in the console but there's no time to read it because the program just shuts down immediately. Any ideas?

With my luck it's probably some stupid little thing, but I sure can't find it. Furthermore, I have already made a custom skybox texture that works just fine, so this is not my first custom texture to put in Radiant. There's just something quirky about this one.
Image
PKM
General
Posts: 1888
Joined: Tue Aug 09, 2005 4:43 pm
Location: Philadelpia but stuck in San Antonio TX (hell)

Post by PKM »

post shader.
i'm not f****** angry, i'm from philadelphia .
Image
User avatar
NaotoKhan
Corporal
Posts: 45
Joined: Sat Jan 20, 2007 12:05 am
Location: South Carolina
Contact:

Post by NaotoKhan »

Thought about that, but I've tried all kinds of different shader formats, and in fact the most recent one I took out all but one texture from the shader, just to see if I could get even one working. We had talked before PKM about your posters in Red Christmas, so I even took your shader from that and tried using that as a template, but I got the same problem. At any rate here is the last shader I tried:

Code: Select all

textures/ww1/airforce
{
	qer_keyword wall
	surfaceparm wood
	{
		map textures/ww1/airforce.tga
		depthWrite
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO
		depthFunc equal
	}
}
It's an Air Force poster; right now the file is a tga, I've tried it with the file as a jpg too, doesn't make any difference. And I have quadruple checked all folder paths etc.
Image
JUDGE
Corporal
Posts: 38
Joined: Thu Nov 25, 2004 9:46 pm
Location: UK
Contact:

Post by JUDGE »

i see the problem

yours:-

textures/ww1/airforce
{
qer_keyword wall
surfaceparm wood
{
map textures/ww1/airforce.tga
depthWrite
rgbGen identity
}
{
map $lightmap
rgbGen identity
blendFunc GL_DST_COLOR GL_ZERO
depthFunc equal
}
}




this is how i set my script shader files out

textures/ww1/airforce
{
surfaceparm wood
nopicmip
{ map textures/ww1/airforce.tga
rgbGen identity
depthWrite
}
{ map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
rgbGen identity
depthFunc equal
}
}
Image
User avatar
NaotoKhan
Corporal
Posts: 45
Joined: Sat Jan 20, 2007 12:05 am
Location: South Carolina
Contact:

Post by NaotoKhan »

Actually I already found the problem, and that wasn't it, but thanks anyway :wink:
Image
User avatar
wacko
Field Marshal
Posts: 2085
Joined: Fri Jul 05, 2002 8:42 pm
Location: Germany

Post by wacko »

So, what made ur radiant crash?
User avatar
NaotoKhan
Corporal
Posts: 45
Joined: Sat Jan 20, 2007 12:05 am
Location: South Carolina
Contact:

Post by NaotoKhan »

wacko wrote:So, what made ur radiant crash?
I had other textures in the folder (ww1) that were not mentioned in the shader file. Apparently Radiant loads all the textures at once, and if it can't find a shader for one it crashes.
Image
User avatar
wacko
Field Marshal
Posts: 2085
Joined: Fri Jul 05, 2002 8:42 pm
Location: Germany

Post by wacko »

Errr, no. This can't be it. :?
Textures don't have to have a shader to be loaded in radiant. Then their name is shown in black instead of blue, if "Non-shader images" is checked in the preferences.
E.g. in Photoshop, there's the possibility to save an image to jpg with an option "progressive". And this does crash ur radiant. Quite useful for web-jpgs, but here it must be unchecked. Sry to remember only now :oops:
Last edited by wacko on Tue Feb 13, 2007 9:16 pm, edited 1 time in total.
User avatar
ViPER
General
Posts: 1058
Joined: Fri Jan 14, 2005 5:48 pm
Location: California
Contact:

Post by ViPER »

Ive seen pics to large crash radiant
User avatar
NaotoKhan
Corporal
Posts: 45
Joined: Sat Jan 20, 2007 12:05 am
Location: South Carolina
Contact:

Post by NaotoKhan »

wacko wrote:Errr, no. This can't be it. :?
Textures don't have to have a shader to be loaded in radiant. Then their name is shown in black instead of blue, if "Non-shader images" is checked in the preferences.
E.g. in Photoshop, there's the possibility to save an image to jpg with an option "progressive". And this does crash ur radiant. Quite useful for web-jpgs, but here it must be unchecked. Sry to remember only now :oops:
I took frame screenshots of the Radiant console as it crashed (it went really fast) and I realized the first texture it tried to load was one that was not in the shader, and it was at that point it crashed.

What other conclusion could be reached? As soon as I added a shader entry for that texture and all others in the folder, Radiant loaded the texture group with no problems. I don't see what else it could be.

Also I use PSP not Photoshop, but I don't know anything about progressive jpg's. At any rate I was using tga's not jpegs.
Image
Post Reply