Controllable (Fabric)

Controllable (Fabric)

1M Downloads

XBox Controllers are not detected on second instance [Fabric]

MagiusCHE opened this issue ยท 7 comments

commented

Hi, i just used to play with my children with 2 monitor, 1 PC (Linux), 2 Minecraft instances.
Until now i've used Midnight Controls and all works correctly.

Unortunately due to strange bug (not fixed yet) with that mod i could see the virtual pointer so i just try this one couse it claims to support minecraft multiple instances on Forge version.
(see first features)
image

But... i'm using the Fabric one and the fact is that it just doesnt recognize controllers on the second instance.
image

Is this a limit of the Fabric version or is it a bug?

...and if it is a limit of Fabric one, there is a chance to be supported any time soon?

I can provide any other info if you need and thx in advance for all yours work.

immagine

commented

Tests:

  • 1.19.4 Fabric, same data dir, mods: only Controllable 0.19.2 + Framework: FAILED, controller is displayed only on the first instance.
  • 1.19.4 Fabric, with different data dirs: All mods + Controllable 0.19.2 + Framework: FAILED, controller is displayed only on the first instance.
  • 1.19.4 Forge, same data dir, mods: only Controllable 0.18.1 + Framework: MISSING, i didnt found any available version to run this test :-( (i'm using TLLauncher for Linux and it does not show any 1.19.4 Forge in witch i have to put 0.18.1 controllable)
    immagine
commented

PS: I could help by adding some log here and there in the code but i cannot figure how to compile the repo.
I just cloned it and ./gradlew build returns this error:

A problem occurred configuring project ':Fabric'.
> Could not resolve all dependencies for configuration ':Fabric:modImplementation'.
   > Could not resolve com.mrcrayfish:framework-fabric:1.19.4-0.6.4.
     Required by:
         project :Fabric
      > Could not resolve com.mrcrayfish:framework-fabric:1.19.4-0.6.4.
         > Could not get resource 'https://maven.pkg.github.com/MrCrayfish/Maven/com/mrcrayfish/framework-fabric/1.19.4-0.6.4/framework-fabric-1.19.4-0.6.4.pom'.
            > Could not GET 'https://maven.pkg.github.com/MrCrayfish/Maven/com/mrcrayfish/framework-fabric/1.19.4-0.6.4/framework-fabric-1.19.4-0.6.4.pom'. Received status code 401 from server: Unauthorized

I just want to compile a local fabric version of the mod with some log inside. It is possibile? can you help me to do that?

commented

It shouldn't be an issue, controllers aren't exclusive and it is not a feature in the library I use. If you launch the second instance (the one that isn't showing any controllers) by itself, does it show controllers? Can you also send the logs for the second instance, it's possible an error is being printed.

Quick test on my end:
image

commented

Can you also try using the 0.18.1 version of the mod? 0.19.X+ versions use a different library and may be the issue.

commented

Thx for the early reply!

Just to be clear: i cant launch the second instance "by itself" couse it is just a second launch of the same exact file/directory. So i just launch it one and another time (just the same jar :-) ) with different User Name.

So.. this is the log of the first instance when the controller is correctly detected:
Instance 1 (OK): latest.log
immagine

On instance 1 active i just start a second instance, here the log.
Instance 2 (not detected): latest.log
immagine

(it seems there are any errors :-( )

About the 0.18... i did nt find the version on course
immagine

Can you point me to the right place to download the Fabric version of 0.18 so i can test it (if you wish).

Thx again!

commented

I'm not sure if this will affect it but the second instance should have it's own game data folder instead of using the same. You'll know why when you start editing the settings, it will apply to both games, not separate. Also try running an isolated test, remove all mods except Controllable and Framework.

Just for testing use the Forge version of 0.18.1

If nothing different, I will send a custom jar that prints debug logs to see what going on under the hood.

commented

I'm not sure if this will affect it but the second instance should have it's own game data folder instead of using the same. You'll know why when you start editing the settings, it will apply to both games, not separate. Also try running an isolated test, remove all mods except Controllable and Framework.

Just for testing use the Forge version of 0.18.1

I'm not sure if this will affect it but the second instance should have it's own game data folder instead of using the same. You'll know why when you start editing the settings, it will apply to both games, not separate. Also try running an isolated test, remove all mods except Controllable and Framework.

Well i have to figure how to run it as you suggest but... just to be clear if use Midnight Controls all works correctly.

I'm working to theese test...i'm back soon anda again thx for your patience.