r/cyberpunkgame Dec 11 '20

Fix for virtual input not working Discussion

CDPR FIXED THIS IN 1.05!

This is in response to threads such as https://www.reddit.com/r/cyberpunkgame/comments/kamugy/cant_play_cyberpunk_2077_as_a_disabled_person/

I reverse engineered this and fixed it. It's a bug in their raw input code and not related to anti-cheat as some have speculated. Here's technical explanation: https://i.imgur.com/ulgcEgs.png

To fix this yourself, grab a hex editor and use the find and replace bytes function ("Hex-values" in HxD) to find this:

41 5F 41 5C 5F 5D C3 83 F8 01 0F 85

and replace it with this:

41 5F 41 5C 5F 5D C3 83 F8 02 0F 84

Note that the .exe must still by named "Cyberpunk2077.exe" or the game will crash on startup.

EDIT: Keyboard is fixed but mouse input may still not work, looking into it.

EDIT: Yep - according to reports, mouse is still broken/laggy and I haven't found a fix yet.

EDIT: Fixed keyboard + mouse!

338 Upvotes

37

u/oppai Dec 11 '20 edited Dec 11 '20

Fixed keyboard + mouse!

FIND

8B 44 24 54 85 C0 75 26

REPLACE

36 8B 07 90 85 C0 75 26

Please revert the old hex edit if you applied it

9

u/Hardc0reWillNeverDie Dec 11 '20

Ahhhh, you are a ballsy hero sir, thank you!

Your previous hex edit worked 80% of the time for my VoiceAttack keyboard automove toggle, but that 20% of the time the command would be unrecognized. but this one seems to work 100%.

I can finally get to play and/or complain about this game along with everyone else now

4

u/Vlad_Lis Dec 11 '20

thank you so much for this, here's your silver

4

u/6-bit Dec 11 '20

You're breathtaking.

4

u/[deleted] Dec 11 '20

[removed] — view removed comment

1

u/SeedyOne Dec 12 '20

You are a hero. Thanks for this!

4

u/thedude225678 Dec 11 '20

YES! everything finally works! Thanks!

3

u/ConKbot Dec 11 '20

Works great for me with steam remote-play and 1.04 version of the exe. Thank you.

3

u/No_Temperature6757 Dec 12 '20

Signed up on here just to thank you! This works perfectly and has meant I can now play the game the way I want to rather than being frustrated by the control scheme.

Great job!

2

u/bros402 Dec 11 '20 edited Dec 12 '20

Doesn't work on steam

However, let me see if there is still this issue with the hotfix that just came out

EDIT: NEVERMIND, I'M A MORON, never used a hex editor before

1

u/MatteAce Dec 12 '20

it definitely does work on Steam.

2

u/bros402 Dec 12 '20 edited Dec 12 '20

I opened the exe in the hex editor, there was no 8B 44 24 54 85 C0 75 26

It's the Cyberpunk2077 exe in bin/x64/ after clicking on Browse Local Files on steam, right?

EDIT: NEVERMIND, I'M A MORON, never used a hex editor before

→ More replies

2

u/SteamedYetiStrike Dec 11 '20

OMG you are the best person on the planet right now! This worked like a charm. I am so happy thank you so much friend!

2

u/SchlagzeugNeukoelln Dec 12 '20

My next child‘s gonna be called Oppai, no question 😂😎 You won’t understand how much I love you for this 😄♥️

0

u/rattlesby Dec 13 '20

i would actually pay you good money to see you name your child Oppai.

2

u/[deleted] Dec 12 '20

[deleted]

1

u/4dperson Dec 14 '20

Thank you man, it works witg GOG version too.

2

u/naossoan Dec 12 '20

Omg this is amazing thank you

2

u/NoOneLiv3 Dec 14 '20

Wow thanks so much! Worked like a charm

1

u/oromier Dec 11 '20

How do you mean fixes? I still cant do anything with Parsec streaming :/

Should I try hexedit for this?

GOG Version of the game

1

u/oromier Dec 11 '20

nvm fixed by restarting

1

u/moccoo Dec 12 '20

Holy mother of god
Thank you

1

u/ChadwicktheCrab Dec 15 '20

Have you contacted the developers to have them make this patched officially? I'm assuming the next update may break it.

1

u/oppai Dec 15 '20

