Jump to content

Forge not picking up a class when run outside of dev environment


Recommended Posts

Posted

I've managed to successfully implement code for an adapter for Clojure, but it only works within the dev environment due to forge not picking it up outside of the dev environment.

 

The jar name is test-mod-1.0.jar if that helps.

 

My current folder structure is:

main folder: forge_clj

subfolder:forge_clj/testmod (contains a sample mod that uses the code)

subfolder:forge_clj/core (contains the class I need)

 

I've referenced it directly in the code (so the resulting name it looks for is "forge_clj.core.ClojureAdapter"). This actually works in the dev environment, and I can't see any other differences besides being in a jar file. Any ideas as to why that class isn't loading?

 

Currently working on a mod to provide support for the Clojure programming language in Minecraft, check it out here.

Posted

What is Clojure? Is it a library?

I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP)

II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.

Posted

What is Clojure? Is it a library?

 

Clojure is a programming language built on top of the jvm. My current project is adding support for it to minecraft forge. I've managed to get around certain problems via an ILanguageAdapter implementation known as ClojureAdapter. From what I can see, forge uses Class.forname on a string that is given in the mod definition in order to find the Adapter. This strategy worked when in a dev environment, but it can't find the class file when run in a normal minecraft installation.

 

Mind you, I have been needing to place clojure.jar (the compiler) into the mods folder as well, though I doubt this is the problem.

Currently working on a mod to provide support for the Clojure programming language in Minecraft, check it out here.

Posted

I think you should have 2 mods for that.

first mod is java mod and contains ILanguageAdapter.

second mod is clojure mod loaded by first mod.

I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP)

II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.

Posted

Can you post console log? It would be so helpful.

I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP)

II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.

Posted

Can you post console log? It would be so helpful.

 

Well, if you insist. I don't think it'll be that helpful but:

 

 

 

[20:35:44] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker

[20:35:44] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker

[20:35:44] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker

[20:35:44] [main/INFO] [FML]: Forge Mod Loader version 7.99.30.1492 for Minecraft 1.7.10 loading

[20:35:44] [main/INFO] [FML]: Java is Java HotSpot 64-Bit Server VM, version 1.7.0_60, running on Mac OS X:x86_64:10.10.5, installed at /Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home/jre

[20:35:45] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker

[20:35:45] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker

[20:35:45] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker

[20:35:45] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker

[20:35:45] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper

[20:35:47] [main/INFO] [FML]: Found valid fingerprint for Minecraft Forge. Certificate fingerprint e3c3d50c7c986df74c645c0ac54639741c90a557

[20:35:47] [main/INFO] [FML]: Found valid fingerprint for Minecraft. Certificate fingerprint cd99959656f753dc28d863b46769f7f8fbaefcfc

[20:35:47] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper

[20:35:47] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker

[20:35:48] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker

[20:35:48] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker

[20:35:48] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}

[20:35:50] [main/INFO]: Setting user: yoshiquest01

[20:35:52] [main/INFO] [sTDOUT]: [net.minecraft.client.main.Main:main:144]: Completely ignored arguments: [--nativeLauncherVersion, 283]

[20:35:52] [Client thread/INFO]: LWJGL Version: 2.9.1

[20:35:53] [Client thread/INFO] [sTDOUT]: [cpw.mods.fml.client.SplashProgress:start:188]: ---- Minecraft Crash Report ----

// Daisy, daisy...

 

Time: 9/14/15 8:35 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.7.10

Operating System: Mac OS X (x86_64) version 10.10.5

Java Version: 1.7.0_60, Oracle Corporation

Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation

Memory: 277509352 bytes (264 MB) / 386400256 bytes (368 MB) up to 3817865216 bytes (3641 MB)

JVM Flags: 2 total; -Xmx4G -XX:MaxPermSize=256M

AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used

IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0

FML:

GL info: ' Vendor: 'Intel Inc.' Version: '2.1 INTEL-10.6.33' Renderer: 'Intel Iris OpenGL Engine'

[20:35:53] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization

[20:35:53] [Client thread/INFO] [FML]: MinecraftForge v10.13.4.1492 Initialized

[20:35:53] [Client thread/INFO] [FML]: Replaced 183 ore recipies

[20:35:54] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization

[20:35:54] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer

[20:35:54] [Client thread/INFO] [FML]: Searching /Users/Ryan/Library/Application Support/minecraft/mods for mods

[20:36:01] [Client thread/INFO] [FML]: Attempting to reparse the mod container clojure-1.7.0.jar

[20:36:01] [Client thread/ERROR] [FML]: Error constructing custom mod language adapter forge_clj.core.ClojureAdapter (referenced by yoshiquest.testmod.TestMod) (modid: test-mod)

java.lang.ClassNotFoundException: forge_clj.core.ClojureAdapter

at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191) ~[launchwrapper-1.12.jar:?]

at java.lang.ClassLoader.loadClass(ClassLoader.java:425) ~[?:1.7.0_60]

at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ~[?:1.7.0_60]

at cpw.mods.fml.common.ModClassLoader.loadClass(ModClassLoader.java:58) ~[ModClassLoader.class:?]

at java.lang.Class.forName0(Native Method) ~[?:1.7.0_60]

at java.lang.Class.forName(Class.java:270) ~[?:1.7.0_60]

at cpw.mods.fml.common.FMLModContainer.<init>(FMLModContainer.java:105) [FMLModContainer.class:?]

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [?:1.7.0_60]

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) [?:1.7.0_60]

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [?:1.7.0_60]

at java.lang.reflect.Constructor.newInstance(Constructor.java:526) [?:1.7.0_60]

