P0ke Posted August 9, 2016 Share Posted August 9, 2016 I currently have a weird problem with a command in my mod, which is meant to be entirely client-side. When I run my mod from my IDE (Eclipse, by pressing the "run" button) everything works fine, but when I compile the mod, drop it in my mods folder and run Minecraft normally, I get an the message "Unknown command" when I type /jhconfig. I'm at a real dead end here and I'm not sure how to fix this, so I was hoping to get some help. [spoiler=PreInit] @EventHandler public void preInit(FMLPreInitializationEvent event){ try { instance = this; ClientCommandHandler.instance.registerCommand(new JHConfigCommand()); // Initialize the logger this.LOGGER = LogManager.getLogger("JumpHelper"); new LoadHeroConfigThread(event.getModConfigurationDirectory()); ConfigHandler.init(event.getSuggestedConfigurationFile()); } catch(Exception e) { this.logWarn("An exception occured in preInit(). Stacktrace below."); e.printStackTrace(); } } ] [spoiler=Command Class] package com.p0ke.jumphelpermod.command; import java.io.File; import java.io.IOException; import com.p0ke.jumphelpermod.JumpHelperMod; import com.p0ke.jumphelpermod.util.ConfigHandler; import net.minecraft.client.Minecraft; import net.minecraft.command.CommandBase; import net.minecraft.command.CommandException; import net.minecraft.command.ICommandSender; import net.minecraft.util.ChatComponentText; import net.minecraft.util.EnumChatFormatting; public class JHConfigCommand extends CommandBase { @Override public boolean canCommandSenderUseCommand(ICommandSender sender) { return true; } @Override public String getCommandName() { return "jhconfig"; } @Override public String getCommandUsage(ICommandSender sender) { return "Reloads config"; } @Override public void processCommand(ICommandSender sender, String[] args) throws CommandException { if(args.length > 0 && args[0].equalsIgnoreCase("reload")){ ConfigHandler.syncConfig(); sender.addChatMessage(new ChatComponentText(EnumChatFormatting.GREEN + "[JH] Reloaded Config!")); } else if(args.length == 0){ try { Runtime.getRuntime().exec("explorer.exe " + new File("./config/")); } catch (IOException e) { e.printStackTrace(); } } } } Thanks in advance. Quote Link to comment Share on other sites More sharing options...
P0ke Posted August 10, 2016 Author Share Posted August 10, 2016 How exactly did you export your mod into a jar file? And post the log from inside the actual game. gradlew build [spoiler=log]2016-08-09 18:31:53,825 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream 2016-08-09 18:31:53,826 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream [18:31:53] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [18:31:53] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [18:31:53] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker [18:31:53] [main/INFO] [FML]: Forge Mod Loader version 11.15.1.1722 for Minecraft 1.8.9 loading [18:31:53] [main/INFO] [FML]: Java is Java HotSpot 64-Bit Server VM, version 1.8.0_25, running on Windows 10:amd64:10.0, installed at C:\Program Files (x86)\Minecraft\runtime\jre-x64\1.8.0_25 [18:31:53] [main/INFO] [FML]: Loading tweaker optifine.OptiFineForgeTweaker from OptiFine_1.8.9_HD_U_H6.jar [18:31:53] [main/INFO] [FML]: Loading tweaker eu.the5zig.mod.asm.ClassTweaker from The5zigMod-1.8.9_3.6.6.jar [18:31:54] [main/INFO] [FML]: Loading tweaker eu.the5zig.mod.asm.ClassTweaker from The5zigMod-1.8.9_3.6.7.jar [18:31:54] [main/INFO] [FML]: Loading tweaker eu.the5zig.mod.asm.ClassTweaker from The5zigMod-1.8.9_3.6.8.jar [18:31:54] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [18:31:54] [main/INFO] [LaunchWrapper]: Loading tweak class name optifine.OptiFineForgeTweaker [18:31:54] [main/INFO] [LaunchWrapper]: Loading tweak class name eu.the5zig.mod.asm.ClassTweaker [18:31:54] [main/WARN] [LaunchWrapper]: Tweak class name eu.the5zig.mod.asm.ClassTweaker has already been visited -- skipping [18:31:54] [main/WARN] [LaunchWrapper]: Tweak class name eu.the5zig.mod.asm.ClassTweaker has already been visited -- skipping [18:31:54] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [18:31:54] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [18:31:54] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [18:31:54] [main/INFO] [LaunchWrapper]: Calling tweak class optifine.OptiFineForgeTweaker [18:31:54] [main/INFO] [sTDOUT]: [optifine.OptiFineForgeTweaker:dbg:56]: OptiFineForgeTweaker: acceptOptions [18:31:54] [main/INFO] [sTDOUT]: [optifine.OptiFineForgeTweaker:dbg:56]: OptiFineForgeTweaker: injectIntoClassLoader [18:31:54] [main/INFO] [sTDOUT]: [optifine.OptiFineClassTransformer:dbg:266]: OptiFine ClassTransformer [18:31:54] [main/INFO] [sTDOUT]: [optifine.OptiFineClassTransformer:dbg:266]: OptiFine URL: file:/C:/Users/Alex/AppData/Roaming/.minecraft/mods/OptiFine_1.8.9_HD_U_H6.jar [18:31:54] [main/INFO] [sTDOUT]: [optifine.OptiFineClassTransformer:dbg:266]: OptiFine ZIP file: C:\Users\Alex\AppData\Roaming\.minecraft\mods\OptiFine_1.8.9_HD_U_H6.jar [18:31:54] [main/INFO] [LaunchWrapper]: Calling tweak class eu.the5zig.mod.asm.ClassTweaker [18:31:54] [main/INFO] [LaunchWrapper]: Minecraft Version: 1.8.9-forge1.8.9-11.15.1.1722 [18:31:54] [main/INFO] [LaunchWrapper]: Forge detected! [18:31:54] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [18:31:55] [main/INFO] [FML]: Found valid fingerprint for Minecraft. Certificate fingerprint cd99959656f753dc28d863b46769f7f8fbaefcfc [18:31:55] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [18:31:55] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [18:31:55] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [18:31:55] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker [18:31:55] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker [18:31:55] [main/INFO] [sTDOUT]: [optifine.OptiFineForgeTweaker:dbg:56]: OptiFineForgeTweaker: getLaunchArguments [18:31:55] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} 2016-08-09 18:31:55,685 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream 2016-08-09 18:31:55,705 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream 2016-08-09 18:31:55,713 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream [18:31:55] [main/INFO] [sTDOUT]: [net.minecraft.client.main.Main:main:57]: Completely ignored arguments: [--nativeLauncherVersion, 307] [18:31:55] [Client thread/INFO]: Setting user: BKLYNplex [OptiFine] (Reflector) Method not present: net.minecraftforge.client.ForgeHooksClient.loadEntityShader [OptiFine] (Reflector) Method not present: net.minecraftforge.client.ForgeHooksClient.getFOVModifier [OptiFine] (Reflector) Class not present: mods.betterfoliage.client.BetterFoliageClient [18:31:57] [Client thread/INFO]: LWJGL Version: 2.9.4 [OptiFine] [OptiFine] OptiFine_1.8.9_HD_U_H6 [OptiFine] Build: 20160607-144228 [OptiFine] OS: Windows 10 (amd64) version 10.0 [OptiFine] Java: 1.8.0_25, Oracle Corporation [OptiFine] VM: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation [OptiFine] LWJGL: 2.9.4 [OptiFine] OpenGL: GeForce GTX 1060 6GB/PCIe/SSE2, version 4.5.0 NVIDIA 368.81, NVIDIA Corporation [OptiFine] OpenGL Version: 4.0 [OptiFine] Maximum texture size: 16384x16384 [OptiFine] Checking for new version [shaders] ShadersMod version: 2.4.12 [shaders] OpenGL Version: 4.5.0 NVIDIA 368.81 [shaders] Vendor: NVIDIA Corporation [shaders] Renderer: GeForce GTX 1060 6GB/PCIe/SSE2 [shaders] Capabilities: 2.0 2.1 3.0 3.2 4.0 [shaders] GL_MAX_DRAW_BUFFERS: 8 [shaders] GL_MAX_COLOR_ATTACHMENTS_EXT: 8 [shaders] GL_MAX_TEXTURE_IMAGE_UNITS: 32 [shaders] Load ShadersMod configuration. [shaders] Loaded shaderpack: Sildurs Vibrant Shaders v1.153 Medium.zip [OptiFine] [shaders] Dimensions: -1 1 [OptiFine] [WARN] [shaders] Invalid option: Godrays_Quality, key: screen.SKY_SCREEN [OptiFine] Version found: H6 [18:31:58] [Client thread/WARN] [FML]: ============================================================= [18:31:58] [Client thread/WARN] [FML]: MOD HAS DIRECT REFERENCE System.exit() THIS IS NOT ALLOWED REROUTING TO FML! [18:31:58] [Client thread/WARN] [FML]: Offendor: com/sun/jna/Native.main([Ljava/lang/String;)V [18:31:58] [Client thread/WARN] [FML]: Use FMLCommonHandler.exitJava instead [18:31:58] [Client thread/WARN] [FML]: ============================================================= [18:31:58] [Client thread/INFO] [FML]: Forge Mod Loader has detected optifine OptiFine_1.8.9_HD_U_H6, enabling compatibility features [18:31:58] [Client thread/INFO] [sTDOUT]: [net.minecraftforge.fml.client.SplashProgress:start:246]: ---- Minecraft Crash Report ---- WARNING: coremods are present: Contact their authors BEFORE contacting forge // I'm sorry, Dave. Time: 8/9/16 6:31 PM Description: Loading screen debug info This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details: Minecraft Version: 1.8.9 Operating System: Windows 10 (amd64) version 10.0 CPU: 4x Intel® Core i5-6600K CPU @ 3.50GHz Java Version: 1.8.0_25, Oracle Corporation Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 140156608 bytes (133 MB) / 247885824 bytes (236 MB) up to 2134114304 bytes (2035 MB) JVM Flags: 6 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx2G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: Loaded coremods (and transformers): GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 368.81' Renderer: 'GeForce GTX 1060 6GB/PCIe/SSE2' [18:31:58] [Client thread/INFO] [FML]: MinecraftForge v11.15.1.1722 Initialized [18:31:58] [Client thread/INFO] [FML]: Replaced 204 ore recipies [18:31:58] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer [18:31:58] [Client thread/INFO] [FML]: Searching C:\Users\Alex\AppData\Roaming\.minecraft\mods for mods [18:31:59] [Client thread/WARN] [animations]: Mod animations is missing the required element 'version' and a version.properties file could not be found. Falling back to metadata version 3.2 [18:31:59] [Client thread/WARN] [enhancements]: Mod enhancements is missing the required element 'version' and a version.properties file could not be found. Falling back to metadata version 4.6 [18:31:59] [Client thread/INFO] [FML]: Forge Mod Loader has identified 6 mods to load [18:31:59] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, jumphelper, animations, enhancements] at CLIENT [18:31:59] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, jumphelper, animations, enhancements] at SERVER [18:31:59] [Client thread/INFO]: Reloading ResourceManager: The 5zig Mod, Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Smash Heroes Jump Helper, FMLFileResourcePack:Orange's 1.7 Animations, FMLFileResourcePack:Vanilla Enhancements, OrangePack 1.7 - P0ke Edit, §bAzurine UHC [18:31:59] [Client thread/INFO] [FML]: Processing ObjectHolder annotations [18:31:59] [Client thread/INFO] [FML]: Found 384 ObjectHolder annotations [18:31:59] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations [18:31:59] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations [18:31:59] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0 [18:31:59] [Forge Version Check/INFO] [ForgeVersionCheck]: [Forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json [18:32:00] [JumpHelperConfig/INFO] [JumpHelper]: Extracting file "heroes.json" from the jar! [18:32:00] [JumpHelperConfig/INFO] [JumpHelper]: Trying to read a game configuration file... [18:32:00] [JumpHelperConfig/INFO] [JumpHelper]: Hero parsed: Marauder [18:32:00] [JumpHelperConfig/INFO] [JumpHelper]: Hero parsed: Botmon [18:32:00] [JumpHelperConfig/INFO] [JumpHelper]: Hero parsed: General Cluck [18:32:00] [JumpHelperConfig/INFO] [JumpHelper]: Hero parsed: Cake Monster [18:32:00] [JumpHelperConfig/INFO] [JumpHelper]: Hero parsed: Bulk [18:32:00] [JumpHelperConfig/INFO] [JumpHelper]: Hero parsed: Tinman [18:32:00] [JumpHelperConfig/INFO] [JumpHelper]: Hero parsed: Cryomancer [18:32:00] [JumpHelperConfig/INFO] [JumpHelper]: Hero parsed: Spooderman [18:32:00] [JumpHelperConfig/INFO] [JumpHelper]: Hero parsed: Skullfire [18:32:00] [JumpHelperConfig/INFO] [JumpHelper]: Hero parsed: Karakot [18:32:00] [JumpHelperConfig/INFO] [JumpHelper]: Hero parsed: Pug [18:32:00] [JumpHelperConfig/INFO] [JumpHelper]: Hero parsed: Shoop [18:32:00] [JumpHelperConfig/INFO] [JumpHelper]: Hero parsed: Void Crawler [18:32:00] [JumpHelperConfig/INFO] [JumpHelper]: Finished reading the hero configuration. [18:32:00] [Client thread/INFO] [sTDOUT]: [com.orangemarshall.animations.proxy.ClientProxy:preInit:20]: Hooked Old Animations [18:32:00] [Forge Version Check/INFO] [ForgeVersionCheck]: [Forge] Found status: UP_TO_DATE Target: null [18:32:00] [Client thread/INFO] [sTDOUT]: [com.orangemarshall.enhancements.Enhancements:preInit:68]: Hooked Enhancements [18:32:00] [Client thread/INFO] [FML]: Applying holder lookups [18:32:00] [Client thread/INFO] [FML]: Holder lookups applied [18:32:00] [Client thread/INFO] [FML]: Injecting itemstacks [18:32:00] [Client thread/INFO] [FML]: Itemstack injection complete [OptiFine] *** Reloading textures *** [OptiFine] Resource packs: OrangePack 1.7 - P0ke Edit, §bAzurine UHC [18:32:00] [sound Library Loader/INFO]: Starting up SoundSystem... [18:32:00] [Thread-11/INFO]: Initializing LWJGL OpenAL [18:32:00] [Thread-11/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [18:32:00] [Thread-11/INFO]: OpenAL initialized. [18:32:01] [sound Library Loader/INFO]: Sound engine started [OptiFine] Sprite size: 32 [OptiFine] Mipmap levels: 5 [OptiFine] Multitexture: false [OptiFine] Multipass connected textures: false [OptiFine] Multipass connected textures: false [OptiFine] Multipass connected textures: false [18:32:06] [Client thread/INFO]: Created: 32x32 textures-atlas [shaders] allocateTextureMap 5 32 32 [18:32:07] [Client thread/INFO] [sTDOUT]: [com.orangemarshall.animations.OrangeAnimationsBase:onInit:54]: Using obfuscated names. (icri) [18:32:07] [Client thread/INFO] [FML]: Injecting itemstacks [18:32:07] [Client thread/INFO] [FML]: Itemstack injection complete [18:32:07] [Client thread/INFO] [sTDOUT]: [com.orangemarshall.enhancements.Enhancements:initObfuscation:90]: Using obfuscated names [18:32:07] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 6 mods [18:32:07] [Client thread/INFO]: Reloading ResourceManager: The 5zig Mod, Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Smash Heroes Jump Helper, FMLFileResourcePack:Orange's 1.7 Animations, FMLFileResourcePack:Vanilla Enhancements, OrangePack 1.7 - P0ke Edit, §bAzurine UHC [OptiFine] *** Reloading textures *** [OptiFine] Resource packs: OrangePack 1.7 - P0ke Edit, §bAzurine UHC [18:32:07] [Client thread/INFO]: SoundSystem shutting down... [18:32:07] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com [18:32:07] [sound Library Loader/INFO]: Starting up SoundSystem... [18:32:07] [Thread-13/INFO]: Initializing LWJGL OpenAL [18:32:07] [Thread-13/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [18:32:07] [Thread-13/INFO]: OpenAL initialized. [18:32:08] [sound Library Loader/INFO]: Sound engine started [OptiFine] Sprite size: 32 [OptiFine] Mipmap levels: 5 [OptiFine] Multitexture: false [OptiFine] Multipass connected textures: false [OptiFine] Multipass connected textures: false [OptiFine] Multipass connected textures: false [OptiFine] Custom loader: TextureAtlasSprite{name='minecraft:white', frameCount=1, rotated=false, x=0, y=0, height=16, width=16, u0=3.125E-4, u1=0.9996875, v0=3.125E-4, v1=0.9996875} [OptiFine] Scaled too small texture: minecraft:mcpatcher/ctm/default/empty, 16 -> 32 [18:32:11] [Client thread/INFO]: textures: dropping miplevel from 5 to 4, because of minimum power of two: 16 [18:32:11] [Client thread/INFO]: Created: 4096x2048 textures-atlas [shaders] allocateTextureMap 4 4096 2048 [18:32:12] [Client thread/INFO] [5zig]: Initializing the 5zig Mod! [18:32:12] [Client thread/INFO] [5zig]: Forge detected! [18:32:12] [Client thread/INFO] [5zig]: Loaded Configurations! [18:32:14] [Client thread/INFO] [5zig]: Loading Language files... [18:32:14] [Client thread/INFO] [5zig]: Loaded 6 languages! Using Language en_US! [18:32:14] [Client thread/INFO] [5zig]: Loaded 2 modules containing 6 items! [18:32:14] [Client thread/INFO] [5zig]: Loaded The 5zig Mod! (took 1937 ms) [OptiFine] *** Reloading custom textures *** [18:32:15] [update Thread/INFO] [5zig]: Found new update of The 5zig Mod (v3.6.! [18:32:15] [update Thread/INFO] [5zig]: New Minecraft version doesn't exist yet! Trying to download most recent mod file for Minecraft 1.8.9 [18:32:15] [update Thread/WARN] [FML]: ============================================================= [18:32:15] [update Thread/WARN] [FML]: MOD HAS DIRECT REFERENCE System.exit() THIS IS NOT ALLOWED REROUTING TO FML! [18:32:15] [update Thread/WARN] [FML]: Offendor: eu/the5zig/mod/installer/InstallerUtils.checkMD5(Ljava/io/File;Ljava/lang/String;)V [18:32:15] [update Thread/WARN] [FML]: Use FMLCommonHandler.exitJava instead [18:32:15] [update Thread/WARN] [FML]: ============================================================= [18:32:15] [update Thread/WARN] [FML]: ============================================================= [18:32:15] [update Thread/WARN] [FML]: MOD HAS DIRECT REFERENCE System.exit() THIS IS NOT ALLOWED REROUTING TO FML! [18:32:15] [update Thread/WARN] [FML]: Offendor: eu/the5zig/mod/installer/InstallerUtils.exitWithException(Ljava/lang/Throwable;Ljava/lang/String;Ljava/lang/String;)V [18:32:15] [update Thread/WARN] [FML]: Use FMLCommonHandler.exitJava instead [18:32:15] [update Thread/WARN] [FML]: ============================================================= [18:32:15] [update language thread/INFO] [5zig]: All Language Files are up to date! [OptiFine] Enable face culling: acacia_leaves, birch_leaves, dark_oak_leaves, jungle_leaves, oak_leaves, spruce_leaves [18:32:16] [Client thread/INFO] [5zig]: Loaded 0 Chats and Group Chats! [18:32:17] [update Thread/INFO] [5zig]: Downloaded and installed the latest version of The 5zig Mod! The only thing that happens when I type the command is "Unknown command" Quote Link to comment Share on other sites More sharing options...
P0ke Posted August 10, 2016 Author Share Posted August 10, 2016 Alright, I've found the problem. I was certain that I tested it without any other mods to rule out compatibility problems, but somehow I must have not done that. It turns out it was another mod. Thanks for your help. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.