Tuts > textures


Note: This issues has been resolved when using the MH patch.


MAX_GLTEXTURES

There has been lots of maps in rotation of late that will kick the players with MAX_GLTEXTURES reported in console.

It is caused from maps that have been compiled with texutre names in capital letters.
While searching for solutions. I noticed the map voting was doing the same thing.

When creating any assets, they need to be created in specific formats. or it can cause issues
Here is a list of things to make sure they are within specs for kingpin to run smoth

Textures

Map textures are .tga in either 24 bit rgb or 32 bit rgba (alpha channel). Thats 8 bits per channel.
Image and folder names must be all in lower case.
No spaces in names, use underscores instead.

Maps

Texture names inside .map/.bsp MUST be lower case.
File names should be in lower case. This helps for maplist.txt issue on server.
Any mod using map voteing. MUST have all lower case in maps.txt. This is an almost instant crash for clients.
Using minus (-) in file names cause map loading issues.
No spaces in names, use underscores instead.

Note

Its good practice to rename everything before releasing your map and assets.
That way any other mapper that uses your assets has less chance of this issue if they are unaware.


Method's

There are many tools to fix most of these issues. I will cover as much as i can with the tools i have found that works to make life easy.
Links to files are the heading of the tool to use.

MapSpy (Download)
Maps with custom textures should have this tool run on it before release. New maps using good file names wil not need this tool.
It has an option in prefrences to make textures in the .map have all lower case.
If map has been compiled and the .map is no longer avalible. use the qbsp3_tex2 tool.

qbsp3_tex2 (Download)
This is my version of the quake 2 bsp compiler. It will search the bsp for capitals in there names.
If it finds a bsp with errors. it will output a new bsp with '_fix' added to file name.
Kingpin and Quake2 share the same map format.

New Version2, allows radiant to compile every map fixed and same file name used.
In radiant menu. File>load project. Find kingpin_fix6.qe4.
Every compile you do will rename the textures in .bsp. ready for release

Renamer (Download)
I have used this program for many things. Recenty i found it even more usefull.
Make sure all the files to be renamed are showing small 'x' and check the output to confirm the new names.
After this has been used. You will still need to manualy rename every folder that still has capitals.

Press F2 to get Expert mode. Copy the settings i have used.