Jump to content

Glitch due to textures, black lightsaber shader etc!


Recommended Posts

Posted

As I compile my map and share many pk3s containing textures and shaders to my friends among other things, some complain about major glitches during gameplay.

 

I have a clean base folder and it works fine for me. But some run into issues such as their lightsabers have black edges and some textures are odd. Main menu lacks textures, body parts are invisible, etc.

 

When removing two pk3s containing a bunch of textures/shaders, it resolved the problem but obviously they cant see pretty much the entire map as most textures are in those pk3s that i've made where i just add a bunch of textures there.

 

But a vast part of those textures are used in map and when we later make a seperate PK3, adding them there: Will this not cause the same issue?

 

Here are two images illustrating the issue:

https://jkhub.org/images/HAZ6Os9.png (Black lightsaber edge, poor textures on character)

https://jkhub.org/images/M10QRWZ.jpg (Missing textures in the main menu)

 

What exactly causes this and is there a fix?

 

And on the topic:
When making a pk3, what would be the best way to see exactly what textures/shaders ive used and add them? I assume I have to add them one by one, right?

Posted

One bad shader probably broke all the others. It tends to happen when a .shader file has issues with the { }s

I see.

Comparing the two pk3s, there were only 4 shaders that were in both and since both needed to be removed to fix the issue:

 

I took a look in one and found =>

 

textures/fogs/hoth

{

    qer_editorimage    textures/fogs/Hoth2_bluefog

    qer_nocarve

    qer_trans    0.5

    surfaceparm    nonsolid

    surfaceparm    nonopaque

    surfaceparm    fog

    surfaceparm    trans

    q3map_nolightmap

    fogparms    ( 0.7 0.7 0.7 ) 8192

    cull    twosided

}

}

textures/fogs/korriban

{

    qer_editorimage    textures/fogs/fog.tga

    qer_nocarve

    surfaceparm    nonsolid

    surfaceparm    nonopaque

    surfaceparm    fog

    surfaceparm    trans

    q3map_nolightmap

    fogparms    ( 0.95 0.97 0.77 ) 7000.0

    cull    twosided

}

 

 

A double use of "} }"

 

Could that have caused it? Fixed it now but gotta wait a bit for my friends to wake up before I can know for sure.

  • 2 weeks later...
Posted

What shaders did you have to fix in order for eveeryything to work again?

"textures/fogs/hoth

{

    qer_editorimage    textures/fogs/Hoth2_bluefog

    qer_nocarve

    qer_trans    0.5

    surfaceparm    nonsolid

    surfaceparm    nonopaque

    surfaceparm    fog

    surfaceparm    trans

    q3map_nolightmap

    fogparms    ( 0.7 0.7 0.7 ) 8192

    cull    twosided

}

}

textures/fogs/korriban

{

    qer_editorimage    textures/fogs/fog.tga

    qer_nocarve

    surfaceparm    nonsolid

    surfaceparm    nonopaque

    surfaceparm    fog

    surfaceparm    trans

    q3map_nolightmap

    fogparms    ( 0.95 0.97 0.77 ) 7000.0

    cull    twosided

}"

 

Notice the two:

 

}

}

 

It was only supposed to be one.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...