GeyserMC / Floodgate

Hybrid mode plugin to allow for connections from Geyser to join online mode servers.
https://geysermc.org
MIT License
563 stars 168 forks source link

error on startup #452

Closed rogerxavier93 closed 11 months ago

rogerxavier93 commented 11 months ago

[12:17:44] [Server thread/INFO]: [floodgate] Loading server plugin floodgate v2.2.2-SNAPSHOT (b139-66cf8a3) [12:17:45] [Server thread/WARN]: [floodgate] Missing locale file: en_US [12:17:45] [Server thread/ERROR]: [floodgate] Failed to load the fallback language. This will likely cause errors! [12:17:45] [Server thread/WARN]: [floodgate] en_US is not a supported Floodgate language. [12:17:45] [Server thread/ERROR]: [floodgate] Error initializing plugin 'floodgate-spigot.jar' in folder 'plugins' (Is it up to date?) java.lang.NullPointerException: Cannot invoke "java.util.Properties.getProperty(String)" because "properties" is null at org.geysermc.floodgate.util.LanguageManager.getString(LanguageManager.java:158) ~[floodgate-spigot.jar:?] at org.geysermc.floodgate.util.LanguageManager.getLogString(LanguageManager.java:136) ~[floodgate-spigot.jar:?] at org.geysermc.floodgate.logger.JavaUtilFloodgateLogger.translatedInfo(JavaUtilFloodgateLogger.java:76) ~[floodgate-spigot.jar:?] at org.geysermc.floodgate.SpigotPlugin.onLoad(SpigotPlugin.java:62) ~[floodgate-spigot.jar:?] at io.papermc.paper.plugin.storage.ServerPluginProviderStorage.processProvided(ServerPluginProviderStorage.java:59) ~[paper-1.20.2.jar:git-Paper-201] at io.papermc.paper.plugin.storage.ServerPluginProviderStorage.processProvided(ServerPluginProviderStorage.java:18) ~[paper-1.20.2.jar:git-Paper-201] at io.papermc.paper.plugin.storage.SimpleProviderStorage.enter(SimpleProviderStorage.java:40) ~[paper-1.20.2.jar:git-Paper-201] at io.papermc.paper.plugin.entrypoint.LaunchEntryPointHandler.enter(LaunchEntryPointHandler.java:36) ~[paper-1.20.2.jar:git-Paper-201] at org.bukkit.craftbukkit.v1_20_R2.CraftServer.loadPlugins(CraftServer.java:512) ~[paper-1.20.2.jar:git-Paper-201] at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:273) ~[paper-1.20.2.jar:git-Paper-201] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1086) ~[paper-1.20.2.jar:git-Paper-201] at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:315) ~[paper-1.20.2.jar:git-Paper-201] at java.lang.Thread.run(Thread.java:833) ~[?:?]

rogerxavier93 commented 11 months ago

Using https://github.com/GeyserMC/Floodgate/pull/449

rogerxavier93 commented 11 months ago

tried erasing floodgate folder to see if it fixes it but still same error using paper 1.20.2

Kas-tle commented 11 months ago

Are you using the build artifacts from the PR or did you compile this by yourself?

rogerxavier93 commented 11 months ago

@Kas-tle im using the build artifacts from the pr

rogerxavier93 commented 11 months ago

the spigot one

Kas-tle commented 11 months ago

Then I'm not sure what's wrong. I tested with the experimental paper builds and had no issues. This error looks as though the language files are missing, which does not seem to be the case in the PR builds.

Kas-tle commented 11 months ago

Actually I think I see the issue. Could you try with the artifact from the repo build action (so my 1.20.2 branch) instead of the PR action?

rogerxavier93 commented 11 months ago

the errors says something about the language and on the config.yml it is like this

The default locale for Floodgate. By default, Floodgate uses the system locale

default-locale: en_US

is it correct? because thats all the mistake about , about not finding the locale file perhaps its called differently?

Kas-tle commented 11 months ago

No. The issue was that the PR build action was not setup to clone the module that contains the language files before building. The latest build should fix this. Thanks for bringing this to my attention.