Textures

    • Official Post

    As of build 641 IC2 can dump textures from inside the game into png files.


    The command is /ic2 debug dumpTextures <name> <size>.
    - name: Game registry name, e.g. IC2:blockMachine.
    The name can be optionally followed by @meta-data specification, e.g. IC2:blockMachine@0. If it isn't specified IC2 will try all consecutive meta data values until either the item yields no translated name, one it has already seen or an error occurs.
    There's also support for wildcards (*) when specifying the name, e.g. IC2:* will dump (almost) everything from IC2.
    - size: Size of the output texture, in pixels. This can be arbitrary as long as it's not exceeding your mc window resolution, but I assume sizes somewhat related to the original texture size look better.


    The name format is Sprite_<modid>:<translated name>_size.png. This way you can set your language to en_US and should get well organized names for use with wiki templates.


    For the sizes I'd suggest trying something more suited for modern higher resolution displays, instead of keeping to the old ones, e.g.:
    - 192-256 px in the block/item page
    - 48-64 px in recipes
    - 16-24 px in the menu

    • Official Post

    Thanks Player, this will make my life so much easier ;) Would there be anyway to just get the blocks from a mod, or would I just have to get everything and go through and delete all the items?


    And sizing wise, right now the menu is 16x16, crafting 32x32 and it seems to vary for block pages.


    How does it deal with things like grass and leaves which have a grey texture, and have the colour added depending on biome?

    145 Mods isn't too many. 9 types of copper and 8 types of tin aren't too many. 3 types of coffee though?

    I know that you believe that you understood what you think I said, but I am not sure you realise that what you read was not what I meant.


    ---- Minecraft Crash Report ----
    // I just don't know what went wrong :(


    I see this too much.

    • Official Post

    It renders using the normal mc inventory item renderer as used by all the gui slots. Thus even the "blocks" are really just items. For most of IC2's blocks, which commonly have a name like blockElectric, specifying IC2:block* should catch most.


    Regarding the sizes, as I said previously, I'd be quite nice to go a good bit higher resolution on everything. We have plenty of screen space and esp. the 3d blocks are much easier to see if they are larger. Larger textures also look better of course.