Jump to content

sequituri

Forge Modder
  • Posts

    669
  • Joined

  • Last visited

Posts posted by sequituri

  1. The error log indicates that you have tried to downcast a vanilla furnace into your own class. Downcasting is not allowed unless you are holding an instance of the proper class or of its subclasses. In this case the TileEntityFurnace is the vanilla one and it cannot be cast into a subclass (your own class). You If you are wrapping a vanilla class, you have to construct your class and pass that as the instance to place instead of the vanilla one.

  2. Gradle projects expect the sources for your project in the folder hierarchy rooted at [PROJECT_HOME]/src/main/java and the assets and assets and resources at [PROJECT_HOME]/src/make/resources.;

     

    It puts the final jar final in [PROJECT_HOME]/build/libs

     

    As long as that is where you stuff is, you're okay. Otherwise, you might need to learn some Gradle and Groovy to modify the sourceSets and such.

     

    Easier to use the premade method.

  3. Look, OP. Doing it that way creates a huge chunk of memory in the dynamic heap (space in your RAM mamory) for every single 'new XYZ(...)' unless that class is trivial, which Block is not. About to time to fill one chunk of space with mushroom block, you have eaten up 16*16*(sizeof HugeMushRoomBlock) * height of blocks...

     

    Yeah, a couple chunks and you are done! So, like everyone says, "Don't do that." Learn to code the minecraft way.

  4. As to whether overriding methods have to return same type as parent, the answer is no, a more specific type is allowed here as well.

     

    See http://docs.oracle.com/javase/specs/jls/se7/html/jls-8.html#jls-8.4.5

     

    However, I think the real problem for the OP is that the Deobjuscating remapper cannot figure out his class hierarchy and went into a recursive loop tracing parents. Obviously then, somewhere the code has a superclass recursion. I just do not see it.

     

    The first thing I would do is rename all those fields in ModBlocks (so they don't resemble class names) and make them standard case - start with lower case!

  5. The new launcher uses profiles for each particular game - some with forge, some without, some with 1.7.2 some with another version. Each one allows you to specify the game folder so each mod folder runs with the version of minecraft you pick.

     

    Check the button [edit profile] and look for yourself.

  6. goldRod = new Item().setUnlocalizedName("goldRod").setCreativeTab(CreativeTabs.tabMaterials).setTextureName("pplus:goldRod").setMaxStackSize(64);
    

     

    Rather than try to use the base class Item, why not create your own Item class derived from Item. Also, register your new Item class.

     

     

  7. For the love of all that is good, do not break all the standards of good java coding practice.

     

    Package names do not contains uppercase letters:

    package KitchenCraft.MainClass.CounterProperties;
    

     

    Try to follow that conventions already established. e.g. "youruniqueclassifier.modnameorid.subpackage"

     

    And if you have any internet domain you own, that makes a perfect uniqueclassifier.

     

    Manifest constants are all uppercase: MODID

    Classes are capitalized: MyClass

    methods and fields are camel-cased: theInteractor, or theFloat, or myWitdh

  8. I mean "furnace inventory"

     

    I have an item. When i rightclick, inventory opens (container) . All player movement is normally blocked. But i need it to be not blocked.

     

    I know i could make smth like a HUD that shows on rightclick, but i want vanilla to maintain all container/gui, mouse clicking, itemstack grabbing stuff .............., it's too hard to make !

     

    Well, movement with WASD only allows forward, backward, and strafe left and right. Turning and looking up/down/right/left requires a captive mouse, so you cannot have both at the same time. At least without a major rework of the movement code.

     

    If you want to get into that, I can't help. But, I'd advise against it because users may become very disoriented.

  9. I'm thinking the OP might be talking about an active HUD... I could be wrong. It would allow clicks and such?

     

    Perhaps the problem of the cursor always being centered in the visual field might render such a HUD useless (at least for Mouse clicks). If you can't use mouse lick in the "GUI" then in what way would the player interact with it while still being able to move about?

  10. Check out your mods. Dalek Mod in particular.

     

      FML{7.2.116.1024} [Forge Mod Loader] (forge-1.7.2-10.12.0.1024.jar) Unloaded->Constructed

      Forge{10.12.0.1024} [Minecraft Forge] (forge-1.7.2-10.12.0.1024.jar) Unloaded->Constructed

      BiomesOPlenty{2.0.0} [biomes O' Plenty] (BiomesOPlenty-1.7.2-2.0.0.686-universal.jar) Unloaded->Constructed

      DalekMod{10.21} [DalekMod] (Dalek-Mod-1.6.4-forge.zip) Unloaded

      Launched Version: 1.7.2-Forge10.12.0.1024

     

    All of the mods have to be for the proper version of minecraft and forge to keep from crashing. You cannot put a 1.6.4 mod in 1.7.2 minecraft and expect goodness.

  11. After looking through the source for net.minecraft.world.storage.WorldInfo class, I can say for certain that this function

    player.worldObj.getWorldInfo().getNBTTagCompound();
    

    creates and returns a new NBT compound object (loaded with current world info, and the {player: NBTCompound} added), if does not in any way modify the worldInfo object no matter what is done to it, nor is it saved at any point.

     

    However, any changes made to the original playerTag should be saved in the course of world saves.

  12. From your pastbin:

    1754.13:31:29.517 [DEBUG] [org.gradle.api.Project] Error occurred during initialization of VM

    1755.Could not reserve enough space for object heap

    1756.

    1757.13:31:29.520 [ERROR] [system.err] Error: Could not create the Java Virtual Machine.

    1758.13:31:29.547 [ERROR] [system.err] Error: A fatal exception has occurred. Program will exit.

     

    It seems that heap space is a problem for quite a few people, as far as I can see. I think there was another topic or two where this specific issue is discussed and possibly resolved. I think it had to do with giving gradle more heap space - On a 32-bit machine, I dunno how much is possible - for the decompile.

  13. It looks like you are trying to manipulate a locked cache through gradle. A locked cache should only be possible if another application opened it and crashed??? Or another application is still using it.

    Caused by: java.net.BindException: Permission denied
    at org.gradle.cache.internal.FileLockCommunicator.<init>(FileLockCommunicator.java:37)

    I'd consider it a gradle bug, but it might just be user error.

     

    Have you tried deleting your .gradle folder and rerunning the command?

×
×
  • Create New...

Important Information

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