Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
TLDR:
Use HxD Editor to view your profile.bin and find the position of your current sensitivity. This position seems to be different for everyone. Use python script to apply changed sensitivity to profile.bin at correct position.
1. You need to convert the ingame sensitivity number to a hex value (Link to Converter[www.binaryhexconverter.com]), then open your Borderlands "profile.bin" file with program "HxD" (free download) and search for the hex sensitivity value (which you just got from website) to find its position (called "offset") in HxD.
2. Do this multiple times with varying sensitivities to be sure that you found correct position. Also whenever you change the sensitivity ingame, you need to EXIT the game, otherwise the profile.bin file won't update.
3. If you have found your offset, save the python script (see link below) as whatever.py and edit the offset inside the script to be your offset using any text editor (insert hex value below where it says "change below").
4. Install python (newest, check PATH option in installer), use cmd to navigate to the script file and run it by just typing in its name and behind it the sensitivity you want to choose (example for sensitivity of 5: "whatever.py" 5).
Example:
My sensitvity ingame was 15, so i exited the game, converted "15" to hex, which is "0F"
Then i open profile.bin in HxD.
I use Ctrl+F and hex search for "0F", HxD finds it and says offset = 117 (in bottom left corner).
I did the same for another sensitivity and it was again at position 117.
So i changed the offset to 117 and ran the script.
Python script (updated by me to python 3):
https://pastebin.com/MSFG4Uzg
Copy from this link above, not from this steam post to get all characters correct!
# backup current profile in profile.bin.bak
shutil.copyfile(profile_path+PROFILE_FILE, profile_path+PROFILE_FILE+".bak")
# read profile.bin
# update mouse sensi
# recompute sha1
# first 20 bytes are sha1 of the rest
with open(profile_path+PROFILE_FILE, 'rb') as f:
config=bytearray(f.read()[20:])
# ================= CHANGE OFFSET HERE =====================
# change below (current position is 117)
config[0x117-20]=mouse_sensi
# ==========================================================
hash=hashlib.sha1()
hash.update(config)
print ("
config=bytearray(hash.digest())+config
# rewrite profile.bin file
with open(profile_path+PROFILE_FILE, 'wb') as f:
f.write(config)
if __name__=='__main__':
print ("
if len(sys.argv)>1:
try:
sensi=int(sys.argv[1])
if sensi<0 or sensi>255:
raise ValueError
else:
main(int(sys.argv[1]))
except ValueError:
print ("[-] Invalid value" )
except Exception as e:
print (e)
else:
print ("
sys.exit()
Thanks alot to "kthx" for original answer and python2 script!
1. Copy/Paste the python script into a text document.
2. Save as a .py file
3. Edit the .py file with IDLE. All the print(" lines need a backslash added for some reason. They should look like this:
print("\
Also, the position you got from the hex editor also has to be in hex for the python script. If the vertical position is 140 and the horizontal position is 0B, then you have to type in 14B. Luckily adding them together is pretty easy.
4. Put the .py file in the same folder as the profile.bin file
5. Open cmd and use cd to change your directory until the file path brings you to where the profile.bin file is, you have to do it like this:
cd Documents
cd My Games
etc etc until you're in C:\Users\(User name)\Documents\My Games\Borderlands 2\WillowGame\SaveData\(Huge random number)
6. type the name of your python file followed by the sens you want into cmd
sens.py 5
7. It should finally work
I did all this and subsequently found out that a sens of 5 is very close to an overwatch sens of 4.39 (800 DPI), so if you're like most people who play lots of FPSs, 5 should be good. Once you fix the script you can run it again but with a different number after it to try other sensitivities.
Thank god it worked since my friend and I got this during Summer Sale for hella cheap, but it was ruining my aim in other games.
They moved the forum, new software as I recall. The old stuff finally was removed. Yet another good reason to not necro old threads, things in them could be outdated and or useless.
Are you really that dense ? Searching old threads is good, for reading. Then if you don't find the answer start a new thread. Most people complain about someone not searching when there is one of more recent threads. Threads this old often contain information that is no longer correct or useful, as you found.
Did you get what you wanted here? My guess is no, did you add meaningful content to the thread, no.
No but bumping old threads usually have people coming back to this and hopefully answering with a more recent fix...no? Assuming they're still alive and still subbed to this thread post....of course...or if not them, maybe someone new will come along who has the answers who feels like helping?
There are current players, some tend to not help necros.
People who have not played in years are less likely to know how to help you, they have been away.
People in this thread may not like being bothered with this, though I tend to not get real upset when I get notifications, I do some times toss a small barb.
You come across as an "It's all about me and I don't care about anyone else" type with this.
If you look to the right outside of the thread, you will find a sub forum made for seeking help, called Community Support. You maybe should try it?
http://steamcommunity.com/app/49520/discussions/3/
I found one here: http://steamcommunity.com/app/49520/discussions/3/2381701715721568346/ but he's been left in a town with tumble weeds blowing about....
I guess I'll go create my own town with tumble weeds blowing about too if no one comes to visit...