PS4Macro
PS4Macro copied to clipboard
PS4 Remote Play not detecting emulated controller
Dear developer,
I've downloaded the latest 0.5.1 BETA Version of PS4Macro because I wanted to try the keyboard mappings within PS4 Remote Play (Version 2.5.0.9220).
I opened PS4 Remote Play first and started the PS4Macro afterwards. I opened the Remapper Tool as you described it in your wiki and focused the PS4 Remote Play Windows afterwards again an started the session to my PS4 by clicking on "Start". I further tried to open the PS4Macro programm after the connection to my Playstation 4 was established, but same issue. Just the common keys are working (ENTER for X, ESX for Return, Left/Right Arrow Key).
Another step was to open PS4Macro with following configuration inside the settings.xml:
<Settings> <AutoInject>true</AutoInject> <EmulateController>true</EmulateController> <ShowConsole>true</ShowConsole> </Settings>
which gives me an "OnInjectionSuccess 7384". I guess this should be the process ID of the PS4 Remote Play Instance, but I'm still not able to use the extended key mapping (like R1 with E or R2 with O).
At the moment I have no PS4 Controller connected to my USB because as far as I understood this is not neccesary when using the "EmulateConntroller" Option?
Do I have any understanding trouble or is there any bug?
If you need further information, don't hesitate to ask me again.
Thank you very much in advance, Michael
P.S.: I tried to use the Mapping Keys within the FIFA 18 Main Menu.
Hi! Thanks for the details. You're right about not needing a PS4 Controller for EmulateController
option.
Please close the programs and try this instead:
- Run PS4 Remote Play without PS4 controller
- Run PS4 Macro
- Wait for this screen
- Press start
- Go to Tools->Remapper to start the remapper
Let me know if it fixes the problem or not.
Good Morning komefai,
I exactly did the steps you mentioned in the same order right now. (with emulatecontroller = true option). OnInjectionSuccess is printed again in my console.
But I'm still not able to use any mapped key (just ESCAPE, ENTER and Arrow left, right, up, down).
I tried it inside FIFA 18 and the Playstation Main Menu.
My operating system is Windows 8 64bit inside a VMware Player, but I think this should be no problem. I'm using Ps4 Remote Play over WAN at the moment and not on a computer in my home network. Could this cause the problems?
NAT Type (shown in PS4 Remote Play Program): Type 2
Thank you very much for your fast response. Best Regards
Using it in a VM and over WAN shouldn't be a problem. However, you mentioned that:
But I'm still not able to use any mapped key (just ESCAPE, ENTER and Arrow left, right, up, down).
This means that PS4 Macro are not intercepting the keys at all and letting you use the actual keys. So make sure that you're running PS4Macro.exe as Administrator and make sure that the Remapper window (Tools->Remapper) is open at all times when you're using it for remapping the keys.
I gave it another try today with the version 0.5.1.
-
I opened PS4 Remote Play without Controller (as local Administrator)
-
The following Screen appears:
-
I open PS4Macro.exe with local Administrator Privileges
-
InjectionSucced Message Appears
-
Configuration of Settings.xml:
> <?xml version="1.0" encoding="utf-8"?>
> <Settings>
> <AutoInject>true</AutoInject>
> <EmulateController>true</EmulateController>
> <ShowConsole>true</ShowConsole>
> </Settings>
- Establishing the Connection to my PS4 and opened Tools -> Remapper afterwards. Both Applications are running. I try to use the A S D W keys on my keyboard for left, down, right, up inside the PS4 Remote Window but nothing happens.
So any idea / advice what is my problem or fault?
There is a new version 0.5.2 . Try with this one.
It's the same problem with 0.5.2.
Hi, Your latest RemotePlay screenshots does not detect the emulated controller yet. You have to wait for this screen with this exact message otherwise the emulation will not work: “Press the OPTIONS button on the controller to start.”
Please try it again with AutoInject: false
in case your PC does not support Auto Injection.
So it seems that the PS4 Remote Play is not detecting the emulated controller?
Just to be sure, I have no physical controller connected yet and the emulated controller is coming within the PS4Macro by the <EmulateController> tag + value = true within the settings.xml?
This should be enough for that the PS4 Remote Play is "detecting" the virtual/emulated controller? Or do I need a 3rd party tool which emulates the controller?
Yes you’re correct, all DualShock4 controllers should be unplugged from your PC when you’re using EmulateContoller.
Okay, I've never connected a DS4 Controller to my System yet. So I don't know why the emulation is not working at all =). Any Suggestions? Do I need to connect the DS4 Controller one time for that the drivers will be installed on that system? And afterwards I can use the emulation feature?
Just tried it with 0.5.2. and waited for plenty minutes for that the PS4 Remote Play is detecting the emulated controller, but nothing happened
Short Update:
Yesterday I connected my PS4 Controller to my laptop and started the PS4 Remote Play. I got this window / message:
I further started the PS4Macro and opened the Remapper. I was able to navigate with the ASDW Buttons the first time.
Afterwards I closed all programms and unplugged the physical controller and did another test with the emulatedController Tag within my settings.xml.
The emulated Controller was not recognized by the PS4 Remote Play and thus the Remapper Keys were not working. So from my point of view it seems that there might be a problem / bug with the emulatedController option as I tested this feature on two different machines (one physical and one VM) and for both it is not working.
Thanks for the detailed report. I'm going to reopen this issue and see what I can do with it.
AutoInject: false fixed the same issue for me.
Can confirm partially.
Tried the following constellation:
<?xml version="1.0" encoding="utf-8"?>
<Settings>
<AutoInject>false</AutoInject>
<BypassInjection>true</BypassInjection>
<EmulateController>true</EmulateController>
<ShowConsole>true</ShowConsole>
</Settings>
EmulatedController was not recognized.
I had to false every setting inside the settings.xml except the EmulatedController Tag. Afterwards the emulatedController was detected in PS4 Remote Play. Opened Remapper before I connected to my Playstation, but the remapped keys still not working.
Update: I was able to press "Start" in PS4 Remote Play with Key on my Keyboard (Z), connection to PS4 established but I was still not able to use ASDW keys for navigating afterwards.
@MiWo85 I can confirm that opening Remapper before pressing "Start" and then pressing Z on your keyboard to start will cause it to NOT work 100% of the time. This is probably because PS4 Macro detects and cache the start window (for performance reasons) thinking that it was the game window.
What you should do is wait for the screen to make sure that the controller is emulated and then CLICK the "Start" button. Wait for the game before you open the Remapper window.
@komefai I tried ~ 20 times it in various constellations since yesterday. I've downloaded the latest version with Remapper Mouse Support.
Yesterday it worked one time for me this way:
- Opened PS4 Remote
- Opened PS4Macro
- Opened Remapper
- Clicked "Enable Mouse"
- Clicked on PS4 Remote Window an started Session with Z-Button. (Mouse Input is also detected)
Afterwards I was able to navigate ingame with the customized keys and it worked very good. But all the other tries did not work.
Just tried your recommendation to START first (after emulated Controller was detected) and waited to open the Remapper Tool after the Playstation Screen was shown. But the injection of the remapper keys did not work.
The one succesfull scenario yesterday showed that it might work randomly, but not reliable. Is there anything I can do for you to help you finding the reason for this?
I just saw your settings from your previous post:
<?xml version="1.0" encoding="utf-8"?>
<Settings>
<AutoInject>false</AutoInject>
<BypassInjection>true</BypassInjection>
<EmulateController>true</EmulateController>
<ShowConsole>true</ShowConsole>
</Settings>
..and setting BypassInjection to true is one of the reasons why it doesn't work. Please try everything again.
Please read my post again two days ago:
I had to false every setting inside the settings.xml except the EmulatedController Tag. Afterwards the emulatedController was detected in PS4 Remote Play. Opened Remapper before I connected to my Playstation, but the remapped keys still not working.
So everything is already on false except the EmulatedController Tag. The Controller is also detected everytime when I open PS4 Remote Play and PS4 Macro.
I don't know if you want "me too" comments but I can also say that when I have everything on false except "EmulateController" it does not work for me. Occasionally I think something is slightly different as remote play does not accept arrow keys but never got "Z" or "WASD" to work.
Timing issue?
@MiWo85 Whoops sorry, my bad.
@ninjatjj Thank you for the report!
One easy way to make sure that the emulated controller is actually working is to try the macro recording. You should see the red numbers increasing every frame on the bottom right corner if it's working properly. I suggest anyone with this problem to try this instead of the Remapper because this method has a better visual feedback, which is easier for us to debug.
Unfortunately this isn't working for me following @Y-T-G instructions. TBH though I can't see Enable Mouse - I am using 0.5.2 is there a better release to try?
@ninjatjj Yes, there are debug builds here: https://github.com/komefai/PS4Macro/issues/13 . Although latest version has a bug. Use previous version. Use the slightly updated instruction above again.
@ninjatjj
For me neither. I tried YTGs instructions several times. I did try any other possible and mentioned way with different PS4Macro versions but out of 50 tries just one time it worked.
@MiWo85 Did you try again with the updated instructions?
This has confused me for a long time but when it says "some machines don't support autoinject" I really don't understand what it means? I am not really using any peripheral here so why would my machine need to autoinject something - this is windows 10. Perhaps it relates to the macro aspect rather than the keyboard input?
Also, do you have to have plugged in a controller at least once?
Is it easy to set up in the IDE? If so I could try to debug here. Where would I see "Z" getting mapped to a button on the controller?
Does it matter if you are using a built in laptop keyboard rather than a USB keyboard?
@ninjatjj AutoInject is a feature that allows PS4 Macro to intercept PS4 controls multiple times without having to start a clean instance of Remote Play each time you open PS4 Macro. From reports in the past, some PCs just don't support this feature and throws and error for an unknown reason. So it is the best to set it to false if you're unsure that your PC is supported or not (until the issue is solved).
Also, do you have to have plugged in a controller at least once?
~~I haven't tested this theory myself but it is possible.~~ UPDATE: No.
Is it easy to set up in the IDE? If so I could try to debug here.
There are many online resources on setting up Visual Studio so I think it's not too difficult.
Where would I see "Z" getting mapped to a button on the controller?
You can see it in the Mappings
list in the Remapper window. Z is mapped to the OPTIONS
button by default.
Does it matter if you are using a built in laptop keyboard rather than a USB keyboard?
No, it does not matter.
@Y-T-G Yes I also did the updated insutructions in three different tries.
The "Z" Button and Mouse Input is working for me until the Connection to my PS4Remote is established. But afterwards it does not work anymore.
@MiWo85 Can you try Registering your PS4 again without signing in with your PSN ID in the Remote Play application? Try with these exact settings and don't maximize your Remote Play window. Keep it windowed and pinned to a side.
The "Z" Button and Mouse Input is working for me until the Connection to my PS4Remote is established. But afterwards it does not work anymore.
You should not start PS4Macro before your PS4's screen gets displayed. Start PS4Macro and Remapper after that.
I'm working on a status checking tool that will hopefully help us pinpoint the cause of this problem. I'll compile and post the debug build here soon.
I am new to programming and coding but I am having trouble finding the file for "settings.xml" forgive me if it seems obvious