Jump to content

[Resolved :)] Armor not rendering properly


chimera27

Recommended Posts

I am having trouble getting my armor textures to render, for whatever reason, minecraft is saying that the file is not found, when the file is in the folder it is saying it's missing from :/ I have tried putting it in many different folders, made sure it is all lowercase, and made sure it's in assets/modID/textures/models/armor/. I have absolutely no idea why it's not finding the textures! If anyone knows what i'm doing wrong, please, any help would be greatly appreciated!

Here's my main class:

 

 

package project.main;

 

import java.lang.reflect.Field;

import java.lang.reflect.Modifier;

 

import net.minecraft.block.Block;

import net.minecraft.client.Minecraft;

import net.minecraft.creativetab.CreativeTabs;

import net.minecraft.entity.Entity;

import net.minecraft.entity.SharedMonsterAttributes;

import net.minecraft.entity.player.EntityPlayer;

import net.minecraft.item.EnumArmorMaterial;

import net.minecraft.item.Item;

import net.minecraft.item.ItemStack;

import net.minecraft.potion.Potion;

import net.minecraft.src.ModLoader;

import net.minecraft.util.DamageSource;

import net.minecraftforge.common.EnumHelper;

import net.minecraftforge.common.MinecraftForge;

import cpw.mods.fml.common.Mod;

import cpw.mods.fml.common.Mod.EventHandler;

import cpw.mods.fml.common.Mod.Init;

import cpw.mods.fml.common.Mod.Instance;

import cpw.mods.fml.common.Mod.PostInit;

import cpw.mods.fml.common.Mod.PreInit;

import cpw.mods.fml.common.SidedProxy;

import cpw.mods.fml.common.event.FMLInitializationEvent;

import cpw.mods.fml.common.event.FMLPostInitializationEvent;

import cpw.mods.fml.common.event.FMLPreInitializationEvent;

import cpw.mods.fml.common.network.NetworkMod;

import cpw.mods.fml.common.registry.EntityRegistry;

import cpw.mods.fml.common.registry.GameRegistry;

import cpw.mods.fml.common.registry.LanguageRegistry;

import cpw.mods.fml.common.registry.TickRegistry;

import cpw.mods.fml.relauncher.Side;

import project.main.EntityPowerBolt;

import project.main.ItemPowerBeam;

import project.main.ItemWaveBeam;

import project.main.ItemPlasmaBeam;

import project.main.ItemIceBeam;

 

@Mod(modid = "chimera27metroid", name = "Metroid Cubed", version = "1.0.0")

@NetworkMod(clientSideRequired = true, serverSideRequired = false)

