LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Games (https://www.linuxquestions.org/questions/linux-games-33/)
-   -   Dedicated Server on Linux MOH Spearhead (https://www.linuxquestions.org/questions/linux-games-33/dedicated-server-on-linux-moh-spearhead-337072/)

dimmak 06-25-2005 12:21 PM

Dedicated Server on Linux MOH Spearhead
 
Hello all

I'm having a problem as it seems dificult to understand it!

I have installed recently on a Linux Box Medal Of Honor Spearhead 2.15 Beta5 source!

I can launch a server everything is fine it even shows on the gamespy etc.

Now i need to launch a second server so i created a second directory under /home/servers/ named MOHAA2


Problems is the last server is being launched it shows on the ingame browser over the old one even though port is different!

In details:

Server1 under /home/servers/MOHAA/ is on ip 1.1.1.1 and port 12203

Server2 under /home/servers/MOHAA2/ is on ip 1.1.1.1 and port 12204

(the ip is the same)

when server1 is launched it shows on the ingamebrowser but when i launch server2 then i loose server1 and i see only server2 and versus!

Its like every server i launch last takes priority for some reason!


I tested it Win32 and it works fine dont know why dont work on linux!


P.S. I tried running servers with different users, tried some variables etc.

All i need to know is if someone manage to do it so i will know it can be done if not might impossible for some reason!!


Thank You

otchie1 06-27-2005 04:37 PM

there is a port option in the .cfg file that must be changed and you should start the server with a similar reference to the required port because MOHSH sets up the port before it reads your config file which is kinda dumb although it should pick teh next free port after 12203 unless you force it otherwise in the .cfg

Change the DoM tags, add your own password file and you're good to go....

look
Code:

//-----------------------------------------------------------------------
//
//        DoM_public-03 - mixed obj,Tow & tdm maps lists
//
//-----------------------------------------------------------------------
sv_hostname "-=DoM=-Disciples of Mayhem [www.DoM-clan.co.uk]"
set g_gametype 4
set g_healthdrop 1
set g_realismmode 0
set sv_dmspeedmult 1.100000
set g_teamdamage 1
set g_healrate 10
set sv_maxclients 24
timelimit 10
fraglimit 100
maprotationtime 30
set sv_team_spawn_interval 12
roundlimit 0
set g_inactivespectate 60
set g_inactivekick 900
set sv_gamespy 1
set sv_pure 0
set g_allowvote 0
set sv_floodprotect 1
set g_forceteamspectate 1
set dmflags 1835008
set sv_invulnerabletime 3
set g_teamkillwarn 1
set g_teamkillkick 3
set g_teamswitchdelay 15
set g_allowjointime 30
set sv_privateclients 2
exec passwords.cfg //references external password file for ease of changing on multiple servers
set sv_keywords "objective"
//SEE BELOW
set net_port 12203 //this is your bit<<<<<<
//SEE ABOVE
set sv_minping 0
set sv_maxping 100
set sv_maxrate 0
seta sv_maplist "x1"
set x1 "set nextmap vstr x2; g_gametype 4; timelimit 20; roundlimit 5; map obj/obj_team1"
set x2 "set nextmap vstr x3; g_gametype 5; timelimit 20; roundlimit 10; map obj/MP_Druckkammern_TOW"
set x3 "set nextmap vstr x4; g_gametype 2; timelimit 20; roundlimit 10; map dm/mohdm2"
set x4 "set nextmap vstr x5; g_gametype 4; timelimit 20; roundlimit 5; map obj/obj_team4"
set x5 "set nextmap vstr x6; g_gametype 5; timelimit 20; roundlimit 10; map obj/MP_Flughafen_TOW"
set x6 "set nextmap vstr x7; g_gametype 2; timelimit 20; roundlimit 10; map dm/mohdm7"
set x7 "set nextmap vstr x8; g_gametype 4; timelimit 20; roundlimit 5; map obj/obj_team2"
set x8 "set nextmap vstr x9; g_gametype 2; timelimit 20; roundlimit 10; map dm/mp_stadt_dm"
set x9 "set nextmap vstr x10; g_gametype 4; timelimit 20; roundlimit 5; map obj/stLo"
set x10 "set nextmap vstr x1; g_gametype 4; timelimit 20; roundlimit 5; map obj/Renan"
sv_maplist ""
vstr x1
sv_sprinton 1
sv_runspeed 250
//
//you don't need these
//
//exec igi-control_public_03.cfg
//exec log_public_03.cfg

the set x stuff just lets you mix & match map types on one rotation..cahneg maps with rcon vstr x4 or whatever number you need.

Gueswho was a MOHSH admin? :cool:

dimmak 06-28-2005 06:53 AM

Thanks for your reply and for posting your config!

I assume you say to use command line parameters to set the port as well except from the config?


Question: Do you have been able to host 2 servers on the same linux box using one ip and different port?
If yes then which version of linux source you are using? (Spearhead_lndexBeta4 or Beta5)


Regards

Quote:

Gueswho was a MOHSH admin?
Who ? :p

otchie1 06-30-2005 12:28 PM

yep..had 3 servers running on teh same box and same ip.

start server at comnad line and terminate it with the port commnad.
I had each server with its own cfg files each with a different port number built in so 12204 ran 12204 cfg and 12205 ran 12205 cfg

was beta4 from memory

dimmak 07-04-2005 06:29 AM

So you think might be the beta5 which causing the problems?

Do you have a working link of beta4 !

Thanks m8 for all your help!!!


All times are GMT -5. The time now is 03:57 AM.