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



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Realizing I was a victim of a scam was a devastating blow. My initial investment of $89,000, driven by dreams of financial success and the buzz surrounding a new cryptocurrency project, turned into a nightmare. The project promised high returns and rapid gains, attracting many eager investors like myself. However, as time passed and inconsistencies began to surface, it became evident that I had made a grave mistake by not thoroughly vetting the brokerage company handling the investment. Feeling anxious and betrayed, I desperately searched for a way to recover my funds. It was during this frantic search that I stumbled upon the Lee Ultimate Hacker tool through a Facebook post. With little left to lose, I decided to reach out to their team for help. To my relief, they were quick to respond and immediately started recovering my compromised email and regaining access to my cryptocurrency wallets. The team at Lee Ultimate Hacker was incredibly professional and transparent throughout the process. They meticulously traced the digital footprints left by the scammers, employing advanced technological methods to unravel the complex network that had ensnared my funds. Their expertise in cybersecurity and recovery strategies gradually began to turn the tide in my favor. Although the scammers had already siphoned off $30,000 worth of Bitcoin, Lee Ultimate Hacker was relentless in their pursuit. They managed to expose the fraudulent activities of the scam operators, revealing their identities and the mechanisms they used to lure investors. This exposure was crucial not only for my case but also as a warning to the wider community about the perils of unverified investment schemes. As we progressed, it became a race against time to retrieve the remaining $59,000 before the scammers could vanish completely. Each step forward was met with new challenges, as these criminals constantly shifted tactics and moved their digital assets to evade capture. Nonetheless, the determination and skill of the recovery team kept us hopeful. Throughout this ordeal, I learned the hard value of caution and due diligence in investment, especially within the volatile world of cryptocurrency. The experience has been incredibly taxing, both emotionally and financially, but the support and results provided by Lee Ultimate Hacker have been indispensable. The recovery process is ongoing, and while the final outcome remains uncertain, the progress made so far gives me hope. The battle to recover the full amount of my investment continues, and with the expertise of Lee Ultimate Hacker, I remain optimistic about the eventual recovery of my funds. Their commitment to their clients and proficiency in handling such complex cases truly sets them apart in the field of cyber recovery. LEEULTIMATEHACKER@ AOL. COM   Support @ leeultimatehacker . com.  telegram:LEEULTIMATE   wh@tsapp +1  (715) 314  -  9248     
    • Hi everyone. I’m excited to share my experience with CrackerWizard Recovery Firm. They helped me recover a substantial amount of crypto after falling victim to online scams disguised as Bitcoin investments. CrackerWizard’s exceptional service enabled me to retrieve my lost funds, despite the complex circumstances surrounding the case. With their dedicated team and advanced technology, they swiftly traced and recovered my assets. CrackerWizard is a reliable partner in the crypto world, highly recommended for anyone facing similar challenges. Contact them.
    • So I saw that mixin is shipped as a library with forge, but is it available for 1.7.10 ?  
    • So I've read the EULA, and lets be straight...     If I split my modpack(of my mods, yeah I'm nuts) into several(many) individual mods(like just one boss) with minor additions(plus not working together), then have a complete/modpack version on patreon/onlyfans having each addon work together... Would people buy my idea?
  • Topics

×
×
  • Create New...

Important Information

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