public class Main {

 

@Instance("chimera27metroid")

public static Main instance;

 

@SidedProxy(clientSide = "project.main.client.ClientProxy", serverSide = "project.main.CommonProxy")

public static CommonProxy proxy;

 

 

public static Item ItemPowerBeam;

public static Item ItemWaveBeam;

public static Item ItemPlasmaBeam;

public static Item ItemIceBeam;

public static Item ItemMissileLauncher;

public static Item ItemMissile;

public static Item ItemDebugBeam;

 

public static Item ItemPowerSuitHelmet;

public static Item ItemPowerSuitChestplate;

public static Item ItemPowerSuitLeggings;

public static Item ItemPowerSuitBoots;

 

public static Item ItemVariaSuitHelmet;

public static Item ItemVariaSuitChestplate;

public static Item ItemVariaSuitLeggings;

public static Item ItemVariaSuitBoots;

 

public static Item ItemGravitySuitHelmet;

public static Item ItemGravitySuitChestplate;

public static Item ItemGravitySuitLeggings;

public static Item ItemGravitySuitBoots;

 

public static Item ItemPhazonSuitHelmet;

public static Item ItemPhazonSuitChestplate;

public static Item ItemPhazonSuitLeggings;

public static Item ItemPhazonSuitBoots;

 

public static Item ItemPEDSuitHelmet;

public static Item ItemPEDSuitChestplate;

public static Item ItemPEDSuitLeggings;

public static Item ItemPEDSuitBoots;

 

public static Item ItemPowerCore;

 

public static Potion antifirePotion;

public static Potion waterboost;

public static Potion hypermode;

public static Potion enhancedhypermode;

 

 

 

@EventHandler

public void preInit(FMLPreInitializationEvent event) {

 

Potion[] potionTypes = null;

 

TickRegistry.registerTickHandler(new CommonTickHandler(), Side.SERVER);

 

for (Field f : Potion.class.getDeclaredFields()) {

f.setAccessible(true);

try {

if (f.getName().equals("potionTypes") || f.getName().equals("field_76425_a")) {

Field modfield = Field.class.getDeclaredField("modifiers");

modfield.setAccessible(true);

modfield.setInt(f, f.getModifiers() & ~Modifier.FINAL);

 

potionTypes = (Potion[])f.get(null);

final Potion[] newPotionTypes = new Potion[256];

System.arraycopy(potionTypes, 0, newPotionTypes, 0, potionTypes.length);

f.set(null, newPotionTypes);

}

}

catch (Exception e) {

System.err.println("Severe error, please report this to the mod author:");

System.err.println(e);

}

}

 

MinecraftForge.EVENT_BUS.register(new metroidEventHooks());

 

 

EnumArmorMaterial powersuit = EnumHelper.addArmorMaterial("powersuit", 0,new int[]{1, 2, 2, 1}, 0);

EnumArmorMaterial varia = EnumHelper.addArmorMaterial("varia", 0,new int[]{2, 3, 3, 2}, 0);

EnumArmorMaterial gravity = EnumHelper.addArmorMaterial("gravity", 0,new int[]{3, 4, 4, 2}, 0);

EnumArmorMaterial phazon = EnumHelper.addArmorMaterial("phazon", 0,new int[]{3, 6, 5, 4}, 0);

EnumArmorMaterial ped = EnumHelper.addArmorMaterial("ped", 0,new int[]{6, 7, 6, 6}, 0);

 

 

 

ItemPowerBeam = new ItemPowerBeam(5000).setUnlocalizedName("chimera27metroid:powerbeam");

ItemWaveBeam = new ItemWaveBeam(5001).setUnlocalizedName("chimera27metroid:wavebeam");

ItemPlasmaBeam = new ItemPlasmaBeam(5002).setUnlocalizedName("chimera27metroid:plasmabeam");

ItemIceBeam = new ItemIceBeam(5003).setUnlocalizedName("chimera27metroid:icebeam");

ItemMissileLauncher = new ItemMissileLauncher(5004).setUnlocalizedName("chimera27metroid:missilelauncher");

ItemMissile = new ItemMissile(5005).setUnlocalizedName("chimera27metroid:itemmissile");

ItemDebugBeam = new ItemDebugBeam(5006).setUnlocalizedName("chimera27metroid:debugbeam");

 

ItemPowerSuitHelmet = new ItemPowerSuitHelmet(5007, powersuit, proxy.addArmor("powersuit"), 0).setUnlocalizedName("itempowersuithelmet");

ItemPowerSuitChestplate = new ItemPowerSuitChestplate(5008, powersuit, proxy.addArmor("powersuit"), 1).setUnlocalizedName("itempowersuitchestplate");

ItemPowerSuitLeggings = new ItemPowerSuitLeggings(5009, powersuit, proxy.addArmor("powersuit"), 2).setUnlocalizedName("itempowersuitleggings");

ItemPowerSuitBoots = new ItemPowerSuitBoots(5010, powersuit, proxy.addArmor("powersuit"), 3).setUnlocalizedName("itempowersuitboots");

 

ItemVariaSuitHelmet = new ItemVariaSuitHelmet(5011, varia, proxy.addArmor("varia"),0).setUnlocalizedName("chimera27metroid:variasuithelmet");

ItemVariaSuitChestplate = new ItemVariaSuitChestplate(5012, varia, proxy.addArmor("varia"),1).setUnlocalizedName("chimera27metroid:variasuitchestplate");

ItemVariaSuitLeggings = new ItemVariaSuitLeggings(5013, varia, proxy.addArmor("varia"),2).setUnlocalizedName("chimera27metroid:variasuitleggings");

ItemVariaSuitBoots = new ItemVariaSuitBoots(5014, varia, proxy.addArmor("varia"),3).setUnlocalizedName("chimera27metroid:variasuitboots");

 

ItemGravitySuitHelmet = new ItemGravitySuitHelmet(5015, gravity, proxy.addArmor("gravity"), 0).setUnlocalizedName("chimera27metroid:itemgravitysuithelmet");

ItemGravitySuitChestplate = new ItemGravitySuitChestplate(5016, gravity, proxy.addArmor("gravity"), 1).setUnlocalizedName("chimera27metroid:itemgravitysuitchestplate");

ItemGravitySuitLeggings = new ItemGravitySuitLeggings(5017, gravity, proxy.addArmor("gravity"), 2).setUnlocalizedName("chimera27metroid:itemgravitysuitleggings");

ItemGravitySuitBoots = new ItemGravitySuitBoots(5018, gravity, proxy.addArmor("gravity"), 3).setUnlocalizedName("chimera27metroid:itemgravitysuitboots");

 

ItemPhazonSuitHelmet = new ItemPhazonSuitHelmet(5019, phazon, proxy.addArmor("phazon"), 0).setUnlocalizedName("chimera27metroid:itemphazonsuithelmet");

ItemPhazonSuitChestplate = new ItemPhazonSuitChestplate(5020, phazon, proxy.addArmor("phazon"), 1).setUnlocalizedName("chimera27metroid:itemphazonsuitchestplate");

ItemPhazonSuitLeggings = new ItemPhazonSuitLeggings(5021, phazon, proxy.addArmor("phazon"), 2).setUnlocalizedName("chimera27metroid:itemphazonsuitleggings");

ItemPhazonSuitBoots = new ItemPhazonSuitBoots(5022, phazon, proxy.addArmor("phazon"), 3).setUnlocalizedName("chimera27metroid:itemphazonsuitboots");

 

ItemPEDSuitHelmet = new ItemPEDSuitHelmet(5023, ped, proxy.addArmor("ped"), 0).setUnlocalizedName("chimera27metroid:itempedsuithelmet");

ItemPEDSuitChestplate = new ItemPEDSuitChestplate(5024, ped, proxy.addArmor("ped"), 1).setUnlocalizedName("chimera27metroid:itempedsuitchestplate");

ItemPEDSuitLeggings = new ItemPEDSuitLeggings(5025, ped, proxy.addArmor("ped"), 2).setUnlocalizedName("chimera27metroid:itempedsuitleggings");

ItemPEDSuitBoots = new ItemPEDSuitBoots(5026, ped, proxy.addArmor("ped"), 3).setUnlocalizedName("chimera27metroid:itempedsuitboots");

 

ItemPowerCore = new ItemPowerCore(5027).setUnlocalizedName("chimera27metroid:itempowercore");

}

 

@EventHandler

public void load(FMLInitializationEvent event) {

proxy.registerRenderer();

 

waterboost = (new waterboost(21, false, 0)).setIconIndex(0, 0).setPotionName("potion.waterboost");

hypermode = (new hypermode(22, false, 0)).setIconIndex(0, 0).setPotionName("potion.hypermode");

enhancedhypermode = (new hypermode(22, false, 0)).setIconIndex(0, 0).setPotionName("potion.enhanacedhypermode");

 

 

ItemPowerBeam = new ItemPowerBeam(5000).setUnlocalizedName("chimera27metroid:powerbeam");

ItemWaveBeam = new ItemWaveBeam(5001).setUnlocalizedName("chimera27metroid:wavebeam");

ItemPlasmaBeam = new ItemPlasmaBeam(5002).setUnlocalizedName("chimera27metroid:plasmabeam");

ItemIceBeam = new ItemIceBeam(5003).setUnlocalizedName("chimera27metroid:icebeam");

ItemMissileLauncher = new ItemMissileLauncher(5004).setUnlocalizedName("chimera27metroid:missilelauncher");

ItemMissile = new ItemMissile(5005).setUnlocalizedName("chimera27metroid:itemmissile");

ItemDebugBeam = new ItemDebugBeam(5006).setUnlocalizedName("chimera27metroid:debugbeam");

 

 

LanguageRegistry.addName(ItemPowerBeam, "Power Beam");

LanguageRegistry.addName(ItemWaveBeam, "Wave Beam");

LanguageRegistry.addName(ItemPlasmaBeam, "Plasma Beam");

LanguageRegistry.addName(ItemIceBeam, "Ice Beam");

LanguageRegistry.addName(ItemMissileLauncher, "Missile Launcher");

LanguageRegistry.addName(ItemMissile, "Missile");

LanguageRegistry.addName(ItemDebugBeam, "Debug Beam");

LanguageRegistry.addName(ItemPowerSuitHelmet, "Power Suit Helmet");

LanguageRegistry.addName(ItemPowerSuitChestplate, "Power Suit Chestplate");

LanguageRegistry.addName(ItemPowerSuitLeggings, "Power Suit Leggings");

LanguageRegistry.addName(ItemPowerSuitBoots, "Power Suit Boots");

LanguageRegistry.addName(ItemVariaSuitHelmet, "Varia Suit Helmet");

LanguageRegistry.addName(ItemVariaSuitChestplate, "Varia Suit Chestplate");

LanguageRegistry.addName(ItemVariaSuitLeggings, "Varia Suit Leggings");

LanguageRegistry.addName(ItemVariaSuitBoots, "Varia Suit Boots");

LanguageRegistry.addName(ItemGravitySuitHelmet, "Gravity Suit Helmet");

LanguageRegistry.addName(ItemGravitySuitChestplate, "Gravity Suit Chestplate");

LanguageRegistry.addName(ItemGravitySuitLeggings, "Gravity Suit Leggings");

LanguageRegistry.addName(ItemGravitySuitBoots, "Gravity Suit Boots");

LanguageRegistry.addName(ItemPhazonSuitHelmet, "Phazon Suit Helmet");

LanguageRegistry.addName(ItemPhazonSuitChestplate, "Phazon Suit Chestplate");

LanguageRegistry.addName(ItemPhazonSuitLeggings, "Phazon Suit Leggings");

LanguageRegistry.addName(ItemPhazonSuitBoots, "Phazon Suit Boots");

LanguageRegistry.addName(ItemPEDSuitHelmet, "PED Suit Helmet");

LanguageRegistry.addName(ItemPEDSuitChestplate, "PED Suit Chestplate");

LanguageRegistry.addName(ItemPEDSuitLeggings, "PED Suit Leggings");

LanguageRegistry.addName(ItemPEDSuitBoots, "PED Suit Boots");

LanguageRegistry.addName(ItemPowerCore, "Power Core");

 

 

 

EntityRegistry.registerModEntity(EntityWaveBolt.class, "WaveBolt", 2 , this, 64, 1, true);

EntityRegistry.registerModEntity(EntityDebugBolt.class, "DebugBolt", 4 , this, 64, 1, true);

EntityRegistry.registerModEntity(EntityPowerBolt.class, "PowerBolt", 5 , this, 64, 1, true);

EntityRegistry.registerModEntity(EntityPlasmaBolt.class, "PlasmaBolt", 6 , this, 64, 1, true);

EntityRegistry.registerModEntity(EntityIceBolt.class, "IceBolt", 7 , this, 64, 1, true);

EntityRegistry.registerModEntity(EntityMissile.class, "Missile", 8 , this, 64, 1, true);

 

 

 

 

LanguageRegistry.instance().addStringLocalization("entity.chimera27metroid.EntityMissile.name", "Missile");

 

ItemStack ItemPowerBeamStack = new ItemStack(ItemPowerBeam);

ItemStack ItemWaveBeamStack = new ItemStack(ItemWaveBeam);

ItemStack ItemPlasmaBeamStack = new ItemStack(ItemPlasmaBeam);

ItemStack ItemIceBeamStack = new ItemStack(ItemIceBeam);

ItemStack ItemMissileLauncherStack = new ItemStack(ItemMissileLauncher);

ItemStack ItemPowerSuitHelmetStack = new ItemStack(ItemPowerSuitHelmet);

ItemStack ItemPowerSuitChestplateStack = new ItemStack(ItemPowerSuitChestplate);

ItemStack ItemPowerSuitLeggingsStack = new ItemStack(ItemPowerSuitLeggings);

ItemStack ItemPowerSuitBootsStack = new ItemStack(ItemPowerSuitBoots);

ItemStack ItemPowerCoreStack = new ItemStack(ItemPowerCore);

 

 

 

 

GameRegistry.addRecipe(new ItemStack(ItemPowerBeam), " xx", "xyx", " xx",

        'x', Item.ingotIron, 'y', Item.redstone);

GameRegistry.addRecipe(new ItemStack(ItemWaveBeam), " xx", "xyz", " xx",

        'x', Item.ingotIron, 'y', Item.redstone, 'z', Block.glass);

GameRegistry.addRecipe(new ItemStack(ItemPlasmaBeam), " xx", "xyz", " xx",

        'x', Item.ingotIron, 'y', Item.redstone, 'z', Item.bucketLava);

GameRegistry.addRecipe(new ItemStack(ItemIceBeam), " xx", "xyz", " xx",

        'x', Item.ingotIron, 'y', Item.redstone, 'z', Item.snowball );

GameRegistry.addRecipe(new ItemStack(ItemMissileLauncher), "  ", " x ", "  ",

        'x', ItemPowerBeam);

GameRegistry.addRecipe(new ItemStack(ItemPowerBeam), "  ", " x ", "  ",

        'x', ItemMissileLauncher);

GameRegistry.addRecipe(new ItemStack(ItemPowerSuitHelmet), "xxx", "xyx", "  ",

        'x', Item.ingotIron, 'y', ItemPowerCore);

GameRegistry.addRecipe(new ItemStack(ItemPowerSuitChestplate), "xyx", "xxx", "xxx",

        'x', Item.ingotIron, 'y', ItemPowerCore);

GameRegistry.addRecipe(new ItemStack(ItemPowerSuitLeggings), "xxx", "xyx", "x x",

        'x', Item.ingotIron, 'y', ItemPowerCore);

GameRegistry.addRecipe(new ItemStack(ItemPowerSuitBoots), "  ", "x x", "xyx",

        'x', Item.ingotIron, 'y', ItemPowerCore);

GameRegistry.addRecipe(new ItemStack(ItemPowerCore), "xyx", "yzy", "xyx",

        'x', Item.redstone, 'y', Item.ingotGold, 'z', Item.diamond);

 

}

 

@EventHandler

public void postInit(FMLPostInitializationEvent event) {

MinecraftForge.EVENT_BUS.register(new HudHelmetOverlay(Minecraft.getMinecraft()));

}

}

 

 

