If you want to setup your own Medal of Honor Dedicated Server, you can refer to the detailed guide below. Its a generic guide for every Medal of Honor game to date, which supports dedicated server feature.
How to Setup Medal of Honor Dedicated Server
1. Create a shortcut of your MOHAA game.
2. Right Click on the shortcut, open the properties and in the target field type in the following (line number 3) after the “C:\Program Files\EA GAMES\MOHAA\MOHAA.exe”.
3. +set dedicated 1 +set ui_console 1 +set sv_maxclients 12 +exec server.cfg
4. It will look like[ “C:\Program Files\EA GAMES\MOHAA\MOHAA.exe” +set dedicated 1 +set ui_console 1 +set sv_maxclients 12 +exec server.cfg ] 5. Make sure there is a space after MOHAA.EXE” and +set dedicated 1.
+set dedicated 1: It executes the game in dedicated server mode.
+set sv_maxclients 12: It sets the number of max clients on the server, it can be upto 32.
+exec server.cfg: You will need to create a file named server.cfg which will consist of a lot of settings for your server. So you wont need to put in all the commands again and again and just execute it once if your server crashes/shifts for the good.
Server Configuration File
You will have to create a server.cfg file. Open it with any text editor and put in the following common commands.
sv_hostname "your hostname here" It is used for setting up your server name example sv_hostname The Eternals MOH Server fraglimit 0 //Sets the limit of Frags that will end the match //( 0 = no fraglimit) timelimit 25 //Sets the amount of time (in minutes) for map changes //(0 = no timelimit) sv_maplist "dm/mohdm1 dm/mohdm2 dm/mohdm3 dm/mohdm5 dm/mohdm7" //This is the list of maps that will be cycled for the server sv_allowDownload 0 //Toggles allowing client downloads from server, like custom maps //(0-off 1-on) sv_maxRate 9000 //Max data transmit rate by clients on the server. //(setting depends on network) sv_maxPing xxx //Keeps anyone with a higher ping than this value from connecting //to the server sv_fps 20 //Server FPS, this should increase performance (20 is the default) sv_floodProtect 1 //Flood protection from server crashing text messages set flood_waitdelay 10 //not too sure on this, possibly time before flooder is allowed //to type again (default) set flood_persecond 4 //messages per second to be considered a flood ?? (default) set flood_msgs 4 // ?? (default) sv_pure 0 //Pak checker, does not allow clients to use PAK files the server //doesn t have (0=off 1=on) sv_gamespy 1 //Allows your server to show up in the Gamespy browser, and the //In-game browser (v1.1) set g_inactiveKick 300 //Time (in seconds) that a client will be kicked for inactivity set g_inactiveSpectate 60 //Time (in seconds) that a client will be moved to spectator for //inactivity set g_teamdamage 0 //Sets friendly fire 0=off 1=on net_noipx 1 //Disallows IPX connections, TCP only (network protocol) net_port 12203 //Sets the port # for the game to run off of (12203 is the default)
After that save the server.cfg (Make sure it is as server.cfg and NOT server.cfg.txt)
Rcon Setup Guide
As we all know that RCON stands for Remote Control. Setting it up helps us to control our server from anywhere in the world via the internet. You can change maps, kick/ban players and alot more very easily.
First of all you will need to enable the RCON function on your server and for that you will need to edit the server.cfg file of your server.
1. Open the server.cfg file from any text editor like notepad.
2. Add the following line anywhere without the inverted commas “set rconpassword [password]”
3. The [password] field is where you will enter the password you want for the server. Its like a login, consider that your password is noob then you will have to insert the following line. “set rconpassword noob”.
4. Save the file, make sure you dont save the server.cfg file as a text document. THE EXTENTION MUST BE “.cfg”.
How to Enable The Console
For using the RCON you have to enable your console. The console is used for giving the input of your commands.
There are two ways for it,
1. Click on the RADIO which is on the left hand side of your game’s main menu.
2. Open Advanced Options and see that there is a red X on the consoles value and apply the settings. That’s it you have enabled the console.
1. Create a shortcut to your MOHAA.EXE file.
2. Right click on that shortcut, open properties and in the target field, write “+set ui_console 1” (without the inverted commas) in the end of it.
3. It will look like this “C:\Program Files\EA GAMES\MOHAA\MOHAA.exe” +set ui_console 1.
4. Make sure there is a space between MOHAA.exe” and +set ui_console1
5. Click on OK and close the properties.
How to Use the RCON
If you have the game opened (Single Player Or connected to any Online Server) then hit the tidle key (~) It will open the console. If you are not playing in on your own server. If you want to use the RCON directly to your server without disconnecting from that server then type the following in the console.
rconaddress [your server’s IP ] Example : rconaddress 184.108.40.206
and hit enter.
After that type
rconpassword [your password] Example : rconpassword noob
You just need to type the password once, then you can send direct commands to the server without putting in your password again and again. (LINE 1)
If you are already connected on your own server, then just type:
You can also access the RCON without running your game and for that you need RCON TOOL, one of the famous is THE ALL SEEING EYE. But its only available on a trial from http://www.udpsoft.com/eye/ It is quite easy to use.
Usage: rcon cd [ path ] cd = Change Directory. This is the same command used in dos. You can change directory on the server.
Usage: rcon clientkick [ client number ] Use this command after using the status command. This enables a server admin to easily kick users via their client number instead of their name.
Usage : rcon cmdlist [ letter ] Will return all know rcon commands. Optionally, if you put a single letter it will only return commands starting with that letter. Not all work though.
Usage: rcon crash
Will crash your server. Be careful with this command. Especially if your host does not run a script to restart your MOH.exe
Usage : rcon cvarlist [letter ] Will return all know variables, or cvars. Optionally, if you put a single letter it will only return cvars starting with that letter.
Usage: rcon dir
Will return a directory listing of your dedicated servers MOH\main directory (folder)
Usage: rcon dumpuser [client name ] Will return info on a user :
dm_playermodel : allied_airborne – Name of the skin the client is currently using
dm_playergermanmodel : german_elite_sentry – Name of the model the client is currently using
name : John Doe – Name of the client
rate : 20000 – Clients rate
snaps : 20 – ??
password : sex- If the client is connecting via a password, this is the password he is using.
Usage: rcon exec server.cfg
This will execute your server.cfg file. causing any changes made to this file to take effect. If you have multiple cfg file. Say one for TDM and one for OBJ. maps. You can use this to execute the *.cfg file of your choice. changing game types, maplist or other properties of a cfg file.
Usage: rcon freeze [ seconds ] Freezes all players on the server for what ever amount of time you put.
( Good for getting the undivided attention of clan mates/ Clients)
Usage: rcon kick [client name or “all” ] kicks a client by his in game nick. If a the client has a space in his name. Surround his name in quotes. If you wish to kick all clients at once. then use all.
Usage: rcon map [complete map name. ie: dm/mohdm4 or obj/obj_team4 ] Use this to change maps.
Usage: rcon meminfo
This will return information, on how much memory your dedicated server is using. May be helpful when renting a server from another party.
Usage: rcon quit
This will shutdown your dedicated game server. Kicking all clients and dropping your rcon connection. Some providers run scripts that monitor your MOH.exe. When this script notices your moh.exe not running.
They will restart the moh.exe for you. This is good when you upload a new map and need to restart your server. For the new maps load. Check with your provider to see if they have any type of script running on the server before executing this command!
Usage: rconaddress [ server ip address ] This is how you initiate a connection to the rcon server your trying to control .Please note there is no spaces between rcon and address.
Usage: rconpassword [password ] This is your rcon password you setup within your server.cfg file. If you ever post or send someone your cfg file, make sure you do not include this entry. Please note that there is no spaces between rcon and password.
Usage: rcon restart
Will restart the current map .
Usage: rcon say [ your message ] T his command is used to broadcast messages to all clients in real time.
Usage: rcon serverinfo
It will return quite useful information about your server
Usage: rcon status
Will return information on all connected clients including: current map name, client number, client’s score, client’s ping, client’s name, client’s IP address, client’s qport and client’s rate.
Usage: rcon systeminfo
Will return system info g_syncronousclients, sv_serverid, and timescale.
Usage : rcon set [variable ] [ value ] Sets the value of a variable.
Usage : rcon seta [variable ] [ value ] Sets the value of a variable and the archive flag so that the value will be saved to the user’s Default.cfg file to be loaded each time the game is loaded.
Usage : rcon sets [variable ] [ value ] Sets the value of a variable and the server flag so that the variable is transmitted to clients upon connect. Is implemented in MoHAA but does not seem to function properly.
Usage: rcon seta sv_hostname [ server name ] You can change your servers name ( ASE / GameSpy ) at any time. Just remember that it may take several seconds for gamespy or ASE to update. Good when you have just set the serve r private.
Usage: rcon sets admin [ admin’s name ] This will also update your ASE info on the fly. It may take a couple of seconds to update on the master server.
Usage: rcon seta g_motd [message of the day ] This will also update your ASE/GS info on the fly. It may take a couple of seconds to update on the master server. Does not broadcast any messages to clients connecting to your server MOTD=message of the day .
Usage: rcon sets URL [Server URL ] This will also update your ASE info on the fly. It may take a couple of seconds to update on the master server. Does not broadcast any messages to clients connecting to your server. This link should provide information to your clients. Map list, Map downloads, Server rules.
Usage: rcon sets Connection [Server’s connection speed ] This will also update your ASE info on the fly. It may take a couple of seconds to update on the master server. Does not broadcast any messages to clients connecting to your server. This is only to inform your clients what type of connection your server uses. This can be anything.
Usage: rcon seta timelimit [Number of minutes ] Whole number, representing how long each map will be played.
Usage: rcon seta fraglimit [Number of frags ] Whole number, representing how many kills a team needs to win a map.
Usage: rcon set g_gametype [ Number from 1 to 4 ] Changes the game type 1= FFA 2= TeamMatch 3= RoundBased 4= Objective 5=
Tug Of War
Usage: rcon set g_teamdamage [0 or 1 ] Changes FF ( friendly fire ): 0=no 1=yes
Usage: rcon set g_inactiveSpectate [Number of seconds ] Whole number, representing how long, in seconds, before an inactive player is moved into Spectate.
Usage: rcon set g_inactiveKick [Number of seconds ] Whole number, representing how long, in seconds, before an inactive spectator will be kicked.
Usage: rcon seta g_allowjointime [ Number of seconds ] The time period after a map start that the players are allowed to join in seconds: Default=30 . Setting this to 5 will STOP RESPAWNERS
How to Set Custom Maps in Rotation
Upload/Put the map files into main folder. Create a rotate.cfg file in the main folder, and put in the following commands in it. The Last line (set m_rotate 1_6 “map mp_long ; set nextmap vstr m_rotate 1_7”) has the name of the custom map i.e mp_long(without the extention i.e .bsp), you can change it to the name of your map(without.bsp). And it will be added to the rotation.
set m_rotate1 “map mp_assault ; set nextmap vstr m_rotate1_2”
set m_rotate1_2 “map mp_base ; set nextmap vstr m_rotate1_3”
set m_rotate1_3 “map mp_beach ; set nextmap vstr m_rotate1_4”
set m_rotate1_4 “map mp_castle ; set nextmap vstr m_rotate1_5”
set m_rotate1_5 “map mp_depot ; set nextmap vstr m_rotate1_6”
set m_rotate 1_6 “map mp_long ; set nextmap vstr m_rotate 1_7”
Note. You may Need to execute the rotate.cfg file to apply the settings on your server, the server.cfg mentioned above is the simplest, and it doesnt include the command to execute rotate.cfg.
The DMFLAGS are the settings of your MOH server. They effect settings like the damage,ammo,footsteps and everything like that.
To set the DMFLAGS you need to add the values of the variables. For Example, You want DF_NO_HEALTH 1 and DF_NO_POWERUPS 2 Then you will put the following command in your server.cfg file as
set dmflags 3
As we add 1+2 =3.
Here are few of the commands we know of:
// dmflags -- flags that can be set in the dmflags variable. // DF_NO_HEALTH 1 // DF_NO_POWERUPS 2 // DF_WEAPONS_STAY 4 // DF_NO_FALLING 8 // DF_INSTANT_ITEMS 16 // DF_SAME_LEVEL 32 // DF_NO_ARMOR 2048 // DF_INFINITE_AMMO 16384 // DF_NO_FOOTSTEPS 131072 // DF_ALLOW_LEAN 262144 // DF_OLD_SNIPERRIFLE 524288 // DF_GERMAN_SHOTGUN 1048576
Note. Many Of These variables are reported to not work properly, and will/can be fixed in the upcoming patches. We strongly suggest you to not use the DMFLAGs as they are not reliable at the moment.
How to Change GameType
set g_extgametype ffa // Free-For-All
set g_extgametype tdm // Team-Match
set g_extgametype rbm // Round-Based-Match
set g_extgametype obj // Objective-Match
set g_extgametype tow // Tug-of-War
set g_extgametype lib // Liberation
set g_extgametype ctf // Capture-The-Flag
set g_extgametype ft // Freeze-Tag
set g_extgametype ftobj // Freeze-Tag-Objective
set g_extgametype ftctf // Freeze-Tag-CTF
set g_extgametype fttow // Freeze-Tag-TOW
set g_extgametype dem // Demolition
set g_extgametype ftdem // Freeze-Tag-Demolition
If you face any issues setting up your Medal of Honor Dedicated Server, you can write in comment and we will try to help you out.