Jump to content

[1.7.2] New Achievement Crash!


VideoGameTaco

Recommended Posts

I created a new achievement and put it in my achievement page. Whenever I open the new page, my game crashes! Can anyone help with this?

 

Mod File:

package vgt.material_paint;

import vgt.material_paint.block.VGTBlockSketchingTable;
import vgt.material_paint.proxy.ProxyCommon;
import vgt.material_paint.villager.TradeHandlerArtist;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.entity.passive.EntityVillager;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
import net.minecraft.stats.Achievement;
import net.minecraft.stats.AchievementList;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.common.AchievementPage;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.VillagerRegistry;

@Mod(
	modid = VGTmod_MaterialPaint.MODID,
	version = VGTmod_MaterialPaint.VERSION)
public class VGTmod_MaterialPaint
{
    public static final String MODID = "vgt_materialpaint";
    public static final String VERSION = "1.0";
    
    @SidedProxy(
    clientSide = "vgt.material_paint.proxy.ProxyClient",
    serverSide = "vgt.material_paint.proxy.ProxyCommon")
    public static ProxyCommon proxy;
    
    // Create the 'Sketching Table' block
    public static final Block sketchingTable = new VGTBlockSketchingTable(500, Material.wood).setStepSound(Block.soundTypeWood).setHardness(3.0F).setResistance(2.5F).setBlockName("sketchingTable").setBlockTextureName("vgt_materialpaint:sketchTable");
    
    // Create the 'Drawn to Life' achievement
    public static final Achievement buildSketchingTable = new Achievement("achievement.sketchingTable", "buildSketchingTable", 0, 0, sketchingTable, null).initIndependentStat().registerStat();
    
    // Create new achievement page
    public static AchievementPage vgt_materialpaintAchievements = new AchievementPage("VGT Material Paint", buildSketchingTable);
    
    // 'Artist' villager ID
    public static final int villagerID_artist = 25;
    
    // Declare trade handler for 'Artist' villager
    void registerTradeHandlerArtist(){
    	VillagerRegistry reg = VillagerRegistry.instance();
    	TradeHandlerArtist handler_artist = new TradeHandlerArtist();
    	reg.registerVillageTradeHandler(villagerID_artist, handler_artist);
    }
    
    @EventHandler
    public void Preinit(FMLPreInitializationEvent event){
    	// Register 'Sketching Table' block
    	GameRegistry.registerBlock(sketchingTable, "Sketching Table");
    	// Register new achievement page
    	AchievementPage.registerAchievementPage(vgt_materialpaintAchievements);
    }
    @EventHandler
    public void init(FMLInitializationEvent event){
    	// Create recipe for 'Sketching Table'
    	GameRegistry.addShapedRecipe(new ItemStack(sketchingTable), new Object[]{
    		"PPP","WDW","WSW", 'P',Items.paper,'W',Blocks.planks,'D',Items.diamond,'S',Items.stick
    	});
    	// Create 'Artist' villager
    	VillagerRegistry.instance().registerVillagerId(villagerID_artist);
    	VillagerRegistry.instance().registerVillagerSkin(villagerID_artist, new ResourceLocation("vgt_materialpaint:textures/entity/villager/artist.png"));
    	registerTradeHandlerArtist();
    }
    @EventHandler
    public void load(FMLInitializationEvent event){
    	proxy.registerRenderers();
    }
}

 

Crash Log:

---- Minecraft Crash Report ----
// Would you like a cupcake?

Time: 2/6/14 3:40 AM
Description: Initializing game

java.lang.RuntimeException: java.io.FileNotFoundException: minecraft:font/glyph_sizes.bin
at net.minecraft.client.gui.FontRenderer.readGlyphSizes(FontRenderer.java:151)
at net.minecraft.client.gui.FontRenderer.<init>(FontRenderer.java:89)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:502)
at net.minecraft.client.Minecraft.run(Minecraft.java:850)
at net.minecraft.client.main.Main.main(Main.java:103)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:134)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
Caused by: java.io.FileNotFoundException: minecraft:font/glyph_sizes.bin
at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:58)
at net.minecraft.client.gui.FontRenderer.readGlyphSizes(FontRenderer.java:148)
... 10 more


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Stacktrace:
at net.minecraft.client.gui.FontRenderer.readGlyphSizes(FontRenderer.java:151)
at net.minecraft.client.gui.FontRenderer.<init>(FontRenderer.java:89)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:502)

-- Initialization --
Details:
Stacktrace:
at net.minecraft.client.Minecraft.run(Minecraft.java:850)
at net.minecraft.client.main.Main.main(Main.java:103)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:134)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

-- System Details --
Details:
Minecraft Version: 1.7.2
Operating System: Windows 8 (amd64) version 6.2
Java Version: 1.7.0_45, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 113682064 bytes (108 MB) / 291504128 bytes (278 MB) up to 855638016 bytes (816 MB)
JVM Flags: 0 total; 
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v9.01-pre FML v7.2.116.1024 Minecraft Forge 10.12.0.1024 5 mods loaded, 0 mods active
mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) 
FML{7.2.116.1024} [Forge Mod Loader] (forgeBin-1.7.2-10.12.0.1024.jar) 
Forge{10.12.0.1024} [Minecraft Forge] (forgeBin-1.7.2-10.12.0.1024.jar) 
vgt_materialpaint{1.0} [Material Paint Mod] (bin) 
vgt_materialpaint{1.0} [Material Paint] (bin) 
Launched Version: 1.6
LWJGL: 2.9.0
OpenGL: AMD Radeon HD 7300 Series Graphics GL version 4.2.12002 Compatibility Profile Context 9.12.6.0, ATI Technologies Inc.
Is Modded: Definitely; Client brand changed to 'fml,forge'
Type: Client (map_client.txt)
Resource Packs: []
Current Language: ~~ERROR~~ NullPointerException: null
Profiler Position: N/A (disabled)
Vec3 Pool Size: ~~ERROR~~ NullPointerException: null
Anisotropic Filtering: Off (1)

Link to comment
Share on other sites

[me=Draco18s]sees no code and no crash report[/me]

[me=Draco18s]shrugs and leaves[/me]

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

[me=Draco18s]sees code and no crash, still doesn't know what kind of problem to look for.[/me]

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

I'm getting errors when creating a new mod. When I open the mod with eclipse, I get two errors;

 

Project 'Minecraft' is missing required library: 'C:\Users\VideoGameTaco\Desktop\Modding\material_paint\unresolved dependency -  forgeSrc 1.7.2-10.12.0.1025' Minecraft Build path Build Path Problem

 

The project cannot be built until build path errors are resolved Minecraft Unknown Java Problem

 

Here are the two commands I'm using to create the mod.

 

gradlew.bat setupDevWorkspace --refresh-dependencies

gradlew.bat eclipse

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.

Announcements



×
×
  • Create New...

Important Information

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