at cpw.mods.fml.common.ModContainerFactory.build(ModContainerFactory.java:79) [ModContainerFactory.class:?]

at cpw.mods.fml.common.discovery.JarDiscoverer.discover(JarDiscoverer.java:83) [JarDiscoverer.class:?]

at cpw.mods.fml.common.discovery.ContainerType.findMods(ContainerType.java:42) [ContainerType.class:?]

at cpw.mods.fml.common.discovery.ModCandidate.explore(ModCandidate.java:71) [ModCandidate.class:?]

at cpw.mods.fml.common.discovery.ModDiscoverer.identifyMods(ModDiscoverer.java:131) [ModDiscoverer.class:?]

at cpw.mods.fml.common.Loader.identifyMods(Loader.java:364) [Loader.class:?]

at cpw.mods.fml.common.Loader.loadMods(Loader.java:489) [Loader.class:?]

at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:208) [FMLClientHandler.class:?]

at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:480) [bao.class:?]

at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:878) [bao.class:?]

at net.minecraft.client.main.Main.main(SourceFile:148) [Main.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_60]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_60]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_60]

at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_60]

at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]

at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]

Caused by: java.lang.NullPointerException

at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:182) ~[launchwrapper-1.12.jar:?]

... 27 more

[20:36:01] [Client thread/ERROR] [FML]: Unable to construct cpw.mods.fml.common.Mod container

java.lang.reflect.InvocationTargetException

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.7.0_60]

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) ~[?:1.7.0_60]

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.7.0_60]

at java.lang.reflect.Constructor.newInstance(Constructor.java:526) ~[?:1.7.0_60]

at cpw.mods.fml.common.ModContainerFactory.build(ModContainerFactory.java:79) [ModContainerFactory.class:?]

at cpw.mods.fml.common.discovery.JarDiscoverer.discover(JarDiscoverer.java:83) [JarDiscoverer.class:?]

at cpw.mods.fml.common.discovery.ContainerType.findMods(ContainerType.java:42) [ContainerType.class:?]

at cpw.mods.fml.common.discovery.ModCandidate.explore(ModCandidate.java:71) [ModCandidate.class:?]

at cpw.mods.fml.common.discovery.ModDiscoverer.identifyMods(ModDiscoverer.java:131) [ModDiscoverer.class:?]

at cpw.mods.fml.common.Loader.identifyMods(Loader.java:364) [Loader.class:?]

at cpw.mods.fml.common.Loader.loadMods(Loader.java:489) [Loader.class:?]

at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:208) [FMLClientHandler.class:?]

at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:480) [bao.class:?]

at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:878) [bao.class:?]

at net.minecraft.client.main.Main.main(SourceFile:148) [Main.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_60]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_60]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_60]

at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_60]

at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]

at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]

Caused by: cpw.mods.fml.common.LoaderException: java.lang.ClassNotFoundException: forge_clj.core.ClojureAdapter

 

at cpw.mods.fml.common.FMLModContainer.<init>(FMLModContainer.java:111) ~[FMLModContainer.class:?]

... 21 more

Caused by: java.lang.ClassNotFoundException: forge_clj.core.ClojureAdapter

at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191) ~[launchwrapper-1.12.jar:?]

at java.lang.ClassLoader.loadClass(ClassLoader.java:425) ~[?:1.7.0_60]

at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ~[?:1.7.0_60]

at cpw.mods.fml.common.ModClassLoader.loadClass(ModClassLoader.java:58) ~[ModClassLoader.class:?]

at java.lang.Class.forName0(Native Method) ~[?:1.7.0_60]

at java.lang.Class.forName(Class.java:270) ~[?:1.7.0_60]

at cpw.mods.fml.common.FMLModContainer.<init>(FMLModContainer.java:105) ~[FMLModContainer.class:?]

... 21 more

Caused by: java.lang.NullPointerException

at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:182) ~[launchwrapper-1.12.jar:?]

at java.lang.ClassLoader.loadClass(ClassLoader.java:425) ~[?:1.7.0_60]

at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ~[?:1.7.0_60]

at cpw.mods.fml.common.ModClassLoader.loadClass(ModClassLoader.java:58) ~[ModClassLoader.class:?]

at java.lang.Class.forName0(Native Method) ~[?:1.7.0_60]

at java.lang.Class.forName(Class.java:270) ~[?:1.7.0_60]

at cpw.mods.fml.common.FMLModContainer.<init>(FMLModContainer.java:105) ~[FMLModContainer.class:?]

... 21 more

[20:36:01] [Client thread/INFO] [FML]: Attempting to reparse the mod container testmod-1.0.jar

[20:36:01] [Client thread/ERROR] [FML]: Error constructing custom mod language adapter forge_clj.core.ClojureAdapter (referenced by yoshiquest.testmod.TestMod) (modid: test-mod)

java.lang.ClassNotFoundException: forge_clj.core.ClojureAdapter

at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:101) ~[launchwrapper-1.12.jar:?]

at java.lang.ClassLoader.loadClass(ClassLoader.java:425) ~[?:1.7.0_60]

at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ~[?:1.7.0_60]

at cpw.mods.fml.common.ModClassLoader.loadClass(ModClassLoader.java:58) ~[ModClassLoader.class:?]

at java.lang.Class.forName0(Native Method) ~[?:1.7.0_60]

at java.lang.Class.forName(Class.java:270) ~[?:1.7.0_60]

at cpw.mods.fml.common.FMLModContainer.<init>(FMLModContainer.java:105) [FMLModContainer.class:?]

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [?:1.7.0_60]

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) [?:1.7.0_60]

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [?:1.7.0_60]

