PDA

View Full Version : CMD String ?


Forsaken
11-09-2002, 01:10 PM
Anyone know how to invoke the dedicated server via the cmd string.

DK666
11-09-2002, 01:11 PM
Yes

Forsaken
11-09-2002, 01:14 PM
what a useful response, thanks for taking the time...

DK666
11-09-2002, 01:18 PM
Sorry had to type it up....


Here ya go

C:\Program Files\EA GAMES\Medal of Honor Allied Assault Spearhead Demo\demote

In here there is a file called server.cfg

// Server Name
// Name that will appear on the server browser
sv_hostname "Nameless Battle"

// Game Type
// 1 Free for All
// 2 Team Based
// 3 Round Based
// 4 Objective
// 5 Tug Of War
set g_gametype 1

// Health Drop
// When enabled players will drop a health pack when killed
set g_healthdrop 1

// Realism
// Toggles realistic mode
set g_realismmode 0

// Fast Run Speed
// When checked, the speed at which players can run through levels is increased.
// Leaving it unchecked defaults to Medal of Honor Allied Assault's original run speed
set sv_dmspeedmult 1.100000

// Team Damage
// Toggles friendly fire
set g_teamdamage 0

// Heal Rate
// Determines how fast players heal when they use a health pickup
set g_healrate 10

// Max Players
set sv_maxclients 16

// Time Limit
// This sets the elapsed time at which the game ends, the winner being the player with the highest score at that time.
timelimit 0

// Frag Limit
// The score at which the player or team will win the current map.
fraglimit 0

// Map Rotation Time
// This sets the maximum amount of time in minutes players will spend in a particular map.
maprotationtime 0

// Team Spawn Delay
// This sets a delay in seconds between spawns. This is useful if you would like the
// player spawned in batches, rather than one at a time
set sv_team_spawn_interval 15

// Round Reset Time
// This sets how long each round will take, in minutes. This can be smaller than the map rotation time, but not larger.
roundlimit 0

// Inactive Spectate
// This sets the time in seconds after which an inactive player becomes a spectator. To save server bandwidth, 60 seconds is default.
set g_inactivespectate 60

// Inactive Kick
// This sets the time in seconds after which an inactive player is kicked out of the game. 900 (15 minutes) seconds is default.
set g_inactivekick 900

// Use Gamespy
// To use GameSpy gaming service for internet-based multiplayer games.
set sv_gamespy 1

// Pure
// Verifies that the files on the client are the same as those on the server.
set sv_pure 0

// Allow Vote
// Enables players to call a vote.
set g_allowvote 1

// Flood Protect
// Limits amount of text a player can type
set sv_floodprotect 1

// Force Team Spectate
set g_forceteamspectate 1


set dmflags 0

set g_forceready 0

set g_forcespawn 0

// Invulnerable Time
// Amount of time a player is invulnerable for after spawning
set sv_invulnerabletime 3

// Team Kill Warning
// Amount of team kills before the player is warned
set g_teamkillwarn 3

// Team Kill Kick
// Amount of team kills before the player is kicked off the server.
set g_teamkillkick 5

// Team Switch Delay
// Frequency at which you can switch teams
set g_teamswitchdelay 15

// Gravity
set g_gravity 512.000000

// Allow Join Time
set g_allowjointime 30

// Private Clients
// Clients that require a password to join
set sv_privateclients 0

// Password
// Allows you to set a password for the server
set sv_privatepassword ""

// Keywords
// Keywords which allow browsers to filter servers.
set sv_keywords ""

// Net Port
set net_port 12203

// Minimum Ping
set sv_minping 0

// Maximum Ping
set sv_maxping 0

// Maximum Rate
set sv_maxrate 0

// Map
// Starting map on the rotation.
map "dm/mp_malta_dm"

// Map Rotation List
sv_maplist "dm/mp_malta_dm obj/mp_druckkammern_tow"




Now changes the things you want. And save the new server.cfg to the C:\Program Files\EA GAMES\Medal of Honor Allied Assault Spearhead Demo.


Then change your shortcut to "C:\Program Files\EA GAMES\Medal of Honor Allied Assault Spearhead Demo\moh_spearhead_demo_server.exe" + set ui_console 1 +exec server.cfg


That should do it. Sorry I closed the windows as I was typing it up.....

Forsaken
11-10-2002, 08:02 AM
Thanks DK666, worked great I was pointing to the game.exe instead of the game_server.exe...DOH!