And my armor file:

 

 

package project.main;

 

import net.minecraft.entity.Entity;

import net.minecraft.item.EnumArmorMaterial;

import net.minecraft.item.ItemArmor;

import net.minecraft.item.ItemStack;

 

public class PowerSuit extends ItemArmor {

 

public PowerSuit(int par1, EnumArmorMaterial par2EnumArmorMaterial,

int par3, int par4) {

super(par1, par2EnumArmorMaterial, par3, par4);

}

@Override

public String getArmorTexture(ItemStack stack, Entity entity, int slot, int layer)

    {

     

if(stack.itemID == Main.ItemPowerSuitHelmet.itemID || stack.itemID == Main.ItemPowerSuitChestplate.itemID || stack.itemID == Main.ItemPowerSuitBoots.itemID){

return CommonProxy.powersuit_1;

}

 

if (stack.itemID == Main.ItemPowerSuitLeggings.itemID){

return CommonProxy.powersuit_2;

 

}

else return null;

    }

}

 

 

And my client and common proxies:

 

 

package project.main.client;

 

import project.main.CommonProxy;

import project.main.EntityIceBolt;

import project.main.EntityMissile;

import project.main.EntityPlasmaBolt;

import project.main.EntityPowerBolt;

import project.main.EntityWaveBolt;

