Compile and make a .pk3 of your map

 

I’ve seen a lot reactions like ‘I cant test my map!’ and ‘why doesn’t my pk3 work ?!?’

 

Now, this tutorial will first explain how you compile your map, and then it’ll show you how to test your map in-game, and making a .pk3.

 

 

Compiling your map

 

  1. Download a tool to compile your map, it’s a lot easier, and it does just the same as a batch.

        http://www.musthavebox.net/projects/downloads/Install_CoDpiler.exe

  1. Launch CODPiler. Click on the setup, and choose the right settings. Now press exit.
  2. In the left, you’ll see a list of all the .map files you have in your call of duty/main/maps folder. Select your map, and press on the ‘auto’ button. Now you’ll get something like this:

 

Delete next text:

cd ..\..\

codsp +set monkeytoy 0 +set CL_PlayCinematic_f 0 +set CL_PlayLogo_f 0 +set com_introplayed 1 +devmap sh

 

(if you want, you can always delete the pauses)

 

  1. Press compile, and a console will open. When the console closes, your map is compiled !!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Creating a .PK3

 

1.       If you have a program like WinRar, you can use that, if you don’t have such software, you can download PakScape for free.

  1. Create a new folder somewhere in your cod directory, called my_map (ex. Carentan)
  2. In that folder, create 2 sub-folders: maps and mp
  3. In maps, create a new folder, called mp
  4. In the maps/mp folder, place your .bsp file (located where you compiled your .map)
  5. In the maps/mp folder, create a .gsc file (look in the attachment for how to make a .gsc)
  6. In the mp folder, create a .arena file (again, see the attachment)
  7. If you’ve collected all those files, select the 2 folders (maps and mp), rightmouse click, and add to archive.
  8. Choose .zip for the extension, and then change (in the name) .zip in .pk3
  9. Your pk3 file is ready!

(You can add much and much more files to your .pk3 file, but now you can play it)

  1. place the .pk3 file in your cod/main folder.

 

Note: All files must have the same name, and may NOT contain spaces!!

 

 

Attachment

 

Creating a .gsc file.

 

Open a new notepad document, and copy/paste this text in it, then change it:

 

main()

{

setCullFog (0, 8000, 0.8, 0.8, 0.8, 0); // amount of fog. If you don’t know what it means, just leave it alone)

ambientPlay("ambient_mp_railyard"); // the background ambient that will be played

 

maps\mp\_load::main(); //leave this alone

 

game["allies"] = "russian"; // this should be Russian, American, or british

game["axis"] = "german"; // this should be german

 

game["russian_soldiertype"] = "veteran"; //this is the skin the players will have as allies

game["russian_soldiervariation"] = "normal"; //type of the skin

game["german_soldiertype"] = "wehrmacht"; //this is the skin the players will have as axis

game["german_soldiervariation"] = "normal"; //type of the skin

 

game["attackers"] = "axis"; // who attacks with S&D, RE, etc

game["defenders"] = "allies"; //who defends with S&D, RE, etc

 

game["layoutimage"] = "mp_railyard"; //leave this alone, exept if you know what you are doing.

 

}

 

 

Then save the document as a .gsc file.

 

Creating a .arena file

 

Copy/paste and change this in an wordpad document.

 

{

                map                       "name of the files"

                longname             "^3full name of the map"

                gametype             "dm tdm hq sd re bel"

}