MCXboxBroadcast / Broadcaster

A simple Geyser extension that broadcasts the server over Xbox Live.
GNU General Public License v3.0
220 stars 45 forks source link

MCXboxBroadcast does not work. #108

Closed Holy725 closed 1 month ago

Holy725 commented 1 month ago

MCXboxBroadcast does not work on PaperMC-1.21-109 server with GeyserMC 2.4.0-SNAPSHOT-621 and floodgate v2.2.3-SNAPSHOT (b109-49bd564)

komatti365 commented 1 month ago

I am probably experiencing the same problem. I have downgraded to Build 37, but the authentication token file is not generated and I cannot log in!

Operating system is Ubuntu 24.04 LTS

rtm516 commented 1 month ago

Can you provide logs and more detail about what isn't working?

komatti365 commented 1 month ago

Extension version is used with Geyser's velocity The problem we are experiencing is that when we authenticate with our account, the login does not take place and no token file is generated in the folder. The server logs are as follows PS More logs have been added, so I'll add a note.


[06:56:09] [main/INFO] [com.velocitypowered.proxy.VelocityServer]: Booting up Velocity 3.3.0-SNAPSHOT (git-09f687e5-b413)...
[06:56:09] [main/INFO] [com.velocitypowered.proxy.VelocityServer]: Loading localizations...
[06:56:09] [main/INFO] [com.velocitypowered.proxy.network.ConnectionManager]: Connections will use epoll channels, libdeflate (Linux x86_64) compression, OpenSSL 3.0.x (Linux x86_64) ciphers
[06:56:09] [main/INFO] [com.velocitypowered.proxy.VelocityServer]: Loading plugins...
[06:56:09] [main/WARN] [floodgate]: en_ is not a supported Floodgate language.
[06:56:10] [main/INFO] [floodgate]: Took 263ms to boot Floodgate
[06:56:10] [main/INFO] [com.velocitypowered.proxy.plugin.VelocityPluginManager]: Loaded plugin floodgate 2.2.3-SNAPSHOT (b109-49bd564) by GeyserMC
[06:56:10] [main/INFO] [com.velocitypowered.proxy.plugin.VelocityPluginManager]: Loaded plugin geyser 2.4.0-b621 (git-master-a85b312) by GeyserMC
[06:56:10] [main/INFO] [com.velocitypowered.proxy.plugin.VelocityPluginManager]: Loaded plugin luckperms 5.4.137 by Luck
[06:56:10] [main/INFO] [com.velocitypowered.proxy.plugin.VelocityPluginManager]: Loaded plugin snap 1.2-SNAPSHOT (build 36) by Phoenix616
[06:56:10] [main/INFO] [com.velocitypowered.proxy.plugin.VelocityPluginManager]: Loaded plugin viaversion 5.0.1 by _MylesC, creeper123123321, Gerrygames, kennytv, Matsv, EnZaXD, RK_01
[06:56:10] [main/INFO] [com.velocitypowered.proxy.VelocityServer]: Loaded 5 plugins
[06:56:10] [Velocity Async Event Executor - #0/INFO] [com.velocitypowered.proxy.console.VelocityConsole]:         __    
[06:56:10] [Velocity Async Event Executor - #0/INFO] [com.velocitypowered.proxy.console.VelocityConsole]:   |    |__)   LuckPerms v5.4.137
[06:56:10] [Velocity Async Event Executor - #0/INFO] [com.velocitypowered.proxy.console.VelocityConsole]:   |___ |      Running on Velocity - Velocity
[06:56:10] [Velocity Async Event Executor - #0/INFO] [com.velocitypowered.proxy.console.VelocityConsole]: 
[06:56:10] [Velocity Async Event Executor - #0/INFO] [luckperms]: Loading configuration...
[06:56:11] [Velocity Async Event Executor - #0/INFO] [luckperms]: Loading storage provider... [H2]
[06:56:11] [Velocity Async Event Executor - #0/INFO] [luckperms]: Loading internal permission managers...
[06:56:11] [Velocity Async Event Executor - #0/INFO] [luckperms]: Performing initial data load...
[06:56:11] [Velocity Async Event Executor - #0/INFO] [luckperms]: Successfully enabled. (took 1227ms)
[06:56:11] [Velocity Async Event Executor - #0/WARN] [com.velocitypowered.proxy.network.ConnectionManager]: The server channel initializer has been replaced by java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
[06:56:11] [Velocity Async Event Executor - #0/WARN] [com.velocitypowered.proxy.network.ConnectionManager]: The backend channel initializer has been replaced by java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
[06:56:11] [Velocity Async Event Executor - #0/WARN] [geyser]: Missing locale: en_
[06:56:13] [Velocity Async Event Executor - #0/INFO] [geyser]: Loading extensions...
[06:56:13] [Velocity Async Event Executor - #0/INFO] [geyser]: Enabled extension MCXboxBroadcast
[06:56:13] [Velocity Async Event Executor - #0/INFO] [geyser]: Loaded 1 extension(s)
[06:56:13] [Velocity Async Event Executor - #0/INFO] [snap]: Loaded snap.conf
[06:56:13] [Velocity Async Event Executor - #0/INFO] [Snap]: Loaded plugin BungeeHub version 1.1 by Inkzzz
[06:56:13] [Velocity Async Event Executor - #0/INFO] [Snap]: Enabled plugin BungeeHub version 1.1 by Inkzzz
[06:56:13] [Velocity Async Event Executor - #0/INFO] [snap]: If you experience some plugin-event-listeners to not work properly then set register-all-listeners = true in the snap.conf!
[06:56:13] [Velocity Async Event Executor - #0/INFO] [snap]: Loaded 1 plugins!
[06:56:14] [Via-Mappingloader-0/INFO] [viaversion]: Loading block connection mappings ...
[06:56:14] [Velocity Async Event Executor - #0/INFO] [viaversion]: Replacing channel initializers; you can safely ignore the following two warnings.
[06:56:14] [Velocity Async Event Executor - #0/WARN] [com.velocitypowered.proxy.network.ConnectionManager]: The server channel initializer has been replaced by java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
[06:56:14] [Velocity Async Event Executor - #0/WARN] [com.velocitypowered.proxy.network.ConnectionManager]: The backend channel initializer has been replaced by java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
[06:56:14] [Velocity Async Event Executor - #0/INFO] [viaversion]: ViaVersion detected lowest supported version by the proxy: 1.7.2-1.7.5 (4)
[06:56:14] [Velocity Async Event Executor - #0/INFO] [viaversion]: Highest supported version by the proxy: 1.21 (767)
[06:56:14] [Netty epoll Boss #0/INFO] [com.velocitypowered.proxy.network.ConnectionManager]: Listening on /[0:0:0:0:0:0:0:0%0]:25565
[06:56:14] [main/INFO] [com.velocitypowered.proxy.Velocity]: Done (6s)!
[06:56:15] [ViaVersion - Task Executor #0/INFO] [viaversion]: Finished mapping loading, shutting down loader executor!
[06:56:17] [Velocity Async Event Executor - #2/INFO] [geyser]: ******************************************
[06:56:17] [Velocity Async Event Executor - #2/INFO] [geyser]: 
[06:56:17] [Velocity Async Event Executor - #2/INFO] [geyser]: Loading Geyser version 2.4.0-b621 (git-master-a85b312)
[06:56:17] [Velocity Async Event Executor - #2/INFO] [geyser]: 
[06:56:17] [Velocity Async Event Executor - #2/INFO] [geyser]: ******************************************
[06:56:17] [Velocity Async Event Executor - #2/INFO] [geyser]: Started Geyser on 0.0.0.0:19132
[06:56:17] [Velocity Async Event Executor - #2/INFO] [geyser]: [mcxboxbroadcast] Starting MCXboxBroadcast Extension build 37 (git-master-d802714)
[06:56:18] [MCXboxBroadcast Thread-1/INFO] [geyser]: [mcxboxbroadcast] [Primary Session] Starting SessionManager...
[06:56:18] [Velocity Async Event Executor - #2/INFO] [geyser]: Done (0.748s)! Run /geyser help for help!
[06:56:18] [MCXboxBroadcast Thread-1/INFO] [geyser]: [mcxboxbroadcast] [Auth] Getting device code for MSA login...
[06:56:18] [MCXboxBroadcast Thread-1/INFO] [geyser]: [mcxboxbroadcast] [Auth] Got MSA device code, expires: 2024-07-25T07:11:18.650Z[Etc/UTC]
[06:56:18] [MCXboxBroadcast Thread-1/INFO] [geyser]: [mcxboxbroadcast] [Primary Session] To sign in, use a web browser to open the page https://www.microsoft.com/link and enter the code WRJ4ZRNJ to authenticate.
[06:56:18] [MCXboxBroadcast Thread-1/INFO] [geyser]: [mcxboxbroadcast] [Auth] Waiting for MSA login via device code...
[06:56:45] [MCXboxBroadcast Thread-1/INFO] [geyser]: [mcxboxbroadcast] [Auth] Got MSA Token, expires: 2024-07-26T06:56:45.396Z[Etc/UTC]
[06:56:45] [MCXboxBroadcast Thread-1/INFO] [geyser]: [mcxboxbroadcast] [Auth] Authenticating device with Xbox Live...
[06:56:46] [MCXboxBroadcast Thread-1/INFO] [geyser]: [mcxboxbroadcast] [Auth] Got XBL Device Token, expires: 2024-08-08T06:56:46.068Z[Etc/UTC]
[06:56:46] [MCXboxBroadcast Thread-1/INFO] [geyser]: [mcxboxbroadcast] [Auth] Authenticating with Xbox Live using SISU...
[06:56:46] [MCXboxBroadcast Thread-1/INFO] [geyser]: [mcxboxbroadcast] [Auth] Got XBL User+Title+XSTS Token, expires: 2024-07-25T22:56:46.688Z[Etc/UTC]
[10:33:56] [MCXboxBroadcast Thread-1/ERROR] [geyser]: [mcxboxbroadcast] [Primary Session] Failed to get/refresh auth token
java.util.concurrent.TimeoutException: Failed to get MSA Code. Login timed out
    at net.raphimc.minecraftauth.step.msa.StepMsaDeviceCodeMsaCode.execute(StepMsaDeviceCodeMsaCode.java:81) ~[?:?]
    at net.raphimc.minecraftauth.step.msa.StepMsaDeviceCodeMsaCode.execute(StepMsaDeviceCodeMsaCode.java:37) ~[?:?]
    at net.raphimc.minecraftauth.step.AbstractStep.getFromInput(AbstractStep.java:77) ~[?:?]
    at net.raphimc.minecraftauth.step.AbstractStep.getFromInput(AbstractStep.java:77) ~[?:?]
    at net.raphimc.minecraftauth.step.msa.StepMsaToken.getFromInput(StepMsaToken.java:68) ~[?:?]
    at net.raphimc.minecraftauth.step.msa.StepMsaToken.getFromInput(StepMsaToken.java:36) ~[?:?]
    at net.raphimc.minecraftauth.step.BiMergeStep.getFromInput(BiMergeStep.java:53) ~[?:?]
    at net.raphimc.minecraftauth.step.BiMergeStep.getFromInput(BiMergeStep.java:23) ~[?:?]
    at net.raphimc.minecraftauth.step.AbstractStep.getFromInput(AbstractStep.java:77) ~[?:?]
    at net.raphimc.minecraftauth.step.AbstractStep.getFromInput(AbstractStep.java:73) ~[?:?]
    at com.rtm516.mcxboxbroadcast.core.AuthManager.initialise(AuthManager.java:74) ~[?:?]
    at com.rtm516.mcxboxbroadcast.core.AuthManager.getXboxToken(AuthManager.java:99) ~[?:?]
    at com.rtm516.mcxboxbroadcast.core.SessionManagerCore.getXboxToken(SessionManagerCore.java:109) ~[?:?]
    at com.rtm516.mcxboxbroadcast.core.SessionManagerCore.init(SessionManagerCore.java:126) ~[?:?]
    at com.rtm516.mcxboxbroadcast.core.SessionManager.init(SessionManager.java:84) ~[?:?]
    at com.rtm516.mcxboxbroadcast.bootstrap.geyser.MCXboxBroadcastExtension.createSession(MCXboxBroadcastExtension.java:196) ~[?:?]
    at com.rtm516.mcxboxbroadcast.bootstrap.geyser.MCXboxBroadcastExtension.lambda$onPostInitialize$4(MCXboxBroadcastExtension.java:173) ~[?:?]
    at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572) ~[?:?]
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317) ~[?:?]
    at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) ~[?:?]
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?]
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?]
    at java.base/java.lang.Thread.run(Thread.java:1583) [?:?]
```\
rtm516 commented 1 month ago

Looks to have been broken by https://github.com/GeyserMC/Geyser/commit/a85b312b40cb7f819d9cba896463ed3bfb38e4c5

Update to build 39 and it should be resolved