PDA

View Full Version : Linux server help


imported_GenConfusion
11-03-2003, 10:31 AM
I know the linux server was pulled to be re-released afetr Q+A but i know there are poeple out there running it on the linux binaries which "escaped" and with help id like to get a server up and running. Now i have installed the game and its uploaded on my server and is all configed exactly as the readme says, but when i try to start the server i get this error:

Sys_LoadDll(/home/superserver/.callofduty/main/game.mp.i386.so)... ./codstart.sh: line 1: 1331 Segmentation fault ./cod_lnxded +ip 195.20.108.99 +set net_port 28960 +set ttycon 0 +exec cod_server.cfg


for completeness my config is as the bottom of this post, but at this stage that does not seem to be the error, as when i try to do a very basic server startup, i.e. running this:

./cod_lnxded

then when the paks etc are registered and console is active, type map mp_brecourt i get the same segmentation fault!

if anyone has any ideas id be very greatful :|, maybe my binaries are dead i dunno :( im a bit of a linux n00b tbh.

CONFIG FILE USED:


//***** Example of my server_sd.cfg *****
set sv_pure "0"
set dedicated "2"
set sv_hostname "={ASB}= CoD Server Seek and Destroy - FF oFF"
set scr_motd "Welcome to ={ASB}= first try at hosting Call of Duty"

set g_password ""
seta rconPassword "XXX"
seta sv_maxclients "24"
seta sv_privateclients "0"

seta sv_maxrate "10000"
seta sv_maxping "600"
seta sv_minping "0"
seta sv_fps "20"
seta com_conemegs "32"
seta com_soundmegs "32"
seta sv_cheats "0"

//General Game Default Description
set scr_allow_bar "1"
set scr_allow_bren "1"
set scr_allow_enfield "1"
set scr_allow_fg42 "1"
set scr_allow_kar98k "1"
set scr_allow_kar98ksniper "1"
set scr_allow_m1carbine "1"
set scr_allow_m1garand "1"
set scr_allow_mp40 "1"
set scr_allow_mp44 "1"
set scr_allow_nagant "1"
set scr_allow_nagantsniper "1"
set scr_allow_panzerfaust "1"
set scr_allow_ppsh "1"
set scr_allow_springfield "1"
set scr_allow_sten "1"
set scr_allow_thompson "1"

set scr_allow_vote "0" // Allow call voting
set scr_drawfriend "1" // Draws a team icon over teammates
set scr_forcerespawn "0" // Force respawning - DM & TDM
set scr_friendlyfire "0" // 0 - off 1 - on 2 - reflect damage

//Deathmatch Default Description
set scr_dm_scorelimit "0" // Map score limit
set scr_dm_timelimit "20" // Map time limit - 0 to 1440, in minutes

//Team Deathmatch Default Description
set scr_tdm_scorelimit "0" // Map score limit
set scr_tdm_timelimit "20" //

//Retrieval Default Description
set scr_re_graceperiod "10" // Time at round start where spawning and
weapon choosing is still allowed, 0 - 60 in seconds
set scr_re_roundlength "4" // Map round length in minutes
set scr_re_roundlimit "0" // Max Number of round wins per map
set scr_re_scorelimit "10" // Map score limit
set scr_re_showcarrier "0" // Show the objective carrier on compass
set scr_re_timelimit "20" // Map time limit, in minutes - 0 to 1440

//Search and Destroy Default Description
set scr_sd_graceperiod "10" // Time at round start where spawning and
weapon choosing is still allowed, 0 - 60 seconds
set scr_sd_roundlength "4" // Round length
set scr_sd_roundlimit "0" // Max Number of round wins per map
set scr_sd_scorelimit "10" // Map team score limit per map
set scr_sd_timelimit "20" // Map time limit, in minutes - 0 to 1440

//Behind Enemy Lines Default Description
set scr_bel_alivepointtime "10" // Number of seconds to get a point for
staying alive as allied
set scr_bel_scorelimit "50" // Map score limit
set scr_bel_timelimit "30" // Map time limit, in minutes - 0 to 1440

exec mapcycle_sd.cfg
//exec mapcycle_dm.cfg
//exec mapcycle_tdm.cfg
//exec mapcycle_re.cfg
//exec mapcycle_be.cfg


and mapcycle_sd.cfg is (just to letme change the cycles quickly and easily :D ):


//Seek and destroy map rotation

set sv_mapRotation "gametype sd map mp_brecourt gametype sd map mp_carentan gametype sd map mp_dawnville gametype sd map mp_depot gametype sd map mp_harbor gametype sd map mp_hurtgen gametype sd map mp_pavlov gametype sd map mp_railyard gametype sd map mp_rocket"
set g_gametype "sd"
map mp_brecourt

many thanks in advance.

imported_RiZZO
11-03-2003, 10:48 AM
i see you have a typo with setting the IP!


./cod_lnxded +ip 195.20.108.99 +set net_port 28960 +set ttycon 0 +exec cod_server.cfg



this should work.

./cod_lnxded +set net_ip 195.20.108.99 +set net_port 28960 +set ttycon 0 +exec cod_server.cfg


but i have made a keep a live script:
2 .sh files to start the server
you need to have screen installed on you linux server!


example >> start.sh


#!/bin/bash

echo COD:Launching SSS Server!
sleep 5
echo COD: Server Start
cd /home/cod
screen -dmS cod ./cod1.sh
echo SSS Server Started



example >> cod1.sh



#!/bin/bash

while true
do
sleep 3
cd /home/cod
echo COD-SSS: Server Start
./cod_lnxded +set net_ip 213.239.181.140 +set net_port 28961 +exec sss.cfg
echo COD-SSS: Server Exit

done


make sure your .sh files have exec rights


good luck,

RiZZO

imported_GenConfusion
11-03-2003, 10:57 AM
yep RiZZO well spotted, looks like thats a minor change from MoHAA binaries then :D its chnaged but still the segmenttion error, im begining to thing there is an error with my download of the binaries :|

imported_GenConfusion
11-03-2003, 12:06 PM
scratch the broken binaries, ive tried a new download of them and the same error :|

imported_RiZZO
11-03-2003, 12:34 PM
Hi Gen,
you can add me on your MSN if you need a bit help ..

my addy: rizzo@no-fear.nl



Cheers,

RiZZO

UraniumGamers
11-17-2003, 04:19 AM
*hint

For others who are running the CoD linux leak and are having segmentation fault errors, and you are running multiple servers on one system, try setting your fs_homepath and fs_basepath...


Todd @ UraniumGamers.com