Jump to content

deadrecon98

Forge Modder
  • Posts

    316
  • Joined

Everything posted by deadrecon98

  1. Apparently the EntityPlayerExtended class that I have created is not updating the data properly. I only have it sync whenever data changes so it's not due to the data in a state of change. For some reason the client never recieves the data. Here are a few classes to look into. I'm not really sure where the issue could be. (Also ignore my bad server packet system) EventManager# http://bit.ly/1UeWkGP EntityPlayerExtended# http://bit.ly/1GT6lPQ ClientPacketAndManager# http://bit.ly/1LYoTCs You can view the rest of the source if you click one of the links above. I have uploaded the entire source into a git repo. Thanks to anyone who can help, this really is something that I don't understand too well.
  2. i've literally taken the debug code from here https://github.com/MinecraftForge/MinecraftForge/blob/master/src/test/java/net/minecraftforge/debug/ModelLoaderRegistryDebug.java I have removed a few of the classes that were causing model errors but that's it. Edit: It worked perfectly until I added my own model into it.
  3. I've managed to get the tutorial working but when I go to put my model in it gives me an error. Note, I just overrode the previous model. [16:16:43] [Client thread/ERROR] [FML]: No root mesh in model forgedebugmodelloaderregistry:models/block/chest.b3d and no mesh name in location, skipping Any ideas?
  4. I'm not entirely sure how to convert something to b3d. I have a model in blender but I can't find an extension called .b3d and there really isn't all that much documentation on it. Am I looking at the wrong stuff? I also found this (https://github.com/MinecraftForge/...ModelLoaderRegistryDebug.java) which is supposed to be a loader for it but again I don't know what file types I am dealing with here.
  5. I have looked everywhere for help on how to use this but every bit of information is either incomplete or missing all together. Even the forge tutorial on it references classes that no longer exist! Has anyone been successful in this and is willing to help me out?
  6. Oh, I didn't realize that it had no idea what the obfuscated names were. Thank you.
  7. https://github.com/deadrecon98/Runes-of-Altura/blob/master/main/java/com/Cyphereion/RunesOfAltura/Manager/CraftManager.java
  8. For some reason every time I try to run the mod (with the minecraft client) it crashes but in the dev environment it works fine. Crash Report ---- Minecraft Crash Report ---- // Shall we play a game? Time: 3/1/15 6:03 PM Description: There was a severe problem during mod loading that has caused the game to fail cpw.mods.fml.common.LoaderException: java.lang.ExceptionInInitializerError at cpw.mods.fml.common.LoadController.transition(LoadController.java:162) at cpw.mods.fml.common.Loader.initializeMods(Loader.java:692) at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:288) at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:541) at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:867) at net.minecraft.client.main.Main.main(SourceFile:148) 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 net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) Caused by: java.lang.ExceptionInInitializerError at com.Cyphereion.RunesOfAltura.Manager.ObjectManager.registerCraftManagerRecipe(ObjectManager.java:169) at com.Cyphereion.RunesOfAltura.Manager.ObjectManager.registerObjects(ObjectManager.java:124) at com.Cyphereion.RunesOfAltura.Manager.ObjectManager.loadItems(ObjectManager.java:98) at com.Cyphereion.RunesOfAltura.RunesOfAltura.init(RunesOfAltura.java:70) 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 cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513) 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.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187) 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.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118) at cpw.mods.fml.common.Loader.initializeMods(Loader.java:691) ... 10 more Caused by: cpw.mods.fml.relauncher.ReflectionHelper$UnableToFindFieldException: java.lang.NoSuchFieldException: eventHandler at cpw.mods.fml.relauncher.ReflectionHelper.findField(ReflectionHelper.java:94) at com.Cyphereion.RunesOfAltura.Manager.CraftManager.<clinit>(CraftManager.java:76) ... 41 more Caused by: java.lang.NoSuchFieldException: eventHandler at java.lang.Class.getDeclaredField(Unknown Source) at cpw.mods.fml.relauncher.ReflectionHelper.findField(ReflectionHelper.java:85) ... 42 more 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: Windows 7 (amd64) version 6.1 Java Version: 1.8.0_25, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 848811608 bytes (809 MB) / 1060372480 bytes (1011 MB) up to 1060372480 bytes (1011 MB) JVM Flags: 6 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx1G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M 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: MCP v9.05 FML v7.10.85.1230 Minecraft Forge 10.13.2.1230 5 mods loaded, 5 mods active mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized FML{7.10.85.1230} [Forge Mod Loader] (forge-1.7.10-10.13.2.1230.jar) Unloaded->Constructed->Pre-initialized->Initialized Forge{10.13.2.1230} [Minecraft Forge] (forge-1.7.10-10.13.2.1230.jar) Unloaded->Constructed->Pre-initialized->Initialized CustomLanPort{0.0.1} [CustomLanPort] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized RoA{1.0.0.2} [Runes of Altura] (Runes of Altura-1.7.10-1.0.0.2.jar) Unloaded->Constructed->Pre-initialized->Errored The code it points to 166:public static void registerCraftManagerRecipe(){ 167:List<IRecipe> recipes = CraftingManager.getInstance().getRecipeList(); 168:IRecipe recipe = recipes.remove(recipes.size() - 1); 169:GameRegistry.addRecipe( 170: new CraftManager( 171: recipe)); } More code can be found here.
  9. Why are you removing the recipe like that? Just remove it immediately after you make the original recipe.
  10. Oh god dude, these are code forums, not poetry forums so I am not going to take the time to read all of that. It seems that you want to use the hunger bar as a stamina bar. Just get the hunger event from your overlay and cancel it then add your own bar. You can get the data from EntityPlayer#getFoodStats.
  11. Yes there is! It is a relatively new site called www.google.com. This site can answer almost any question you put into it!
  12. Use a tick handler and check the players pos from there?
  13. Use List CraftingManager.getInstance().getRecipeList.remove(CraftingManager.getInstance().getRecipeList.size() - 1);
  14. What in the world? Why are you creating a new model? You said you wanted to change the rotation not make a new one!
  15. Explosion is explosion, not fireball. If you really need it to track as the fireball then write it in yourself.
  16. Explosion is explosion, not fireball. If you really need it to track as the fireball then write it in yourself.
  17. You could just get the block list and remove the vanilla dirt block and then substitute it with your own. Just make sure to re-set the dirt variable (dirt = new Dirt()) so that other mods don't run into an error.
  18. Like I said, you need to write your own code for this. Use IExtendedEntityProperties it's called and then use that to save the coordinates.
  19. Look for the help command and try to use it's code. Otherwise your just out of luck. Also why are you creating a set-home command with forge? This sounds like more of a Bukkit thing...
  20. This really is just basic java.
  21. Umm.. This world.setSpawnLocation(x, y, z); re-sets it for the entire world. Try to set it for the player specifically. You might have to write your own code for this.
  22. Uhh, he just told you how.
  23. Item.setMaxDamage and onItemRightClick. Nuff' said.
  24. They both do the exact same thing.
  25. Send the crash report and the entire class.
×
×
  • Create New...

Important Information

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