View Full Version : Linux server + maps not loading
kinky
08-01-2005, 12:51 PM
Hello,
We are using Mandrake 10.1 as linux server and have installed bf2 according to guides found on the net.
Using the ./start.sh the server starts. So far so good. However I can't see that a map is being loaded and that where I have some trouble.
According to this link I should get something like a progress line :
http://www.firingsquad.com/media/article_image.asp?fs_article_id=1685&pic_id=02
Only thing we get is : Status : [no game] (upper right corner)
Obviesly I am missing something but I can't quite find it.
This is the content of the maplist.con
mapList.append strike_at_karkand gpm_cq
mapList.append dalian_plant gpm_cq
mapList.append daqing_oilfields gpm_cq
mapList.append dragon_valley gpm_cq
mapList.append fushe_pass gpm_cq
mapList.append gulf_of_oman gpm_cq
mapList.append kubra_dam gpm_cq
mapList.append mashtuur_city gpm_cq
mapList.append operation_clean_sweep gpm_cq
mapList.append sharqi_peninsula gpm_cq
mapList.append songhua_stalemate gpm_cq
mapList.append zatar_wetlands gpm_cq
This is the content of the serversettings.con
sv.serverName "Linuxgameserver"
sv.password ""
sv.internet 0
sv.bandwidthChoke 0
sv.serverIP "10.0.0.152"
sv.serverPort 16567
sv.welcomeMessage "Welcome to VodaGame's Battlefield2 server"
sv.punkBuster 0
sv.allowFreeCam 1
sv.allowExternalViews 1
sv.allowNoseCam 1
sv.hitIndicator 1
sv.maxPlayers 16
sv.numPlayersNeededToStart 2
sv.notEnoughPlayersRestartDelay 15
sv.startDelay 15
sv.endDelay 15
sv.spawnTime 15
sv.manDownTime 15
sv.endOfRoundDelay 15
sv.ticketRatio 100
sv.roundsPerMap 3
sv.timeLimit 0
sv.scoreLimit 0
sv.soldierFriendlyFire 100
sv.vehicleFriendlyFire 100
sv.soldierSplashFriendlyFire 100
sv.vehicleSplashFriendlyFire 100
sv.tkPunishEnabled 1
sv.tkNumPunishToKick 3
sv.tkPunishByDefault 0
sv.votingEnabled 1
sv.voteTime 90
sv.minPlayersForVoting 2
sv.gameSpyPort 29900
sv.allowNATNegotiation 0
sv.interfaceIP ""
sv.autoRecord 0
sv.demoIndexURL http://
sv.demoDownloadURL http://
sv.autoDemoHook "adminutils/demo/rotate_demo.py"
sv.demoQuality 1
sv.adminScript "default"
sv.timeBeforeRestartMap 30
sv.autoBalanceTeam 0
sv.teamRatioPercent 100
sv.voipEnabled 1
sv.voipQuality 3
sv.voipServerRemote 0
sv.voipServerRemoteIP ""
sv.voipServerPort 55125
sv.voipBFClientPort 55123
sv.voipBFServerPort 55124
sv.voipSharedPassword ""
sv.useGlobalRank 0
sv.useGlobalUnlocks 0
sv.sponsorText ""
sv.sponsorLogoURL ""
sv.communityLogoURL ""
sv.radioSpamInterval 6
sv.radioMaxSpamFlagCount 6
sv.radioBlockedDurationTime 30
Another question : You get this window with the status of the server and the name and so on in the most left bottom corner I get this sign ">"
Why is this ? Do I need to type new commands to load map or ,...
In the long run we would like to use rcon but we first need to get this running as is.
Any help appreciated.
K. :confused:
bbrain
08-01-2005, 01:41 PM
check the rights for the file, and chmod if need... the > is a prompt, try press tab twice.
kinky
08-01-2005, 03:10 PM
Bbrain,
Thanks for replying!!!
I have tried running ./start.sh as root but it has the same effect.
The files have next rights :
-rwxr-xr-x 1 bf2 bf2 98 Jul 19 15:22 start.sh*
-rw-r--r-- 1 bf2 bf2 1418 Aug 1 13:43 serversettings.con
-rw-r--r-- 1 bf2 bf2 518 Aug 1 15:56 maplist.con
Is this ok ?
Is there anything I need to type in at that prompt ?
> map,.. ?
Munson
08-01-2005, 05:10 PM
STOP: did you install the BF2 server AS root? if yes...wax it. start over.
Create a user called BFDS or BF2 or something along those lines. This will be the Dedicated server user, DO NOT INSTALL/RUN AS ROOT.
Once your user is created, cd /home/<bf2username>/
Copy the archive install from EA to the /home/<bf2username/ Dir.
You must NOT login as root and SU to the bf2 user!
now we got that clear heres how you get'r'done.
as your bf2usesr with the install archive in yoour bf2user home dir, type
"sh <filename>" this will tell the shell (bash by default in mandrake I belive) to use the Bourne shell environment to run the bourne shell script that is our archive. You might get away with a simple ./<filename> and you might not. to eliminate the possability use "sh ./<filename>"
Once the archive is done running, it will ask what DIR to install to, you must give it a full path, dont use shortcuts. you should type:
"/home/<bf2ussername>" <----NOTE no trailing "/"
then you'll get EULA prompts and PB prompts answer those accordingly
then your done installing properly. If you didnt follow this to a T and you have problems, guess why? (lol)
now you have a user for BF2, you have an installed game with the proper permissions (because you installed it as the user!) and you have some editing to do.
/home/<bf2username>/bf2/mods/bf2/settings/ <---location of the maplist.con and serversettings.con (you already know this I see).
maplist looks exactly like this:
maplist.append "dalian_plant" "gpm_cq" 32
maplist.append "daqing_oilfields" "gpm_cq" 32
maplist.append "dragon_valley" "gpm_cq" 32
maplist.append "fushe_pass" "gpm_cq" 32
maplist.append "gulf_of_oman" "gpm_cq" 32
maplist.append "kubra_dam" "gpm_cq" 32
maplist.append "mashtuur_city" "gpm_cq" 32
maplist.append "operation_clean_sweep" "gpm_cq" 32
maplist.append "sharqi_peninsula" "gpm_cq" 32
maplist.append "songhua_stalemate" "gpm_cq" 32
maplist.append "strike_at_karkand" "gpm_cq" 32
maplist.append "zatar_wetlands" "gpm_cq" 32
in serversettings.con
sv.internet 1 (for internet games)
I covered the entire process again because most people use SU to do their business. That can create problems with BF2.
hope this helps.
Munson
kinky
08-02-2005, 11:50 AM
Munson,
I installed the game using a user called bf2. Starting up the server with user root or bf2 has the same effect.
I can install it again ,.... Can you send me dan link with the guide you used to install it ?
I think it's very strange that we can start the server app but not load a map.
I am gonna see if I get any more reaction from other people.
Otherwise I'll do just as you asked.
In meantime any other ideas I could try ?
Regards
K
Munson
08-02-2005, 01:04 PM
No core dumps or anything? Can you take screen shots of the server as it starts up?
you could load a level thru the console but thats not gonna solve our problem here...
I didnt use a guide...I just wrote one...lol
lets pile on the information here, Server specs and that kinda stuff, we'll find it.
I run Slackware, and Fidora.
Munson
kinky
08-03-2005, 12:21 PM
Munson,
This is the command I use to start it :
[bf2@localhost bf2]$ ./start.sh
I was not able to paste a printscreen in this window ,..
So this is what I see :
Battlefield II Dedicated Server v1.1.2484.0(IA-32)
"Vodagame"
Map:
Game mode: Mod: bf2
Status: [no game]
--------------------------------------------------------------------------
And in the left corner the > sign.
That's all.
I doesn't crash but stays as is displayed above.
I didn't apply patches yet.
Server specs. :
HP compaq 530d sff,..
I'll see and post complete system here later on today
Regards
K.
Munson
08-03-2005, 01:28 PM
[NO GAME] <-------clue!
Do you have the quotes in your maplist.con?
I'm thinking they are "required". :D
maplist.append "dalian_plant" "gpm_cq" 32
maplist.append "daqing_oilfields" "gpm_cq" 32
maplist.append "dragon_valley" "gpm_cq" 32
maplist.append "fushe_pass" "gpm_cq" 32
maplist.append "gulf_of_oman" "gpm_cq" 32
maplist.append "kubra_dam" "gpm_cq" 32
maplist.append "mashtuur_city" "gpm_cq" 32
maplist.append "operation_clean_sweep" "gpm_cq" 32
maplist.append "sharqi_peninsula" "gpm_cq" 32
maplist.append "songhua_stalemate" "gpm_cq" 32
maplist.append "strike_at_karkand" "gpm_cq" 32
maplist.append "zatar_wetlands" "gpm_cq" 32
Just rename you current maplist.con to maplist.old and make a new one, copy and paste the text form my post here into it and call it maplist.con.
I am 100% positive this maplist works on my server. Exactly as it sits in this post.
Munson
kinky
08-04-2005, 11:04 AM
Munson,
mmmhhh,...
I backup the old file.
Then I did a nano maplist.con
pasted your ouput and saved it.
Started the serevr and this is what I got :
Battlefield II Dedicated Server v1.1.2484.0(IA-32)
"Vodagame"
Map:
Game mode: Mod: bf2
Status: [no game]
-------------------------------------------------------------------------->
game.
demo.
sv.
maplist.
SettingsManager.
InputDevices.
controlMap.
> maplist.
maplist.save
maplist.configFile
maplist.mapCount
maplist.currentMap
maplist.list
> maplist.list
0: "dalian_plant" gpm_cq 32
1: "daqing_oilfields" gpm_cq 32
2: "dragon_valley" gpm_cq 32
3: "fushe_pass" gpm_cq 32
4: "gulf_of_oman" gpm_cq 32
5: "kubra_dam" gpm_cq 32
6: "mashtuur_city" gpm_cq 32
7: "operation_clean_sweep" gpm_cq 32
8: "sharqi_peninsula" gpm_cq 32
9: "songhua_stalemate" gpm_cq 32
10: "strike_at_karkand" gpm_cq 32
11: "zatar_wetlands" gpm_cq 32
>
I exactly pasted it :)
[bf2@localhost settings]$ cat maplist.con
maplist.append "dalian_plant" "gpm_cq" 32
maplist.append "daqing_oilfields" "gpm_cq" 32
maplist.append "dragon_valley" "gpm_cq" 32
maplist.append "fushe_pass" "gpm_cq" 32
maplist.append "gulf_of_oman" "gpm_cq" 32
maplist.append "kubra_dam" "gpm_cq" 32
maplist.append "mashtuur_city" "gpm_cq" 32
maplist.append "operation_clean_sweep" "gpm_cq" 32
maplist.append "sharqi_peninsula" "gpm_cq" 32
maplist.append "songhua_stalemate" "gpm_cq" 32
maplist.append "strike_at_karkand" "gpm_cq" 32
maplist.append "zatar_wetlands" "gpm_cq" 32
Any more ideas ?
Munson
08-04-2005, 01:10 PM
Only thing left is a corrupted install...not unheard of with this game (ribs EA).
I do start up a bit different then you...
I use:
>sh ./start.sh <----to envoke the bourne shell to process the start.sh script.
Wouldnt be that hard to try that before you try a re-download and re-install...
/sigh
Munson
bbrain
08-04-2005, 03:08 PM
@munson: i think " is not neccessary because the map names isnt conatins any space.
@kinky: try to write this to the prompt(>):
maplist.list
if this isnt list any mapname, then try to add some maps:
maplist.append dalian_plant gpm_cq 32
and
admin.runnextlevel
bbrain
08-04-2005, 03:14 PM
-rwxr-xr-x 1 bf2 bf2 98 Jul 19 15:22 start.sh*
-rw-r--r-- 1 bf2 bf2 1418 Aug 1 13:43 serversettings.con
-rw-r--r-- 1 bf2 bf2 518 Aug 1 15:56 maplist.con
is these files in the main bf2 dir?
because you must put the config files to <bf2dir>/mods/bf2/settings/
kinky
08-05-2005, 12:10 PM
all,
Fresh install :
deleted user bf2
1. logged in as root.
2. created user baf2
3. logout as root
4. login as baf2
5. downloaded bf2-linuxded-1.1.2484.0-installer.zip
6. extracted bf2-linuxded-1.1.2484.0-installer.zip to bf2-linuxded-1.1.2484.0-installer.sh
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
7.[baf2@localhost baf2]$ ./bf2-linuxded-1.1.2484.0-installer.sh
bash: ./bf2-linuxded-1.1.2484.0-installer.sh: Permission denied
an ls -all gave me this output :
-rw-r--r-- 1 baf2 baf2 0 Aug 5 12:50 bf2-linuxded-1.1.2484.0-installer.sh
-rw-r--r-- 1 baf2 baf2 137997650 Aug 5 12:39 bf2-linuxded-1.1.2484.0-installer.zip
8. gonna look on the net for the correct chmod command. (last time I gave it a 777)
Munson
08-05-2005, 01:20 PM
755 would work.
Looks like it's at 744 and that "should" work.
Make sure your home dir has at least 700 permissions.
also use:
sh ./<command>
for both the install AND execution of the start.sh file.
Munson
bbrain
08-05-2005, 01:52 PM
pls do a ls -l
kinky
08-05-2005, 03:28 PM
BBrain
home dir
drwx------ 15 baf2 baf2 4096 Aug 5 14:44 baf2/
content of homedir :
[baf2@localhost baf2]$ ls -all
total 135004
drwx------ 15 baf2 baf2 4096 Aug 5 16:24 ./
drwxr-xr-x 7 root root 4096 Aug 5 12:08 ../
drwxr-xr-x 2 baf2 baf2 4096 Aug 5 13:33 baf2/
-rw------- 1 baf2 baf2 1943 Aug 5 14:44 .bash_history
-rw-r--r-- 1 baf2 baf2 24 Aug 26 2004 .bash_logout
-rw-r--r-- 1 baf2 baf2 191 Aug 26 2004 .bash_profile
-rw-r--r-- 1 baf2 baf2 231 Aug 26 2004 .bashrc
-rw-r--r-- 1 baf2 baf2 137997650 Aug 5 12:39 bf2-linuxded-1.1.2484.0-installer.zip
drwx------ 3 baf2 baf2 4096 Aug 5 12:09 Desktop/
-rw------- 1 baf2 baf2 24 Aug 5 12:09 .dmrc
-rw-rw-r-- 1 baf2 baf2 358 Aug 5 12:09 .fonts.cache-1
drwx------ 2 baf2 baf2 4096 Aug 5 12:09 .gconf/
drwx------ 2 baf2 baf2 4096 Aug 5 12:50 .gconfd/
drwx------ 2 baf2 baf2 4096 Aug 5 12:09 .gnome/
drwx------ 3 baf2 baf2 4096 Aug 5 12:09 .gnome2/
drwx------ 2 baf2 baf2 4096 Aug 5 12:09 .gnome2_private/
-rw------- 1 baf2 baf2 0 Aug 5 12:50 .ICEauthority
drwx------ 6 baf2 baf2 4096 Aug 5 12:09 .kde/
drwxr-xr-x 3 baf2 baf2 4096 Aug 5 13:34 .mc/
drwxr-xr-x 3 baf2 baf2 4096 Aug 5 12:09 .mcop/
-rw------- 1 baf2 baf2 31 Aug 5 12:09 .mcoprc
drwxr-xr-x 2 baf2 baf2 4096 Aug 5 12:09 .MdkOnline/
drwxrwxr-x 2 baf2 baf2 4096 Aug 5 12:09 .qt/
-rw-r--r-- 1 baf2 baf2 3729 Apr 20 2004 .screenrc
drwx------ 4 baf2 baf2 4096 Aug 5 13:30 tmp/
-rw------- 1 baf2 baf2 0 Aug 5 12:50 .Xauthority
-rw------- 1 baf2 baf2 55 Aug 5 16:24 .xauthVIxvJu
-rw------- 1 baf2 baf2 5547 Aug 5 12:50 .xsession-errors
bbrain
08-05-2005, 03:34 PM
and permission denied? dunno what is the problem, try to download again:
cd
wget ftp://largedownloads.ea.com/pub/misc/bf2-linuxded-1.1.2484.0-installer.zip
unzip bf2-linuxded-1.1.2484.0-installer.zip
./bf2-linuxded-1.1.2484.0-installer.sh
kinky
08-05-2005, 04:10 PM
I did a chmod 755 on the zip file and on the .sh file
then sh ./bf2-linuxded-1.1.2484.0-installer.sh
output :
Verifying archive integrity... All good.
Uncompressing Battlefield 2 Dedicated Linux Server 1.1.2484.0........................................ .................................................. .................................................. ................
You will now be shown the EULA for the BF2 dedicated Linux server.
Press return to continue.
kinky
08-05-2005, 04:14 PM
Installed punk buster.
did a sh ./start.sh
result
attlefield II Dedicated Server v1.1.2484.0(IA-32)
"Default Server Name" Average FPS: 1 [d:0, o:0]
IP: 127.0.0.1 Port: 16567 (LAN) Map: strike_at_karkand
Game mode: gpm_cq/32 Mod: bf2
Players: 0/64 (0 connecting) Round: 1/3 Status: [pregame]
--------------------------------------------------------------------------
loading.
Succccccccceeeesssss
kinky
08-05-2005, 04:36 PM
Guys,
after checking the differences with the old server and doing some testing, I have discovered what it was.
The maplist file was ok.
the serversettingsfile wasn't ok.
HERE the error is :
sv.serverName "Vodagame's BF2 server"
sv.password ""
sv.internet 0
sv.bandwidthChoke 0
sv.serverIP ""
If you look in 1 of the previous post you can see that I filled in this address.
Even though it was a lan address.
Also I noticed that once I got everything ok ,.. I had more commands to my disposal.
Look in the previous post and notice that I had only a few commands in the old version ,.. whilst in the newer 1 I have more .
ANyways ,...
Munson an BBrain thanks a lott for the help and support.
I hope you guys also learned something out of this.
Humble regards
Kinky.
bbrain
08-05-2005, 05:44 PM
:P np
Munson
08-05-2005, 07:36 PM
Just glad it works.
Gratz on the new server BTW!
:D
Munson
kinky
08-11-2005, 10:10 AM
I discovered what the exact problem was,..
I made a typo, and filled in the wrong IP adres in the serversettings file.
The server couldn't open the ports and hence that's why.
K.
Munson
08-11-2005, 01:03 PM
Always something small like that or a ":" in the wrong place or a ";" sticking in somewhere you ment to put an "L" lol...
Thanks for posting the source of the problem!
Munson
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.