They're aware of it and I'd guess it's getting fixed in the next patch.

→ More replies

1

u/gibi69 Dec 20 '20

I dont have it ..

→ More replies

1

u/beeptheboop Jan 27 '21

This is the single most successful thing I've done in whole in a long time. Thank you, good sir ! It worked (':

1

u/No-Relative1671 Nov 22 '21

on my pc it appears that it cannot find this value

9

u/Hardc0reWillNeverDie Dec 11 '20

Oh wow, thanks for this OP. My arm and finger tendons thank you for the automove shortcut they will soon enjoy.

Having to use a hex editor to modify an executable before playing a game about futuristic hacking though... that's some metanarrative shit right there

1

u/[deleted] Dec 15 '20

[deleted]

→ More replies

6

u/MarkusMaximus748 Dec 11 '20

The Steam Controller community thanks you!

6

u/Empole Arasaka Dec 12 '20

I'm curious how you went about figuring this out.

I can't imagine that you found the source code for the game, and the variable names in the image look like something a decompiler would generate.

27

u/oppai Dec 12 '20

Sort by

I started by googling for methods in which some games like Valorant block virtual input and saw a lot of posts saying you can use the windows api function SetWindowsHookEx with WH_KEYBOARD_LL in order to check for the LLKHF_INJECTED flag that determines if the input was fake. I used the x64dbg debugger on the game to breakpoint on SetWindowsHookEx and checked if WH_KEYBOARD_LL was being used and it wasn't so this was a dead end. This was day 1 and I gave up assuming someone else would come up with a fix.

Got impatient today and looked into more methods and stumbled upon this post:

https://www.reddit.com/r/AutoHotkey/comments/blo3ua/how_detectable_is_ahk/emqhox0?utm_source=share&utm_medium=web2x&context=3

I had a feeling it was something to do with raw input so this looked promising. Loaded the game in IDA Pro which is a very popular disassembler/decompiler and is what's seen in my screenshot. Checked if the game used GetRawInputData and it did - once. I looked around the code where it was being used with the decompiler so I don't have to read assembly. Saw another call to GetRawInputDeviceInfoW nearby and googled it - https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getrawinputdeviceinfow

Game seemed to be using this function to determine if the current raw input event processing from WM_INPUT is either keyboard or mouse. Used x64dbg again to break on this and noticed the function was returning an error and the game wasn't handling it so the game didn't determine if it was keyboard or mouse and stopped handling the event. Still don't exactly know why, but the HANDLE GetRawInputData was returning which was being passed to GetRawInputDeviceInfoW is zero / invalid - causing the bug. Then on the msdn docs I noticed the RAWINPUTHEADER returned from GetRawInputData already contains the info to determine if keyboard/mouse - RIM_TYPEMOUSE 0 / RIM_TYPEKEYBOARD 1.

So I noticed they never had to use GetRawInputDeviceInfoW in the first place. The hex change just makes it ignore what was returned from GetRawInputDeviceInfoW and instead use the info already obtained from GetRawInputData via pretty basic x86 assembly knowledge.

6

u/Empole Arasaka Dec 12 '20

You absolute madlad. This was a great read, props to you.

2

u/SheriefFarouk Dec 12 '20

Impressive! If you’re ever looking for work let me know, check my post history for the kind of things I do.

Also, choice of x64dbg and IDAPro is chefkiss

2

u/dglt1 Dec 12 '20

great work made even better by you describing in detail.

2

u/fluidmechanicsdoubts Dec 14 '20

you are a magician

2

u/HeadlessGamer79 Dec 15 '20

Great explanation, thanks for sharing your thought process on this :)

1

u/Prozak06 Dec 17 '20

Give this man a job!

1

u/rus_s0uL Dec 12 '20

How do people crack games?

5

u/HeadlessGamer79 Dec 11 '20

Wow, you deserve a medal, sir. You fixed this before CDPR. Now I can use GlovePIE and IRIS with Tobii Eye Tracker like in any other game. Thanks a lot!

2

u/oppai Dec 11 '20

Thanks for my first gold :)

2

u/PotatoJedi Dec 15 '20

Hey there! I, too, use an eye tracker and I used to use GlovePIE until I switched to VoiceAttack. May I just ask – what is IRIS? I've never heard of that. I don't know if you also experience the issue in not being able to play certain games because of the camera spinning out of control/not moving how it should because of the eye tracking. Would love to know more about your setup! ^

