citizenfx / fivem

The source code for the Cfx.re modification frameworks, such as FiveM, RedM and LibertyM, as well as FXServer.
https://cfx.re/
3.52k stars 2.07k forks source link

Last update bricked remote play - Parsec/Moonlight #2578

Closed K0rz4k closed 2 months ago

K0rz4k commented 3 months ago

What happened?

The latest update of the RedM client is causing issues with game streaming using software like Parsec or Moonlight. For some reason, mouse control is lost, and it gets "stuck" in the top left corner of the RedM client screen, back normal on close the RedM client by quit on F8.

Experience: Just opening the client already causes this issue, and it's not possible to do anything else. I conducted tests on other computers and had the same symptom.

When the issue started? 04/06/2024

Expected result

Play RedM normally without the mouse sutck when the client is opened

Reproduction steps

1- Install parsec 2- Open RedM, mouse stuck at.

Importancy

Unknown

Area(s)

RedM

Specific version(s)

RedM 8444

Additional information

No response

ModifiedRhodes commented 3 months ago

This seems to be an issue with non-physical mouse input. I just started having this exact same issue with software that I use to translate my gamepad's gyro/joystick movement to mouse movement. Also, I'm experiencing this in FiveM as I don't have RedM.

Comet1903 commented 3 months ago

A quick and dirty workaround for me was to play in windowed mode (not borderless window). If you switch from fullscreen to windowed mode, it may get playable. If that doesn't help, retry.

K0rz4k commented 3 months ago

A quick and dirty workaround for me was to play in windowed mode (not borderless window). If you switch from fullscreen to windowed mode, it may get playable. If that doesn't help, retry.

I've already done this test, but it doesn't work in RedM. I heard that it works in FiveM. In fact, I have no idea what was changed in the RedM client to have caused such a problem.

instigate77 commented 3 months ago

I have the same issue with Parsec and FiveM , it was working last week and suddenly one day it stopped working. Seems like the mouse is not captured as soon as FiveM opens and it bouces between Desktop and fiveM which glitches it out. Yu can't even move the FiveM window on the desktop. If you stop FiveM mouse is fine. Mouse glitches between the FiveM window and the top left of the Desktop screen when FiveM is running, doesn't matter the mouse mode in FiveM but it had been set to Raw Input other modes don't change anything

K0rz4k commented 3 months ago

I don't know if they solved it by finding the root cause, or if it was resolved "accidentally" while adjusting something else, as I haven't seen any developer speak about it, but I noticed that today there were some merges in the canary release, so I decided to test it.

IT IS RESOLVED IN CANARY 😍, waiting for the fix to go to production!! \o/

instigate77 commented 3 months ago

I don't know if they solved it by finding the root cause, or if it was resolved "accidentally" while adjusting something else, as I haven't seen any developer speak about it, but I noticed that today there were some merges in the canary release, so I decided to test it.

IT IS RESOLVED IN CANARY 😍, waiting for the fix to go to production!! \o/

What Version did you test? it's not working for me on 8509

K0rz4k commented 3 months ago

What Version did you test? it's not working for me on 8509

My game is RedM not FiveM, for RedM its fixed on canary version..

instigate77 commented 3 months ago

What Version did you test? it's not working for me on 8509

My game is RedM not FiveM, for RedM its fixed on canary version..

Ah ok, not on FiveM yet then .... oh well, there was a moment of hope :)

Comet1903 commented 3 months ago

I've built multiple versions (before and after 8444) of the FiveM client myself and never came to the mouse issue we all have... Maybe I'm building it wrong or it only occurs if you have a official build...

neptunium-cfx commented 3 months ago

Hi, this issue is known to us and being looked into. @Comet1903 indeed it only happens on the official builds.

instigate77 commented 3 months ago

Hi, this issue is known to us and being looked into. @Comet1903 indeed it only happens on the official builds.