at java.lang.reflect.Constructor.newInstance(Constructor.java:526) [?:1.7.0_60]

at cpw.mods.fml.common.ModContainerFactory.build(ModContainerFactory.java:79) [ModContainerFactory.class:?]

at cpw.mods.fml.common.discovery.JarDiscoverer.discover(JarDiscoverer.java:83) [JarDiscoverer.class:?]

at cpw.mods.fml.common.discovery.ContainerType.findMods(ContainerType.java:42) [ContainerType.class:?]

at cpw.mods.fml.common.discovery.ModCandidate.explore(ModCandidate.java:75) [ModCandidate.class:?]

at cpw.mods.fml.common.discovery.ModDiscoverer.identifyMods(ModDiscoverer.java:131) [ModDiscoverer.class:?]

at cpw.mods.fml.common.Loader.identifyMods(Loader.java:364) [Loader.class:?]

at cpw.mods.fml.common.Loader.loadMods(Loader.java:489) [Loader.class:?]

at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:208) [FMLClientHandler.class:?]

at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:480) [bao.class:?]

at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:878) [bao.class:?]

at net.minecraft.client.main.Main.main(SourceFile:148) [Main.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_60]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_60]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_60]

at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_60]

at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]

at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]

[20:36:01] [Client thread/ERROR] [FML]: Unable to construct cpw.mods.fml.common.Mod container

java.lang.reflect.InvocationTargetException

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.7.0_60]

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) ~[?:1.7.0_60]

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.7.0_60]

at java.lang.reflect.Constructor.newInstance(Constructor.java:526) ~[?:1.7.0_60]

at cpw.mods.fml.common.ModContainerFactory.build(ModContainerFactory.java:79) [ModContainerFactory.class:?]

at cpw.mods.fml.common.discovery.JarDiscoverer.discover(JarDiscoverer.java:83) [JarDiscoverer.class:?]

at cpw.mods.fml.common.discovery.ContainerType.findMods(ContainerType.java:42) [ContainerType.class:?]

at cpw.mods.fml.common.discovery.ModCandidate.explore(ModCandidate.java:75) [ModCandidate.class:?]

at cpw.mods.fml.common.discovery.ModDiscoverer.identifyMods(ModDiscoverer.java:131) [ModDiscoverer.class:?]

at cpw.mods.fml.common.Loader.identifyMods(Loader.java:364) [Loader.class:?]

at cpw.mods.fml.common.Loader.loadMods(Loader.java:489) [Loader.class:?]

at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:208) [FMLClientHandler.class:?]

at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:480) [bao.class:?]

at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:878) [bao.class:?]

at net.minecraft.client.main.Main.main(SourceFile:148) [Main.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_60]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_60]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_60]

at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_60]

at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]

at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]

Caused by: cpw.mods.fml.common.LoaderException: java.lang.ClassNotFoundException: forge_clj.core.ClojureAdapter

 

at cpw.mods.fml.common.FMLModContainer.<init>(FMLModContainer.java:111) ~[FMLModContainer.class:?]

... 21 more

Caused by: java.lang.ClassNotFoundException: forge_clj.core.ClojureAdapter

at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:101) ~[launchwrapper-1.12.jar:?]

at java.lang.ClassLoader.loadClass(ClassLoader.java:425) ~[?:1.7.0_60]

at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ~[?:1.7.0_60]

at cpw.mods.fml.common.ModClassLoader.loadClass(ModClassLoader.java:58) ~[ModClassLoader.class:?]

at java.lang.Class.forName0(Native Method) ~[?:1.7.0_60]

at java.lang.Class.forName(Class.java:270) ~[?:1.7.0_60]

at cpw.mods.fml.common.FMLModContainer.<init>(FMLModContainer.java:105) ~[FMLModContainer.class:?]

... 21 more

[20:36:01] [Client thread/INFO] [FML]: Forge Mod Loader has identified 3 mods to load

[20:36:01] [Client thread/INFO] [FML]: FML has found a non-mod file clojure-1.7.0.jar in your mods directory. It will now be injected into your classpath. This could severe stability issues, it should be removed if possible.

[20:36:01] [Client thread/INFO] [FML]: FML has found a non-mod file forge_clj-1.0.jar in your mods directory. It will now be injected into your classpath. This could severe stability issues, it should be removed if possible.

[20:36:01] [Client thread/INFO] [FML]: FML has found a non-mod file testmod-1.0.jar in your mods directory. It will now be injected into your classpath. This could severe stability issues, it should be removed if possible.

[20:36:01] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge] at CLIENT

[20:36:01] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge] at SERVER

[20:36:02] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge

[20:36:02] [Client thread/INFO] [FML]: Processing ObjectHolder annotations

[20:36:02] [Client thread/INFO] [FML]: Found 341 ObjectHolder annotations

[20:36:02] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations

[20:36:02] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations

[20:36:02] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0

[20:36:02] [Client thread/INFO] [FML]: Applying holder lookups

[20:36:02] [Client thread/INFO] [FML]: Holder lookups applied

[20:36:02] [Client thread/INFO] [FML]: Injecting itemstacks

[20:36:02] [Client thread/INFO] [FML]: Itemstack injection complete

[20:36:02] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:

[20:36:02] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem...

