Announcement

Collapse
No announcement yet.

Linux server + maps not loading

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Linux server + maps not loading

    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 :


    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.

  • #2
    check the rights for the file, and chmod if need... the > is a prompt, try press tab twice.

    Comment


    • #3
      answer

      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,.. ?

      Comment


      • #4
        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

        Comment


        • #5
          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

          Comment


          • #6
            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

            Comment


            • #7
              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.

              Comment


              • #8
                [NO GAME] <-------clue!

                Do you have the quotes in your maplist.con?
                I'm thinking they are "required".

                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

                Comment


                • #9
                  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 ?

                  Comment


                  • #10
                    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

                    Comment


                    • #11
                      @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

                      Comment


                      • #12
                        -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/

                        Comment


                        • #13
                          new install

                          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)

                          Comment


                          • #14
                            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

                            Comment


                            • #15
                              pls do a ls -l

                              Comment

                              Working...
                              X