Hi, this issue is known to us and being looked into. @Comet1903 indeed it only happens on the official builds.

Could you add the FiveM Tag to this also? any ETA?

br3ndino commented 3 months ago

I would also love an ETA on this, as this issue has been quite annoying over the past few weeks.

K0rz4k commented 3 months ago

I would also love an ETA on this, as this issue has been quite annoying over the past few weeks.

Although I said that it no longer happens in the canary release of RedM, the problem has not yet been resolved in the official release.

br3ndino commented 3 months ago

Gotcha. I need to try out the canary of FiveM again and see if it's fixed

br3ndino commented 3 months ago

This issue is not resolved in FiveM canary. Mouse still glitches around top left corner. I have tried all types of Mouse input (raw, direct, windows) and no luck there. However, I just found a workaround for the time being. Fullscreen exlusive and raw mouse fixes it.

instigate77 commented 3 months ago

This issue is not resolved in FiveM canary. Mouse still glitches around top left corner. I have tried all types of Mouse input (raw, direct, windows) and no luck there. However, I just found a workaround for the time being. Fullscreen exlusive and raw mouse fixes it.

I tried that ^^ and it still is not working for me, I hope they fix it soon.

instigate77 commented 3 months ago

By the way, I do not have any issue using Moonlight with FiveM. Only Parsec.

there are a tone of people posting on Parsec Discord about the mouse issue on FiveM and they are telling people to take it up with FiveM

Could we get an update on a possible fix?

K0rz4k commented 3 months ago

By the way, I do not have any issue using Moonlight with FiveM. Only Parsec.

there are a tone of people posting on Parsec Discord about the mouse issue on FiveM and they are telling people to take it up with FiveM

Could we get an update on a possible fix?

IIf you use sunshine along with moonlight, you'll have the same problem.

Personally, I would also like to know when it will be fixed in the official release, since using the canary where it works becomes very unstable and full of crashes.

instigate77 commented 3 months ago

By the way, I do not have any issue using Moonlight with FiveM. Only Parsec. there are a tone of people posting on Parsec Discord about the mouse issue on FiveM and they are telling people to take it up with FiveM Could we get an update on a possible fix?

IIf you use sunshine along with moonlight, you'll have the same problem.

Personally, I would also like to know when it will be fixed in the official release, since using the canary where it works becomes very unstable and full of crashes.

Yes I do have the same issue with sunshine and moonlight.

We need a fix from FiveM

I haven't been able to get it working on any FiveM build, are you referring to Canary of Redem?

instigate77 commented 3 months ago

Can we get this tagged with FiveM as well as Redem? as it's broken on FiveM also -- alot of talk on Fivem Discord but no updates on fix.

K0rz4k commented 3 months ago

Can we get this tagged with FiveM as well as Redem? as it's broken on FiveM also -- alot of talk on Fivem Discord but no updates on fix.

Yes, the issue does not occur in the canary release of RedM, only in the beta and official releases.

I follow the build pipeline of this repository daily. Yesterday, there was an attempt to build from canary to beta, but the build initially failed. I was hoping to test it and resolve the issue in the beta as well.

In the meantime, I am waiting for an update on the fix.

neptunium-cfx commented 2 months ago

Hi, can someone give me a quick summary/answers to:

Asking as some of the comments here confused me.

instigate77 commented 2 months ago

