Starting game via command line

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

    #1

    Starting game via command line

    I need to start bf2 via command line as i want to create a batch file that auto connects to our server..

    the batch file looks like this so far but it just launches the game without connecting

    D:
    cd "D:/Games/EA GAMES/Battlefield 2"
    "D:/Games/EA GAMES/Battlefield 2/bf2.exe" +menu 1 +fullscreen 1 +joinserver 85.236.101.39 +port 16667
  • Gunny Highway

    #2
    Re: Starting game via command line

    Originally posted by cavemanuk
    I need to start bf2 via command line as i want to create a batch file that auto connects to our server..

    the batch file looks like this so far but it just launches the game without connecting

    D:
    cd "D:/Games/EA GAMES/Battlefield 2"
    "D:/Games/EA GAMES/Battlefield 2/bf2.exe" +menu 1 +fullscreen 1 +joinserver 85.236.101.39 +port 16667
    Try doing it this way:

    D:
    cd d:\Games\EA GAMES\Battlefield 2
    bf2.exe +menu 1 +fullscreen 1 +joinserver 85.236.101.39 +port 6667[/QUOTE]

    Comment

    • Gunny Highway

      #3
      Re: Starting game via command line

      ohh I just noticed if you do BF2.exe +help it lists the +joinserver as joinServer so I think it is case sensitive, so try with capital S.

      Comment

      • cavemanuk

        #4
        Re: Starting game via command line

        no didnt work my friend... good try tho

        this is the batch file currently, and it just launches the game as normal

        D:
        cd "D:/Games/EA GAMES/Battlefield 2"
        bf2.exe +menu 1 +fullscreen 1 +joinServer 85.236.101.39 +port 16667

        (did try 6667 like you suggested, might have been a typo on your part but tried it anyway and it didnt work!)

        Comment

        • Gunny Highway

          #5
          Re: Starting game via command line

          Originally posted by cavemanuk
          no didnt work my friend... good try tho

          this is the batch file currently, and it just launches the game as normal

          D:
          cd "D:/Games/EA GAMES/Battlefield 2"
          bf2.exe +menu 1 +fullscreen 1 +joinServer 85.236.101.39 +port 16667

          (did try 6667 like you suggested, might have been a typo on your part but tried it anyway and it didnt work!)
          Yea I made a typo, sorry.. you can try adding +playerName yourname and +playerPassword yourpassword this skips the login screen. Maybe try removing +menu 1.

          Comment

          • cavemanuk

            #6
            Re: Starting game via command line

            Originally posted by Gunny Highway
            Yea I made a typo, sorry.. you can try adding +playerName yourname and +playerPassword yourpassword this skips the login screen. Maybe try removing +menu 1.
            Woohoo.. success! that was it, the spelling on username/password. All working fine now. Ive been working on a konfabulator widget to launch bf2 directly into our server as well as giving rss news.. working a treat now..

            Comment

            Working...