-
05-24-2009, 01:50 AM #1
Don't Reboot. Taskkill instead.
It's the first annual "Tip From the 55th"...
If you've played 2142 for more than a few days, you'll be able to relate to this...
You're home from work/school, the children/wife/parents are sleeping/out, you sit down to enjoy a few rounds of 2142 TG style.
Things are going great--you cap Command Center on Shingle, snag Ruins on Gibraltar, etc...a few minutes later, you're defending South Town on Cerbere when all of a sudden...WHAM...the server has a spasm, an identity crisis, a single bit in the wrong place...the game freezes.
Frantically, you run through the "Get control of the computer" key strokes--CTRL-ALT-DEL, CTRL-SHIFT-ESC, CTRL-ESC...even go so far as to hammer the Windows™ key multiple times...nothing. You're just left looking at the last frame of action, frozen in time, perhaps with nothing more than a repeating sound loop playing in your ear as the only indication that time hasn't stopped completely.
What do you do in this situation? Some of you may notice that it looks like the OS is "listening" to you--maybe you see something flash on the screen as if the Task Manager really did open up. Unfortunately, you can't see what you're doing since the game has taken over your screen.
Fret not, dear friend, there's no need to reach for that power switch, no need to unceremoniously kick Windows™ to the curb. Heck, it's bad enough as it is, let's not make it any worse, right?
What you need is a little forethought and a little help from taskkill.exe, which should be part of every XP (Pro at least) install.
Create a new Windows™ shortcut and use this as the "location":
Then name it something memorable like "Kill BF2142 Cuz The Server Crashed Again". (Feel free to further expand upon that file name should you require more detail.)Code:taskkill /F /IM BF2142* /T
Now, get properties of the new shortcut (right-click, choose Properties) and set a Shortcut Key. Something like "CTRL-ALT-K" for Kill...anything you won't accidentally press during game play.
You're all set. Now, the next time the game freezes when you're just about to celebrate a hard won victory, you should be able to press CTRL-ALT-DEL to get Windows'™ attention, then press your shortcut key, like CTRL-ALT-K.
In a few seconds (depends on how hosed up the game is) you should see the game disappear as a command prompt window appears briefly and then vanishes--leaving you at your desktop.
If there's a few games you routinely play, instead of creating a different shortcut for each one, each with its own shortcut key press, create a batch or command file and put a taskkill line in it for each game.
Then, just create a shortcut to this command file and assign a shortcut key. Now, when you press your shortcut key, Windows will attempt to kill any of the processes you've entered in the file.Code:rem Contents of KillGames.cmd taskkill /F /IM BF2142* /T taskkill /F /IM BF2* /T taskkill /F /IM DeusEx* /T
You can read all about the taskkill command by running "taskkill /?" at the command prompt, but to summarize the above commands, we're asking Windows to forcibly kill any process whose executable name begins with "BF2142" (for example) and to kill the whole process tree, the main program and any other child processes it may have launched.
Stay tuned until next year, when the 55th brings you Tip #2...betcha can't wait, huh?
-
05-24-2009, 03:32 AM #2
Re: Don't Reboot. Taskkill instead.
Thanks for this. Seriously. These random freezes hit me twice yesterday.
--------------------------------------------------------------------------------
Blah blah blah.
-
05-24-2009, 03:49 AM #3
-
05-24-2009, 09:52 AM #4
Re: Don't Reboot. Taskkill instead.
With Delux do I have to change the path?
|TG| Sproge "Tiger how did you flip that tank?!"
|TG-SC| PM07SNV "We need another world war to base more games on..."
|TG-AIR| DrBeat: "I just dropped my propane tank in the fire again"
-
05-24-2009, 10:09 AM #5
-
05-24-2009, 10:15 AM #6
-
05-24-2009, 10:41 AM #7
- Join Date
- May 2009
- Posts
- 36
Re: Don't Reboot. Taskkill instead.
You must tell us how this is done Drennyn! *falls to knees*
I have several games that freeze regularly, and this will help loads
And because I am either overlooking something obvious, or am just uninformed and unexperienced in this area of computer maintenence, that error message is not helping my situation...
-
05-26-2009, 03:03 AM #8
Re: Don't Reboot. Taskkill instead.
It looks like Task kill may be Windows Xp Pro only...
More Info: http://www.computerhope.com/taskkill.htm
~ Draken
-
05-26-2009, 03:48 AM #9
Re: Don't Reboot. Taskkill instead.
HAHA! I wanted to see who would say something about that first. Not at all surprised it was you. You seem a pretty good judge of games and character.

I was just replaying it last month--it completely still holds its own both as a game in general and as a game w/a message.
-
05-26-2009, 03:57 AM #10
Re: Don't Reboot. Taskkill instead.
I had a hunch it was XP Pro only. Don't know if the exe will allow itself to be run on XP Home or not, but you're free to try:
http://www.regalmedia.com/taskkill.zip
On XP Pro, it's usually located in the \windows\system32 folder, but I'm assuming it will work as long as it's anywhere in your path.
-
05-26-2009, 06:57 AM #11
Re: Don't Reboot. Taskkill instead.
all i do is ctrl-alt-delete, sometimes task man pops up, if it doesn't, after ctrl-alt-delete, press alt-tab to bring task man forward, use arow keys to scroll down to PaceBF2142, press delete, press enter. You are now on your desktop. If you find you can use your mouse with your mouse right click paceBF2142, scroll to 'end process tree', again you should be on your desktop. works every time for me.
ciao~"always go to peoples funerals........ or they wont come to yours!"
-
05-26-2009, 02:18 PM #12
Re: Don't Reboot. Taskkill instead.
For Vista, the shortcut approach does not work. ( Maybe there is a way, I haven't found it yet. )
Yes you can use CTL-ALT-DEL to bring up the task manager, but sometimes the screen locks up and you can't see the screen to select task manager. 2142 still keeps control of the full screen mode. This will allow you to kill the task even while the screen is locked up.
However, if you create the batch file as indicated, most keyboards allow you to assign a special key (hotkey) to a program. I know gaming kybds do this.
I tagged the batch file to a hotkey on my kybd in Vista and it works like a charm!
Thanks Drennyn for this helpful tip.|TG| RoadWarrior
-
05-26-2009, 03:27 PM #13
Re: Don't Reboot. Taskkill instead.
For those without taskkill:
http://www.tacticalgamer.com/battlef...42-script.htmlLast edited by Lorax74; 05-26-2009 at 04:53 PM.




TG Primer - BF2142 Server Rules - Code of Conduct
Contact a Game Admin
"..good sportsmanship shouldn't be sacrificed in the name of teamwork. " --WhiskeySix
-
05-26-2009, 03:36 PM #14
Re: Don't Reboot. Taskkill instead.
Vista seems a lot better at getting Task Manager up in front of any and all things. Otherwise, I just work with it with the keyboard. Pesky frozen game can't stop me from enjoying my time!
-
05-27-2009, 04:53 AM #15
Re: Don't Reboot. Taskkill instead.
Haha, never mind me posting it in Lorax's thread already lol...
Bladecutter is right, I don't think I've had any moments where CTRL-ALT-DEL has not worked for Vista since I got it recently. It's been perfectly fixed since everyone knows it doesn't always help in XP.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)



Reply With Quote
























Bookmarks