[20:36:03] [Thread-7/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL

[20:36:03] [Thread-7/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

[20:36:03] [Thread-7/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.

[20:36:03] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:

[20:36:03] [sound Library Loader/INFO]: Sound engine started

[20:36:03] [Client thread/INFO]: Created: 16x16 textures/blocks-atlas

[20:36:03] [Client thread/INFO]: Created: 16x16 textures/items-atlas

[20:36:03] [Client thread/INFO] [FML]: Injecting itemstacks

[20:36:03] [Client thread/INFO] [FML]: Itemstack injection complete

[20:36:03] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 3 mods

[20:36:03] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge

[20:36:03] [Client thread/INFO]: Created: 256x256 textures/items-atlas

[20:36:04] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas

[20:36:04] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:

[20:36:04] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down...

[20:36:04] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:importantMessage:90]:    Author: Paul Lamb, www.paulscode.com

[20:36:04] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:

[20:36:04] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:

[20:36:04] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem...

[20:36:04] [Thread-9/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL

[20:36:04] [Thread-9/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

[20:36:04] [Thread-9/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.

[20:36:05] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:

[20:36:05] [sound Library Loader/INFO]: Sound engine started

 

 

 

Note that minecraft doesn't crash. Forge simply can't find the language adapter and doesn't load the mod as a result.

Currently working on a mod to provide support for the Clojure programming language in Minecraft, check it out here.

Posted

So forge_clj.core.ClojureAdapter does exist, but forge can't find the class?

It might be a problem with underbar(_), so try removing it.

I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP)

II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.

Posted

So forge_clj.core.ClojureAdapter does exist, but forge can't find the class?

It might be a problem with underbar(_), so try removing it.

 

Doubt it, it works within the dev environment. Besides, it's important for this thing to be able to support underscores.

 

After a lot of research, it seems to be a problem with the classloader. I don't think that the mod is included in the classpath normally, and as such forge can't find the mod. It's really complicated though. It would honestly be way easier if there was a way to simply give it an instance of ILanguageAdapter directly instead of all this classloader nonsense.

 

Anyways, it seems I need to either a.) find out what the heck is wrong with the name (I doubt there's anything wrong with it since the same name is used without issue in the dev environment, and I've changed the names before as well with no effect). Or b.) figure out why it isn't included in the classpath, or how to place that specific file on the classpath.

Currently working on a mod to provide support for the Clojure programming language in Minecraft, check it out here.

Posted

Oh, yeah probably. Lemme go ahead and post them...

 

https://dl.dropboxusercontent.com/u/84398982/jarfiles.zip

 

There are three files in there. The first is clojure.jar (the compiler), the second is forge_clj.jar (the wrapper around forge), and the third is testmod.jar (a simple mod to test functionality). In a dev environment, only the last two are needed, though the problem occurs when running it with a standard minecraft installation.

 

If you need the source code as well just ask, though you might not understand it....

Currently working on a mod to provide support for the Clojure programming language in Minecraft, check it out here.

Posted

Oh dear god Clojure make horrible bytecode...

Either way the issue is you're using .'s instead of /'s

Specify the class name correctly.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Posted

Nope. Same problem.

 

New crash report if ya want it (it's pretty much the same problem, except now it crashes in the dev environment too):

 

 

 

[00:22:35] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker

[00:22:35] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker

[00:22:35] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker

[00:22:35] [main/INFO] [FML]: Forge Mod Loader version 7.99.30.1492 for Minecraft 1.7.10 loading

[00:22:35] [main/INFO] [FML]: Java is Java HotSpot 64-Bit Server VM, version 1.7.0_60, running on Mac OS X:x86_64:10.10.5, installed at /Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home/jre

[00:22:35] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker

[00:22:35] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker

[00:22:35] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker

[00:22:35] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker

[00:22:35] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper

[00:22:37] [main/INFO] [FML]: Found valid fingerprint for Minecraft Forge. Certificate fingerprint e3c3d50c7c986df74c645c0ac54639741c90a557

[00:22:37] [main/INFO] [FML]: Found valid fingerprint for Minecraft. Certificate fingerprint cd99959656f753dc28d863b46769f7f8fbaefcfc

[00:22:37] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper

[00:22:37] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker

[00:22:38] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker

[00:22:38] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker

[00:22:38] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}

[00:22:40] [main/INFO]: Setting user: yoshiquest01

[00:22:42] [main/INFO] [sTDOUT]: [net.minecraft.client.main.Main:main:144]: Completely ignored arguments: [--nativeLauncherVersion, 283]

[00:22:42] [Client thread/INFO]: LWJGL Version: 2.9.1

[00:22:43] [Client thread/INFO] [sTDOUT]: [cpw.mods.fml.client.SplashProgress:start:188]: ---- Minecraft Crash Report ----

// You're mean.

 

Time: 9/15/15 12:22 AM

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.7.10

Operating System: Mac OS X (x86_64) version 10.10.5

Java Version: 1.7.0_60, Oracle Corporation

Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation

Memory: 293018376 bytes (279 MB) / 389545984 bytes (371 MB) up to 3817865216 bytes (3641 MB)

JVM Flags: 2 total; -Xmx4G -XX:MaxPermSize=256M

AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used

IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0

FML:

GL info: ' Vendor: 'Intel Inc.' Version: '2.1 INTEL-10.6.33' Renderer: 'Intel Iris OpenGL Engine'

[00:22:43] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization

[00:22:43] [Client thread/INFO] [FML]: MinecraftForge v10.13.4.1492 Initialized

[00:22:43] [Client thread/INFO] [FML]: Replaced 183 ore recipies

[00:22:43] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization

[00:22:43] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer

[00:22:43] [Client thread/INFO] [FML]: Searching /Users/Ryan/Library/Application Support/minecraft/mods for mods

[00:22:50] [Client thread/INFO] [FML]: Attempting to reparse the mod container clojure-1.7.0.jar

[00:22:50] [Client thread/ERROR] [FML]: Error constructing custom mod language adapter forge_clj/core/ClojureAdapter (referenced by yoshiquest.testmod.Testmod) (modid: testmod)

java.lang.ClassNotFoundException: forge_clj/core/ClojureAdapter

at java.lang.Class.forName0(Native Method) ~[?:1.7.0_60]

at java.lang.Class.forName(Class.java:270) ~[?:1.7.0_60]

at cpw.mods.fml.common.FMLModContainer.<init>(FMLModContainer.java:105) [FMLModContainer.class:?]

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [?:1.7.0_60]

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) [?:1.7.0_60]

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [?:1.7.0_60]

at java.lang.reflect.Constructor.newInstance(Constructor.java:526) [?:1.7.0_60]

at cpw.mods.fml.common.ModContainerFactory.build(ModContainerFactory.java:79) [ModContainerFactory.class:?]

at cpw.mods.fml.common.discovery.JarDiscoverer.discover(JarDiscoverer.java:83) [JarDiscoverer.class:?]

at cpw.mods.fml.common.discovery.ContainerType.findMods(ContainerType.java:42) [ContainerType.class:?]

at cpw.mods.fml.common.discovery.ModCandidate.explore(ModCandidate.java:71) [ModCandidate.class:?]

at cpw.mods.fml.common.discovery.ModDiscoverer.identifyMods(ModDiscoverer.java:131) [ModDiscoverer.class:?]

at cpw.mods.fml.common.Loader.identifyMods(Loader.java:364) [Loader.class:?]

at cpw.mods.fml.common.Loader.loadMods(Loader.java:489) [Loader.class:?]

at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:208) [FMLClientHandler.class:?]

