PDA

View Full Version : Windows COD2 Server Crashing


MikeC
06-14-2006, 09:23 PM
Hi all,

I seem to be having a problem with one of my COD2 servers... all the rest are fine but one of them is crashing with the following error:-

******* script runtime error *******
Unknown weapon mosin_nagant_mp.: (file 'maps/mp/gametypes/sd.gsc', line 776)
self setWeaponSlotWeapon("primary", self.pers["weapon"]);
*
called from:
(file 'maps/mp/gametypes/sd.gsc', line 366)
spawnPlayer();
*
called from:
(file 'maps/mp/gametypes/_callbacksetup.gsc', line 38)
[[level.callbackPlayerConnect]]();
*
started from:
(file 'maps/mp/gametypes/sd.gsc', line 1339)
wait 0; // Required for Callback_PlayerDisconnect to complete before updateTeamStatus can execute
*
************************************
dvar set cl_paused 0
dvar set loc_language 0
dvar set loc_forceEnglish 0
dvar set com_errorTitle Error
dvar set com_errorMessage script runtime error
(see console for details)
(file 'maps/mp/gametypes/sd.gsc', line 1339)

********************
ERROR: script runtime error
(see console for details)
(file 'maps/mp/gametypes/sd.gsc', line 1339)

********************
----- Server Shutdown -----

It looks as though it may be something to do with weapons but I can understand why.

Can anyone shed any light on this?

Many Thanks
Mike

Wolfster66
06-15-2006, 01:30 AM
you using any mod on this server? windows or linux server?

MikeC
06-15-2006, 04:34 PM
No mods at all... Windows Server

Daffy
06-15-2006, 05:31 PM
Does the Command string to startup the server have this:

+set developer 1

Because that will cause a server to hang up on RunTime Errors.

Also, be sure to remove EVERY non-stock map file as sometimes, mappers include copies of modded files and this could be the issue.

MikeC
06-15-2006, 05:37 PM
Hi Daffy,

Here is the start line:-

CoD2MP_s.exe +set net_ip 88.208.202.128 +set net_port 28961 +set dedicated 2 +set sv_punkbuster 1 +exec omega20.cfg +map_rotate

No other maps are on the server apart from default

MikeC
06-15-2006, 07:04 PM
OK this is weird, I have replaced all the files and started from scratch... it seems to crash on S&D when the round changes... it comes up with the error above.

Could it be anything to do with the map rotation?

Here is a copy of the config file:-

//#######################################
// Server Name, Messages #
//#######################################

// Text Colors.
//=============
// To use place the code in front of the letters
// whoes color you want to change. For example if you
// Want yo make killer to show in red typr ^1killer
// or ^1Kill^3ers shows Kill in red and ers in yellow
// ^1 = red
// ^2 = green
// ^3 = yellow
// ^4 = dark blue
// ^5 = light blue (cyan)
// ^6 = magenta
// ^7 = white

// Hostname - Name of your server.
set sv_hostname "^963rd^1[^7Kings^1]^9Public^1/^9Match server"

// Message of the Day. This function is not working in CoD2 yet.
set scr_motd "^1[^9Welcome to ^763rd ^9Clan server. ^7We are recruiting ^9ask one of our members for details!^1]"


//#######################################
//Passwords
//#######################################

// Rconpassword - Set the rcon password so you can manage the server from the console.
// Even if you never plan on using this you still need to set a password so people
// can rcon your server.
set rcon_password "****"

// Server password to lock server - Used to make players enter a password before connecting
set g_password ""

//Private Slots password
set sv_privatePassword ""

//#######################################
//Player and Voice Options
//#######################################

//Voice - In game voice comms (0=off - 1=on)
seta sv_voice "0"
//set sv_voiceQuality "1"


// Number of Public Players allowed on server
set sv_maxclients 20

// Number of Private Slots for players to connect to without taking up a public spot.
// Please note they will need the sv_privatePassword to login. Also the private slots
// will take the slots from your max clients slots and password them. So if you have a
// 10 man server and make 4 slots private only 6 people can connect without password.
set sv_privateClients ""

//Downloads - Allow downloads from the server. Used for custom client side mods.
seta sv_allowAnonymous "1"
set sv_allowdownload "1"

//Start Punkbuster
pb_sv_enable // If you want PB disabled, use pb_sv_disable instead
wait // This is required for proper PB startup

set sv_punkbuster "1"




// Limit Laggers and reconnect spammers
// ------------------------------------

// Limits how long a player must wait to reconnect to a server
set sv_reconnectlimit "3"

// Min Ping
set sv_minPing "0"

// Max Ping
set sv_maxping "200"

// Rate
set sv_maxRate "25000"

// - Banning
set g_banIPs ""

// AntiFlooding Settings
set sv_floodProtect "1"



//################################################## ####################
// General Server Settings #
//################################################## ####################

// sv_pure - controls crc/zip check of client pk3 files to make sure the pk3
// file has not been modified for cheating or other purposes. Client pk3 files must
// match that of the server to connect.
// The default is set to 1, or on. Set to 0 to turn off check.
sv_pure 0

// Team Icons - Draw icon over team mates (1=on - 0=off)
set scr_drawfriend "1"

// Forced Respawn - forces player to repawn when killed (1=on - 0=off)
set scr_forcerespawn "0"

// Friendly Fire - Team mates can hurt each other (1=on - 0=off - 2=shared)
set scr_friendlyfire "0"

// Killcam - Show kill cam to player when killed (1=on - 0=off)
set scr_killcam "0"