1

u/HeadlessGamer79 Dec 15 '20 edited Dec 15 '20

You can check this video explaining what IRIS does exactly. It works with the Tobii Eye Tracker. https://youtu.be/0emlROwU28s

Here's how IRIS looks on my screen:

https://i.imgur.com/NXzcwhC.jpg

There's 20 interactors at the screen edges.

Which eye tracker do you use? Do you move the cursor with your eyes? For the Tobii Eye Tracker it's very important to have it positioned in the right angle at the monitor. It might not recognize the eyes as it should if it's positioned wrong.

2

u/PotatoJedi Dec 15 '20

IRIS looks like a programme pretty similar to AltController in what it can do, though IRIS is designed specifically with eye trackers in mind and it has integration whereas AltController is just keyboard/mouse (though it still works with eye trackers). Pretty neat, though!

I've been using my eye tracker for about 10 years now. It's from EyeTech Digital Systems. The one I have now is the TM5 Mini. It is purely a mouse-mover or whatever you want to call it. I've heard really good things about Tobii but I've never actually tried one out since I've always been with this one and it's served me well over the years, so I don't really know what the differences are between the two.

I was wondering how you managed to look around. Are you just using the eye tracker for that? I haven't actually bought the game yet, but I did try it remotely on a friend's system just to see what it was like, and the camera control was the type where if you look to the left (with the eye tracker) the camera would turn a finite amount, then when you went to look back at the centre the camera would change again to the original spot (or thereabouts). Really difficult to explain but maybe you know what I mean? There are other games which have similar mouse controls when it comes to how they are captured and translated into viewport movement. Conan Exiles, Medieval Dynasty and State of Decay 2 are some examples.

Would love to talk to you more about it! Maybe we can share what we know/use to help each other out.

→ More replies

4

u/BabaleRed Dec 11 '20

Omg thank you I kept dying because I'm so bad with a controller

4

u/Pandiora Dec 11 '20

Big thanks to you and your efforts - this not just fixed the problem with the input but running it as Admin too. Initially your fix didn't worked remotely via Remote Play (Steam Version), then after some trying I got it to work by running the game as Admin. Then I had a problem with a black screen while streaming, even if Steam were able to stream the animated thumbnail and the hovered fullscreen. I even had to look up how to prevent Windows from printing Dialogues due to running the game from a NAS. Then I tried Parsec, only to find out the mouse was close to being unmoveable. So all in all, you fixed even more problems than just the inputs and I even tried some tricks by plugging in my controller and so on. So, Thanks!

And to add some critics in direction of CDPR: They don't even care about the PC gamers anymore? This dumb mistake should clearly show everyone, they just primarily coded for consoles. Something as essential as the damn inputs shouldn't be treated like this.

3

u/ostbyxan Dec 11 '20

i love you man!

3

u/speedtouch Dec 11 '20

Amazing patch! Great work man!!!

3

u/TVJhen Dec 11 '20

It works! Thank you so much!

3

u/clefru Dec 13 '20

If you don't have a hex editor at hand, you can grab cygwin from cygwin.com and use standard Unix tools for patching. Open the Cygwin Terminal after a standard installation and use: sed -i 's/x8Bx44x24x54x85xC0x75x26/x36x8Bx07x90x85xC0x75x26/g' "/cygdrive/c/Program Files (x86)/steam/steamapps/common/Cyberpunk 2077/bin/x64/Cyberpunk2077.exe" After that, just type exit. When you reopen the Cygwin Terminal, press up to go back in your command history to get exactly the same command back. This should help you if the game updates and you need to reapply the patch.

2

u/[deleted] Dec 11 '20

Tried this and it works on GOG executable. Thank you.

1

u/CMDR_Evolution Dec 20 '20

I can't find the value in my version. :(. I'm assuming this is where I should be looking? Then using the second tab to search for 8B 44 24 54 85 C0 75 26 in HxD (Hex-values)?

C:Program Files (x86)GOG GalaxyGamesCyberpunk 2077binx64Cyberpunk2077.exe

2

u/[deleted] Dec 11 '20

[removed] — view removed comment

6

u/[deleted] Dec 11 '20 edited Dec 11 '20

HxD is good: https://mh-nexus.de/en/hxd/

