Jump to content

Recommended Posts

Posted (edited)

What I'd like to do is to be able to use OpenComputers' API in eclipse. I also want to have OpenComputers when I launch Minecraft from Eclipse. How can I do that? Because I searched everywhere but in the end, my game always crashed or froze :(

Edited by Djeezuss
Posted

You can put the API code inside src/api/java, this will make sure the API doesn't get compiled and put into your own mod file. To install the mod on the dev workspace, simply put it in the mods folder and that should work.

 

If it still crashes, post the log (logs/fml-client-latest.log).

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Posted (edited)

I extracted the source files of OpenComputers into /src/api/java/, and put its normal mod file into /eclipse/mods/. I runned the client, but crashed.
 

fml-client-latest.log

 

Edit: When I use Gradle (gradlew runClient), the game starts corectly, with another mod that I added, but OC isn't loaded.

Edit 2: Ok, I moved the mod from /eclipse/mods/ to /run/mods/ and it launched fine, but, when I create a new world, the game freeze. Here's the crash-report: crash-2017-04-11_16.13.33-server.txt

Edited by Djeezuss
Posted (edited)
Quote

java.lang.IllegalAccessError: tried to access method net.minecraft.world.chunk.Chunk.populateChunk(Lnet/minecraft/world/chunk/IChunkGenerator;)V from class ValkyrienWarfareBase.CoreMod.CallRunner

I think you don't have the correct version of ValkyrienWarfareBase.

Edited by sham1

If my post helped you, please press that "Thank You"-button to show your appreciation.

 

Also if you don't know Java, I would suggest you read the official tutorials by Oracle to get an idea of how to do this. Thanks, and good modding!

 

Also if you haven't, set up a Git repo for your mod not only for convinience but also to make it easier to help you.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • https://mclo.gs/46Xf7Sq thanks
    • That seems to have fixed it, thank you!
    • I am having some issues starting an RLCraft server on a minimal install of Debian 12. I have Java installed and I'm able to start the vanilla Minecraft server jar no problem and people can join and play without any issues, as soon as I try to create a new directory with the Forge jar the initial install with the INSTALLER jar works when I use the java command with the --installServer flag, but as soon as I try to start the server using the forge jar that is NOT labelled with installer I get the following error: A problem occurred running the Server launcher.java.lang.reflect.InvocationTargetException         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)         at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)         at java.base/java.lang.reflect.Method.invoke(Method.java:569)         at net.minecraftforge.fml.relauncher.ServerLaunchWrapper.run(ServerLaunchWrapper.java:70)         at net.minecraftforge.fml.relauncher.ServerLaunchWrapper.main(ServerLaunchWrapper.java:34) Caused by: java.lang.ClassCastException: class jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to class java.net.URLClassLoader (jdk.internal.loader.ClassLoaders$AppClassLoader and java.net.URLClassLoader are in module java.base of loader 'bootstrap')         at net.minecraft.launchwrapper.Launch.<init>(Launch.java:34)         at net.minecraft.launchwrapper.Launch.main(Launch.java:28)         ... 6 more   I have tried using newer versions of Java directly from Oracle as well. Has anybody been successful in starting and running a RLCraft server from the terminal on a Linux machine? I cannot figure out why it doesn't want to work but the vanilla jar works without issue. Thank you in advance!
  • Topics

×
×
  • Create New...

Important Information

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