Facepunch / sbox-issues

173 stars 11 forks source link

Game View in Dev Tools doesn't capture inputs when PlayerController component is not working #5637

Closed Kaydax closed 2 months ago

Kaydax commented 3 months ago

Describe the bug

When in dev tools, clicking play and trying to do any inputs (mouse / keyboard) just don't work when the PlayerController is broken in some way. This is currently happening on testbed as an example.

To Reproduce

  1. Open Dev Tools
  2. Open a Project (Testbed)
  3. Open a Scene
  4. Click play, see inputs don't work

Expected behavior

Inputs should work. Even if the PlayerController is broken, it should capture inputs at least

Media/Files

https://github.com/Facepunch/sbox-issues/assets/11893096/aff4faa0-9bc6-4747-beab-6633741a18c6

Log.log

Additional context

I'm running Windows 10 LTSC, specs: Ryzen 7 5800x NVIDIA GTX 1660 Ti 16GB DDR4 Ram

handsomematt commented 2 months ago

Fix the error

Kaydax commented 2 months ago

Well the issue still stands that its inconsistent with input capture. Focus should always be taken when Play is clicked, PlayerController or not

Nolankicks commented 2 months ago

Have you ever checked to see if there was a null check in the player if the references were not set?