Direct modification of BSP files

6 replies [Last post]
V1979
V1979's picture
Offline
Joined: Nov 2011
Posts:

Some time ago I discovered a nice method of direct modification of BSP files. It has some limitations, but anyway it works.
Recently, I've been asked to modify the map "Courtyard" (QL variant of the map q3w2 "Courtyard Conundrum"). The purpose of modification is to substitute QL textures with original Q3 textures from \baseq3\pak0.pk3. This allows to reduce volume of a map pack on a server and time of downloading a map from a server.
I successfully finished my work, but my client insists that he meets some non-standard effects.

The light grey pieces of the floor are original, without modification. The dark grey pieces of the floor have been modified. But both of them use the same file textures/gothic_floor/xq1metalbig.jpg.
And on my screenshots (see below) there is no difference between original and modified pieces. I mean, on my notebook the modified map looks OK, without any bug.

My client insists that he uses a native Q3, without extra *.pk3 files in his \baseq3 folder, like I do.
So, I ask you to test the map and report if there are such bugs or not. If you meet such bugs, I want to know your versions why they appear.

Login or register to view attached files

Jabs
Offline
Joined: Mar 2010
Posts:
Re: Direct modification of BSP files

This looks pretty cool and I didn't experience any bugs on my side, it all loaded/rendered perfectly

V1979
V1979's picture
Offline
Joined: Nov 2011
Posts:
Re: Direct modification of BSP files

Well, my client writes he has found a solution - he added "rgbGen identity" to the layer parameters. But it changes nothing at me (everything was and is OK).

*ZMB*INSANEKID*
InsaneKid's picture
Offline
Joined: May 2007
Posts:
Re: Direct modification of BSP files

When u compile a map,
the compiler calculates light and shadow.
If u change the textures after this process,
this compile stage is missing (on these textures)!?

V1979
V1979's picture
Offline
Joined: Nov 2011
Posts:
Re: Direct modification of BSP files

As I understand, lightmaps are untouched. You can check that all the lightmaps are at their places. I don't re-compile a map, except compilation with -onlyents key - to change the name of a map and remove a link to a music file.

V1979
V1979's picture
Offline
Joined: Nov 2011
Posts:
Re: Direct modification of BSP files

An updated variant of shader

V1979
V1979's picture
Offline
Joined: Nov 2011
Posts:
Re: Direct modification of BSP files

Another variant of the map. Here the shader is modified like this:

//////
My (old) variant:

textures/gothic_trim/metalblackwavev1
{
{
map textures/gothic_trim/pitted_rustblack.tga
rgbGen identity
}
{
map $lightmap
blendfunc filter
rgbGen identity
tcGen lightmap
}
}

//////New (actual) variant:

textures/gothic_trim/metalblackwavev1
{
{
map textures/gothic_floor/blocks17floor.tga
rgbGen identity
}
{
map $lightmap
blendfunc filter
rgbGen identity
tcGen lightmap
}
}

I tried to make the modified map to be similar to original one. But my client prefer another variant. Well... This new variant is planned to be played at the server !!!RUS-RAIL-CTF!!!