import project.main.RenderIceBolt;

import project.main.RenderMissile;

import project.main.RenderPlasmaBolt;

import project.main.RenderPowerBolt;

import project.main.RenderWaveBolt;

import cpw.mods.fml.client.registry.RenderingRegistry;

import cpw.mods.fml.common.registry.EntityRegistry;

import net.minecraftforge.client.MinecraftForgeClient;

public class ClientProxy extends CommonProxy {

 

@Override

public void registerRenderer(){

EntityRegistry.registerGlobalEntityID(EntityIceBolt.class, "IceBolt", EntityRegistry.findGlobalUniqueEntityId());

RenderingRegistry.registerEntityRenderingHandler(EntityIceBolt.class, new RenderIceBolt());

EntityRegistry.registerGlobalEntityID(EntityPowerBolt.class, "PowerBolt", EntityRegistry.findGlobalUniqueEntityId());

RenderingRegistry.registerEntityRenderingHandler(EntityPowerBolt.class, new RenderPowerBolt());

EntityRegistry.registerGlobalEntityID(EntityWaveBolt.class, "WaveBolt", EntityRegistry.findGlobalUniqueEntityId());

RenderingRegistry.registerEntityRenderingHandler(EntityWaveBolt.class, new RenderWaveBolt());

EntityRegistry.registerGlobalEntityID(EntityPlasmaBolt.class, "PlasmaBolt", EntityRegistry.findGlobalUniqueEntityId());

RenderingRegistry.registerEntityRenderingHandler(EntityPlasmaBolt.class, new RenderPlasmaBolt());

EntityRegistry.registerGlobalEntityID(EntityMissile.class, "Missile", EntityRegistry.findGlobalUniqueEntityId());

RenderingRegistry.registerEntityRenderingHandler(EntityMissile.class, new RenderMissile());

 

}

public int addArmor(String armor){

return RenderingRegistry.addNewArmourRendererPrefix(armor);

}

}

 

 

 

 

