Welcome to Tactical Gamer

+ Reply to Thread
Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 32
Discussion: Battlefield 2142 / Battlefield 2142 - Technical Support & FAQs - Kill BF2142 Script - Originally Posted by Lorax74 Wow, not sure how I missed the original post... This just
  1. #16

    ThaDoctah's Avatar

    Join Date
    Aug 2007
    Location
    Toronto, ONT
    Age
    29
    Posts
    1,430

    Re: Kill BF2142 Script

    Quote Originally Posted by Lorax74 View Post
    Wow, not sure how I missed the original post...


    This just kills the 2142 process, and quickly too. It can be modified to kill the punkbuster processes as well. I'll post something up when I get home and figure out what those proc names are.
    PnkBstr A.exe and PnkBstr B.exe

    The spaces are not a typo.

    Donate Blood. Ask for a gun and a bucket.



  2.  
  3. #17

    Lorax74's Avatar

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

    Re: Kill BF2142 Script

    Some process can't be terminated in this way, it seems pnkbstrA is one of them. I do not have PnkBstrB on my system, but I'm guessing it can't be terminated in this fashion either, sorry.

    And the space thing is odd, it is not there if you look at the actual text of the post. I'll edit the first post and put the code in a code block to see if that fixes the mysterious typo.



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

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

  4.  
  5. #18

    ThaDoctah's Avatar

    Join Date
    Aug 2007
    Location
    Toronto, ONT
    Age
    29
    Posts
    1,430

    Re: Kill BF2142 Script

    That's odd because I know I've noted seeing pnkbstrA and B listed in my Task Manager Processes List. You'd think you could kill anything in that list as long as it wasn't a system process. I'll take what I can get though, and a BF2142 kill script works for me.

    Thanks for trying Lorax

    Donate Blood. Ask for a gun and a bucket.



  6.  

     
  7. #19

    Lorax74's Avatar

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

    Re: Kill BF2142 Script

    Quote Originally Posted by ThaDoctah View Post
    That's odd because I know I've noted seeing pnkbstrA and B listed in my Task Manager Processes List. You'd think you could kill anything in that list as long as it wasn't a system process. I'll take what I can get though, and a BF2142 kill script works for me.

    Thanks for trying Lorax
    Actually, they are system processes. I'm sure there is a way to halt them, I just haven't looked for it yet. In the mean time, you could try pedestrian's solution and see if that works for you or not...



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

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

  8.  
  9. #20

    ThaDoctah's Avatar

    Join Date
    Aug 2007
    Location
    Toronto, ONT
    Age
    29
    Posts
    1,430

    Re: Kill BF2142 Script

    Punkbuster: More problem than it's worth ^^

    Donate Blood. Ask for a gun and a bucket.



  10.  
  11. #21

    frozenchrome's Avatar

    Join Date
    Feb 2008
    Location
    The Great White North
    Posts
    552

    Re: Kill BF2142 Script

    Afternoon,

    I am bumping this thread up as there was discussion about this script on TS the other day. It might be useful during the recent servers issues we have been experiencing.
    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

  12.  

     
  13. #22

    draeh's Avatar

    Join Date
    Apr 2007
    Location
    Winston-Salem
    Age
    39
    Posts
    4,466
    Blog Entries
    7

    Re: Kill BF2142 Script

    Good bump. This script is a must. Hasn't failed me yet when 2142 decides to lockup.



  14.  
  15. #23

    Lorax74's Avatar

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

    Re: Kill BF2142 Script

    I should actually update it to use better/more environmental variables so the bat file will work in XP and Vista alike.



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

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

  16.  
  17. #24

    Lorax74's Avatar

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

    Re: Kill BF2142 Script

    Updated for Vista:

    Kill_BF2142.bat
    Code:
    @echo off
    
    IF EXIST %systemdrive%\users (
       REM Vista
       cscript %homepath%\Documents\Kill_BF2142.vbs
    ) ELSE (
       REM assume it's XP
       cscript %homepath%\My Documents\Kill_BF2142.vbs
    )
    Kill_BF2142.vbs unchanged
    Code:
    strComputer = "."
    Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
    Set colProcessList = objWMIService.ExecQuery ("SELECT * FROM Win32_Process WHERE Name = 'BF2142.exe'")
    For Each objProcess in colProcessList
        objProcess.Terminate()
    Next



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

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

  18.  

     
  19. #25

    frozenchrome's Avatar

    Join Date
    Feb 2008
    Location
    The Great White North
    Posts
    552

    Re: Kill BF2142 Script

    Once again, I am bumping this post as there seems to be many people on TS who still don't know
    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

  20.  
  21. #26

    PM..'s Avatar

    Join Date
    Apr 2008
    Location
    London
    Age
    30
    Posts
    2,243

    Re: Kill BF2142 Script

    Good bump!!
    BF3 Soldier: DrSparky



    "Cum bellum clamavit, respondivi"

  22.  
  23. #27

    MrJengles's Avatar

    Join Date
    Dec 2008
    Age
    20
    Posts
    618

    Re: Kill BF2142 Script

    Yeah a good bump, I noticed people mentioning it too. I just use the following code as a batch file (save it in notepad as title.bat) add a hotkey to the file and that's all you need.

    Code:
    TASKKILL /IM "BF2142.exe" /F
    
    exit

  24.  

     
  25. #28

    Lorax74's Avatar

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

    Re: Kill BF2142 Script

    Quote Originally Posted by MrJengles View Post
    Yeah a good bump, I noticed people mentioning it too. I just use the following code as a batch file (save it in notepad as title.bat) add a hotkey to the file and that's all you need.

    Code:
    TASKKILL /IM "BF2142.exe" /F
    
    exit
    That's much too simple

    Actually, I don't recall ever using taskkill before, pretty nifty.



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

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

  26.  
  27. #29

    frozenchrome's Avatar

    Join Date
    Feb 2008
    Location
    The Great White North
    Posts
    552

    Re: Kill BF2142 Script

    Quote Originally Posted by MrJengles View Post
    Yeah a good bump, I noticed people mentioning it too. I just use the following code as a batch file (save it in notepad as title.bat) add a hotkey to the file and that's all you need.
    ...
    I have been looking around to find a way to add a hotkey with a vanilla keyboard. I am lucky enough to have one of them fancy ones with My Favorites keys that comes with special drivers/software for this. However natively, to my knowledge, Windows XP does not allow one to bind a BAT to a hotkey. Anyone have any insight on this?
    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

  28.  
  29. #30

    MrJengles's Avatar

    Join Date
    Dec 2008
    Age
    20
    Posts
    618

    Re: Kill BF2142 Script

    Quote Originally Posted by Lorax74 View Post
    That's much too simple

    Actually, I don't recall ever using taskkill before, pretty nifty.
    Haha it is, some people just like doing things the long way

    Quote Originally Posted by frozenchrome View Post
    I have been looking around to find a way to add a hotkey with a vanilla keyboard. I am lucky enough to have one of them fancy ones with My Favorites keys that comes with special drivers/software for this. However natively, to my knowledge, Windows XP does not allow one to bind a BAT to a hotkey. Anyone have any insight on this?
    I havn't looked into the hotkeys business all that much, and I don't have either of the G keyboards. Although I do have an nvidia graphics card and I happened to notice that I can add a hotkey by opening the Control Panel, then opening NVIDIA nView Desktop Manager, clicking on the Hot Keys tab, expanding misc, clicking run application, then add, pressing the key combination I want, clicking browse and finding whatever it is I want linking to, then clicking OK.

    This worked for me for a couple of days, then it stopped but I've got a new computer now (need to set it up still) so I havn't bothered to work out why it isn't working. I think that option comes with all Nvidia cards but I'm not entirely sure (no idea about other cards), if you have an older one check for a new driver. The advantage of that was that it always runs in the background automatically without any hassle.

    Only thing I can do for now is reffer you to Pedestrians post:

    Quote Originally Posted by pedestrian01 View Post
    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.

  30.  

     

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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