Jump to content

Recommended Posts

Posted

Hey there, I decided (finally) to update my mod to 1.6, and to start with (after installing the new forge, MCP, etc) I simply changed the code to the 1.6 code and it all worked fine, apart from the textures not working.

So then I refactored and renamed my mod (in eclipse) from mods.EverythingAndMore to assets.jordsta95, because, well everyone on YouTube uses assests.NAME and I think I heard one youtuber say that the NAME cannot have capitals in it....

 

Well anyway, I don't have any errors in the code.. well Eclipse isn't showing any at least. And I am getting this crashlog:

 

  Reveal hidden contents

 

 

Here is my main class:

 

  Reveal hidden contents

 

 

Client proxy:

 

  Reveal hidden contents

 

 

And common... just if you need it:

 

  Reveal hidden contents

 

saves asking for it, if it is needed :P

 

Anyway, I seriously cannot see why I am getting that crash :(

 

Any help would be greatly appreciated.

 

Thanks a lot

-Jordan

Why bother?

Posted

As a side note, you're not supposed to put your src in the assets folder (previously the mods folder), only resources as textures.

 

@SidedProxy(clientSide = "assets.jordsta95.ClientProxy", serverSide = "assets.jordsta95.CommonProxy")
   public static assests.jordsta95.CommonProxy CommonProxy;

assets or assests ? your Client and Common proxy are located in assests.

Author of PneumaticCraft, MineChess, Minesweeper Mod and Sokoban Mod. Visit www.minemaarten.com to take a look at them.

Posted

Thanks, it works now, but the textures don't....

So how do I get them to work, I don't understand the new way of modding AT ALL :/

 

Here is the texture code I have:

@Override

public void registerIcons(IconRegister iconRegister){

this.blockIcon = iconRegister.registerIcon(Everything_and_More_Mod.modid + ":" + (this.getUnlocalizedName().substring(5)));

}

 

But obviously, it doesn't work -_-

Why bother?

Posted

Drop the overriden method.

You only have one texture, use the texture setter. (its name is obfuscated, but pretty obvious anyway)

 

Also, @Instance should get the modid, and items and blocks should be done in PreInit.

Posted

See the originals:

public Block func_111022_d(String par1Str)
    {
        this.field_111026_f = par1Str;
        return this;
    }

    @SideOnly(Side.CLIENT)
    protected String func_111023_E()
    {
        return this.field_111026_f == null ? "MISSING_ICON_TILE_" + this.blockID + "_" + this.unlocalizedName : this.field_111026_f;
    }
public void registerIcons(IconRegister iconRegister){
this.blockIcon = iconRegister.registerIcon(this.func_111023_E());
}

Use func_111022_d, the texture setter.

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.

Announcements



×
×
  • Create New...

Important Information

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