Welcome to Tactical Gamer

Results 1 to 8 of 8
Discussion: Battlefield 2142 / Battlefield 2142 - Technical Support & FAQs - BF2142 + TeamSpeak + TSO In A Click - Anything that gets repetitive on a computer is tedious and we all want shortcuts. So
  1. #1

    MrJengles's Avatar

    Join Date
    Dec 2008
    Location
    Hertfordshire, England, UK
    Age
    21
    Posts
    663

    BF2142 + TeamSpeak + TSO In A Click

    Anything that gets repetitive on a computer is tedious and we all want shortcuts.


    So how about a shortcut to

    Start BF2142 and login automatically, while skipping introduction videos; start TeamSpeak, login with your details to the correct channel and minimize; and if you want to, start TeamSpeak Overlay and enable it

    ...all with a simple double click or hotkey. Here is MrJengles' Guide:


    Making the vbscript file

    This is only needed if you want to use TeamSpeak Overlay and rid yourself of the popup message that must be acknowledged before it starts.

    1. Open notepad, copy and paste the following code:

      Code:
      CreateObject("WScript.Shell").SendKeys Wscript.Arguments(0)
    2. Save as SendKeys.vbs (or any other name ending in .vbs) and make sure you know where you are saving to.


    Making the batch file
    1. Open notepad again and then copy and paste the code beneath:

      Code:
      @echo off
      
      
      cd C:\Program Files\TSO
      start tso.exe /AUTO
      ping -n 1 -w 100 1.1.1.1 >nul  
      cd Insert SendKeys address here
      Start /w SendKeys.vbs {ENTER}
      
      
      cd C:\Program Files\Teamspeak2_RC2
      start /MIN TeamSpeak.exe "teamspeak://67.19.106.94/nickname=Insert nickname?loginname=Insert login name?password=Insert password?channel="Insert Channel"?"
      
      
      cd C:\Program Files\Electronic Arts\Battlefield 2142
      Start BF2142.exe +menu 1 +fullscreen 1 +eaAccountName Insert AccountName +eaAccountPassword Insert Password +soldierName Insert SoldierName
      
      
      exit
      [Not Required Reading] Explanation of commands:

      @echo off = This stops the commands being performed from being printed / shown on the screen when the batch file is run. It is not neccessary.

      cd directory = The address where a file on your computer is stored. Do not end this with the file itself.

      Start = This command tells a file to be run, it is either used with the entire address for a given file, the file name, and the file type (such as .exe); or as I have used it with cd telling the computer where to look, and then start need only reffer to the file name and file type.

      /AUTO = This will simply tell TeamSpeak Overlay to automatically "Enable" when it starts.

      ping -n 1 -w 100 1.1.1.1 >nul = This will tell the computer to wait 100 milliseconds before moving on to the next command (all commands are, by the way, performed sequentially, waiting for the previous one to finish before beginning the next). If your computer does not load TeamSpeak Overlay within 100 milliseconds you may need to up that number, although I expect that is unlikely as I can put mine on 1.

      /w SendKeys.vbs {ENTER} = By using a vbscript file this will output the enter button as if you have just pressed it, thereby ridding you of the message that always appears when you start TeamSpeak Overlay.

      /MIN = After start this will begin a program and minimize it.

      Exit = Ends the batch file.


    2. I have given the default location for the TSO, TS and BF2142 directories, if you have them stored anywhere else you will need to edit the address'. If you do not wish to start Teamspeak Overlay then delete the 5 lines of text after @echo off.

    3. Replace Insert SendKeys address here with the address of the file. If you named it anything else then obviously rename the SendKeys.vbs written beneath to the new name.

    4. Next, replace your nickname, login name, password and desired starting channel for teamspeak in the same fashion. This is the same as the entry to the desktop shortcut but with quotation marks around it. It is also explained on another thread http://www.tacticalgamer.com/battlef...-shortcut.html.

    5. Repeat this again for your EA account name, password and desired soldier name for BF2142. Again this is the same code that can be added to a desktop shortcut to get the same effect.

    6. Now, save this wherever you like as whatever you like but then end it with .bat (example BF2142 + TS + TSO.bat). This will save it as a batch program file, not notepad. It can be re-opened and edited by right clicking the file and logically selecting edit.

    7. Finally, right click this file, left click create shortcut and put it on your desktop. To change the image right click the shortcut, left click properties and then change icon and choose anything you want. For the BF2142 logo, use the address %ProgramFiles%\Electronic Arts\Battlefield 2142\BF2142.exe and now you should be good to go. If you want to make a hotkey to start all of these then right click the shortcut, left click properties, click the white box next to Shortcut Key and enter the button combination you would like, click apply and then ok. You should now be able to run the batch file with a hotkey from the desktop.


    Skipping Introduction Videos

    If you would like to skip those pesky introduction videos which you cannot do so while they are playing, then go to
    C:\Program Files\Electronic Arts\Battlefield 2142\mods\bf2142\Movies
    or wherever else you might have the game installed, and then rename the files by adding something such as (Skip). The main movie is the Intro.bik and that can be skipped while playing if you want to leave that one as it is.

    This is put together by looking up how to do things on the internet, so although I may not be able to help, if you have any queries let me know.

    This all works for me so try it out and I hope it works for you too!
    Last edited by MrJengles; 04-12-2009 at 12:47 AM.

  2.  
  3. #2

    frozenchrome's Avatar

    Join Date
    Feb 2008
    Location
    The Great White North
    Posts
    543

    Re: BF2142 + TeamSpeak + TSO In A Click

    Now, if you are lucky enough to have extra keys on your keyboard ( example: the My Favorites keys ), you can bind one to start the game and one to kill the game. Good times!

    Thanks MrJengles!
    Imaging a real super kewl 21st signature here

    Situational Awareness Deficiency Syndrome
    It is a serious disease.
    Please Q-Spot! generously

    Yah, I got me medals somewhere around here

  4.  
  5. #3

    Shane's Avatar

    Join Date
    Jun 2007
    Location
    MARS
    Age
    37
    Posts
    523

    Re: BF2142 + TeamSpeak + TSO In A Click

    Nice good short cut, if only I could get TSO to work.

    |TG-Irr| LG-99

  6.  

     
  7. #4

    MrJengles's Avatar

    Join Date
    Dec 2008
    Location
    Hertfordshire, England, UK
    Age
    21
    Posts
    663

    Re: BF2142 + TeamSpeak + TSO In A Click

    Quote Originally Posted by frozenchrome View Post
    Now, if you are lucky enough to have extra keys on your keyboard ( example: the My Favorites keys ), you can bind one to start the game and one to kill the game. Good times!

    Thanks MrJengles!
    Hahaha, exactly, I had this setup for a bit and it was helpful lol XD

    Quote Originally Posted by Shane View Post
    Nice good short cut, if only I could get TSO to work.
    I don't know how much help I can be but you just reminded me to make a post about TSO in Vista. So if that's why it won't work then...problem solved. Otherwise post it up and someone might be able to help

  8.  
  9. #5


    Join Date
    Jul 2008
    Age
    18
    Posts
    1,495

    Re: BF2142 + TeamSpeak + TSO In A Click

    Everything works except for the auto-login for 2142.

  10.  
  11. #6

    MrJengles's Avatar

    Join Date
    Dec 2008
    Location
    Hertfordshire, England, UK
    Age
    21
    Posts
    663

    Re: BF2142 + TeamSpeak + TSO In A Click

    Quote Originally Posted by Fighter View Post
    Everything works except for the auto-login for 2142.
    Sorry to hear that and, though you may well have checked it through already, it is most likely a small error so I'll just point them out first.

    • Most likely I would say check the capitalisations on, and the spaces after, the +commands; I think both are needed. Copy and paste my code and then changing the underlined bits will make sure of this.

    • Check the information you replaced for the underlined bits. Note that the account name is the one you write in first along with the password. Soldier name is for whichever soldier under that login you wish to use.

    • Check the directory, the location of the BF2142.exe
      For Vista mine is now C:\Program Files (x86)\Electronic Arts\Battlefield 2142
      Furthermore, I have just done a bit of research and I think that if you install BF2142 via the EA Downloader, the BF2142.exe is instead called BF2142pace.exe
      If you did then check that in your folder and if it is true, rename the .exe right after the Start command.

    • Finally if the batch is still no longer working then perhaps try the desktop shortcut method, as these commands for BF2142 are the same. If you right click the desktop shortcut and left click properties, then after target should be written the directory enclosed in quotation marks. By adding any of the +commands after that you should get the same effect. Check this link to Tweak Guides and scroll to the bottom for a full list of +commands. I havn't tested any more out but it is certainly a nice list.


    I hope this gets it working but if not, please let me know and post any additional information

  12.  

     
  13. #7

    Lorax74's Avatar

    Join Date
    Nov 2006
    Location
    Bridgewater, NJ
    Age
    39
    Posts
    9,824

    Re: BF2142 + TeamSpeak + TSO In A Click

    Make sure when running TSO that it's the overlay application running or it won't work. For instance, xfire's overlay will contend with TSO and XFire usually wins, same with FRAPS and probably Steam, though I haven't tried that one.



    TG Primer - BF2142 Server Rules - Code of Conduct
    Contact a Game Admin

    "..good sportsmanship shouldn't be sacrificed in the name of teamwork. " --WhiskeySix

  14.  
  15. #8

    Fruvous's Avatar

    Join Date
    Jul 2008
    Posts
    1,239

    Re: BF2142 + TeamSpeak + TSO In A Click

    Useful.
    I didn't know you could autologin - that's something useful for my current bat =)

    It's just as easy to delete the videos. I don't ever want to see the videos ever again.
    Without teamwork, you'll never survive.
    Without betrayal you'll never win.
    Welcome to Cutthroat Caverns

  16.  

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


  
 

Back to top