Jump to content
Search In
  • More options...
Find results that contain...
Find results in...


  • Posts

  • Joined

  • Last visited


  • Gender
  • Personal Text
    I am new!

Xie's Achievements

Tree Puncher

Tree Puncher (2/8)



  1. Cool, that's what I needed to know. Thanks.
  2. Sorry, I should have framed my question better. My mod doesn't come with any textures built in, you install whatever content you like and it gets dynamically added at runtime. In the past users installed content for my mod (plain text and textures) by copying it into ./mods/Xie/. So I was hoping for a way to refer to textures not inside the .jar or .zip. It's all good, if I can't figure it out we'll just have to install content files into the mod zip instead. Cheers for the quick reply.
  3. I'm having a problem with dynamic pathing for texture files. For example, say I have a bunch of textures in .minecraft/mods/Xie/... somewhere, but I don't know where they'll be until runtime, and I don't want to have to cram them all into the minecraft.jar. In the past, I was able to provide the path relative to the mod .zip file, and the class loader found it. Is this still the case and I'm a total noob, or is there another way and I'm only slightly noob? Apologies if this question has been answered somewhere else, I did look, promise. Also I love the new Forge, keep up the good work
  4. It's easier code-wise just to load the image into memory directly from the URL rather than downloading, saving then reading locally. However, the latter is probably the better implementation in the long run, since you only need to do it once, and it'll save everyone some bandwidth. So in conclusion FINE, I'll do it your way Cheers for the responses. Well I've only done it for blocks and items, not for mobs, but assuming it's similar all you do is supply a buffered image created from a URL resource: BufferedImage image = ImageIO.read(new URL(urlString)); Then when the mod loads it reads the image into memory from the URL rather than from a local file.
  5. I was wondering if it'd be worth adding URL support for textures to Forge. e.g. instead of specifying "customblocks.png" for your mod's sprite sheet, you can instead specifiy "http://me.net/customblocks.png". That way you don't have to bundle/update your textures in your mod's downloads, you just need to maintain an online copy. Also for mods that allow custom user content (e.g. mine :3) it makes it easier to support server-side content configuration, because you wouldn't need to transmit the images to the client, you just need to send the URL. I've added URL support for single textures to Xie's Mod, but support for sprite sheets can be done with about 8 lines of code in RenderEngine... Not sure if posting code is appropriate here, so let me know if anyone's interested
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.