JonathanDotExe / pokemine

A Spigot Plugin that brings Pokémon into the game.
GNU General Public License v3.0
2 stars 2 forks source link

Building error Kiwiscript #3

Open TARNATlON opened 2 years ago

TARNATlON commented 2 years ago

Heya! Me again. I was wondering how I'd go about fixing the error related to kiwiscript? Ive tried multiple older versions of both this & your utility plugin but nothing quite fixed it :(

JonathanDotExe commented 2 years ago

Hi! Thanks for your interest in my plugin (again). Someone else reported this issue as well. Kiwiscript was once a dependency of pokemine but I removed the dependency before publishing it. Seems I accidentally left an import somewhere. To make the plugin build in general I'd need to properly update it to the newest Spigot version and make it compatible with my util again. Can you send me the exact error message you get when building? That would speed my process up for sure.

TARNATlON commented 2 years ago

Hiya! I managed to get it to build! I apparently forked both Jojokobi-util and this repo in 2020, Kiwiscript was only mentioned in the Legacy folder at that time, unsure if current pokemine has that aswell. I'll check really quick and reply with a follow up!

TARNATlON commented 2 years ago

Back! Alright yep the latest version also works when you remove the "Legacy" folder!

There is an error when Pokemine tries to initialize all XML files though:

[20:26:54] [Server thread/INFO]: Files XML: /ressources/xml/trainer/files.xml [20:26:54] [Server thread/ERROR]: Error occurred while enabling Pokemine v0.1 (Is it up to date?) java.lang.IllegalArgumentException: InputStream cannot be null at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:118) ~[?:?] at at.jojokobi.mcutil.FileProvider.fromFolder(FileProvider.java:62) ~[?:?] at at.jojokobi.pokemine.PokeminePlugin.onEnable(PokeminePlugin.java:352) ~[?:?] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263) ~[spigot.jar:3170-Spigot-a483d2c-ec116f6] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:342) ~[spigot.jar:3170-Spigot-a483d2c-ec116f6] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:480) ~[spigot.jar:3170-Spigot-a483d2c-ec116f6] at org.bukkit.craftbukkit.v1_17_R1.CraftServer.enablePlugin(CraftServer.java:495) ~[spigot.jar:3170-Spigot-a483d2c-ec116f6] at org.bukkit.craftbukkit.v1_17_R1.CraftServer.enablePlugins(CraftServer.java:409) ~[spigot.jar:3170-Spigot-a483d2c-ec116f6] at org.bukkit.craftbukkit.v1_17_R1.CraftServer.reload(CraftServer.java:876) ~[spigot.jar:3170-Spigot-a483d2c-ec116f6] at org.bukkit.Bukkit.reload(Bukkit.java:675) ~[spigot.jar:3170-Spigot-a483d2c-ec116f6] at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:27) ~[spigot.jar:3170-Spigot-a483d2c-ec116f6] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:149) ~[spigot.jar:3170-Spigot-a483d2c-ec116f6] at org.bukkit.craftbukkit.v1_17_R1.CraftServer.dispatchCommand(CraftServer.java:760) ~[spigot.jar:3170-Spigot-a483d2c-ec116f6] at org.bukkit.craftbukkit.v1_17_R1.CraftServer.dispatchServerCommand(CraftServer.java:745) ~[spigot.jar:3170-Spigot-a483d2c-ec116f6] at net.minecraft.server.dedicated.DedicatedServer.handleCommandQueue(DedicatedServer.java:473) ~[spigot.jar:3170-Spigot-a483d2c-ec116f6] at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:437) ~[spigot.jar:3170-Spigot-a483d2c-ec116f6] at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1200) ~[spigot.jar:3170-Spigot-a483d2c-ec116f6] at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1027) ~[spigot.jar:3170-Spigot-a483d2c-ec116f6] at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:307) ~[spigot.jar:3170-Spigot-a483d2c-ec116f6] at java.lang.Thread.run(Thread.java:831) [?:?]

TARNATlON commented 2 years ago

Hey I've fixed the error! To resolve the above error, go into intellij, go to File -> Project Structure -> Artifacts. Then in the artifact add a new "Directory Content", set it to the 'res' folder inside of the pokemon folder. Rebuild and boom! image

JonathanDotExe commented 2 years ago

Oh the legacy folder was the cause :). I always wondered because it compiled on my machine where I excluded it from the build. Great you found the error. Have fun playing and if you have any further questions considering the gameplay mechanics feel free to join my discord server linked on my profile.

I might still update it to 1.19 along with my other plugins though.

TheGabski commented 10 months ago

Where i can download this?

JonathanDotExe commented 9 months ago

I haven't published releases. Because I'm not actively developing it at the moment. You can join the discord and we can talk and I can send you a jar if you want @TheGabski