package project.main;

 

public class CommonProxy {

public void registerRenderer() {

 

}

public int addArmor(String string){

return 0;

 

}

public static String powersuit_1 = "chimera27metroid:textures/armor/powersuit_1.png";

public static String powersuit_2 = "chimera27metroid:textures/armor/powersuit_2.png";

 

}

 

 

 

 

 

Creator of Metroid Cubed! Power Suits, Beams, Hypermode and more!

width=174 height=100http://i.imgur.com/ghgWmA3.jpg[/img]

Link to comment
Share on other sites

Here's my armor class:

@Override
public String getArmorTexture(ItemStack stack, Entity entity, int slot, int layer)
{
	if(itemID == ModItems.quartzHelm.itemID || itemID == ModItems.quartzChest.itemID || itemID == ModItems.quartzBoots.itemID) {
		return "quartz:textures/models/armor/quartz_layer_1.png";
	}
	if(itemID == ModItems.quartzLegs.itemID) {
		return "quartz:textures/models/armor/quartz_layer_2.png";
	}
	return null;
}

Make sure your armor is in textures/models/armor/[armorname]_layer_1/2.png. Also, check in the console to see where your client is looking for textures.

If you really want help, give that modder a thank you.

 

Modders LOVE thank yous.

Link to comment
Share on other sites

