-
Posts
70 -
Joined
-
Last visited
Everything posted by JoelGodOfWar
-
[1.12.2] bukkit like scheduler for forge?
JoelGodOfWar replied to JoelGodOfWar's topic in Modder Support
That does seem more efficient than my code. Hope my next bit of code goes this smoothly. Thank you. -
[1.12.2] bukkit like scheduler for forge?
JoelGodOfWar replied to JoelGodOfWar's topic in Modder Support
How about this? If daTimer is set to -1 do nothing, if daTimer gets below -1 then set it to -1 so it does nothing, if daTimer is set higher than -1 then count down to 0 to run code. -
[1.12.2] bukkit like scheduler for forge?
JoelGodOfWar replied to JoelGodOfWar's topic in Modder Support
What if I start the timer with daTimer being 200, and count down to 0, then until I set it to 200 again, it does nothing? Do you think that would be more efficient? I could also add checks so that when daTimer gets higher than 200, or lower than 0, the counter stops adding/subtracting until it is called. -
[1.12.2] bukkit like scheduler for forge?
JoelGodOfWar replied to JoelGodOfWar's topic in Modder Support
Which player doesn't matter for my reasons, a player is in bed, the variable is set in another function to start the look for the 200 tick delay. daTimer2 is set to daTimer by the same function as playerisinbed. Should I reset daTimer every now and then? I just need to know when 200 ticks(10 seconds) have elapsed. And since the servertickevent runs every tick, either I need to reset daTimer constantly, or just let it count up. I've been looking at bukkit's source to try to see if there was a way to make my own scheduler. I'm surprised forge has never added a scheduler, to run code at a certain delay. I'm trying to port my SinglePlayerSleep plugin over to forge, it will run serverside only, adding nothing if used on clientside. -
[1.12.2] bukkit like scheduler for forge?
JoelGodOfWar replied to JoelGodOfWar's topic in Modder Support
So I may have found a way to work around this. Is there anything I should change? Several variables are set in the event that would schedule the runnable in bukkit, daTimer2, playerisinbed, etc. -
Is there a scheduler for the server to run a runnable after a delay? Like the one in bukkit/spigot? I'm trying to port my plugin to a Forge Serverside Mod. The mod will only do anything on a server. Any help will be greatly appreciated. For bukkit/spigot I use the following code. I've been out of Forge Modding for nearly 3 years, and decided to try to bring a plugin from bukkit, into forge.
-
Where is the code minecraft uses to find portals to send a player to? Is it in net.minecraft.world.Teleporter? If so is it the "placeInExistingPortal", or "makePortal"?
-
Check out EntityRenderer, addRainParticles.
-
[1.9] PlaySound gui.button.press [SOLVED]
JoelGodOfWar replied to JoelGodOfWar's topic in Modder Support
Got it, thank you -
Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation("gui.button.press"), 1.0F)); PositionedSoundRecord no longer has a "create" function
-
[1.9] Updating Mod issues [partially solved]
JoelGodOfWar replied to JoelGodOfWar's topic in Modder Support
This is now String durationString = Potion.getPotionDurationString(potionEffect, 1); -
[1.9] Updating Mod issues [partially solved]
JoelGodOfWar replied to JoelGodOfWar's topic in Modder Support
Would now be. Tessellator tessellator = Tessellator.getInstance(); VertexBuffer worldrenderer = tessellator.getBuffer(); VertexBuffer in net.minecraft.client.renderer.VertexBuffer not net.minecraft.client.renderer.vertexbuffer.VertexBuffer Thank you, that makes sense with one of the possible fixes eclipse suggested. -
I've nearly completely updated my mod to the 1.9 release (1.9-12.16.0.1767-1.9). But i'm having serious trouble finding resolutions for these errors. nightVision cannot be resolved or is not a field potionTypes cannot be resolved or is not a field The import net.minecraft.client.renderer.WorldRenderer cannot be resolved The method getPotionDurationString(PotionEffect, float) in the type Potion is not applicable for the arguments (PotionEffect) The method getPotionID() is undefined for the type PotionEffect The method getWorldRenderer() is undefined for the type Tessellator WorldRenderer cannot be resolved to a type mc.thePlayer.removePotionEffect(Potion.nightVision.id); Potion.nightVision.id - seems to have vanished from net.minecraft.potion.Potion. While i can make a class to pass the ID of nightVision to removePotionEffect, since i share the code on github i'd rather use the propert method. String durationString = Potion.getPotionDurationString(potionEffect); Potion.getPotionDurationString(potionEffect) - Now requires a float PotionEffect potionEffect = (PotionEffect)it.next(); Potion potion = Potion.potionTypes[potionEffect.getPotionID()]; Potion.potionTypes[potionEffect.getPotionID()] - potionTypes is missing, and getPotionID is missing. Tessellator tessellator = Tessellator.getInstance(); WorldRenderer worldrenderer = tessellator.getWorldRenderer(); import net.minecraft.client.renderer.WorldRenderer; - is missing Any help you can give is much appreciated, as until i can build it i can't test it for bugs.
-
SubscribeEvent EntityJoinWorldEvent [Solved]
JoelGodOfWar replied to UberAffe's topic in Modder Support
Is EntityJoinWorldEvent, a server side event, or will the client fire this event upon joining a multiplayer server? -
[1.8.9] Detect when client connects to server [solved]
JoelGodOfWar replied to JoelGodOfWar's topic in Modder Support
The solution i was able to come up with was to use ClientChatReceivedEvent. Look for the "<player> joined the game" message that the spigot server sends when you connect to the SMP servers. Then it gets the player name, and checks if it is our client's player name. If they match then it sends the packet to the Server. If the companion plugin is enabled on the server, the plugin will respond with permissions set by an OP. @SubscribeEvent public void onChatRecieved(ClientChatReceivedEvent event) { String StandOut = " ***************************************************"; if(event.message.getUnformattedText().contains("joined the game")){ if(event.message.getUnformattedText().contains(mc.thePlayer.getDisplayNameString())){ ForgeMod.network.sendToServer(new MyMessage("12345678901234567890123456789012345678901234567890")); } //System.out.println("Chat contains JSCM" + StandOut); }else{ //System.out.println("" + event.message.getUnformattedText() + StandOut); } } Minecraft mc = Minecraft.getMinecraft(); } -
[1.8.9] Error receiving packet from Spigot Server [solved?]
JoelGodOfWar replied to JoelGodOfWar's topic in Modder Support
Ok i messed up when trying to thank Ernio and diesieben07, and removed my previous post about the discriminator byte. Anyways, i have got the code working by sending 50 characters to the Spigot plugin, then grabbing the discriminator, parse the message to send back to the client, then remove the length of the response from 50, adding extra 0's until the length is 50. I then send the message to the client, with the discriminator, and the 50 character response, allowing me to remove the extra 0's, and then parse the message, for action by the mod. After i clean up the code, i will post it here, for review, or help of others. -
I can send a packet to my Spigot plugin, and can send one back to my Forge mod, but when the mod tries to decode the message i get an error. The client message to the server is simply 1234567890, the response from the plugin is AaBbCcDdEe. I feel like i'm missing something simple. I've searched google for days, and there are a lot of tutorials on sending packets, but none on receiving them. The plugin is receiving, and sending on channel "JSCM|INIT". Error [22:51:17] [Netty Client IO #1/ERROR] [FML]: FMLIndexedMessageCodec exception caught io.netty.handler.codec.DecoderException: java.lang.NullPointerException: Undefined message for discriminator 48 in channel JSCM|INIT at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:99) ~[MessageToMessageDecoder.class:4.0.23.Final] at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) ~[MessageToMessageCodec.class:4.0.23.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333) [AbstractChannelHandlerContext.class:4.0.23.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319) [AbstractChannelHandlerContext.class:4.0.23.Final] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:787) [DefaultChannelPipeline.class:4.0.23.Final] at io.netty.channel.embedded.EmbeddedChannel.writeInbound(EmbeddedChannel.java:169) [EmbeddedChannel.class:4.0.23.Final] at net.minecraftforge.fml.common.network.internal.FMLProxyPacket.processPacket(FMLProxyPacket.java:90) [FMLProxyPacket.class:?] at net.minecraft.network.NetworkManager.channelRead0(NetworkManager.java:158) [NetworkManager.class:?] at net.minecraft.network.NetworkManager.channelRead0(NetworkManager.java:54) [NetworkManager.class:?] at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105) [simpleChannelInboundHandler.class:4.0.23.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333) [AbstractChannelHandlerContext.class:4.0.23.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319) [AbstractChannelHandlerContext.class:4.0.23.Final] at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher.handleClientSideCustomPacket(NetworkDispatcher.java:389) [NetworkDispatcher.class:?] at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher.channelRead0(NetworkDispatcher.java:255) [NetworkDispatcher.class:?] at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher.channelRead0(NetworkDispatcher.java:53) [NetworkDispatcher.class:?] at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105) [simpleChannelInboundHandler.class:4.0.23.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333) [AbstractChannelHandlerContext.class:4.0.23.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319) [AbstractChannelHandlerContext.class:4.0.23.Final] at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:163) [byteToMessageDecoder.class:4.0.23.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333) [AbstractChannelHandlerContext.class:4.0.23.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319) [AbstractChannelHandlerContext.class:4.0.23.Final] at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:163) [byteToMessageDecoder.class:4.0.23.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333) [AbstractChannelHandlerContext.class:4.0.23.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319) [AbstractChannelHandlerContext.class:4.0.23.Final] at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:163) [byteToMessageDecoder.class:4.0.23.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333) [AbstractChannelHandlerContext.class:4.0.23.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319) [AbstractChannelHandlerContext.class:4.0.23.Final] at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) [MessageToMessageDecoder.class:4.0.23.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333) [AbstractChannelHandlerContext.class:4.0.23.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319) [AbstractChannelHandlerContext.class:4.0.23.Final] at io.netty.handler.timeout.ReadTimeoutHandler.channelRead(ReadTimeoutHandler.java:150) [ReadTimeoutHandler.class:4.0.23.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333) [AbstractChannelHandlerContext.class:4.0.23.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319) [AbstractChannelHandlerContext.class:4.0.23.Final] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:787) [DefaultChannelPipeline.class:4.0.23.Final] at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:130) [AbstractNioByteChannel$NioByteUnsafe.class:4.0.23.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511) [NioEventLoop.class:4.0.23.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468) [NioEventLoop.class:4.0.23.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382) [NioEventLoop.class:4.0.23.Final] at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354) [NioEventLoop.class:4.0.23.Final] at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116) [singleThreadEventExecutor$2.class:4.0.23.Final] at java.lang.Thread.run(Unknown Source) [?:1.7.0_79] My code is below import io.netty.buffer.ByteBuf; import net.minecraft.client.Minecraft; import net.minecraftforge.fml.common.network.ByteBufUtils; import net.minecraftforge.fml.common.network.simpleimpl.IMessage; import net.minecraftforge.fml.common.network.simpleimpl.IMessageHandler; import net.minecraftforge.fml.common.network.simpleimpl.MessageContext; import net.minecraftforge.fml.relauncher.Side; public class MyMessage implements IMessage { private String text; public MyMessage() { } public MyMessage(String text) { this.text = text; } @Override public void fromBytes(ByteBuf buf) { text = ByteBufUtils.readUTF8String(buf); // this class is very useful in general for writing more complex objects } @Override public void toBytes(ByteBuf buf) { ByteBufUtils.writeUTF8String(buf, text); } public static class Handler implements IMessageHandler<MyMessage, IMessage> { @Override public IMessage onMessage(final MyMessage message, final MessageContext ctx) { //IThreadListener mainThread = (WorldServer) ctx.getServerHandler().playerEntity.worldObj; // or Minecraft.getMinecraft() on the client if (ctx.side != Side.CLIENT) { System.err.println("TargetEffectMessageToClient received on wrong side:" + ctx.side); return null; }else{ System.out.println("MyMessage else triggered................................................................."); Minecraft minecraft = Minecraft.getMinecraft(); minecraft.addScheduledTask(new Runnable() { @Override public void run() { System.out.println("Run has been triggered................................................................."); System.out.println(String.format("Received %s from %s", message.text, ctx.getServerHandler().playerEntity.getDisplayName())); } }); return null; // no response in this case }} } } PreInit network = NetworkRegistry.INSTANCE.newSimpleChannel("JSCM|INIT"); network.registerMessage(MyMessage.Handler.class, MyMessage.class, 0, Side.CLIENT);
-
First problem with my first mod: Chat Check and Send; Bot
JoelGodOfWar replied to Artur_Gamez's topic in Modder Support
Well after just testing this for a project i'm working on. Your issue is this line. if (e.message.getUnformattedTextForChat().contains("Bot, hi")){ You need to change it to this if (e.message.getUnformattedText().contains("Bot, hi")){ -
[1.8.9] Detect when client connects to server [solved]
JoelGodOfWar replied to JoelGodOfWar's topic in Modder Support
As a small update. I have been able to successfully send a packet to a spigot plugin. Then have the plugin send chat to my client letting me know the packet showed up. However the packet only sends when i force it through a keybind, and not in the onJoin event. -
[1.8.9] Detect when client connects to server [solved]
JoelGodOfWar replied to JoelGodOfWar's topic in Modder Support
In the main class i did not register the event. My EventHandler is registered. I want to catch when the player connects to a multiplayer server, and then send a packet to the server. If the server is running the plugin i am working on, then the server will send a packet back, letting the mod know what permissions it has. Currently i am working on learning spigot plugins. But i am finding that information on packets and communicating between plugins and mods, is limited. -
[1.8.9] Detect when client connects to server [solved]
JoelGodOfWar posted a topic in Modder Support
I am trying to detect when the client connects to an SMP Server. But it seems like the onJoin event is not firing. Any help would be greatly appreciated. Here is the code i am trying. I've tried placing it in my EventHandler class, and my Main.class @SubscribeEvent public void onJoin(ClientConnectedToServerEvent event) { if(event.isLocal) { // Local Connection System.out.println("Local Connection"); }else { // Server Connection System.out.println("Server Connection"); //Do stuff to let server know we are here. } } -
[1.8.9] Error after update to Forge 11.15.1.1722 [solved]
JoelGodOfWar replied to JoelGodOfWar's topic in Modder Support
Thank you Lex and Draco. It's been so long since i loaded eclipse, that i forget why i ever installed that in the mods folder. None of my code was using it. -
Earlier today i was able to update to Forge 11.15.1.1722, now when i try to run in Eclipse i get this in the console. 2016-02-24 22:37:07,102 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream 2016-02-24 22:37:07,105 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream [22:37:07] [main/INFO] [GradleStart]: Extra: [] [22:37:07] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --accessToken{REDACTED}, --assetIndex, 1.8, --assetsDir, C:/Users/demon/.gradle/caches/minecraft/assets, --version, 1.8.9, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker] [22:37:07] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [22:37:07] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [22:37:07] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker [22:37:07] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker [22:37:07] [main/INFO] [FML]: Forge Mod Loader version 11.15.1.1722 for Minecraft 1.8.9 loading [22:37:07] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.7.0_79, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre7 [22:37:07] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation 2016-02-24 22:37:07,527 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream 2016-02-24 22:37:07,583 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream 2016-02-24 22:37:07,585 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream [22:37:07] [main/WARN] [FML]: The coremod codechicken.core.launch.CodeChickenCorePlugin does not have a MCVersion annotation, it may cause issues with this version of Minecraft [22:37:07] [main/INFO] [sTDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:setupHome:99]: java.lang.RuntimeException: java.lang.NoSuchFieldException: loadedCoremods [22:37:07] [main/INFO] [sTDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:setupHome:99]: at codechicken.core.launch.DepLoader$DepLoadInst.searchCoreMod(DepLoader.java:552) [22:37:07] [main/INFO] [sTDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:setupHome:99]: at codechicken.core.launch.DepLoader$DepLoadInst.activateDeps(DepLoader.java:502) [22:37:07] [main/INFO] [sTDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:setupHome:99]: at codechicken.core.launch.DepLoader$DepLoadInst.load(DepLoader.java:496) [22:37:07] [main/INFO] [sTDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:setupHome:99]: at codechicken.core.launch.DepLoader.load(DepLoader.java:684) [22:37:07] [main/INFO] [sTDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:setupHome:99]: at codechicken.core.launch.CodeChickenCorePlugin.<init>(CodeChickenCorePlugin.java:47) [22:37:07] [main/INFO] [sTDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:setupHome:99]: at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [22:37:07] [main/INFO] [sTDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:setupHome:99]: at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) [22:37:07] [main/INFO] [sTDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:setupHome:99]: at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) [22:37:07] [main/INFO] [sTDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:setupHome:99]: at java.lang.reflect.Constructor.newInstance(Unknown Source) [22:37:07] [main/INFO] [sTDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:setupHome:99]: at java.lang.Class.newInstance(Unknown Source) [22:37:07] [main/INFO] [sTDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:setupHome:99]: at net.minecraftforge.fml.relauncher.CoreModManager.loadCoreMod(CoreModManager.java:577) [22:37:07] [main/INFO] [sTDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:setupHome:99]: at net.minecraftforge.fml.relauncher.CoreModManager.discoverCoreMods(CoreModManager.java:416) [22:37:07] [main/INFO] [sTDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:setupHome:99]: at net.minecraftforge.fml.relauncher.CoreModManager.handleLaunch(CoreModManager.java:246) [22:37:07] [main/INFO] [sTDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:setupHome:99]: at net.minecraftforge.fml.relauncher.FMLLaunchHandler.setupHome(FMLLaunchHandler.java:95) [22:37:07] [main/INFO] [sTDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:setupHome:99]: at net.minecraftforge.fml.relauncher.FMLLaunchHandler.setupClient(FMLLaunchHandler.java:72) [22:37:07] [main/INFO] [sTDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:setupHome:99]: at net.minecraftforge.fml.relauncher.FMLLaunchHandler.configureForClientLaunch(FMLLaunchHandler.java:34) [22:37:07] [main/INFO] [sTDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:setupHome:99]: at net.minecraftforge.fml.common.launcher.FMLTweaker.injectIntoClassLoader(FMLTweaker.java:119) [22:37:07] [main/INFO] [sTDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:setupHome:99]: at net.minecraft.launchwrapper.Launch.launch(Launch.java:115) [22:37:07] [main/INFO] [sTDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:setupHome:99]: at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [22:37:07] [main/INFO] [sTDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:setupHome:99]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [22:37:07] [main/INFO] [sTDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:setupHome:99]: at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [22:37:07] [main/INFO] [sTDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:setupHome:99]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [22:37:07] [main/INFO] [sTDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:setupHome:99]: at java.lang.reflect.Method.invoke(Unknown Source) [22:37:07] [main/INFO] [sTDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:setupHome:99]: at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [22:37:07] [main/INFO] [sTDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:setupHome:99]: at GradleStart.main(GradleStart.java:26) [22:37:07] [main/INFO] [sTDERR]: [java.lang.Throwable:printStackTrace:634]: Caused by: java.lang.NoSuchFieldException: loadedCoremods [22:37:07] [main/INFO] [sTDERR]: [java.lang.Throwable:printStackTrace:634]: at java.lang.Class.getDeclaredField(Unknown Source) [22:37:07] [main/INFO] [sTDERR]: [java.lang.Throwable:printStackTrace:634]: at codechicken.core.launch.DepLoader$DepLoadInst.searchCoreMod(DepLoader.java:539) [22:37:07] [main/INFO] [sTDERR]: [java.lang.Throwable:printStackTrace:634]: ... 24 more [22:37:07] [main/ERROR] [FML]: An error occurred trying to configure the minecraft home at D:\Minecraft Modding\My Mods Workspace\Simple Coordinates Mod\. for Forge Mod Loader java.lang.RuntimeException: java.lang.NoSuchFieldException: loadedCoremods at codechicken.core.launch.DepLoader$DepLoadInst.searchCoreMod(DepLoader.java:552) ~[DepLoader$DepLoadInst.class:?] at codechicken.core.launch.DepLoader$DepLoadInst.activateDeps(DepLoader.java:502) ~[DepLoader$DepLoadInst.class:?] at codechicken.core.launch.DepLoader$DepLoadInst.load(DepLoader.java:496) ~[DepLoader$DepLoadInst.class:?] at codechicken.core.launch.DepLoader.load(DepLoader.java:684) ~[DepLoader.class:?] at codechicken.core.launch.CodeChickenCorePlugin.<init>(CodeChickenCorePlugin.java:47) ~[CodeChickenCore-1.8-1.0.5.34-dev.jar:?] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.7.0_79] at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) ~[?:1.7.0_79] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) ~[?:1.7.0_79] at java.lang.reflect.Constructor.newInstance(Unknown Source) ~[?:1.7.0_79] at java.lang.Class.newInstance(Unknown Source) ~[?:1.7.0_79] at net.minecraftforge.fml.relauncher.CoreModManager.loadCoreMod(CoreModManager.java:577) ~[forgeSrc-1.8.9-11.15.1.1722.jar:?] at net.minecraftforge.fml.relauncher.CoreModManager.discoverCoreMods(CoreModManager.java:416) ~[forgeSrc-1.8.9-11.15.1.1722.jar:?] at net.minecraftforge.fml.relauncher.CoreModManager.handleLaunch(CoreModManager.java:246) ~[forgeSrc-1.8.9-11.15.1.1722.jar:?] at net.minecraftforge.fml.relauncher.FMLLaunchHandler.setupHome(FMLLaunchHandler.java:95) [forgeSrc-1.8.9-11.15.1.1722.jar:?] at net.minecraftforge.fml.relauncher.FMLLaunchHandler.setupClient(FMLLaunchHandler.java:72) [forgeSrc-1.8.9-11.15.1.1722.jar:?] at net.minecraftforge.fml.relauncher.FMLLaunchHandler.configureForClientLaunch(FMLLaunchHandler.java:34) [forgeSrc-1.8.9-11.15.1.1722.jar:?] at net.minecraftforge.fml.common.launcher.FMLTweaker.injectIntoClassLoader(FMLTweaker.java:119) [forgeSrc-1.8.9-11.15.1.1722.jar:?] at net.minecraft.launchwrapper.Launch.launch(Launch.java:115) [launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_79] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_79] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_79] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_79] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?] at GradleStart.main(GradleStart.java:26) [start/:?] Caused by: java.lang.NoSuchFieldException: loadedCoremods at java.lang.Class.getDeclaredField(Unknown Source) ~[?:1.7.0_79] at codechicken.core.launch.DepLoader$DepLoadInst.searchCoreMod(DepLoader.java:539) ~[DepLoader$DepLoadInst.class:?] ... 24 more [22:37:07] [main/ERROR] [LaunchWrapper]: Unable to launch java.lang.RuntimeException: java.lang.NoSuchFieldException: loadedCoremods at codechicken.core.launch.DepLoader$DepLoadInst.searchCoreMod(DepLoader.java:552) ~[DepLoader$DepLoadInst.class:?] at codechicken.core.launch.DepLoader$DepLoadInst.activateDeps(DepLoader.java:502) ~[DepLoader$DepLoadInst.class:?] at codechicken.core.launch.DepLoader$DepLoadInst.load(DepLoader.java:496) ~[DepLoader$DepLoadInst.class:?] at codechicken.core.launch.DepLoader.load(DepLoader.java:684) ~[DepLoader.class:?] at codechicken.core.launch.CodeChickenCorePlugin.<init>(CodeChickenCorePlugin.java:47) ~[CodeChickenCore-1.8-1.0.5.34-dev.jar:?] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.7.0_79] at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) ~[?:1.7.0_79] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) ~[?:1.7.0_79] at java.lang.reflect.Constructor.newInstance(Unknown Source) ~[?:1.7.0_79] at java.lang.Class.newInstance(Unknown Source) ~[?:1.7.0_79] at net.minecraftforge.fml.relauncher.CoreModManager.loadCoreMod(CoreModManager.java:577) ~[forgeSrc-1.8.9-11.15.1.1722.jar:?] at net.minecraftforge.fml.relauncher.CoreModManager.discoverCoreMods(CoreModManager.java:416) ~[forgeSrc-1.8.9-11.15.1.1722.jar:?] at net.minecraftforge.fml.relauncher.CoreModManager.handleLaunch(CoreModManager.java:246) ~[forgeSrc-1.8.9-11.15.1.1722.jar:?] at net.minecraftforge.fml.relauncher.FMLLaunchHandler.setupHome(FMLLaunchHandler.java:95) ~[forgeSrc-1.8.9-11.15.1.1722.jar:?] at net.minecraftforge.fml.relauncher.FMLLaunchHandler.setupClient(FMLLaunchHandler.java:72) ~[forgeSrc-1.8.9-11.15.1.1722.jar:?] at net.minecraftforge.fml.relauncher.FMLLaunchHandler.configureForClientLaunch(FMLLaunchHandler.java:34) ~[forgeSrc-1.8.9-11.15.1.1722.jar:?] at net.minecraftforge.fml.common.launcher.FMLTweaker.injectIntoClassLoader(FMLTweaker.java:119) ~[forgeSrc-1.8.9-11.15.1.1722.jar:?] at net.minecraft.launchwrapper.Launch.launch(Launch.java:115) [launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_79] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_79] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_79] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_79] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?] at GradleStart.main(GradleStart.java:26) [start/:?] Caused by: java.lang.NoSuchFieldException: loadedCoremods at java.lang.Class.getDeclaredField(Unknown Source) ~[?:1.7.0_79] at codechicken.core.launch.DepLoader$DepLoadInst.searchCoreMod(DepLoader.java:539) ~[DepLoader$DepLoadInst.class:?] ... 24 more Exception in thread "main" [22:37:07] [main/INFO] [sTDERR]: [java.lang.ThreadGroup:uncaughtException:-1]: java.lang.reflect.InvocationTargetException [22:37:07] [main/INFO] [sTDERR]: [java.lang.ThreadGroup:uncaughtException:-1]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [22:37:07] [main/INFO] [sTDERR]: [java.lang.ThreadGroup:uncaughtException:-1]: at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [22:37:07] [main/INFO] [sTDERR]: [java.lang.ThreadGroup:uncaughtException:-1]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [22:37:07] [main/INFO] [sTDERR]: [java.lang.ThreadGroup:uncaughtException:-1]: at java.lang.reflect.Method.invoke(Unknown Source) [22:37:07] [main/INFO] [sTDERR]: [java.lang.ThreadGroup:uncaughtException:-1]: at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [22:37:07] [main/INFO] [sTDERR]: [java.lang.ThreadGroup:uncaughtException:-1]: at GradleStart.main(GradleStart.java:26) [22:37:07] [main/INFO] [sTDERR]: [java.lang.ThreadGroup:uncaughtException:-1]: Caused by: net.minecraftforge.fml.relauncher.FMLSecurityManager$ExitTrappedException [22:37:07] [main/INFO] [sTDERR]: [java.lang.ThreadGroup:uncaughtException:-1]: at net.minecraftforge.fml.relauncher.FMLSecurityManager.checkPermission(FMLSecurityManager.java:30) [22:37:07] [main/INFO] [sTDERR]: [java.lang.ThreadGroup:uncaughtException:-1]: at java.lang.SecurityManager.checkExit(Unknown Source) [22:37:07] [main/INFO] [sTDERR]: [java.lang.ThreadGroup:uncaughtException:-1]: at java.lang.Runtime.exit(Unknown Source) [22:37:07] [main/INFO] [sTDERR]: [java.lang.ThreadGroup:uncaughtException:-1]: at java.lang.System.exit(Unknown Source) [22:37:07] [main/INFO] [sTDERR]: [java.lang.ThreadGroup:uncaughtException:-1]: at net.minecraft.launchwrapper.Launch.launch(Launch.java:138) [22:37:07] [main/INFO] [sTDERR]: [java.lang.ThreadGroup:uncaughtException:-1]: at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [22:37:07] [main/INFO] [sTDERR]: [java.lang.ThreadGroup:uncaughtException:-1]: ... 6 more
-
I'm having some difficulty with finding information on 1.8 equivalents of 1.7 code. With this code, the part between Block. and .blockID cannot be resolved. And after many google searches, i can find 1.7 code with this in it, but can not find the 1.8 equal of it. Also Block.blocksList, and chucnk.getBlockID are Unresolved, and Undefined respectively. There's some more trouble updating, but these are the ones with the least hits on google so far.
-
[1.8] [Eclipse] Working with multiple mods
JoelGodOfWar replied to JoelGodOfWar's topic in Modder Support
Well following Lex's video, and the forum post with the code to copy. I get this error. [23:25:38] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker [23:25:38] [main/ERROR] [LaunchWrapper]: Unable to launch java.lang.ClassNotFoundException: cpw.mods.fml.common.launcher.FMLTweaker at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.8.0_60] at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_60] at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) ~[?:1.8.0_60] at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_60] at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:106) ~[launchwrapper-1.11.jar:?] at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_60] at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_60] at java.lang.Class.forName0(Native Method) ~[?:1.8.0_60] at java.lang.Class.forName(Unknown Source) ~[?:1.8.0_60] at net.minecraft.launchwrapper.Launch.launch(Launch.java:98) [launchwrapper-1.11.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]