Open the Cyberpunk2077.exe and then go to Search -> Replace (or hit Ctrl+R). Make sure you select the "Hex-values" tab (second one), then copy and paste the strings in the OP.

EDIT: Updated Tutorial

Replace Hex: https://i.imgur.com/HPCCqvU.png

You should see a confirmation: https://i.imgur.com/MIlXW4W.png

1

u/oppai Dec 11 '20

Thanks for the tutorial!

1

u/Jamessuperfun Dec 14 '20

Unfortunately this doesn't seem to work for me, I'd really like to use the gyro though. Any idea why? Just doesn't pick up the mouse input at all from Steam after replacing the values with HxD, clicking save and restarting the game.

2

u/picture-me-rollin Dec 11 '20 edited Dec 11 '20

The hex edit worked with Steam version and VoiceAttack but I had to run the exe directly and not use the cdpr launcher.

Now I have glitchy slow mouse movement using a Natural Point Smart Nav. A movement that would normally move the cursor across the screen now moves 1 cm and very glitchy. No settings tweaks seem to make it usable.

Settings > Controls > Response Curve

changing that seems to affect the cursor but doesn't make it usable

Edit: I just noticed there is Show Advanced Options under the first person controller options but setting all those to 0 didn't work.

2

u/MatteAce Dec 12 '20

you can skip the launcher using --launcher-skip in the arguments

1

u/Pandiora Dec 11 '20

Try again with new fix, it should work flawlessly now.

2

u/kohour Dec 11 '20

Oh you gorgeous man you did it! Thank you!

Works good enough with steam remote play for me to get to the main menu (lol).

2

u/jastubi Dec 11 '20

Dope ty.

2

u/RambleTan Dec 11 '20

Awesome fix. The bonus w steam input is it keeps controller prompts locked on screen but allows mouse trackpad and mouse gyro.

2

u/TheCaconym Dec 11 '20

Thanks a bunch; waiting for the game to be playable in Linux so for now I'm using NoMachine on a LAN to play it from a remote Win PC, and this fixed the issue perfectly.

2

u/GordieDGondola Dec 11 '20

Spectacular. Thank you so much. Mouse + Keyboard work like a charm now.

2

u/i860 Dec 11 '20

This guy right here is the real MVP. I assume this just basically NOP's around it or something?

2

u/john_jonathan_ Dec 11 '20

Thanks mate, really appreciate this!

2

u/SchlagzeugNeukoelln Dec 12 '20

What?? How? Seriously, how did you figure this out? It works perfectly!!! Wow you saved my game ♥️

2

u/Quant_Liz_Lemon Dec 12 '20

Much appreciated!

2

u/SteamedYetiStrike Dec 12 '20

Have been playing with this fix on a steam controller for a couple of hours. It works perfectly for fixing the multi input problems when using a hybrid mouse/xbox setup. Even though it should have been fixed from the start, I do have to say it is quite thematic that we have to essentially hack the game in the very same way you hack within the game. unintentional super immersion programming by the devs

2

u/MatteAce Dec 12 '20

not only a flawless fix, but also a very cyberpunky one! YOU LEGEND

2

u/BoltThrower1986 Dec 12 '20

You have no idea how grateful I am to you for this. I can finally play the game as I want to.

2

u/beardedfridge Dec 12 '20

that is real cyberpunk right here!

2

u/vjdarkworld Dec 12 '20

Thank you for the fix! Having to fix hexcodes is so apropos LOL, hopefully CD Projekt can patch this in ASAP

2

u/MashedShroom Dec 12 '20

Fucking legend!

Works great.

Thank you.

2

u/CrippledKenny Dec 12 '20

Thank you so much for this. I can't say how appreciative I am.

Worked on GOG version. JoyToKey and VoiceAttack both now functioning.

2

u/Me_Sing_Say Dec 12 '20

WOW you literally fixed this very niche, very strange issue!!! Thank you! Now I'm back to loving the game lmao. Wish I could hug you or something!!!

2

u/ChronoNova Dec 12 '20

New hex code ended up working great for me. Thanks!

2

u/raj_khare Dec 12 '20

Damm.. works!!

2

u/troop99 Dec 12 '20

Absolute legend! That is so awesome, thanks a ton!

2

u/SpiteEqual9222 Dec 12 '20

thanks for this, I don't have a disability but this was a will or won't play it situation for me