at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:480) [bao.class:?]

at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:878) [bao.class:?]

at net.minecraft.client.main.Main.main(SourceFile:148) [Main.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_60]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_60]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_60]

at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_60]

at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]

at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]

[00:22:50] [Client thread/ERROR] [FML]: Unable to construct cpw.mods.fml.common.Mod container

java.lang.reflect.InvocationTargetException

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.7.0_60]

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) ~[?:1.7.0_60]

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.7.0_60]

at java.lang.reflect.Constructor.newInstance(Constructor.java:526) ~[?:1.7.0_60]

at cpw.mods.fml.common.ModContainerFactory.build(ModContainerFactory.java:79) [ModContainerFactory.class:?]

at cpw.mods.fml.common.discovery.JarDiscoverer.discover(JarDiscoverer.java:83) [JarDiscoverer.class:?]

at cpw.mods.fml.common.discovery.ContainerType.findMods(ContainerType.java:42) [ContainerType.class:?]

at cpw.mods.fml.common.discovery.ModCandidate.explore(ModCandidate.java:71) [ModCandidate.class:?]

at cpw.mods.fml.common.discovery.ModDiscoverer.identifyMods(ModDiscoverer.java:131) [ModDiscoverer.class:?]

at cpw.mods.fml.common.Loader.identifyMods(Loader.java:364) [Loader.class:?]

at cpw.mods.fml.common.Loader.loadMods(Loader.java:489) [Loader.class:?]

at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:208) [FMLClientHandler.class:?]

at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:480) [bao.class:?]

at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:878) [bao.class:?]

at net.minecraft.client.main.Main.main(SourceFile:148) [Main.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_60]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_60]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_60]

at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_60]

at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]

at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]

Caused by: cpw.mods.fml.common.LoaderException: java.lang.ClassNotFoundException: forge_clj/core/ClojureAdapter

 

at cpw.mods.fml.common.FMLModContainer.<init>(FMLModContainer.java:111) ~[FMLModContainer.class:?]

... 21 more

Caused by: java.lang.ClassNotFoundException: forge_clj/core/ClojureAdapter

at java.lang.Class.forName0(Native Method) ~[?:1.7.0_60]

at java.lang.Class.forName(Class.java:270) ~[?:1.7.0_60]

at cpw.mods.fml.common.FMLModContainer.<init>(FMLModContainer.java:105) ~[FMLModContainer.class:?]

... 21 more

[00:22:50] [Client thread/INFO] [FML]: Attempting to reparse the mod container testmod-1.0.jar

[00:22:50] [Client thread/ERROR] [FML]: Error constructing custom mod language adapter forge_clj/core/ClojureAdapter (referenced by yoshiquest.testmod.Testmod) (modid: testmod)

java.lang.ClassNotFoundException: forge_clj/core/ClojureAdapter

at java.lang.Class.forName0(Native Method) ~[?:1.7.0_60]

at java.lang.Class.forName(Class.java:270) ~[?:1.7.0_60]

at cpw.mods.fml.common.FMLModContainer.<init>(FMLModContainer.java:105) [FMLModContainer.class:?]

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [?:1.7.0_60]

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) [?:1.7.0_60]

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [?:1.7.0_60]

at java.lang.reflect.Constructor.newInstance(Constructor.java:526) [?:1.7.0_60]

at cpw.mods.fml.common.ModContainerFactory.build(ModContainerFactory.java:79) [ModContainerFactory.class:?]

at cpw.mods.fml.common.discovery.JarDiscoverer.discover(JarDiscoverer.java:83) [JarDiscoverer.class:?]

at cpw.mods.fml.common.discovery.ContainerType.findMods(ContainerType.java:42) [ContainerType.class:?]

at cpw.mods.fml.common.discovery.ModCandidate.explore(ModCandidate.java:75) [ModCandidate.class:?]

