Call of Duty 4: Running mods
Installing Mods
For mods say you are using Extreme X4 2.0 for instance it doesnt matter which mod most all mods would be installed the same way as Extreme X4 2.0
Your server should have a cod4 folder and inside that a mods folder and inside that a folder named the name of your mod or ect.
In your mod folder and inside the folder you named for your new mod would include the mod.iwd and the mod.ff thats included with the mod and all server configs needed to start your mod.
So in your mod folder would be a mod.ff ,mod.iwd, .cfgs related to the mod you use.
NO map .iwds go in your mod folder EVER
No map iwds in your mod folders only the mod.iwd itself from the mod you are using and the mod.ff along with the cfgs needed to start your server.Of course a correct server commandline is needed to execute the proper mod folder and the proper server start up cfg.
Thats either up to you to set your command line correctly or your server rental company to do it for you but either way its very important to be correct.
Example below
Mods In Redirect
.iwd = http ://yoursite.com/cod4/mods/mymod/mod.iwd
.ff = http ://yoursite.com/cod4/mods/mymod/mod.ff
Mods In Server
.iwd = cod4/mods/mymod/mod.iwd
.ff = cod4/mods/mymod/mod.ff
Mods In Client
.iwd = cod4/mods/mymod/mod.iwd
.ff = cod4/mods/mymod/mod.ff
Example Of A Commandline below
+set dedicated 2 +set net_ip xx.xxx.xxx.xx +set sv_maxclients 16 +set net_port 28960 +set fs_game mods/mymod +exec server.cfg +map_rotate
This commandline above would be executing the mods/mymod fsgame folder and server.cfg located in it to start a mod
The redirect ftp for your mod download only needs to include the mod.ff and the mod.iwd for clients to download they do not need all the cfgs your server needs to start I hope everyone understands that.This should be exactly the same file structure as your server has cod4/mods/yourmod or it wont work correctly.
Map Rotation
In your map rotation .cfg you should always set the gametype like so (used dm as an example) =
set g_gametype "dm"
If you only run one gametype this below would work fine ,you only need the gametype setting once in the beginning of the rotation if you only use one gametype in your server.
One Gametype Rotation
Good Rotation = set sv_mapRotation "gametype dm map mp_pow_rld map mp_carentan map mp_dc"
Bad Rotation (Wasted Characters (unneeded gametype dm wasting characters) = set sv_mapRotation "gametype dm map mp_pow_rld gametype dm map mp_carentan"
Bad Rotation (Wont Work Mispelled Map / Should Be mp_pow_rld) = set sv_mapRotation "gametype dm map mp_pow_rdl"
Multiple Gametype Rotation
Good Rotation is: set sv_mapRotation "gametype dm map mp_pow_rld gametype koth map mp_carentan gametype dom map mp_dc"
Redirect Settings
Redirect in your mod settings should look like this below do not have dldisconnected set to 1 do not do that leave it at 0 like below or you will have serious issues
set sv_allowdownload "1" set sv_wwwDownload "1" set sv_wwwbaseURL "http ://www.yoursite.com/cod4" set sv_wwwdldisconnected "0"
set sv_wwwbaseURL "http ://www.yoursite.com/cod4" set sv_wwwbaseURL "http ://www.yoursite.com/cod4/" set sv_wwwbaseURL "http ://yoursite.com/cod4/" set sv_wwwbaseURL "http ://yoursite.com/cod4"
Those Examples would all work fine above
Cleaning a Map .IWD File
Many maps have a dirty .iwd file as we will call it for this tutorial
You will need winrar the newest available version HERE
- Install winrar
- double click a dirty map .iwd file for instance
- Browse the contents of the .iwd.
- Delete any folder besides sounds and images folders
- Most maps dont have a sounds folder
- Browse the contents of the images folder and make sure that there is only .iwi files included in the images folder and no readmes or anything of the likes.
- If there is a readme in the images folder or anywhere else in the .iwd it needs to be deleted.
- Only a couple maps will have fx scripts located in them in folders those maps will not work the usermap way I think there is about 4 or 5 of these type of maps not many at all.(Sharqi Day ,Sharqi Night ,Village Day ,Village Night,)
Tips
- Must have lowercase letters in your mods folder on redirect
- Must have clean .iwds to run the usermap way, read above to learn how to clean them
- Any maps located in your own usermap folder that only have 2 files or a dirty .iwd will cause you errors on server rotations,restarts ect.
If you are not sure what you have been downloading from servers (clean .iwds or not) then you should just delete all your maps to start fresh with no unexpected problems.Your maps included in your usermap folder should all have 3 files and the .iwds should be clean.This is how you stay error free.
- Advantages to the usermap way and cleaned .iwd way = Can rotate,restart,ect ect with minimal errors.Can add + delete maps while server is running if your slick Wink
Cannot do either of those easily if the map .iwds are located in your mod folders.Will not have to download multiple .iwds upon joining a server or a pack of .iwds.Makes it 10 times easier to change maps in your server to add and delete them.There is so many advantages its ridiculous it must be done the right way thats all there is to it.
- A Couple issues that can still happen even when set up right = You can get a cl_areliableservercommandwascycledout error due to bad connections of clients either way it needs fixing.
- Another issue that can easily happen is timeouts - depending on where you are located and where the servers redirect server is located its the cause of the problem for sure.Someone one from uk joining a west coast server could easily timeout or on any long distance connections that are made.Of course it will matter what type of connection you may have,if the server is some home pc or a real dedicated server,all that good stuff.
- Number 5 and 6 can also happen Ive noticed when a client is joining the server ,starts to download a map but the server has now rotated this will give the 2 problems above sometimes ,sometimes not ?
- All Mods Are Different (Couple Tips To Be Aware Of)
- Make sure to read any mods readme you are using very well
- The tutorial above doesnt going into a couple important facts ill list below
- Putting mod cfgs in your server can depend on what mod you are running
- For instance you all know that Extreme X4 2.0 uses its own config folder which you need to upload cfgs to for it to work
- Every Mod has a couple different tricks that I couldnt possible cover easily in this one tutorial id almost have to make a tutorial for each mod ,but you and I know that would be to much work.
- So all im saying is the tutorial above is the basic rule of thumb but when it comes to each specific mod make sure to read the readmes very good and understand where the mod author is explaining to put the cfgs,files,ect.
Setting Up Cod4 Custom Maps
If you downloaded a map named newmap for instance
newmap.ff newmap.iwd newmap_load.ff
should all be in a folder named newmap inside your usermaps folder on both your server and redirect
Most map .iwds need to be cleaned
directions below on how to clean them
In your redirect ftp you would make a folder named cod4 then inside that make a usermaps folder and a mod folder on your redirect just like it is in your game itself and in your server.These all need to be exactly the same to work properly
So you would look in cod4 folder on your redirect and you would have two folders mods and usermaps just like in your server
In mods would be your mod folders you use for your servers we will get in to that next
in usermaps all map files all 3 after youve cleaned them would be in a folder named the name of the map with the cleaned .iwds read below to learn how to clean them.
Example below
.ff = http ://yoursite.com/cod4/usermaps/yournewmap/yournewmap.ff
.iwd = http ://yoursite.com/cod4/usermaps/yournewmap/yournewmap.iwd
.load = http ://yoursite.com/cod4/usermaps/yournewmap/yournewmap_load.ff
Directory Structures
Maps In Redirect
.ff = http ://yoursite.com/cod4/usermaps/yournewmap/yournewmap.ff
.iwd = http ://yoursite.com/cod4/usermaps/yournewmap/yournewmap.iwd
.load = http ://yoursite.com/cod4/usermaps/yournewmap/yournewmap_load.ff
Maps In Server
.ff = cod4/usermaps/yournewmap/yournewmap.ff
.iwd = cod4/usermaps/yournewmap/yournewmap.iwd
.load = cod4/usermaps/yournewmap/yournewmap_load.ff
Maps In Client
.ff = cod4/usermaps/yournewmap/yournewmap.ff
.iwd = cod4/usermaps/yournewmap/yournewmap.iwd
.load = cod4/usermaps/yournewmap/yournewmap_load.ff
Mods In Redirect
.iwd = http ://yoursite.com/cod4/mods/mymod/mod.iwd
.ff = http ://yoursite.com/cod4/mods/mymod/mod.ff
Mods In Server
.iwd = cod4/mods/mymod/mod.iwd
.ff = cod4/mods/mymod/mod.ff
Mods In Client
.iwd = cod4/mods/mymod/mod.iwd
.ff = cod4/mods/mymod/mod.ff
--WikiSysop 14:02, 7 January 2011 (UTC)