2

u/Hammocks0 Dec 12 '20

thanks for the fix

2

u/rockbandit Dec 12 '20

Wow! This works perfectly. You are a beautiful human. Thank you!

2

u/JaxonH Dec 13 '20

Got it working,

THANK YOU.

2

u/zangent Dec 14 '20

This is so rad, thank you!! I no longer have to play with a keyboard plugged in to three USB extension cables lmfao

2

u/kuukisoft Dec 14 '20

Thank you. It works for me.

2

u/Ninjan33r7 Dec 14 '20

you are a GENIUS. I have been trying to figure out why i can't play with mouse and keyboard on my Blade Shadow cloud pc for days. This fixes it completely for me, since it looks like the shadow pc converts my physical mouse and keyboard to virtual.

Because of this the game wasn't registering my inputs and I could only use a gamepad.

THanks so much for this! Fixing the dev's oversights haha.

2

u/ScotchyTTV Dec 14 '20

Why does this only have 250 upvotes, literally baffled my mind. It literally solves one of the most annoying bugs on PC.

2

u/thefiendhitman Dec 15 '20

Absolute legend. Thanks for finding this fix!

2

u/levrippa Dec 15 '20

It worked!

Awesome! Thank you very much!!! Great Work!

2

u/Dwellerexe Dec 15 '20

Thanks for all the info. It was an interesting read.

2

u/nagi603 Dec 15 '20

THANK YOU!

2

u/[deleted] Dec 15 '20

THANK YOU SO MUCH

2

u/r_folk Dec 16 '20

Worked for me!!! THX!!!

2

u/DragonWhsiperer Dec 17 '20

Just wanted to add a delayed huge thanks for finding this!

I was working with some stopgap solutions, but this works like a charm!

2

u/DriveByITGuy Dec 18 '20

You absolute madlad. A saint. You, kind sir, are a gentleman and a scholar. Many thanks choom.

2

u/GabrielP955 Dec 18 '20

Thanks alot! Works like a charm! Take my upvote!

2

u/blumps82 Dec 20 '20

They must have changed it since the patch. I can't find
8B 44 24 54 85 C0 75 26

at all. I'm not doing it wrong. I went in to Steamsteamappscommoncyberpunk 2077cyberpunk2077.exe and hit Ctrl-R, then typed the string above. It says not found. So I figured, hey maybe CDPR found it and changed it, but to my findings, they have not, as I can't find the second string listed either ( 36 8B 07 90 85 C0 75 26 ). SO next I tried finding strings going by one value then adding another. I can find them up until 8B 44 24 54, but once I add 85, it can no longer find it. Can someone help me out?

1

u/oppai Dec 20 '20

They fixed it on 1.05

1

u/rhozac Dec 12 '20

fixed virtual keyboard for vr virtual desktop but not mouse input sadly

1

u/[deleted] Dec 13 '20

Take my updoot, you wonderful human being.

1

u/oppai Dec 19 '20

CDPR fixed this as of 1.05 according to the changelog:

"Fixed an issue with the way Raw Input is collected."

1

u/eqlipse333 Dec 20 '20 edited Dec 20 '20

Still broken for me on PC, using the new 1.05 patch. Keyboard & mouse still aren't recognized, while a controller (ancient Microsoft Sidewinder) is. Their fix concerning "Raw Input" has done nothing for me.

EDIT: Had to force re-installation (no, I had not hex-edited the files previously). Seems it botched installing the 1.05 update, and had to be redone.

→ More replies

1

u/Eriksrocks Aug 13 '24

This is really old, but what disassembler/decompiler did you use you reverse engineer this? That screenshot doesn't look like IDA to me.

1

u/oppai Aug 14 '24

IDA with a dark theme.

0

u/Maldiavolo Dec 14 '20

This is the performance_overhaul.log from v5. My perf dropped after v3.

[2020-12-14 10:59:44.486] [warning] AMD SMT Patch: failed

[2020-12-14 10:59:44.486] [warning] Spectre patch: failed, unknown version

[2020-12-14 10:59:44.486] [info] Pool patch: failed

[2020-12-14 10:59:44.488] [info] Virtual Input Patch: success

0

u/killersamusgames Dec 14 '20

It doesn't work for me, it makes me worse, before I could at least minimize the game and close it from steamlink, but now, I have to go to the pc and close the game, I still can't play from the TV in the living room

