Here's a mini tutorial on directory structure for Q4 stuff. All you need to do to make this work for custom files is to replace the "mympmaps" folder name and the "mymap" file names with the proper directory and filenames used by your own stuff.
Your Quake 4 directory, with the mod folder, "mympmaps" in it:
The folder structure inside "mympmaps":
The .def file inside the "def" folder:
The "guis" folder inside the "gfx" folder:
The "loadscreens" and "mainmenu" folders inside "guis":
Image file inside "loadscreens":
Image file inside "mainmenu":
The "mp" folder inside "maps":
The various map files inside "mp":
Here's the contents of
mymap.def:
Code:
// custom map loadscreen for mymap.map
mapDef mp/mymap {
"name" "mymap Loadscreen Test"
"DM" "1"
"Team DM" "0"
"Tourney" "0"
"CTF" "0"
"Arena CTF" "0"
"Gametype_Deathmatch" "1"
"Gametype_TeamDeathmatch" "0"
"Gametype_Tournament" "0"
"Gametype_CaptureTheFlag" "0"
"Gametype_ArenaCaptureTheFlag" "0"
"loadimage" "gfx/guis/loadscreens/mymap.tga"
"mp_thumb" "gfx/guis/mainmenu/mymap.tga"
}
This is the structure you need to use when adding a map to the server map list and giving it a custom screen while loading it.
And now, the Quake 4 shortcut used to launch the game so that it will use the data in "mympmaps":
When you've tested everything and you want to toss everything into a pak file for distribution, you do the following, assuming you have winrar installed:
Go into the mympmaps folder and highlight the def, gfx, and maps folders. Next, right-click on them and choose "Add to archive...":
Change the filename so it has the extension ".pk4" instead of ".zip".
Make sure "ZIP" Archive Format is selected instead of "RAR" Archive Format. Leave the Compression Method at "Normal". Your WinRar archive window should look like this:
Click OK and you should have a .pk4 file ready for distribution.
Goliath