Jump to content

Kenshin

Members
  • Posts

    3
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

Kenshin's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Ok, I fixed it! It turns out the file structure wasn't the problem (although i'll stick to the "one mod, one project" thing, just to avoid future issues), but my dumbness. I'll explain it, just in case someone else does the same mistake. In the BlockDD class i wrote: I should have used: Why do i did this? Because i copied the return statement from the getUnlocalizedName method and forgot to change that bit. Getting funny things like this one, from the forge log: Which i believe it was causing the "weird domain change". So, yeah, gg for me and remember: be very careful when copy/pasting.
  2. At first, i tried to put everything where the example mod was (main/java, /main/resources), just by common sense, but then i noticed that eclipse wasn't showing me the import errors or so i thought , so i decided to create a separate project. Oh, well, i guess i should've been more patient; I'll try again. And thank you very much, sir, for your time and your response! Though i'm still wondering why the item texture worked perfectly well but the block one didn't. Cheers!
  3. Hi all. I've got a problem with some missing textures. The thing is: minecraft changes the path of my mod while trying to load a texture block. It works for items, but not for blocks. Example: For items i have this path: .../assets/dwarvendrills/textures/items/cobblestoneDrill.png and i get: dwarvendrills:textures/items/cobblestoneDrill.png For blocks i have: .../assets/dwarvendrills/textures/blocks/apprenticeMiner.png and i get: minecraft:textures/blocks/apprenticeMiner.png <--- which leads to a file not found exception, changing it for the purple-black texture. The directory structure is as follows: .. |_ src |_ dwarvendrills |_ assets |_dwarvendrills |_lang |_models |_sounds |_textures |_blocks |_apprenticeMiner.png |_items |_cobblestoneDrill.png |_ net |_ mcmod.info i have a Reference class which has the modid as a constant: public static final String MOD_ID = "dwarvendrills"; in the same package, i've got a Texture class with another constant: public class final String RESOURCE_PREFIX = Reference.MOD_ID.toLowerCase() + ":"; Now, i have a generic class that registers the icon for the items: ItemsDD and another one for blocks, which is pretty much a copy of ItemsDD: BlocksDD I know there are other methods to set the texure, like setTextureName() or something like that, but this one should work, 'cause i've seen it working properly. Then we have the ApprenticeBlock class: Of course, the blocks and items are intialized and registered accordingly. I've tried to debug minecraft step by step with eclipse. I've seen that, at first, it stablishes the domain correctly "dwarvendrills", and, in fact, the texture of the "cobblestone drill" item works fine, but when it tries to load the block's texture the domain resets, or falls back to "minecraft" at some unknown point. So i hope you guys can help me to figured out where's the problem; that would be very nice. ^^ BTW: i don't think capitalization is the problem here, since i've only used it in class names and in second words of png files and unlocalized names, and since i've copy unlocalized names and pasted it in the png files, like pretty much every other name, i don't think is a misspelling issue. If you need more information, please do tell me. Forge Version: 1.7.10-10.13.0.1180
×
×
  • Create New...

Important Information

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