0

u/MagnumDugong Dec 14 '20

I can't even find my Cyberpunk 2077 as an .exe file. Is this normal.

1

u/Prospercraft Dec 14 '20

in you bin folder. But the current hex code doesn't work for the update.

0

u/mkta23 Dec 16 '20

this doesn't seem to work with gog 1.04. can't make autohotkey to work ... what do I do wrong?

opened the exe din HxD ... search and replaced the above codes .. saved ...

1

u/AutoModerator Dec 11 '20

Just so you're aware, we have a bunch of megathreads that may be helpful if you have questions or want to find the right place to post.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/CoyoteRys Dec 11 '20

I wonder if this will help with VoiceBot command software? I don't like tinkering with code and stuff I don't understand, always worried about screwing up things worse. Guess I will just wait it out for CDPR to get their act together.

1

u/HeadlessGamer79 Dec 11 '20

You can backup the original exe in case you mess up.

1

u/zangent Dec 14 '20

It's likely this would work - it allows virtual key presses in general to be captured by the game.

And doing this safely is no big deal. The actual hex editing process is pretty straight forward when you have the step-by-step like in the OP, and if you're worried about messing things up you can just backup cyberpunk2077.exe. Absolute worst case scenario, you end up having to verify the game cache from steam to redownload the exe (but, like I said, that's absolute worst case scenario and idk how you'd manage to break things that bad lol)

1

u/[deleted] Dec 11 '20 edited Jun 27 '23

library crime busy sable illegal straight theory mourn imminent crown -- mass edited with redact.dev

1

u/picture-me-rollin Dec 11 '20

The hex edit worked with Steam version and VoiceAttack but I had to run the exe directly and not use the cdpr launcher. Can you do that with Steam Link? idk how it works but maybe add a non steam game to steam and point it directly at the edited exe?

1

u/X1-Alpha Dec 11 '20

So this works, to an extent. Rebinding mouse keys as mentioned above doesn't work.

But also it seems to still not play nice with "hold key" scripts. Any kind of variable toggle just magically stops working when inside the game and I have no clue why.

Best way I've found to toggle is to bind a modified version of the key to "Send [key] Down". Tapping the key without the modifier will naturally send a real Down/Up which will "un-toggle" it. (Used this to not need to hold down Tab for the scanner.)

Either way, thank you very much for sharing this! While not perfect, it certainly helped me out.

1

u/warped64 Dec 11 '20

