Jump to content

Cant fix my client proxy


AshIndigo

Recommended Posts

It said it cant find the files but i find the folder in a new location and i try copying it it still wont work Below is my client proxy code and i even tried a tutorial

 

package Firediamond.Mods;
import net.minecraft.src.ModelBiped;
import net.minecraft.src.ModelZombie;
import net.minecraftforge.client.MinecraftForgeClient;
import cpw.mods.fml.client.registry.RenderingRegistry;
import cpw.mods.fml.common.Mod.Instance;
public class ElectroCraftClientProxy extends ElectroCraftCommonProxy
{

public static void registerRenderInformation()
{
MinecraftForgeClient.preloadTexture("/Zeuscraft/ZeuscraftTerrain.png");
MinecraftForgeClient.preloadTexture("/Zeuscraft/ZeuscraftItems.png");
}
}

 

please reply if you the fix using eclipse

Link to comment
Share on other sites

  • 3 weeks later...

So you're unable to find the common proxy in your imports. You need to make sure its accessible for you. Send me an example of your common proxy. I use

 

 

package magicbag.client.core;

 

import magicbag.common.core.CommonProxy;

import magicbag.common.lib.Reference;

import magicbag.common.lib.RenderIds;

import net.minecraftforge.client.MinecraftForgeClient;

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

 

public class ClientProxy extends CommonProxy {

 

@Override

public void initRenderingAndTextures() {

RenderIds.magicbagRenderId = RenderingRegistry

.getNextAvailableRenderId();

 

MinecraftForgeClient.preloadTexture(Reference.SPRITE_SHEET_LOCATION);

}

}

 

 

 

 

 

package magicbag.common.core;

 

import net.minecraft.src.EnumRarity;

 

public class CommonProxy

//implements IGuiHandler

{

 

    public void registerKeyBindingHandler() {}

 

    public void setKeyBinding(String name, int value) {}

 

    public void registerSoundHandler() {}

 

    public void initCustomRarityTypes() {}

 

    public EnumRarity getCustomRarityType(String customRarity) {

        return null;

    }

   

    public void initRenderingAndTextures() {}

 

}

 

 

 

Link to comment
Share on other sites

Make sure that all the cases are correct when i was writing mine i had the wrong cases on some of my files causing it not to work.

also remember that the files are referenced from the src folder not the current folder the java file is located.

for example urs should be located at %mcp%/src/Zeuscraft/ZeuscraftTerrain.png

 

hope this helps or atleast gets you on the right track. programming take persistence and patience as i have found wish you good luck in your mod

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.



×
×
  • Create New...

Important Information

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