Go Back   Tactical Gamer > Tactical > Battlefield 2142 > Battlefield 2142 - Technical Support & FAQs


Notices

Battlefield 2142 - Technical Support & FAQs Technical Support and FAQs for Battlefield 2142 and related mods.

Reply
 
Thread Tools
Old 04-14-2008, 10:34 PM   #1 (permalink)
ZWood15
 
ZWood15's Avatar
 
Join Date: Nov 2006
Location: Boulder, CO
Posts: 352
Kill BF2142 Script

This was brought up in TS recently because the server crashed and a few people had to hard reboot. I must give all Credit to Lorax for this one, as he was the one that posted it in the 9th forums...

Open notepad or any text editor, copy the line below and paste it into the document.

Code:


strComputer = "."
Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonat e}!\\" & strComputer & "\root\cimv2")
Set colProcessList = objWMIService.ExecQuery ("SELECT * FROM Win32_Process WHERE Name = 'BF2142.exe'")
For Each objProcess in colProcessList
objProcess.Terminate()
Next


Save this document into your "My Documents" folder and name it Kill_BF2142.vbs.


In notepad, erase what you have or open a new text document and copy/paste the following lines:

Code:



c:\windows\system32\cscript.exe "%HOMEPATH%\My Documents\Kill_BF2142.vbs"



Save the file in your "My Documents" folder and name it Kill_BF2142.bat



Now map a key to launch the Kill_BF2142.bat file and you're all set, just don't hit it by accident.
__________________

|TG-9th|ZWood15
"By Any Means"
ZWood15 is offline   Reply With Quote
Old 04-15-2008, 10:09 AM   #2 (permalink)
Takk
 
Takk's Avatar
 
Join Date: Nov 2006
Location: Rockford, IL
Age: 26
Posts: 425
Re: Kill BF2142 Script

Great work Lorax, and thanks for posting it for the rest of us ZWood.
__________________
"Once you go TG, having fun gets easy!" - INSUNABULA



Takk is offline   Reply With Quote
Sponsored links
Old 04-15-2008, 10:21 AM   #3 (permalink)
Azura
 
Azura's Avatar
 
Join Date: Apr 2007
Location: Newington, CT
Age: 19
Posts: 1,031
Re: Kill BF2142 Script

Woo!! That's going to make things a lot easier!
__________________


Ikariam Alpha!
Name: Azura
Appleville - Taiuos[37:23] Sulfer - Need More Wine!
Potatoville - Lienios[37:24] Marble - Need Wine!
Bananaville - Queauos[38:23] Crystal - Need Some Wine!
Azura is offline   Reply With Quote
Old 04-15-2008, 10:53 AM   #4 (permalink)
sc1ence


 
sc1ence's Avatar
 
Join Date: Feb 2007
Location: Schenectady NY
Age: 36
Posts: 3,830
Re: Kill BF2142 Script

Yay! I asked lorax for this the other week. He mentioned it and I replied, "hook a brutha up!"

He said "huh?"

And that was that from grandpa lorax.

I am going to map this to a my g11 keyboard function key.
__________________
sc1ence is offline   Reply With Quote
Old 04-15-2008, 12:25 PM   #5 (permalink)
jonathanshifty
 
jonathanshifty's Avatar
 
Join Date: Apr 2007
Location: Virginia, USA
Posts: 256
Re: Kill BF2142 Script

its to complicated for me
__________________
GO MANCHESTER UNITED ALL THE WAY!
HAIL CRISTIANO RONALDO
in game name= TG Shifty.P
2nd in the US with bianchi lmg for most kills
7th in the world with Bianchi LMG for most kills
K/D of 31/1 with bianchi
LYra=stop aimbotting shifty
jonathanshifty is offline   Reply With Quote
Old 04-15-2008, 05:49 PM   #6 (permalink)
daithi1

 
daithi1's Avatar
 
Join Date: Aug 2007
Location: Ireland
Posts: 724
Re: Kill BF2142 Script

Quote:
Originally Posted by ZWood15 View Post
Now map a key to launch the Kill_BF2142.bat file and you're all set, just don't hit it by accident.
I'm an idiot how do I set keybind in windows?
__________________
|TG-AIR|Daithi1



