Welcome to Tactical Gamer

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. ## 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
Start /w SendKeys.vbs {ENTER}

cd C:\Program Files\Teamspeak2_RC2

cd C:\Program Files\Electronic Arts\Battlefield 2142

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!

2.
3. ## 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!

4.
5. ## Re: BF2142 + TeamSpeak + TSO In A Click

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

6.

7. ## Re: BF2142 + TeamSpeak + TSO In A Click

Originally Posted by frozenchrome
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

Originally Posted by Shane
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. ## Re: BF2142 + TeamSpeak + TSO In A Click

Everything works except for the auto-login for 2142.

10.
11. ## Re: BF2142 + TeamSpeak + TSO In A Click

Originally Posted by Fighter
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. ## 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.

14.
15. ## 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.

16.