at cpw.mods.fml.common.discovery.ModDiscoverer.identifyMods(ModDiscoverer.java:131) [ModDiscoverer.class:?]

at cpw.mods.fml.common.Loader.identifyMods(Loader.java:364) [Loader.class:?]

at cpw.mods.fml.common.Loader.loadMods(Loader.java:489) [Loader.class:?]

at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:208) [FMLClientHandler.class:?]

at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:480) [bao.class:?]

at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:878) [bao.class:?]

at net.minecraft.client.main.Main.main(SourceFile:148) [Main.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_60]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_60]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_60]

at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_60]

at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]

at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]

[00:22:50] [Client thread/ERROR] [FML]: Unable to construct cpw.mods.fml.common.Mod container

java.lang.reflect.InvocationTargetException

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.7.0_60]

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) ~[?:1.7.0_60]

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.7.0_60]

at java.lang.reflect.Constructor.newInstance(Constructor.java:526) ~[?:1.7.0_60]

at cpw.mods.fml.common.ModContainerFactory.build(ModContainerFactory.java:79) [ModContainerFactory.class:?]

at cpw.mods.fml.common.discovery.JarDiscoverer.discover(JarDiscoverer.java:83) [JarDiscoverer.class:?]

at cpw.mods.fml.common.discovery.ContainerType.findMods(ContainerType.java:42) [ContainerType.class:?]

at cpw.mods.fml.common.discovery.ModCandidate.explore(ModCandidate.java:75) [ModCandidate.class:?]

at cpw.mods.fml.common.discovery.ModDiscoverer.identifyMods(ModDiscoverer.java:131) [ModDiscoverer.class:?]

at cpw.mods.fml.common.Loader.identifyMods(Loader.java:364) [Loader.class:?]

at cpw.mods.fml.common.Loader.loadMods(Loader.java:489) [Loader.class:?]

at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:208) [FMLClientHandler.class:?]

at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:480) [bao.class:?]

at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:878) [bao.class:?]

at net.minecraft.client.main.Main.main(SourceFile:148) [Main.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_60]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_60]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_60]

at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_60]

at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]

at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]

Caused by: cpw.mods.fml.common.LoaderException: java.lang.ClassNotFoundException: forge_clj/core/ClojureAdapter

 

at cpw.mods.fml.common.FMLModContainer.<init>(FMLModContainer.java:111) ~[FMLModContainer.class:?]

... 21 more

Caused by: java.lang.ClassNotFoundException: forge_clj/core/ClojureAdapter

at java.lang.Class.forName0(Native Method) ~[?:1.7.0_60]

at java.lang.Class.forName(Class.java:270) ~[?:1.7.0_60]

at cpw.mods.fml.common.FMLModContainer.<init>(FMLModContainer.java:105) ~[FMLModContainer.class:?]

... 21 more

[00:22:50] [Client thread/INFO] [FML]: Forge Mod Loader has identified 3 mods to load

[00:22:51] [Client thread/INFO] [FML]: FML has found a non-mod file clojure-1.7.0.jar in your mods directory. It will now be injected into your classpath. This could severe stability issues, it should be removed if possible.

[00:22:51] [Client thread/INFO] [FML]: FML has found a non-mod file forge_clj-1.0.jar in your mods directory. It will now be injected into your classpath. This could severe stability issues, it should be removed if possible.

[00:22:51] [Client thread/INFO] [FML]: FML has found a non-mod file jarfiles.zip in your mods directory. It will now be injected into your classpath. This could severe stability issues, it should be removed if possible.

[00:22:51] [Client thread/INFO] [FML]: FML has found a non-mod file testmod-1.0.jar in your mods directory. It will now be injected into your classpath. This could severe stability issues, it should be removed if possible.

[00:22:51] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge] at CLIENT

[00:22:51] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge] at SERVER

[00:22:51] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge

[00:22:51] [Client thread/INFO] [FML]: Processing ObjectHolder annotations

[00:22:51] [Client thread/INFO] [FML]: Found 341 ObjectHolder annotations

[00:22:51] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations

[00:22:51] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations

[00:22:52] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0

[00:22:52] [Client thread/INFO] [FML]: Applying holder lookups

[00:22:52] [Client thread/INFO] [FML]: Holder lookups applied

[00:22:52] [Client thread/INFO] [FML]: Injecting itemstacks

[00:22:52] [Client thread/INFO] [FML]: Itemstack injection complete

[00:22:52] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:

[00:22:52] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem...

