Yes, this mod only modifies 4 of the base Gui classes, none of which forge mess with, so this mod works very well with Forge, and with the new GuiAPI link I did, no need to even patch for that.
Never realised that MOAPI was Forge compatible! Just tried it, with your MC My Way mod, with Forge (which which has Forge Mod Loader bundled with it). No need for standard ModLoader at all
Now I can try so many more mods, yay!
Rollback Post to RevisionRollBack
Have a mod with options? Mod Options API is the API for you. Let your users configure your mod options with ease.
You might be thinking I'm dumber than a sack of rocks, but while these instructions may be sufficient for experienced users, I can't seem to figure it out the installation. For instance, I havn't precisely figured out where the files included in the download need to go, and I can't figure out how to make new options because the instructions on "how to use moapi" do not say where that command needs to be typed: in game, out of game by editing a file, etc. In trying to figure out what went wrong with my install, I can't rule out that I didn't put certain files wrong places since I'm not sure how to interpret the instructions. The quality of instructions on previous posts, such as 1.2.5, were quite good.
Sorry, I will try to update the instructions sometime soon.
The files included in the download go in your minecraft JAR file. There is nothing for you to do beyond that, whatever mod you are using that uses the MOAPI takes care of calling it. The end user accesses the options through the options menu within minecraft.
You might be thinking I'm dumber than a sack of rocks, but while these instructions may be sufficient for experienced users, I can't seem to figure it out the installation. For instance, I havn't precisely figured out where the files included in the download need to go, and I can't figure out how to make new options because the instructions on "how to use moapi" do not say where that command needs to be typed: in game, out of game by editing a file, etc. In trying to figure out what went wrong with my install, I can't rule out that I didn't put certain files wrong places since I'm not sure how to interpret the instructions. The quality of instructions on previous posts, such as 1.2.5, were quite good.
Rollback Post to RevisionRollBack
Have a mod with options? Mod Options API is the API for you. Let your users configure your mod options with ease.
No mods are updated yet, so it won't do much, but it's ready.
Users won't notice any changes, but for developers the package name changed. It's now moapi.api for the api itself, moapi.clientgui for the classes to interface with the GUI in the client, and there is/will be a moapi.servergui for the classes to interface with the server GUI for a server version. The moapi.api has been made GUI neutral so that the same API can be used in both the client and server versions.
Rollback Post to RevisionRollBack
Have a mod with options? Mod Options API is the API for you. Let your users configure your mod options with ease.
Oh sorry.
pixelmon (a Pokemon mod) normally on pixelmon when you start the mod you will get no normal mobs spawning and only the Pokemon there is a config option to allow normal mobs to spawn. So can i change that with this mod?
That was what i was asking
Sorry, only if the author of the mod in question uses this mod to make the options available to the users. This is an API to allow mods to make their options easy to use, but they have to write their code to use the API.
Rollback Post to RevisionRollBack
Have a mod with options? Mod Options API is the API for you. Let your users configure your mod options with ease.
Does this mod work with a server yet? Because I put it in the server "mods" folder and got this:
java.lang.NoClassDefFoundError: net/minecraft/client/Minecraft
at mod_moapi.<clinit>(mod_moapi.java:12)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at cpw.mods.fml.common.ModClassLoader.loadBaseModClass(ModClassLoader.java:87)
at cpw.mods.fml.common.modloader.ModLoaderModContainer.constructMod(ModLoaderModContainer.java:489)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
at com.google.common.eventbus.EventBus.post(EventBus.java:268)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:140)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
at com.google.common.eventbus.EventBus.post(EventBus.java:268)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:83)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:478)
at cpw.mods.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:86)
at cpw.mods.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:345)
at ho.c(DedicatedServer.java:64)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:458)
at fy.run(SourceFile:849)
Caused by: java.lang.ClassNotFoundException: net.minecraft.client.Minecraft
at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:179)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 31 more
Caused by: java.lang.RuntimeException: Attempted to load class net/minecraft/client/Minecraft for invalid side SERVER
at cpw.mods.fml.common.asm.transformers.SideTransformer.transform(SideTransformer.java:38)
at cpw.mods.fml.relauncher.RelaunchClassLoader.runTransformers(RelaunchClassLoader.java:222)
at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:171)
... 33 more
No, it does not work on the server yet, that is what is holding up the update for 1.4.7. I am currently reworking the API to make it work on the client and the server.
I am amazed Forge tried to load it at all, since it is a ModLoader mod file, which means client only.
Does this mod work with a server yet? Because I put it in the server "mods" folder and got this:
java.lang.NoClassDefFoundError: net/minecraft/client/Minecraft
at mod_moapi.<clinit>(mod_moapi.java:12)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at cpw.mods.fml.common.ModClassLoader.loadBaseModClass(ModClassLoader.java:87)
at cpw.mods.fml.common.modloader.ModLoaderModContainer.constructMod(ModLoaderModContainer.java:489)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
at com.google.common.eventbus.EventBus.post(EventBus.java:268)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:140)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
at com.google.common.eventbus.EventBus.post(EventBus.java:268)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:83)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:478)
at cpw.mods.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:86)
at cpw.mods.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:345)
at ho.c(DedicatedServer.java:64)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:458)
at fy.run(SourceFile:849)
Caused by: java.lang.ClassNotFoundException: net.minecraft.client.Minecraft
at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:179)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 31 more
Caused by: java.lang.RuntimeException: Attempted to load class net/minecraft/client/Minecraft for invalid side SERVER
at cpw.mods.fml.common.asm.transformers.SideTransformer.transform(SideTransformer.java:38)
at cpw.mods.fml.relauncher.RelaunchClassLoader.runTransformers(RelaunchClassLoader.java:222)
at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:171)
... 33 more
Rollback Post to RevisionRollBack
Have a mod with options? Mod Options API is the API for you. Let your users configure your mod options with ease.
I actually have the 1.5 version of this mostly done, just bug testing. The changes were pretty extensive since I changed it to work on the server as well as the client. Just a matter of making sure it is mostly bug free before posting it.
First, this is an API, it's for other mods to use, generally APIs do not require pictures. Second, if you look there are screenshots posted, and even clearly labeled as such.
Sorry, that is unfortunately common, MCP changes method names pretty often, sometimes randomly. I have pushed a new version of ServerGUI that has the 1.5.2 method names. Hopefully that will deal with the issue.
Sorry, that is unfortunately common, MCP changes method names pretty often, sometimes randomly. I have pushed a new version of ServerGUI that has the 1.5.2 method names. Hopefully that will deal with the issue.
I understand.
What I don't understand is why this class is a copy of another ? Is it supposed to replace Mojang "ServerGUI" class ?
Edit: Anyway, my update of NatureOverhaul now supports this API in its latest release.
Currently working on a server version of this API as well. What other features would people like to see included in future versions?
The files included in the download go in your minecraft JAR file. There is nothing for you to do beyond that, whatever mod you are using that uses the MOAPI takes care of calling it. The end user accesses the options through the options menu within minecraft.
No mods are updated yet, so it won't do much, but it's ready.
Users won't notice any changes, but for developers the package name changed. It's now moapi.api for the api itself, moapi.clientgui for the classes to interface with the GUI in the client, and there is/will be a moapi.servergui for the classes to interface with the server GUI for a server version. The moapi.api has been made GUI neutral so that the same API can be used in both the client and server versions.
Ummm, huh? Can you please restate your question in a different way. I am not sure what you are asking here.
Sorry, only if the author of the mod in question uses this mod to make the options available to the users. This is an API to allow mods to make their options easy to use, but they have to write their code to use the API.
java.lang.NoClassDefFoundError: net/minecraft/client/Minecraft
at mod_moapi.<clinit>(mod_moapi.java:12)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at cpw.mods.fml.common.ModClassLoader.loadBaseModClass(ModClassLoader.java:87)
at cpw.mods.fml.common.modloader.ModLoaderModContainer.constructMod(ModLoaderModContainer.java:489)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
at com.google.common.eventbus.EventBus.post(EventBus.java:268)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:140)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
at com.google.common.eventbus.EventBus.post(EventBus.java:268)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:83)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:478)
at cpw.mods.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:86)
at cpw.mods.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:345)
at ho.c(DedicatedServer.java:64)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:458)
at fy.run(SourceFile:849)
Caused by: java.lang.ClassNotFoundException: net.minecraft.client.Minecraft
at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:179)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 31 more
Caused by: java.lang.RuntimeException: Attempted to load class net/minecraft/client/Minecraft for invalid side SERVER
at cpw.mods.fml.common.asm.transformers.SideTransformer.transform(SideTransformer.java:38)
at cpw.mods.fml.relauncher.RelaunchClassLoader.runTransformers(RelaunchClassLoader.java:222)
at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:171)
... 33 more
I am amazed Forge tried to load it at all, since it is a ModLoader mod file, which means client only.
Probably playing too much flatcore.
Hopefully I won't have to ask for any changes in your API.
I wish you luck with the updates (especially server side)
Are your sources on github up-to-date ?
I encountered a few errors in ServerGUI class.
I understand.
What I don't understand is why this class is a copy of another ? Is it supposed to replace Mojang "ServerGUI" class ?
Edit: Anyway, my update of NatureOverhaul now supports this API in its latest release.