Jump to content

tarun1998

Members
  • Posts

    49
  • Joined

  • Last visited

Everything posted by tarun1998

  1. Dude you wanna see my entire source folder. I wouldn't have been able to launch the game if the class didn't exist instead it would say ClassNotFoundDef or whatever it does. How about you move anything that extends Event into some other random package that does not have Forge written all over it and then use @ForgeSubscribe on one of your methods and test! Get your facts right before you post. It doesn't say ClassNotFound.
  2. If I move the position of any Event that is usually in forge packages to any other, the game gives me the following: java.lang.InstantiationException: net.minecraft.src.LivingHurtEvent 2012-09-11 16:40:09 [iNFO] [sTDERR] at java.lang.Class.newInstance0(Class.java:340) 2012-09-11 16:40:09 [iNFO] [sTDERR] at java.lang.Class.newInstance(Class.java:308) 2012-09-11 16:40:09 [iNFO] [sTDERR] at net.minecraftforge.event.EventBus.register(EventBus.java:68) 2012-09-11 16:40:09 [iNFO] [sTDERR] at net.minecraftforge.event.EventBus.register(EventBus.java:52) 2012-09-11 16:40:09 [iNFO] [sTDERR] at net.minecraft.src.thirstmod.ThirstMod.onLoad(ThirstMod.java:82) 2012-09-11 16:40:09 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2012-09-11 16:40:09 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 2012-09-11 16:40:09 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 2012-09-11 16:40:09 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Method.java:597) 2012-09-11 16:40:09 [iNFO] [sTDERR] at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:373) 2012-09-11 16:40:09 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2012-09-11 16:40:09 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 2012-09-11 16:40:09 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 2012-09-11 16:40:09 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Method.java:597) 2012-09-11 16:40:09 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69) 2012-09-11 16:40:09 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) 2012-09-11 16:40:09 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317) 2012-09-11 16:40:09 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300) 2012-09-11 16:40:09 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:268) 2012-09-11 16:40:09 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:124) 2012-09-11 16:40:09 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2012-09-11 16:40:09 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 2012-09-11 16:40:09 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 2012-09-11 16:40:09 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Method.java:597) 2012-09-11 16:40:09 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69) 2012-09-11 16:40:09 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) 2012-09-11 16:40:09 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317) 2012-09-11 16:40:09 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300) 2012-09-11 16:40:09 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:268) 2012-09-11 16:40:09 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:81) 2012-09-11 16:40:09 [iNFO] [sTDERR] at cpw.mods.fml.common.Loader.initializeMods(Loader.java:624) 2012-09-11 16:40:09 [iNFO] [sTDERR] at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:174) 2012-09-11 16:40:09 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.startGame(Minecraft.java:450) 2012-09-11 16:40:09 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:737) 2012-09-11 16:40:09 [iNFO] [sTDERR] at java.lang.Thread.run(Thread.java:680) 2012-09-11 16:40:09 [iNFO] [sTDERR] at net.minecraft.src.thirstmod.ThirstMod.onLoad(ThirstMod.java:82) Is where I register with Event bus. However if I move it back, the game does not crash. I hope this can be fixed if possible.
  3. I guess the only thing left for you to do is implement ISidedInventory on your tiles. It is one thing that I did but im not sure if that actually fixed it, cause I have no idea what that interface does except every tile implements it.
  4. I think you just copied all the contents of the forge download into the jar without placing the files in their respective folders manually. Anyways it says it could not find a class. Reinstall and don't drag paulscode folder straight in but, drag the codec file into the specific folder manually.
  5. There's one for MP which you should be using for each player in a game/lan. MinecraftServer minecraft = FMLClientHandler.instance().getServer(); String allNames[] = minecraft.getAllUsernames().clone(); for(int i = 0; i < allNames.length; i++) { EntityPlayerMP player = minecraft.getConfigurationManager().getPlayerForUsername(allNames[i]); }
  6. Why do you have Furnace code? Though that isn't causing the Items to disappear, I suggest you remove it. From what happened to me, there should not be any problem with your Container, GUI or TileEntity, you just need the EntityPlayer.openGui
  7. I had this bug updating my mod. Use EntityPlayer.openGui to open your gui's if you haven't already. You must also use IGUIHandler. Minecraft needs to send packets. Also make sure your container is coded well.
  8. I can perfectly decompile forge after running chmod 755 on the install.sh
  9. What type of guis, container or normal?
  10. I would like to know why if I make a class and extend Event and place it in a package that is not forge, crashes the game. It gives me a InstantiationException. However if I place the same class in one of the forge packages, game does not crash. Has it been hard-coded for the events to only work if they are in the forge package or is it a restriction with the event system. I have not looked too deeply how this event system works, only how to use it?
  11. If you want to use textures from a custom sprite sheet, then you gotta call getTextureFile. Place this in your Item/Block class: public String getTextureFile() { return "Wherever your file is stored"; }
  12. I saw that, so it does get called. Okay cool.
  13. Just another question: I was looking at CPW Iron Chest mod source, and noticed that he placed CommonProxy as his serverSide proxy. Does that mean that the CommonProxy could be called on the Client as well?
  14. Did you call setTextureFile in your block and item classes?
  15. I was just wondering, since forge now comes in Universal package, would that mean any mod's made in MCP with forge also work on the minecraft_server.jar? It's confusing cause I thought the class names on the server jar was different.
  16. Done. Thanks EntityPlayerMP player = (EntityPlayerMP) ModLoader.getMinecraftServerInstance().getConfigurationManager().playerEntityList.iterator().next();
  17. Well then whats the server entityplayer. (EntityPlayerMP) ?
  18. Made a quick test mod, it was saying it was reading and all. But no ForgeData in the dats and the value went back to zero. Never read. I know it used to work cause I used it! But now for some reason it doesn't. The code looks the same as in 1.2.5. Don't know what the problem is. I'll continue using the NBTEvent thing I made until you fix this or I find out out the make patches.
  19. I don't see ForgeData http://www.minecraftforge.net/forum/index.php?topic=1312.msg11680#new
  20. It was always returning null meaning that the statements you put in read/write nbt were never called. I did test this. Sorry I meant that the data is never written to either the "level.dat" or the player.dat when using getEntityData
  21. That didn't work either. Can't even extract the FML stuff. So i'll have to do something about it. Just want you (Lex) to know that Entity.getEntityData is not working. So I made my own NBT thingy for forge. I'll post it in the requests thingy page.
  22. Oh thats easy, thanks dude. So I make a src_base folder in mcp folder. Then I place everything inside src into it. Then I make src_work and place src into it then modified source into src_work and run update_patches.sh? I need to use setup.sh.
  23. Trying to submit a pull request but I am not being able to make a Forge .patch not including any fml code. Any help would be appreciated.
  24. If you add: .setCreativeTab(CreativeTabs.tabBlock) When you are defining your block, your block will be added to the Creative Tab menu of choice(+ search bar) Look at Creative Tabs for the specific one you want to add to. Only tested with Block.class. (Item method name may be different)
  25. Yeah okay, I'll be using it for the cauldron cause we have our own clean water cauldron. No more base classes edited!
×
×
  • Create New...

Important Information

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