[00:22:52] [Thread-7/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL

[00:22:52] [Thread-7/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

[00:22:52] [Thread-7/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.

[00:22:53] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:

[00:22:53] [sound Library Loader/INFO]: Sound engine started

[00:22:53] [Client thread/INFO]: Created: 16x16 textures/blocks-atlas

[00:22:53] [Client thread/INFO]: Created: 16x16 textures/items-atlas

[00:22:53] [Client thread/INFO] [FML]: Injecting itemstacks

[00:22:53] [Client thread/INFO] [FML]: Itemstack injection complete

[00:22:53] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 3 mods

[00:22:53] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge

[00:22:53] [Client thread/INFO]: Created: 256x256 textures/items-atlas

[00:22:54] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas

[00:22:54] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:

[00:22:54] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down...

[00:22:54] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:importantMessage:90]:    Author: Paul Lamb, www.paulscode.com

[00:22:54] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:

[00:22:54] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:

[00:22:54] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem...

[00:22:54] [Thread-9/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL

[00:22:54] [Thread-9/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

[00:22:54] [Thread-9/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.

[00:22:55] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:

[00:22:55] [sound Library Loader/INFO]: Sound engine started

 

 

 

But yeah, I didn't think that was it. Underneath, I'm setting the ILanguageAdapter to the ClojureAdapter class via the @Mod annotation. I noticed that the string obtained from there is used by FMLModContainer, and it loads the class via Class.forName() (which takes a package name, not a path). From what I've researched, Class.forName() only fails if either the name is wrong, or the file isn't on the classpath. Maybe the issue has to do with the latter?

Currently working on a mod to provide support for the Clojure programming language in Minecraft, check it out here.

Posted

Interesting it looks like your jar containing the adapter isn't being added to the classpath until after it's trying to load. Will need to poke cpw about this as he write it all.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Posted

Interesting it looks like your jar containing the adapter isn't being added to the classpath until after it's trying to load. Will need to poke cpw about this as he write it all.

 

Ah, I figured as much. Thanks for the help.

Currently working on a mod to provide support for the Clojure programming language in Minecraft, check it out here.

Posted

Ok, let me give an update on the situation.

 

I think I've found a way to do what I want to do without having to use the ClojureAdapter at all. As such, assuming the fixes needed would require a change to Forge, I'll work on that implementation instead. If they don't and there's a way to add the jar to the classpath, I then I might use that, but over all I think the new method I've come up with will be best. Thanks for the support.

Currently working on a mod to provide support for the Clojure programming language in Minecraft, check it out here.

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

    • Version 1.19 - Forge 41.0.63 I want to create a wolf entity that I can ride, so far it seems to be working, but the problem is that when I get on the wolf, I can’t control it. I then discovered that the issue is that the server doesn’t detect that I’m riding the wolf, so I’m struggling with synchronization. However, it seems to not be working properly. As I understand it, the server receives the packet but doesn’t register it correctly. I’m a bit new to Java, and I’ll try to provide all the relevant code and prints *The comments and prints are translated by chatgpt since they were originally in Spanish* Thank you very much in advance No player is mounted, or the passenger is not a player. No player is mounted, or the passenger is not a player. No player is mounted, or the passenger is not a player. No player is mounted, or the passenger is not a player. No player is mounted, or the passenger is not a player. MountableWolfEntity package com.vals.valscraft.entity; import com.vals.valscraft.network.MountSyncPacket; import com.vals.valscraft.network.NetworkHandler; import net.minecraft.client.Minecraft; import net.minecraft.network.syncher.EntityDataAccessor; import net.minecraft.network.syncher.EntityDataSerializers; import net.minecraft.network.syncher.SynchedEntityData; import net.minecraft.server.MinecraftServer; import net.minecraft.server.level.ServerPlayer; import net.minecraft.world.entity.EntityType; import net.minecraft.world.entity.Mob; import net.minecraft.world.entity.ai.attributes.AttributeSupplier; import net.minecraft.world.entity.ai.attributes.Attributes; import net.minecraft.world.entity.animal.Wolf; import net.minecraft.world.entity.player.Player; import net.minecraft.world.entity.Entity; import net.minecraft.world.InteractionHand; import net.minecraft.world.InteractionResult; import net.minecraft.world.item.ItemStack; import net.minecraft.world.item.Items; import net.minecraft.world.level.Level; import net.minecraft.world.phys.Vec3; import net.minecraftforge.event.TickEvent; import net.minecraftforge.eventbus.api.SubscribeEvent; import net.minecraftforge.network.PacketDistributor; public class MountableWolfEntity extends Wolf { private boolean hasSaddle; private static final EntityDataAccessor<Byte> DATA_ID_FLAGS = SynchedEntityData.defineId(MountableWolfEntity.class, EntityDataSerializers.BYTE); public MountableWolfEntity(EntityType<? extends Wolf> type, Level level) { super(type, level); this.hasSaddle = false; } @Override protected void defineSynchedData() { super.defineSynchedData(); this.entityData.define(DATA_ID_FLAGS, (byte)0); } public static AttributeSupplier.Builder createAttributes() { return Wolf.createAttributes() .add(Attributes.MAX_HEALTH, 20.0) .add(Attributes.MOVEMENT_SPEED, 0.3); } @Override public InteractionResult mobInteract(Player player, InteractionHand hand) { ItemStack itemstack = player.getItemInHand(hand); if (itemstack.getItem() == Items.SADDLE && !this.hasSaddle()) { if (!player.isCreative()) { itemstack.shrink(1); } this.setSaddle(true); return InteractionResult.SUCCESS; } else if (!level.isClientSide && this.hasSaddle()) { player.startRiding(this); MountSyncPacket packet = new MountSyncPacket(true); // 'true' means the player is mounted NetworkHandler.CHANNEL.sendToServer(packet); // Ensure the server handles the packet return InteractionResult.SUCCESS; } return InteractionResult.PASS; } @Override public void travel(Vec3 travelVector) { if (this.isVehicle() && this.getControllingPassenger() instanceof Player) { System.out.println("The wolf has a passenger."); System.out.println("The passenger is a player."); Player player = (Player) this.getControllingPassenger(); // Ensure the player is the controller this.setYRot(player.getYRot()); this.yRotO = this.getYRot(); this.setXRot(player.getXRot() * 0.5F); this.setRot(this.getYRot(), this.getXRot()); this.yBodyRot = this.getYRot(); this.yHeadRot = this.yBodyRot; float forward = player.zza; float strafe = player.xxa; if (forward <= 0.0F) { forward *= 0.25F; } this.flyingSpeed = this.getSpeed() * 0.1F; this.setSpeed((float) this.getAttributeValue(Attributes.MOVEMENT_SPEED) * 1.5F); this.setDeltaMovement(new Vec3(strafe, travelVector.y, forward).scale(this.getSpeed())); this.calculateEntityAnimation(this, false); } else { // The wolf does not have a passenger or the passenger is not a player System.out.println("No player is mounted, or the passenger is not a player."); super.travel(travelVector); } } public boolean hasSaddle() { return this.hasSaddle; } public void setSaddle(boolean hasSaddle) { this.hasSaddle = hasSaddle; } @Override protected void dropEquipment() { super.dropEquipment(); if (this.hasSaddle()) { this.spawnAtLocation(Items.SADDLE); this.setSaddle(false); } } @SubscribeEvent public static void onServerTick(TickEvent.ServerTickEvent event) { if (event.phase == TickEvent.Phase.START) { MinecraftServer server = net.minecraftforge.server.ServerLifecycleHooks.getCurrentServer(); if (server != null) { for (ServerPlayer player : server.getPlayerList().getPlayers()) { if (player.isPassenger() && player.getVehicle() instanceof MountableWolfEntity) { MountableWolfEntity wolf = (MountableWolfEntity) player.getVehicle(); System.out.println("Tick: " + player.getName().getString() + " is correctly mounted on " + wolf); } } } } } private boolean lastMountedState = false; @Override public void tick() { super.tick(); if (!this.level.isClientSide) { // Only on the server boolean isMounted = this.isVehicle() && this.getControllingPassenger() instanceof Player; // Only print if the state changed if (isMounted != lastMountedState) { if (isMounted) { Player player = (Player) this.getControllingPassenger(); // Verify the passenger is a player System.out.println("Server: Player " + player.getName().getString() + " is now mounted."); } else { System.out.println("Server: The wolf no longer has a passenger."); } lastMountedState = isMounted; } } } @Override public void addPassenger(Entity passenger) { super.addPassenger(passenger); if (passenger instanceof Player) { Player player = (Player) passenger; if (!this.level.isClientSide && player instanceof ServerPlayer) { // Send the packet to the server to indicate the player is mounted NetworkHandler.CHANNEL.send(PacketDistributor.PLAYER.with(() -> (ServerPlayer) player), new MountSyncPacket(true)); } } } @Override public void removePassenger(Entity passenger) { super.removePassenger(passenger); if (passenger instanceof Player) { Player player = (Player) passenger; if (!this.level.isClientSide && player instanceof ServerPlayer) { // Send the packet to the server to indicate the player is no longer mounted NetworkHandler.CHANNEL.send(PacketDistributor.PLAYER.with(() -> (ServerPlayer) player), new MountSyncPacket(false)); } } } @Override public boolean isControlledByLocalInstance() { Entity entity = this.getControllingPassenger(); return entity instanceof Player; } @Override public void positionRider(Entity passenger) { if (this.hasPassenger(passenger)) { double xOffset = Math.cos(Math.toRadians(this.getYRot() + 90)) * 0.4; double zOffset = Math.sin(Math.toRadians(this.getYRot() + 90)) * 0.4; passenger.setPos(this.getX() + xOffset, this.getY() + this.getPassengersRidingOffset() + passenger.getMyRidingOffset(), this.getZ() + zOffset); } } } MountSyncPacket package com.vals.valscraft.network; import com.vals.valscraft.entity.MountableWolfEntity; import net.minecraft.network.FriendlyByteBuf; import net.minecraft.server.level.ServerLevel; import net.minecraft.server.level.ServerPlayer; import net.minecraft.world.entity.Entity; import net.minecraft.world.entity.player.Player; import net.minecraftforge.network.NetworkEvent; import java.util.function.Supplier; public class MountSyncPacket { private final boolean isMounted; public MountSyncPacket(boolean isMounted) { this.isMounted = isMounted; } public void encode(FriendlyByteBuf buffer) { buffer.writeBoolean(isMounted); } public static MountSyncPacket decode(FriendlyByteBuf buffer) { return new MountSyncPacket(buffer.readBoolean()); } public void handle(NetworkEvent.Context context) { context.enqueueWork(() -> { ServerPlayer player = context.getSender(); // Get the player from the context if (player != null) { // Verifies if the player has dismounted if (!isMounted) { Entity vehicle = player.getVehicle(); if (vehicle instanceof MountableWolfEntity wolf) { // Logic to remove the player as a passenger wolf.removePassenger(player); System.out.println("Server: Player " + player.getName().getString() + " is no longer mounted."); } } } }); context.setPacketHandled(true); // Marks the packet as handled } } networkHandler package com.vals.valscraft.network; import com.vals.valscraft.valscraft; import net.minecraft.resources.ResourceLocation; import net.minecraftforge.network.NetworkRegistry; import net.minecraftforge.network.simple.SimpleChannel; import net.minecraftforge.network.NetworkEvent; import java.util.function.Supplier; public class NetworkHandler { private static final String PROTOCOL_VERSION = "1"; public static final SimpleChannel CHANNEL = NetworkRegistry.newSimpleChannel( new ResourceLocation(valscraft.MODID, "main"), () -> PROTOCOL_VERSION, PROTOCOL_VERSION::equals, PROTOCOL_VERSION::equals ); public static void init() { int packetId = 0; // Register the mount synchronization packet CHANNEL.registerMessage( packetId++, MountSyncPacket.class, MountSyncPacket::encode, MountSyncPacket::decode, (msg, context) -> msg.handle(context.get()) // Get the context with context.get() ); } }  
    • Do you use features of inventory profiles next (ipnext) or is there a change without it?
    • Remove rubidium - you are already using embeddium, which is a fork of rubidium
  • Topics

×
×
  • Create New...

Important Information

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