Borderlands 2

Borderlands 2

View Stats:
Thogrom Sep 18, 2012 @ 11:08pm
Mouse Sensitivity Too High at "10"
Neat
Last edited by Thogrom; Aug 18, 2018 @ 6:47pm
< >
Showing 1-15 of 36 comments
PR!MΞЯ Sep 18, 2012 @ 11:12pm 
the file you are changing might be read only. see if you can change that.
BrainFlush Sep 13, 2014 @ 4:59am 
Still nothing on this besides cheat engiine? And even that doesn't work for some people.
Kaathan Sep 18, 2014 @ 4:49pm 
The python script solution works flawlessly for me. Look at Thogroms link and scroll down to the answer from "kthx". Read it. (Edit: Seems like link is gone, so i guess dont read it)

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!
#!/usr/bin/python import os, sys, hashlib, shutil, traceback PROFILE_PATH="C:\\Users\\{0}\\Documents\\My Games\\Borderlands 2\\WillowGame\\SaveData\\" def find_profile_path(): user=os.environ['USERNAME'] # find first dir in SaveData profile_path=PROFILE_PATH.format(user) for dirname, dirnames, filenames in os.walk(profile_path): for subdirname in dirnames: return os.path.join(dirname, subdirname)+'\\' PROFILE_FILE="profile.bin" def main(mouse_sensi): profile_path=find_profile_path() print ("
  • profile_path: %s!" % profile_path)

    # 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 ("
  • new profile hash %s : " % hash.hexdigest())
    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 ("
  • Borderlands 2 mouse sensitivity updater")

    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 ("
  • Usage is %s <mouse sensi>")
    sys.exit()

Thanks alot to "kthx" for original answer and python2 script!
Last edited by Kaathan; Dec 27, 2019 @ 7:33pm
It's Morkin time Jan 5, 2017 @ 5:29pm 
Hello! The way sensitivity is saved in this game is directly to your profile.bin file. The only way to reduce the sensitivity lower than 10, is to use a hex editor such as HxD or Cheat Engine. I tested with CE and it works very well, if you learn the basics of CE and then search for your sensitivity value you can change it to what you wish. Then save and quit to see and save the changes. Good luck!
iihavetoes Jun 18, 2017 @ 3:07am 
That python script works great, A+
To anyone still trying to do this with no background in Python, I finally got it to work, here's what you have to do.

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.
Last edited by carcinoGeneticist; Jul 2, 2017 @ 3:32pm
Charmander787 Jul 2, 2017 @ 4:11pm 
You could change your mouse's DPI :)
Originally posted by Ratatoskr:
You could change your mouse's DPI :)
If your mouse only goes down to 800 DPI, like mine, this is the only fix
Blehh..... Feb 14, 2018 @ 4:01am 
Originally posted by Thogrom:
http://forums.gearboxsoftware.com/showthread.php?t=149113 Here is a very useful thread for those with the same problem. I won't be someone who just says fixed it with no solution listed.
Oops! That page doesn’t exist or is private.
trukr Feb 14, 2018 @ 4:41am 
Originally posted by Boltte:
Originally posted by Thogrom:
http://forums.gearboxsoftware.com/showthread.php?t=149113 Here is a very useful thread for those with the same problem. I won't be someone who just says fixed it with no solution listed.
Oops! That page doesn’t exist or is private.

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.
Blehh..... Feb 14, 2018 @ 4:49am 
Originally posted by trukr:
Originally posted by Boltte:
Oops! That page doesn’t exist or is private.

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.
What if I'd rather necro old threads than be told "Why don't you just go search for the answer yourself instead of asking when there's plenty of other threads about that have it answered?"
trukr Feb 14, 2018 @ 4:56am 
Originally posted by Boltte:
Originally posted by trukr:

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.
What if I'd rather necro old threads than be told "Why don't you just go search for the answer yourself instead of asking when there's plenty of other threads about that have it answered?"

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.
Blehh..... Feb 14, 2018 @ 5:08am 
Originally posted by trukr:
Originally posted by Boltte:
What if I'd rather necro old threads than be told "Why don't you just go search for the answer yourself instead of asking when there's plenty of other threads about that have it answered?"

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.
Yes.... hahahahaha:steammocking:

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?
trukr Feb 14, 2018 @ 5:24am 
Originally posted by Boltte:
Originally posted by trukr:

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.
Yes.... hahahahaha:steammocking:

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/
Blehh..... Feb 14, 2018 @ 5:35am 
Originally posted by trukr:
Originally posted by Boltte:
Yes.... hahahahaha:steammocking:

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/
Fair enough....

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...
< >
Showing 1-15 of 36 comments
Per page: 1530 50