//temporary Ban duration, in hours? minutes?
set sv_kickBanTime "24"

// Free Spectate - Allows player to spectate the game (1=on - 0=off)
set scr_spectatefree "1"

// Spectate Ememy - Allows players to spectate the enemy (1=on - 0=off)
set scr_spectateenemy "0"

// Auto Team Balance - Server will auto balence teams when they get too many player on one side (1=on - 0=off)
set scr_teambalance "1"

//################################################## ####################
// Weapon Settings #
// Allow or disallow weapons here #
// 1 = Weapon enabled #
// 0 = Weapon disabled #
//################################################## ####################

// Weapon Ammo Pools
set g_weaponAmmoPools "1"

//Snipers
set scr_allow_enfieldsniper "1"
set scr_allow_kar98ksniper "1"
set scr_allow_nagantsniper "1"
set scr_allow_springfield "1"
set scr_allow_svt40 "1"

// Rifles
set scr_allow_enfield "1"
set scr_allow_kar98k "1"
set scr_allow_m1carbine "1"
set scr_allow_m1garand "1"
set scr_allow_nagant "1"
set scr_allow_g43 "1"
// MGs
set scr_allow_bar "1"
set scr_allow_bren "1"
set scr_allow_mp44 "1"
set scr_allow_ppsh "1"

//SMGs
set scr_allow_sten "1"
set scr_allow_mp40 "1"
set scr_allow_thompson "1"
set scr_allow_pps42 "1"
set scr_allow_greasegun "1"

// Shotgun
set scr_allow_shotgun "1"

// Grenades
set scr_allow_smokegrenades "1"
set scr_allow_fraggrenades "1"


//################################################## ####################
// Allow Voting #
// It is recommended if you have friendly fire on #
// that you also enable voting so that players can kick team-killers. #
//################################################## ####################

set scr_allow_vote "0"
set g_allowvote "0"

//################################################## ####################
// Log File #
//################################################## ####################

// logfile "" (0 for off, 1 for buffered, 2 for continuous, 3 for appended)
set logfile "2"

// Logfile Name
set g_log "games_mp.log"

// Misc options (0 for off, 1 for buffered, 2 for continuous, 3 for appended)
set g_logsync "0"
set sv_log_damage "0"

//################################################## ####################
// Match Settings #
// This is where you set the game type options like time limit, #
// flag captures, score limit, ect #
//################################################## ####################

// CTF
set scr_ctf_scorelimit "5"
set scr_ctf_timelimit "30"

// S&D
set scr_sd_bombtimer "60"
set scr_sd_graceperiod "10"
set scr_sd_roundlength "3"
set scr_sd_roundlimit "0"
set scr_sd_scorelimit "10"
set scr_sd_timelimit "0"

// TDM
set scr_tdm_scorelimit "200"
set scr_tdm_timelimit "45"

// DM
set scr_dm_scorelimit "50"
set scr_dm_timelimit "15"

// HQ
set scr_hq_scorelimit "600"
set scr_hq_timelimit "30"


//################################################## ####################
// Map Settings #
//################################################## ####################

//Game Type (tdm=Team Death Match - dm = Death Match - ctf = capture the flag
set g_gametype "ctf"

set sv_mapRotation "gametype sd map mp_burgundy gametype sd map mp_carentan gametype sd map mp_toujane gametype sd map mp_matmata gametype sd map mp_caen"

map_rotate

map mp_burgundy

//################################################## ##############
// End - By RuTHlezz1 www.deadlyforcegaming.com
//################################################## ##############

MikeC
06-15-2006, 07:30 PM
Ok... looks like the clan have been messing with the config file... when looking at it the problem seems to be here:-

// S&D
set scr_sd_bombtimer "60"
set scr_sd_graceperiod "10"
set scr_sd_roundlength "3"
set scr_sd_roundlimit "0" <-----
set scr_sd_scorelimit "10"
set scr_sd_timelimit "0" <------

Changed those settings and it seems to be fine now touch wood :)

MikeC
06-15-2006, 08:04 PM
God damnit... that wasnt the problem... its just happened again :confused:

payableondeath
06-16-2006, 11:09 AM
Have you tried another game type? say DM or CTF, just to besure its S&D Game type that its crashing on

MikeC
07-09-2006, 09:30 AM
Hi,

I'm still getting this problem and yes it is fine on other gametypes. The server will only come up with a script runtime error whilst on S&D

Anyone else got any ideas?

MajorWoody
07-10-2006, 12:26 AM
Corrupt file? Anti virus running? Bad block on the hard drive? Bad ram?

HarryBall
07-10-2006, 02:42 PM
Hey MikeC try this for your map rotation. This is a copy of mine just put your maps in that you want to use. I have noticed a difference between windows and linux servers. This is my windows setup.

/ Set the Map Rotation

set sv_mapRotation "gametype tdm map mp_port gametype tdm map mp_frontline_carnage gametype tdm map mp_Russia gametype tdm map mp_desert gametype tdm map mp_oasis gametype tdm map mp_kustov_square_fixed gametype tdm map mp_snipertown gametype tdm map mp_industry gametype tdm map mp_shipwreck1 gametype tdm map mp_navaronne"


set sv_maprotationcurrent ""

Notice the last entry. I think this might help

MikeC
07-11-2006, 07:48 PM
The problem ONLY occurs when the gametype is on S&D! All other gametypes work fine.

No mods on the server, standard install but its really bugging me :undecided