Jump to content

gegy1000

Members
  • Posts

    47
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

gegy1000's Achievements

Tree Puncher

Tree Puncher (2/8)

3

Reputation

  1. Thanks for your help! mod.getMod() is still needed for field.set(), but it can be forced to be static like all other annotations.
  2. Thanks for your help! mod.getMod() is still needed for field.set(), but it can be forced to be static like all other annotations.
  3. Hello, I am trying to harvest annotation data from mods to do a similar thing to what @Mod.Instance and @SidedProxy do. I am doing this by subscribing to the FMLConstructionEvent, and using the ASM harvested data to inject the values. This has been working great in the development environment, but when in a release build, it crashes with a NPE. ModContainer#getMod() returns null for other mods, causing the crash. I'm not sure if this is caused by the fact that they are ordered differently in the development environment or if it's something else. You can view the source here: https://github.com/iLexiconn/LLibrary/blob/1.9.4/src/main/java/net/ilexiconn/llibrary/LLibrary.java It crashes here: https://github.com/iLexiconn/LLibrary/blob/1.9.4/src/main/java/net/ilexiconn/llibrary/server/config/ConfigHandler.java#L54 Thanks in advance.
  4. Hello, I am trying to harvest annotation data from mods to do a similar thing to what @Mod.Instance and @SidedProxy do. I am doing this by subscribing to the FMLConstructionEvent, and using the ASM harvested data to inject the values. This has been working great in the development environment, but when in a release build, it crashes with a NPE. ModContainer#getMod() returns null for other mods, causing the crash. I'm not sure if this is caused by the fact that they are ordered differently in the development environment or if it's something else. You can view the source here: https://github.com/iLexiconn/LLibrary/blob/1.9.4/src/main/java/net/ilexiconn/llibrary/LLibrary.java It crashes here: https://github.com/iLexiconn/LLibrary/blob/1.9.4/src/main/java/net/ilexiconn/llibrary/server/config/ConfigHandler.java#L54 Thanks in advance.
  5. http://i.imgur.com/XbxQSfH.png Is there something wrong with https://github.com/iLexiconn/LLibrary/blob/1.9/src/main/java/net/ilexiconn/llibrary/server/ServerProxy.java#L35 ?
  6. Looks like the MinecraftServer instance is null (FMLCommonHandler#getWorldThread), and sidedDelegate is an instance of FMLServerHandler but the net handler is client-side.
  7. Handle FMLConstructionEvent in the ModContainer for the coremod part of the library. It provides you with the ASMDataTable. How did you think that crash was related to your packets? Put a breakpoint in the erroring method and check what is null there. Okay, thanks! I'll have a go at it.
  8. Sorry about that. Would there be another way be to detect those annotations? Also, I got it wrong. The crash is different. (Sorry D:) This is the crash http://pastebin.com/f4fFfvH1
  9. https://github.com/TimelessModdingTeam/JurassiCraft2/blob/master/src/main/java/org/jurassicraft/client/gui/SelectDinoGui.java#L158
  10. Oh, yeah, I should probably not send it from the client. Not sure why I thought of doing it like that. I was only using getEffectiveSide for debugging, I'm not using it for this. I'm also having the same crash, however, for a different packet. It is being sent to the server from inside my GUI class, so it definitely is on the client-side. Thanks.
  11. Change your '!world.isRemote' to 'world.isRemote'. World#isRemote is true on the client-side and false on the server-side.
  12. I am trying to send a packet to the server, and I am experiencing a crash. http://pastebin.com/6uqpJGCr While researching this crash, all the problems seemed to be from sending a packet to the server, while on the server-side. I am checking the side with worldObj.isRemote on my entity, that the packet is being sent from. FMLCommonHandler#getEffectiveSide() will also have the same outcome as world.isRemote, however FMLCommonHandler#getSide() will have a different output, but using that results in a different error when using sendToAll: http://pastebin.com/vMPK9cUH This is my message sending code in my entity class: if (worldObj.isRemote) { JurassiCraft.NETWORK_WRAPPER.sendToServer(new UpdateAnimationMessage(this)); } else { AnimationHandler.INSTANCE.sendAnimationMessage(this, newAnimation); // This calls sendToAll } You can view sendAnimationMessage here https://github.com/iLexiconn/LLibrary/blob/1.9/src/main/java/net/ilexiconn/llibrary/server/animation/AnimationHandler.java#L30. Thanks in advance.
  13. I have tried to use the default mappings, clear cache and remove the IntelliJ resources fix, the problem still persists.
  14. Hi When I try to use gradle build, it gives me this error: "java.util.zip.ZipException: duplicate entry: mcmod.info" I decided to check if there was an actual duplicate in the build jar, and there was. I checked some more, and found all the files were duplicated. So I removed the build.gradle, and got the error on another file. We have recently updated to the latest forge, this might be the problem but I'm not sure. Here is the build.gradle: "buildscript { repositories { maven { url "https://plugins.gradle.org/m2/" } } dependencies { classpath "gradle.plugin.net.minecraftforge.gradle:ForgeGradle:2.0.2" } } apply plugin: "net.minecraftforge.gradle.forge" version = "2.0.0-pre" group = "net.timeless.jurassicraft" archivesBaseName = "JurassiCraft" sourceCompatibility = targetCompatibility = "1.7" minecraft { version = "11.14.3.1552" runDir = "minecraft" replace '${version}', project.version mappings = "snapshot_20151107" } processResources { inputs.property "version", project.version inputs.property "mcversion", project.minecraft.version from(sourceSets.main.resources.srcDirs) { include 'mcmod.info' expand 'version': project.version, 'mcversion': project.minecraft.version } from(sourceSets.main.resources.srcDirs) { exclude 'mcmod.info' } } sourceSets { main { output.resourcesDir = output.classesDir } }"
  15. Yes - I know that, but I was wondering if Minecraft had something built into it that copies data from tileentity to itemstack. Anyway, I'll just write that code manually then.
×
×
  • Create New...

Important Information

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