Jump to content

arungupta

Members
  • Posts

    55
  • Joined

  • Last visited

Everything posted by arungupta

  1. I'm trying to set up Forge on a Windows machine and getting the following error: C:\Users\Student\Desktop\forge>gradlew genEclipseRuns To honour the JVM settings for this build a single-use Daemon process will be forked. See https://docs.gradle.org/7.4.2/userguide/gradle_daemon.html#sec:disabling_the_daemon. Daemon will be stopped at the end of the build FAILURE: Build failed with an exception. * Where: Settings file 'C:\Users\Student\Desktop\forge\settings.gradle' * What went wrong: Could not compile settings file 'C:\Users\Student\Desktop\forge\settings.gradle'. > startup failed: General error during conversion: Unsupported class file major version 63 java.lang.IllegalArgumentException: Unsupported class file major version 63 at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:199) at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:180) Here is the Java version: C:\Users\Student\Desktop\forge>java -version java version "19" 2022-09-20 Java(TM) SE Runtime Environment (build 19+36-2238) Java HotSpot(TM) 64-Bit Server VM (build 19+36-2238, mixed mode, sharing) Using forge-1.19-41.1.0-mdk. How can this be fixed?
  2. Seems like that might be it. How do I disable the online mode?
  3. Trying that suggestion but facing another problem Are there instructions available to share generated mod file with another Forge server?
  4. Started 1.19 server and the log is available at https://gist.github.com/arun-gupta/28114b7e6bc6a8bff9ae0818ade6b19e. Started launcher using runClient in Eclipse but the launcher does not recognize localhost server. run/eula.txt has been updated already. What could be missing?
  5. This is very helpful. The "run/mods" directory has "modid-1.0.jar" I tried the commands implementation fg.deobf("blank:examplemod:1.0") and implementation fg.deobf("blank:examplemod:1.0") But both does not seem to be working. Seems like the dependencies are not correctly specified. Any further suggestions?
  6. Here are my system details: Minecraft Version: 1.19 Minecraft Version ID: 1.19 Operating System: Mac OS X (aarch64) version 12.5.1 Java Version: 17.0.4, Eclipse Adoptium Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Eclipse Adoptium I created a few mods and they all seem to run fine from Eclipse using runClient. But when a mod file is generated using "gradlew build" command, and placed it in "run/mods" directory, then the server started with "gradlew runServer" crashes with an exception, The complete log is at https://gist.github.com/arun-gupta/48f0c2a882347ca952a3195c6ad57568. I removed SkeletonWars mod from the mods file included in run/mods directory and now a similar error occurs in ExampleMod. Complete log for that is at https://gist.github.com/arun-gupta/7c80c37869b231c952831b66f081579c. Any ideas?
  7. Here is my configuration: % java -version java version "18.0.2" 2022-07-19 Java(TM) SE Runtime Environment (build 18.0.2+9-61) Java HotSpot(TM) 64-Bit Server VM (build 18.0.2+9-61, mixed mode, sharing) forge-1.19-41.1.0-mdk on macOS Monterey 12.5 I ran the command: ./gradlew genEclipseRuns and was hoping it will generate the Eclipse project files for me. The run log is at https://gist.github.com/arun-gupta/06b983a6976b4c0a0f510d0dc225ddd3 and the generated directory structure is at https://gist.github.com/arun-gupta/3f5bfc70ec5d3d903b0f97d42840abda. In previous versions (1.12-ish), it used to generate an eclipse directory but 1.19 does not seem to have it. I tried opening the top-level forge directory but Eclipse does not recognize it as a project as well. How do I open this project in Eclipse now?
  8. Helping my son following up from http://www.minecraftforge.net/forum/index.php?topic=37243 and starting a new thread to discuss SLF4J classes not loading. This thread helped explain how shadowing can be done where certain packages can be renamed to avoid conflict. However now logging classes are not getting loaded correctly. Here is the error that is being thrown: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory at com.github.dockerjava.jaxrs.DockerCmdExecFactoryImpl.<clinit>(DockerCmdExecFactoryImpl.java:82) ~[DockerCmdExecFactoryImpl.class:?] at com.github.dockerjava.core.DockerClientBuilder.getDefaultDockerCmdExecFactory(DockerClientBuilder.java:35) ~[DockerClientBuilder.class:?] at com.github.dockerjava.core.DockerClientBuilder.build(DockerClientBuilder.java:47) ~[DockerClientBuilder.class:?] at org.redfrog404.mobycraft.DockerCommands.getDockerClient(DockerCommands.java:233) ~[DockerCommands.class:?] at org.redfrog404.mobycraft.DockerCommands.ps(DockerCommands.java:193) ~[DockerCommands.class:?] at org.redfrog404.mobycraft.DockerCommands.func_71515_b(DockerCommands.java:110) ~[DockerCommands.class:?] at net.minecraft.command.CommandHandler.func_175786_a(CommandHandler.java:100) [j.class:?] at net.minecraft.command.CommandHandler.func_71556_a(CommandHandler.java:79) [j.class:?] at net.minecraft.network.NetHandlerPlayServer.func_147361_d(NetHandlerPlayServer.java:815) [lm.class:?] at net.minecraft.network.NetHandlerPlayServer.func_147354_a(NetHandlerPlayServer.java:794) [lm.class:?] at net.minecraft.network.play.client.C01PacketChatMessage.func_148833_a(SourceFile:37) [ie.class:?] at net.minecraft.network.play.client.C01PacketChatMessage.func_148833_a(SourceFile:9) [ie.class:?] at net.minecraft.network.PacketThreadUtil$1.run(SourceFile:13) [fh$1.class:?] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_74] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_74] at net.minecraft.util.Util.func_181617_a(SourceFile:44) [g.class:?] at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:660) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:605) [MinecraftServer.class:?] at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:152) [bpo.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:481) [MinecraftServer.class:?] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_74] Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:101) ~[launchwrapper-1.12.jar:?] at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_74] at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_74] ... 21 more The entire project is at https://github.com/AdityaGupta1/mobycraft and build.gradle. Built this as gradlew build and copied the build/libs/mobycraft-1.0.jar to the mods folder. Any suggestions on how to fix this? Arun
  9. Saw an update from @lexmanos at https://twitter.com/lexmanos I always knew these guys are fast So hopefully expecting a release in the coming days.
  10. Minecraft 1.9 was released earlier today: http://mojang.com/2016/02/minecraft-19-combat-update/ Wondering when would an updated Forge be available?
  11. We are in the process of migrating mods from 1.7 to 1.8 and noticed quite a few non-backwards compatible changes. For example: - All cpw.mods packages are refactored to net.minecraftforge - Some of the methods in ICommand do not exist any more - BlockStairs constructor has changed - BlockStairs.setBlockName does not exist any more - textureName field in Block class does not exist any more - EntityItem.age and delayBeforeCanPickup do not exist - BreakEvent does not have a block field - PlayerInteractEvent does not have x, y, and z fields. Instead they are encapsulated in pos. I've seen the change log at: http://files.minecraftforge.net/maven/net/minecraftforge/forge/1.8-11.14.0.1299/forge-1.8-11.14.0.1299-changelog.txt Is there a list of API changes from 1.7.10 to 1.8?
  12. Had troubles with the "weird string format". Can you share an example for that ?
  13. I understand crafting and smelting recipes using Forge. How do I create brewing recipes ? [1] is unanswered and answer in [2] is not clear. Is Brewing supported or planned in upcoming releases ? [1] http://www.minecraftforge.net/forum/index.php?topic=2611.0 [2] http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/modification-development/1428976-adding-brewing-recipes
  14. Thanks, will try it and let you know!
  15. Still a noobie to Forge. Code please ?
  16. Ah, we did something like that but the code wasn't pretty. But if that's the only way, I guess we'll go with that
  17. http://www.minecraftforge.net/forum/index.php/topic,23363.msg118875.html#msg118875 suggest that bigger TNT explosions can be created without a fuse, i.e. TNT blows up immediately. How do I make a bigger TNT explosion *with* a fuse ? My source code is available at: https://github.com/arun-gupta/forge-plugins/blob/master/src/main/java/org/devoxx4kids/forge/plugins/BiggerTNTExplosion.java Suggestions ?
  18. Didn't mean to hijack the thread, was just asking a follow up question Anyway, will start a new thread for a specific question.
  19. By default, TNT explodes 4 seconds after being lit. In this case, it blows up right away. How do I implement the "wait" behavior with the bigger explosion mod ?
  20. OK, thought so. Will try it again on another Windows machine.
  21. I've seen different behavior on different Windows machines. Any thoughts on what might be causing that discrepancy ?
  22. The source bundle is "gradlew decompWorkspace eclipse" on Mac and Windows. On Mac, I can point to the workspace and the project shows up in Eclipse. On Windows, I need to explicitly import the project. Is this a known discrepancy ? Arun
  23. In context of Forge, what is the right terminology ? Mods or Plugins ?
  24. Yes, that's how I understand as well. So help me understand the difference between mods and plugins then ?
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.