* 11th Air Tactical Wiki*Make Somebody Warm and Fuzzy, Ribbon Nomination*

daithi1 is online now   Reply With Quote
Old 04-18-2008, 09:39 PM   #7 (permalink)
ZWood15
 
ZWood15's Avatar
 
Join Date: Nov 2006
Location: Boulder, CO
Posts: 352
Re: Kill BF2142 Script

Quote:
Originally Posted by daithi1 View Post
I'm an idiot how do I set keybind in windows?
I have a G15 with the programmable keys and I have mine set to G16. Im not any help with windows.. Sorry!!
__________________

|TG-9th|ZWood15
"By Any Means"
ZWood15 is offline   Reply With Quote
Old 04-18-2008, 11:00 PM   #8 (permalink)
pedestrian01
 
pedestrian01's Avatar
 
Join Date: Jan 2007
Location: Detroit, MI
Age: 22
Posts: 465
Re: Kill BF2142 Script

Quote:
Originally Posted by daithi1 View Post
I'm an idiot how do I set keybind in windows?
You can use this program to set up keybinds. You can map it to kill 2142 directly without using Lorax's script.

Once you install it will ask you if you want to create a sample script choose yes.
Run the program and a Green H will be in your system tray. Right click on it and choose "edit this script". You can erase everything in there and paste this line into it

if Process, Exist, "BF2142.exe" <> 0
end::Process, Close, BF2142.exe
return


Save the file, then right click on the H again and choose "reload script"

This sets it to the end key. Look in the help file for special key commands.

Note that this program must be running for the key bind to be active. I'd put it in the startup folder so it starts with Windows.
pedestrian01 is offline   Reply With Quote
Old 04-20-2008, 10:26 PM   #9 (permalink)
Holy
 
Holy's Avatar
 
Join Date: Apr 2008
Posts: 26
Re: Kill BF2142 Script

Too much intelligent chatter!
So this is just something shutdown BF2142 when the server crashes?
Holy is offline   Reply With Quote
Old 04-21-2008, 03:57 AM   #10 (permalink)
ZWood15
 
ZWood15's Avatar
 
Join Date: Nov 2006
Location: Boulder, CO
Posts: 352
Re: Kill BF2142 Script

Essentially, yes. Its a way of Ctrl+Alt+Del out of the game, go to processes tab, and then force end the battlefield process. Its easier than rebooting
__________________

|TG-9th|ZWood15
"By Any Means"
ZWood15 is offline   Reply With Quote
Old 04-29-2008, 09:57 PM   #11 (permalink)
twiddilywink
 
twiddilywink's Avatar
 
Join Date: Mar 2008
Posts: 185
Re: Kill BF2142 Script

w8, what is this for?
__________________
|TG-Irr| Twiddilywink
Alpha Platoon is where to be :D
twiddilywink is offline   Reply With Quote
Old 05-11-2008, 06:01 AM   #12 (permalink)
Uranium - 235
 
Uranium - 235's Avatar
 
Join Date: Jul 2007
Location: Mountain Home AFB, ID
Posts: 553
Re: Kill BF2142 Script

When I try to use it, it brings up the window but it says:

...My Documents\Kill_BF2142.vbs(2, 1) (null): 0x80041021


What, it doesn't like my RAM?

EDIT: never mind, there's a typo in the code. Didn't notice that.


ationLevel=impersonat e}!

That space shouldn't be there.
__________________
Uranium - 235 is offline   Reply With Quote
Old 05-11-2008, 07:07 AM   #13 (permalink)
jazy2
 
jazy2's Avatar
 
Join Date: Aug 2007
Location: Ireland
Age: 33
Posts: 294
Re: Kill BF2142 Script

Does the original post method just kill 2142 or will it end punkbuster a+b too???

I would like to be able to end all 3 processes as sometime my system gets tied up by punkbuster a!
__________________

TG-E1st TacticalGamer European Division | Team up with us today!
jazy2 is online now   Reply With Quote
Sponsored links
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


All times are GMT -4. The time now is 11:31 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0
©2004-2008 - Tactical Gamer - All Rights Reserved
Forums Directory