Hi, can someone give me a quick summary/answers to:

  • What software is broken? (for now i assume it's only Parsec/'Moonlight')
  • What exactly is broken? (Input issues?)
  • Does it affect both FiveM and RedM?
  • Is it still happening on canary

Asking as some of the comments here confused me.

Hi, Parsec for me Input issues, it was working and then it now looks like it puts continuous input from the mouse as soon as you start FiveM, in FiveM you cannot move the mouse as it jumps to the top left, and the windows desktop the mouse also moves to the to left any time the mouse is moved.

I experience it on FiveM, yes as of now it is happening in canary on FiveM.

I can attach a quick video to show the issue.

neptunium-cfx commented 2 months ago

Would be nice if you can attach a video, yeah.

neptunium-cfx commented 2 months ago

Would you be also able to check if the same thing happens while in fullscreen? Or is fullscreen not supported on such software? (Apologies for my lack of knowledge here - never used Parsec)

instigate77 commented 2 months ago

Would you be also able to check if the same thing happens while in fullscreen? Or is fullscreen not supported on such software? (Apologies for my lack of knowledge here - never used Parsec)

I have tried all of the modes including Full Screen / the app supports it, but the issue is the same as other windowed modes.

instigate77 commented 2 months ago

So in this video, I start in Parsed and show that I can move my mouse in the OS and move windows and the mouse works fine. Then I show when I open FiveM, it starts to cause mouse issues, constant input, then if I try to move the window you can see how it glitches and I can't really use the mouse either in FiveM or in the OS, then I close FiveM and you can see I can move the discord window and it works fine again, so it is as soon as I open FiveM.

I will post another video of how it looks once loaded to a fiveM server as well, and I have tried all of the screen moses and mouse inout modes https://github.com/citizenfx/fivem/assets/76915609/67fc717c-5169-4c36-b061-bee94f1bb252

K0rz4k commented 2 months ago

Hi, can someone give me a quick summary/answers to:

  • What software is broken? (for now i assume it's only Parsec/'Moonlight')
  • What exactly is broken? (Input issues?)
  • Does it affect both FiveM and RedM?
  • Is it still happening on canary

Asking as some of the comments here confused me.

What software is broken? (for now I assume it's only Parsec/'Moonlight') Parsec/Moonlight What exactly is broken? (Input issues?) The mouse gets stuck in the left corner of the screen right after opening the RedM client Does it affect both FiveM and RedM? Originally, I opened this issue for RedM, but then several other players reported the same problem with FiveM, so this point might be confusing when reading this issue because of other people reporting the same problem in FiveM. Is it still happening on canary? The problem does not occur on canary. Prior to the RedM update on 04/06/2024, it did not occur in any of the releases.

The remote gameplay software has not received any recent updates. We contacted their developers, who reported it to be an issue with citizenfx.

Videos:

https://github.com/citizenfx/fivem/assets/37641693/db13e516-be25-4ffe-9870-02dfccb82fd1

instigate77 commented 2 months ago

Here is the video of what happens in FiveM when in a server, here I am just moving the mouse around. It was working fine in previous versions, an update sometime in April broke it in FiveM

https://github.com/citizenfx/fivem/assets/76915609/97b804f7-e867-437f-87d5-2ac375be9da5

neptunium-cfx commented 2 months ago

Thank you - i will work on a potential fix and get back to you once it's deployed on canary.

ModifiedRhodes commented 2 months ago

The same issue occurs for me with JoyShockMapper (mouse bouncing around at the top-left corner of the screen). I use FiveM (don't have RedM to test). I haven't tried canary.

Among other things, I use JoyShockMapper to send mouse movement with my right joystick instead of the appropriate axes.

neptunium-cfx commented 2 months ago

Hi, we just deployed a new canary update for FiveM and RedM that should fix issues with Parsec and Moonlight - please let me know if the issue still persists.

instigate77 commented 2 months ago

Hi, we just deployed a new canary update for FiveM and RedM that should fix issues with Parsec and Moonlight - please let me know if the issue still persists.

Hey, the issue is fixed for me on FiveM !! Thank You!

K0rz4k commented 2 months ago

@neptunium-cfx Do we have any expectations for this fix to be included in the release version?

ModifiedRhodes commented 2 months ago

I understand the issue's closed, but I just tried the canary build and am still having the same issue with FiveM and using JoyShockMapper to map mouse movement to my gamepad's gyro. This used to work before whatever change was made around 1.5-2 months ago.