Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 97 Guests
Online:

LATEST FORUM THREADS

»
CoD: Battle Royale
CoD+UO Map + Mod Releases
Damaged .pk3's
CoD Mapping
heli to attack ai
CoD4 SP Mapping

Tutorials

»
CoD2 Mapping
ratings:
Awful Rating
Poor Rating
Average Rating
Good Rating
Excellent Rating
Testing Custom Maps
Versions: You must be logged in to view history.
In this tutorial, techno2sl will show you the easiest way to test your custom map - there are console commands and help found at the bottom of the tutorial.
Assuming you have followed the compiling tutorial correctly and there were no errors, you should take these next steps:

Is your map Multiplayer or singleplayer?

Multiplayer testing:

You must have atleast: 1 DM spawn, 1 Spectator spawn (global_intermission)

Your compiled map (yourmapname.d3dbsp) should be in the folder "MP" found at the directory:

"C:Program FilesActivisioncall of duty 2mainmapsmp"

Got all of the above sorted? Good, onto step 1.

1. Start your Call of Duty 2 multiplayer, the icon can be found at:

"C:Program FilesActivisionCall of Duty 2COD2MP_s.exe"

In the multiplayer menu, select "Start New Server". From the list given, turn "Pure" to "Off".

Next bring down the console with the "¬" key and type:

" /map yourmapname" - without the quotes

Your map should then load, heres some more console commands you might need:

(enter these before loading the map)

/developer 1
/devmap yourmapname

This will now load your map in developer mode, while in devoper mode you can use these:

/r_showtris 0 (can be set to 1 to see the individual lines that make up you map)

/g_gravity 80 (experiment with this - then jump up in the air!)

/fast_restart (will restart you maps gametype - NOT reload the level)
/map_restart (will restart your whole map - causing it to load again)
/g_gamtype sd (change sd to: tdm,dm, ctf, hq, then use a restart command to test that gametype)

Help:

You get an error saying "cant find map mapname.d3dbsp" ??

The most common cause for this is not turning "Pure" to "Off", otherwise check that the map is in the "mp" folder - If it still does not load:

Use the commands above ^^ to load your map in developer mode, inwhich when the error occurs you can press: "shift" + "¬" to brung down a larger version of the console and check to to see what the error could be - if it shows an error, then please pot it on the forums. We'll gladly help you.

----------------------------------
Single Player Testing

Ok, creating a Single Player map is one thing and hard enough, even worse is when you cant play it, so here goes:

You will need to follow these steps exactly otherwise you map wont load properly and your Ai will definelty not be running around anywhere.

You will need:

A .gsc file.

To create a .gsc do this:

Right click on the white space between files in your "Maps" folder, create a text document, preferrably using notepad and type this into it: (do not use copy/paste)

main()
{
Maps\_load::main();
}

Now save the file as: yourmapname.gsc

Your done, well done. But.. just to make sure - Follow this:

Tools, Folder options, View: Scroll down until you can see "Hide extensions for known file types", make sure its unticked.

Now check your .gsc again, if its now called yourmapname.gsc.txt - delete the ".txt" bit.

Ok, so you have a yourmapname.gsc and hopefully a singleplayer ready level called: yourmapname.d3dbsp and both of them in your Maps folder?

Good.

Now, the script from above will allow the game to load the global scripts, and hopefully make your Ai run about, although they still wont move a whisker unless we do some target line editting. Here goes:

You want to locate your Single Player short cut icon, mines found at:

C:Program FilesActivisionCall of Duty 2COD2SP_s.exe

Got it? Copy it and paste it where you want, now in this new shortcut you just created you want to right click it and select "properties" from the drop down list.

Make sure you click on the "general" tab and in the target line, which reads:

"C:Program FilesActivisionCall of Duty 2CoD2SP_s.exe"

Add this: +set g_connectpaths 1

so it now looks like:

"C:Program FilesActivisionCall of Duty 2CoD2SP_s.exe" +set g_connectpaths 1

Now .. finally, click double click your new icon. Once the game has loaded, bring down the console "¬" and type: /map yourmapname.d3dbsp

have fun on your map, any errors when loading? give us a nudge on the forums!

Probably cause for the "cant find map maps/yourmapname.d3dbsp" =
make sure your playable game file which the compiler creates is in the "maps" folder.

The directory being: call of duty 2mainmaps

Why not copy paste the script that was above? Well , hidden html may be contained in it, trust us, its safer to re-type it word for word into your .gsc

Make sure any new Singple Player maps you create has a .gsc and you connect to the game via your new shortcut.

Notes::
Alot of the console commands for MP apply to sp

Your Ai still arnt running around? WE should have some Single player Ai tutorials up soon enough.

Weapons?? You'll need another script for those, which will be in the next tutorial on how to create a proper SP map.

But for an easy way, in the editor, right click the 2dgrid/plan view and select "weapon" now select a weapon without an "_mp" after it.

When you have positioned the weapon where you want it and with it still selected press "N", tick the boxes:

"Suspend" (this keeps the weapon where it is, otherwise it will "fall" to the ground)

Respawn (well, obvious really, no? .. It makes it respawn)

Cant get the console to come down using the "¬" key?? Look in option in you MP or SP menu and (i think) its under the command "interact" just enable it.

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»