I think you don't need the <modid>:...

Try it the following way:

public MoreToolsArmor(int par1, EnumArmorMaterial par2EnumArmorMaterial, int par3, int par4) {
	super(par1, par2EnumArmorMaterial, par3, par4);
	this.setCreativeTab(MoreTools.tabMoreWeapons);
}

@Override
public String getArmorTextureFile(ItemStack itemstack) {
//copper
	if (itemstack.itemID == MoreToolsItems.helmetCopper.itemID || itemstack.itemID == MoreToolsItems.chestplateCopper.itemID || itemstack.itemID == MoreToolsItems.bootsCopper.itemID){
		return "/mods/MoreTools/textures/armor/" + MoreTools.TexturePack + "_copper_1.png";
	}
	if (itemstack.itemID == MoreToolsItems.leggingsCopper.itemID){
		return "/mods/MoreTools/textures/armor/" + MoreTools.TexturePack + "_copper_2.png";
	}
}

 

 

You create this Item with this code:

helmetCopper 			= new MoreToolsArmor(helmetCopperID, ACopper,ClientProxy.addArmor("HelmetCopper"), 0).setUnlocalizedName(PicInit + "helmetCopper");

 

 

Client Proxy: (The common Proxy is Emty, rendering is only client stuff)

public class ClientProxy extends CommonProxy{

public static int addArmor(String armor){
	return RenderingRegistry.addNewArmourRendererPrefix(armor);
}

}

 

 

I hope this will work at 1.6.2 too, I tried it only with 1.5.2

Hope I could help you.

Link to comment
Share on other sites

You should remove this lines of code from your common Proxy.

Neither rendering nor Armordeclarations are needed from server side.

   public void registerRenderer() {

   }
   public int addArmor(String string){
      return 0;
      
   }

 

You can leave your commonProxy blank. Everything important (rendering, Armor-Renderer) is in the client proxy.

Link to comment
Share on other sites

Just finished trying it, didn't change anything at all... i'm pretty sure that my textures are in the right place, but some code is making minecraft not find them

 

Edit: FML (not the mod loader). Apparently, I needed to make the path

chimera27metroid:textures/armor/powersuit_1.png; instead of

chimera27metroid/textures/armor/powersuit_1.png; even though both were correct. -_____________________________

Creator of Metroid Cubed! Power Suits, Beams, Hypermode and more!

width=174 height=100http://i.imgur.com/ghgWmA3.jpg[/img]

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • The future of Bitcoin recovery is a topic of great interest and excitement, particularly with the emergence of innovative companies like Dexdert Net Pro Recovery leading the charge. As the cryptocurrency market continues to evolve and face new challenges, the need for effective solutions to help users recover lost or stolen Bitcoin has become increasingly critical. Dexdert Net Pro, a specialized firm dedicated to this very purpose, has positioned itself at the forefront of this emerging field. Through their proprietary techniques and deep expertise in blockchain technology, Dexdert Net Pro has developed a comprehensive approach to tracking down and retrieving misplaced or compromised Bitcoin, providing a lifeline to individuals and businesses who have fallen victim to the inherent risks of the digital currency landscape. Their team of seasoned investigators and cryptography experts employ a meticulous, multi-pronged strategy, leveraging advanced data analysis, forensic techniques, and collaborative partnerships with law enforcement to painstakingly trace the movement of lost or stolen coins, often recovering funds that would otherwise be considered irrecoverable. This pioneering work not only restores financial assets but also helps to bolster confidence and trust in the long-term viability of Bitcoin, cementing Dexdert Net Pro role as a crucial player in shaping the future of cryptocurrency recovery and security. As the digital finance ecosystem continues to evolve, the importance of innovative solutions like those offered by Dexdert Net Pro will only grow, ensuring that users can navigate the complexities of Bitcoin with greater peace of mind and protection. Call Dexdert Net Pro now     
    • I'm developing a dimension, but it's kinda resource intensive so some times during player teleporting it lags behind making the player phase down into the void, so im trying to implement some kind of pregeneration to force the game loading a small set of chunks in the are the player will teleport to. Some of the things i've tried like using ServerLevel and ServerChunkCache methods like getChunk() dont actually trigger chunk generation if the chunk isn't already on persistent storage (already generated) or placing tickets, but that doesn't work either. Ideally i should be able to check when the task has ended too. I've peeked around some pregen engines, but they're too complex for my current understanding of the system of which I have just a basic understanding (how ServerLevel ,ServerChunkCache  and ChunkMap work) of. Any tips or other classes I should be looking into to understand how to do this correctly?
    • https://mclo.gs/4UC49Ao
    • Way back in the Forge 1.17 days, work started for adding JPMS (Java Platform Module Support) to ModLauncher and ForgeModLoader. This has been used internally by Forge and some libraries for a while now, but mods (those with mods.toml specifically) have not been able to take advantage of it. As of Forge 1.21.1 and 1.21.3, this is now possible!   What is JPMS and what does it mean for modders? JPMS is the Java Platform Module System, introduced in Java 9. It allows you to define modules, which are collections of packages and resources that can be exported or hidden from other modules. This allows for much more fine-tuned control over visibility, cleaner syntax for service declarations and support for sealed types across packages. For example, you might have a mod with a module called `com.example.mod` that exports `com.example.mod.api` and `com.example.mod.impl` to other mods, but hides `com.example.mod.internal` from them. This would allow you to have a clean API for other mods to use, while keeping your internal implementation details hidden from IDE hints, helping prevent accidental usage of internals that might break without prior notice. This is particularly useful if you'd like to use public records with module-private constructors or partially module-private record components, as you can create a sealed interface that only your record implements, having the interface be exported and the record hidden. It's also nice for declaring and using services, as you'll get compile-time errors from the Java compiler for typos and the like, rather than deferring to runtime errors. In more advanced cases, you can also have public methods that are only accessible to specific other modules -- handy if you want internal interactions between multiple of your own mods.   How do I bypass it? We understand there may be drama in implementing a system that prevents mods from accessing each other's internals when necessary (like when a mod is abandoned or you need to fix a compat issue) -- after all, we are already modding a game that doesn't have explicit support for Java mods yet. We have already thought of this and are offering APIs from day one to selectively bypass module restrictions. Let me be clear: Forge mods are not required to use JPMS. If you don't want to use it, you don't have to. The default behaviour is to have fully open, fully exported automatic modules. In Java, you can use the `Add-Opens` and `Add-Exports` manifest attributes to selectively bypass module restrictions of other mods at launch time, and we've added explicit support for these when loading your Forge mods. At compile-time, you can use existing solutions such as the extra-java-module-info Gradle plugin to deal with non-modular dependencies and add extra opens and exports to other modules. Here's an example on how to make the internal package `com.example.examplemod.internal` open to your mod in your build.gradle: tasks.named('jar', Jar) { manifest { attributes([ 'Add-Opens' : 'com.example.examplemod/com.example.examplemod.internal' 'Specification-Title' : mod_id, 'Specification-Vendor' : mod_authors // (...) ]) } } With the above in your mod's jar manifest, you can now reflectively access the classes inside that internal package. Multiple entries are separated with a space, as per Java's official spec. You can also use Add-Exports to directly call without reflection, however you'd need to use the Gradle plugin mentioned earlier to be able to compile. The syntax for Add-Exports is the same as Add-Opens, and instructions for the compile-time step with the Gradle plugin are detailed later in this post. Remember to prefer the opens and exports keywords inside module-info.java for sources you control. The Add-Opens/Add-Exports attributes are only intended for forcing open other mods.   What else is new with module support? Previously, the runtime module name was always forced to the first mod ID in your `mods.toml` file and all packages were forced fully open and exported. Module names are now distinguished from mod IDs, meaning the module name in your module-info.java can be different from the mod ID in your `mods.toml`. This allows you to have a more descriptive module name that doesn't have to be the same as your mod ID, however we strongly recommend including your mod ID as part of your module name to aid troubleshooting. The `Automatic-Module-Name` manifest attribute is now also honoured, allowing you to specify a module name for your mod without needing to create a `module-info.java` file. This is particularly useful for mods that don't care about JPMS features but want to have a more descriptive module name and easier integration with other mods that do use JPMS.   How do I use it? The first step is to create a `module-info.java` file in your mod's source directory. This file should be in the same package as your main mod class, and should look something like this: open module com.example.examplemod { requires net.minecraftforge.eventbus; requires net.minecraftforge.fmlcore; requires net.minecraftforge.forge; requires net.minecraftforge.javafmlmod; requires net.minecraftforge.mergetool.api; requires org.slf4j; requires logging; } For now, we're leaving the whole module open to reflection, which is a good starting point. When we know we want to close something off, we can remove the open modifier from the module and open or export individual packages instead. Remember that you need to be open to Forge (module name net.minecraftforge.forge), otherwise it can't call your mod's constructor. Next is fixing modules in Gradle. While Forge and Java support modules properly, Gradle does not put automatic modules on the module path by default, meaning that the logging module (from com.mojang:logging) is not found. To fix this, add the Gradle plugin and add a compile-time module definition for that Mojang library: plugins { // (...) id 'org.gradlex.extra-java-module-info' version "1.9" } // (...) extraJavaModuleInfo { failOnMissingModuleInfo = false automaticModule("com.mojang:logging", "logging") } The automatic module override specified in your build.gradle should match the runtime one to avoid errors. You can do the same for any library or mod dependency that is missing either a module-info or explicit Automatic-Module-Name, however be aware that you may need to update your mod once said library adds one. That's all you need to get started with module support in your mods. You can learn more about modules and how to use them at dev.java.
    • Faire la mise à jour grâce à ce lien m'a aider personnellement, merci à @Paint_Ninja. https://www.amd.com/en/support 
  • Topics

×
×
  • Create New...

Important Information

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