Everything posted by Jakeob
-
Error when attempting to run mod
ugh... now I'm just facepalming, I probably should've realized it was a build error when runClient worked but the jar didn't. Thanks a ton for all the help guys, sorry for my stupidity.
-
Error when attempting to run mod
-
Error when attempting to run mod
Yup. Just recompiled and ran just to be sure, attached below: ClientProxy.java:20 is ClientCommandHandler.instance.registerCommand(new TestSidebarScoresCommand());
-
Error when attempting to run mod
Thanks for the code style tips, I was a little confused on the point of the common proxy over just the main class when looking at example code. I fixed the wrong serverSide path in the @SidedProxy (How did I miss that...), but it's still giving the same error. Thanks for all the help.
-
Error when attempting to run mod
Thanks for the response. I went and created ClientProxy, ServerProxy, and CommonProxy classes, and put my command registration in the ClientProxy, but I'm still getting the same error The main class: The ClientProxy class: The CommonProxy class: Anything I'm doing wrong? Thanks again for the help so far.
-
Error when attempting to run mod
Thanks for the response. I've read that tutorial before, do you have any idea as to where I'm referencing something server-sided? Thanks again for the help. Below is the full stacktrace from the log:
-
Error when attempting to run mod
When I attempt to run the mod from my client, the following error occurs: Interestingly enough, I have no errors when attempting to run it via the runClient script. This is the only line in which I call the registerCommand method: ClientCommandHandler.instance.registerCommand(new TestSidebarScoresCommand()); I don't understand why this would happen, as the imported net.minecraftforge.client.ClientCommandHandler extends net.minecraft.command.CommandHandler, which contains this method. Below is the command class, which extends CommandBase, which implements ICommand, meaning that it is the correct type for the parameter. Sorry if this is a dumb mistake, I'm new to Forge and Gradle. One last thing, the version of forge I'm using to write this in and the version that the client is in are the exact same, so it's not a version mismatch.
IPS spam blocked by CleanTalk.