LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Games
User Name
Password
Linux - Games This forum is for all discussion relating to gaming in Linux.

Notices


Reply
  Search this Thread
Old 06-25-2005, 12:21 PM   #1
dimmak
LQ Newbie
 
Registered: Jun 2005
Posts: 7

Rep: Reputation: 0
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
 
Old 06-27-2005, 04:37 PM   #2
otchie1
Registered User
 
Registered: Apr 2004
Posts: 560

Rep: Reputation: 30
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?
 
Old 06-28-2005, 06:53 AM   #3
dimmak
LQ Newbie
 
Registered: Jun 2005
Posts: 7

Original Poster
Rep: Reputation: 0
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 ?

Last edited by dimmak; 06-28-2005 at 08:19 AM.
 
Old 06-30-2005, 12:28 PM   #4
otchie1
Registered User
 
Registered: Apr 2004
Posts: 560

Rep: Reputation: 30
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
 
Old 07-04-2005, 06:29 AM   #5
dimmak
LQ Newbie
 
Registered: Jun 2005
Posts: 7

Original Poster
Rep: Reputation: 0
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!!!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
HLDS linux dedicated server help installation. RHLinuxGUY Linux - Games 35 07-21-2007 04:46 PM
Starting up MoH:AA server Casper12 Linux - Newbie 1 08-04-2005 03:41 AM
CounterStrike Dedicated server problem LINUX MajSlayer420 Linux - Networking 4 05-26-2005 03:25 PM
Trying to get a Mod to work on my SW dedicated linux server dkc_ace Linux - General 1 12-13-2002 10:56 AM
Half-Life Dedicated Server on Linux jeucken Linux - Networking 10 07-31-2002 06:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Games

All times are GMT -5. The time now is 05:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration