Author Topic: Custom MP Map Folder Structure Setup and Walkthrough (Quake4 and Doom3)  (Read 720 times)

0 Members and 1 Guest are viewing this topic.

The Happy Friar

  • Happy Happy Joy Joy
  • Administrator
  • Hero Member
  • *****
  • Posts: 844
  • Karma: +39/-4
  • Semi-Newbie.
    • View Profile
    • EarthQuake
 (Sorry, images don't exist anymore)

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: [Select]
// 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":

Image height=38

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...":
Image height=38

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:
Image height=38

Click OK and you should have a .pk4 file ready for distribution.

Goliath


 

Zombie

  • Guest
Re: Custom MP Map Folder Structure Setup and Walkthrough (Quake4 and Doom3)
« Reply #1 on: September 16, 2014, 12:19:26 AM »
For me the images don't work

The Happy Friar

  • Happy Happy Joy Joy
  • Administrator
  • Hero Member
  • *****
  • Posts: 844
  • Karma: +39/-4
  • Semi-Newbie.
    • View Profile
    • EarthQuake
Re: Custom MP Map Folder Structure Setup and Walkthrough (Quake4 and Doom3)
« Reply #2 on: September 16, 2014, 06:37:36 AM »
Even on D3W the images didn't work, long dead.  Just getting those here for the basics.  I might update them with new images later.