Everything posted by yoshiquest
-
Forge not picking up a class when run outside of dev environment
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....
-
Forge not picking up a class when run outside of dev environment
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.
-
Forge not picking up a class when run outside of dev environment
Well, if you insist. I don't think it'll be that helpful but: Note that minecraft doesn't crash. Forge simply can't find the language adapter and doesn't load the mod as a result.
-
Forge not picking up a class when run outside of dev environment
I separated the two mods. It still can't find it.
-
Forge not picking up a class when run outside of dev environment
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.
-
Forge not picking up a class when run outside of dev environment
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?
-
Description of Implementing ILanguageAdapter
Hmm. I'm not entirely sure how I'd implement this.... Is there a way to add proxies to a mod, without using the field annotation?
-
Description of Implementing ILanguageAdapter
Could you explain at least what setInternalProxies does? The java implementation of it is empty, and I don't know anything about scala interop, so I can't understand their implementation.
-
Description of Implementing ILanguageAdapter
Hello, I've been working on adding support for the clojure programming language to Minecraft Forge. I already have some code up that creates a basic mod, thanks to Clojure supporting annotations for methods and classes. However, at least with the function I'm using, field annotations are not supported. As such, I can't support proxies, or at least not in the specified methods. As such, I'd like a description of what the methods in ILanguageAdapter do, so that I can implement it for Clojure. In particular, I'd like a description of setProxy and setInternalProxies. If this isn't a viable option, an alternative way to specify proxies would be nice.
IPS spam blocked by CleanTalk.