OK to the guy who wanted to be able to toggle the hack display on and off I have modified the code, very slightly to allow this.
First go into your config file and edit to . Also change to
Code:
F1_LABEL = "display"
That will give you the info in the config file to start hack visible by default and give F1 display info a "name".
OK now open up your file called "Status.py" and copy everything, then past over it with
Code:
import Config
from Config import STATUS_COLOR_ACTIVE, STATUS_COLOR_INACTIVE, KEY_RADAR
from utils import draw_line, draw_string_left
from Keys import keys
#
# draw the status line
#
class Status(object):
def __init__(self, env):
self.env = env
def render(self):
if keys["F1"]:
frame = self.env.frame
read_game = self.env.read_game
draw_line(frame.line, 0, read_game.resolution_y - 10, 845, 0, 20, 0xAF000000)
for i in range(1, 13):
if keys["F"+str(i)]:
color = STATUS_COLOR_ACTIVE
else:
color = STATUS_COLOR_INACTIVE
label = "F" + str(i) + ":" + getattr(Config, "F"+str(i)+"_LABEL")
draw_string_left(frame.status_font, (i-1)*70 + 5, read_game.resolution_y-15, 65, 15, color, label)
You guys should know that when scripting with python, indentation, spacing etc, is very important and can screw up code, if it's not perfect. Hope that helps.
Originally Posted by
MasonF
I always run it as admin. I'm wondering why it's finding a process that it assumes is MW2 and then injects. That's my problem, but it only happens once I exit game and try to boot it back up. Sometimes it last 5 seconds, sometimes 5 minutes. It's one of them weird inexplicable things. Thanks though.
You need to know that this hack does not in any way inject anything. Need to know that.
Did you download and install active python? If you did, regardless of whether you are 32bit or 64bit you need to install 32bit activepython. https://downloads.activestate.com/Act...-win32-x86.msi