Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

yoshiquest

Members
  • Joined

  • Last visited

Everything posted by yoshiquest

  1. 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....
  2. 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.
  3. 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.
  4. I separated the two mods. It still can't find it.
  5. 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.
  6. 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?
  7. 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?
  8. 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.
  9. 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.

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.