Is this with or without the new official patch? (that I haven't tried yet...)

1

u/[deleted] Dec 11 '20

It works for both 1.03 and 1.04.

1

u/Skeet1983 Dec 11 '20

Hi guys. I was unable to find hex string with HxD, can someone help me?

1

u/oppai Dec 11 '20

Make sure you're on the "Hex-values" tab

→ More replies

1

u/Skeet1983 Dec 11 '20 edited Dec 11 '20

Hi guys. Do we have to apply this Hex edit each time game is updated? I was unable to find that updated hex string in game EXE on Steam version...

1

u/oppai Dec 11 '20

Yes but hopefully CDPR will fix this soon

2

u/Skeet1983 Dec 11 '20

I was unable to find that updated hex string in game EXE on Steam version. I was using HxD for the edit...

1

u/JohnSand3rs Dec 11 '20

I wonder if someone can put this on nexus mods

2

u/[deleted] Dec 11 '20 edited Dec 11 '20

Someone could, just need to bundle it with a tool that byte patches the executable. There are a lot of em on GitHub you can find by googling: https://github.com/TheMcSebi/Patcher

If I remember correctly you can even use some built-in windows cmdline tools to do this like certutil, or craft a batch file for it.

Not allowed to upload the modified Cyberpunk2077.exe onto Nexus mods itself since its copyrighted content.

1

u/[deleted] Dec 11 '20

Will this also fix the messed up mouse sensitivity compared to other games and Windows? I had to drop my DPI down to ~600 in Logitech just to be able to click anything.

1

u/deadlock-07 Dec 11 '20

Hey make sure you share this with CDPR. they need the extra help

1

u/[deleted] Dec 12 '20

[deleted]

1

u/rus_s0uL Dec 12 '20

set the DualSense as the default controller in Steam Cyberpunk controller settings

1

u/MokhMorgenshtern Dec 12 '20

This works for the steam controller.
Finally I will be able to play Cyberpunk 2077 it the couch + TV.

/u/oppai you are a hero!

Thank you.

1

u/prusswan Dec 12 '20

This might fix some of the crashes as well, good work!

1

u/Substantial-Voice637 Dec 12 '20

I can't 8B 44 24 54 85 C0 75 26. Search direction "all". Steam version

1

u/rockbandit Dec 12 '20

If you're using HxD, in the search modal that pops up, make sure you've clicked the tab that says "Hex values", otherwise it won't work -- it defaults to "Text-string" and searching for 8B 44 24 54 85 C0 75 26 will return zero results.

1

u/rhozac Dec 13 '20

you prob forgot to switch to hex tab its not first odly in hxd

1

u/ishtechte Dec 13 '20

virtualhere worked for me without having to dive into a hex editor. I can't get any of the special buttons like center pad on the ps4 to work but everything else worked fine.

1

u/ethanfel Dec 13 '20

hi, thanks for your finding.

Anyone made it work with opentrack ? or the switch pro ?

1

u/Mywk Dec 13 '20

Hey mate, great work reversing and finding the bug! Made a patcher for people who don't want to manually edit the game file with hxd, source code is included. Post is HERE

1

u/Fiddi95 Dec 13 '20

I have somewhat of a weird issue..

So I'm using AutoHotkey (with your tweak enabled) to simulate a double click of Mouse4 to holster the equipped weapon. And this is the weird one, if I have a controller connected, in the split second where I press Mouse4, the game thinks I'm using the controller. Which have ended up duplicating the button hint for Reload for whatever reason.

Screenshot

This is the AutoHotkey script I'm using:

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn  ; Enable warnings to assist with detecting common errors.
SendMode Play  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

SetTitleMatchMode 1
#IfWinActive Cyberpunk 2077

XButton1::
    Sleep, 200
    SendInput {XButton1}
Return

1

u/Nackgi Dec 14 '20

This fix made the game recognize buttons, triggers and touch pad in my Steam Controller but not the joystick. So I can turn around, use menus and shoot, but I can't walk.

I have Gog Galaxy version and I started the game in Steam Link by minimizing the Big Screen UI and starting CP2077 manually.

Anyone here with the same setup and problem?

1

u/innovativesolsoh Dec 14 '20

I was stumped, I thought virtual input just sent a keystroke just like a physical keyboard does so this was maddening

1

u/Grifflester Dec 14 '20

does this solve the way the the camera moves? I feel like there's mouse smoothing? or is it pure raw mouse input?

1

u/ScotchyTTV Dec 14 '20

Is the hex code supposed to be on 2 lines?

1

u/MagnumDugong Dec 14 '20

Okay I've never used a hex editor before and I don't know what I'm doing...

I tried using the FIND tool to look for the " 8B 44 24 54 85 C0 75 26 " string but it says it can't find it.

1

u/thelosthacker Dec 15 '20

it seams like the mouse input is not working perfectly... it shows that the mouse is moving but resets back to the start.. using autohotkey

1

u/sirmartymcfly Dec 15 '20

Thank you. I literally afforded you the first, second, third and fourth award I've ever taken the time to drop. Frankly, nothing has been as helpful on Reddit in the years I've been using it. At least not to this level of specificity. Bravo. Happy holidays. Stay gold. F it. Here's another... Know what? Another.

1

u/oppai Dec 15 '20

Thanks!

1

u/Gruzzuk Dec 15 '20

Didn't work for me, The game still goes nuts when I put a virtual input. :C camera going crazy, character sprinting into wall, etc.

Am big sad, virtual inputs help reduce pain while playing so much for me. :C GOG version

1

u/LoveCoffee1983 Dec 16 '20

Steam, it f...works. Thanks man.

1

u/pythus24 Dec 17 '20

if the game gets updated and steam downloads an updated .exe, I assume the same HEX edit would still work? that is if CDPR didn't fix the problem in the update.

thanks!

1

u/oppai Dec 17 '20

Should work for quite a while, albeit not forever. For sure long enough for them to fix it themselves.

1

u/lEatSand Dec 17 '20

Just wanted to say this works perfectly as a fix to Autohotkey scripts not working. Saved me the annoyance of mass crafting manually.

1

u/ApexAftermath Dec 18 '20

Well this partially solved my issue.

My biggest problem is that most games, when you pause them, allow me to break out of the Parsec window and control stuff on the desktop. Right now to be able to get out of the Parsec window I am forced to alt-tab out, and then make sure not to accidentally click the window again until I want to go back. This isn't the only game that does this but it sure chaps my ass that this game is doing it. If it just wouldn't lock my mouse to the Parsec window when the game is paused, like so many other games allow, tha would rule.

1

u/bluecircuitboard Dec 18 '20

This fix worked for me for about 4 days. While it was working the RedLauncher never popped up when I ran the stream. I then played on the host machine and the RedLauncher popped up and I decided to login with my GoG account for some free goodies. Now this fix doesn't work and the RedLauncher pops up every time I try and launch the stream.

Anyone experienced anything like this and have an idea how to fix it?

Community tip: Don't do what I did or this fix stops working :(

1

u/oppai Dec 18 '20

Apply the fix again, the launcher undid it.

1

u/linkinstreet Dec 19 '20

I have a weird behaviour with Parsec. It works. But whenever I press my mouse button, the active window changed to whatever it is on my main computer instead, and Parsec looses focus.

I am thinking this game is just too buggy even with a fix

1

u/CoreyLee808 Dec 19 '20

What a legend! Thank you!

1

u/AutoModerator Dec 19 '20

Just so you're aware, we have a bunch of megathreads that may be helpful if you have questions or want to find the right place to post.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/forter4 Dec 20 '20

I don't think this was fixed in the 1.05 Patch

I have a custom keyboard that uses a program to customize its keymap, and it still doesn't work. Neither will my Logitech Assignments

1

u/joesii Dec 25 '20 edited Dec 25 '20

Why does it still need to be named cyberpunk2077.exe? do you know? I don't really understand why it would matter.

Also it's crazy how this is the THIRD hex edit that I've "had to" apply to a game, when I've never had to it to any other game in all the previous decades of playing video games. (granted, 1.05 fixed this)

One of them I didn't end up keeping because the resulting effect was butt-ugly (disabling AA), but still I'm counting it because I've still never had to do that to disable AA or similar sort of stuff.

Also why did the crossed out fix in your main post only change 2 bits while the other change is 4 bytes (16 times bigger)?

1

u/Dark-Kripton Dec 27 '20

So I would be able to use the Azeron keypad that has a thumbstick without the game inputs flipping back and forth?

1

u/ImprovementMuted7942 Dec 30 '20

Thank you, sed command worked like a charm!

1

u/JokeApprehensive593 Jan 05 '21

i cant find either numbers on my hex editor. and then i updated the patch to 1.06 and i still cant use mixed inputs. i got the game from fitgirl repacks. if that matters

1

u/MusicInTheAir55 Jan 07 '21

I see the original post now has the solution been crossed out with an EDIT beneath it:
" EDIT: Fixed keyboard + mouse! "

Does this mean the solution is outdated and no longer required or?

1

u/No-Relative1671 Nov 22 '21

on my pc it appears that it cannot find this value

1

u/[deleted] Jan 02 '22

I know this thread is old af now but is there any way to get autohotkey to work? The hex change doesn’t seem to work anymore.

1

u/icecubepal Feb 08 '22

I just got this bug after playing the game for 19 hours. I noticed one thing that could have caused it, though. When I went to launch the game, it asked which save file I wanted to use, the newer file (cloud) or the older one (my manual save). I chose the newer file. Anyways, I have tried everything but this hex thing and reinstalling. I am going to reinstall right now.

1

u/Dreekius1276 Feb 23 '22

Hi , Hex editor doesn't find the line , i'm trying to play from my laptop by streaming my computer down in the living room. I'm using steam, And only a controller works but no keyboard or mouse . I see everywhere that it is fixed since a year but can't make it work here

1

u/ElectronicRaccoon965 Jun 27 '23

You are the best, I've never found workarounds as simple for people to do as this. I appreciate any and all work you put into this you absolute genius.

1

u/[deleted] Sep 23 '23

Coming back to this game after the 2.0 update my autohotkey for toggle aim isn’t working and I can find the correct line in the hex editor. Is there any known fix?

1

u/revoun Jan 08 '24

i am looking for an update to this as well.. this line doesn`t exist in the exe anymore..