Is that the reason many people are getting this error?
java.lang.NullPointerException
at net.minecraft.src.ModLoader.onTick(ModLoader.java:1263)
at net.minecraft.src.EntityRendererProxy.updateCameraAndRender(EntityRendererProxy.java:21)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:898)
at net.minecraft.client.Minecraft.run(Minecraft.java:795)
at java.lang.Thread.run(Unknown Source)
Is that the reason many people are getting this error?
java.lang.NullPointerException
at net.minecraft.src.ModLoader.onTick(ModLoader.java:1263)
at net.minecraft.src.EntityRendererProxy.updateCameraAndRender(EntityRendererProxy.java:21)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:898)
at net.minecraft.client.Minecraft.run(Minecraft.java:795)
at java.lang.Thread.run(Unknown Source)
I haven't seen anyone with that error. More likely that there is something further down in the report causing the NullPointer.
I replied to your topic in Mod Development about packages.
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
I feel so noobish for asking ;-; But could you help me with a slight problem, TechGuy543? I feel like it's a really simple problem, but I have no clue how to fix it.
I was watching a video on how to create custom ores and have them generate in a new world, but for some reason they just don't generate. I tried adjusting everything I could think of that might have been messing with it. When I do /give the item to myself it gives me the item and I can place it and break it no problem, but it just won't generate anywhere.
If you would like I can give you a few more details. Thank you so much in advance!
PM me with your code or look at my tutorials for those things. I am not helping with non-simple things unrelated to my tutorials on this thread.
Techguy543, now that you said yu're using forge I can ask you a qustion about it too.
Is it possible to use Forges sprite Indexes WITHOUT creating a new class, because they are only idle Items?
And a second question, will ModLoader code work well with ForgeModLoader?
From what I've found you need to make new classes for each item/block. ModLoader is included in ForgeModLoader so it works fine. FML isn't updated yet to 1.3.1 though.
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
The client is a server. Technically, you shouldn't need to change anything to make your mod work on a server but I haven't tried it yet. Because entities are tracked on the server you need to edit EntityTracker to get them to render in single player. I am working on a fix for this with someone at the moment.
Not taking requests at the moment. You have to get a new MCP, fresh jars and new ModLoader. Then put ModLoader in the jar and decompile. Copy the source(.java files) of only your mod to the src of the new MCP folder.
I don't have the source of my mod. Only the .class files, not .java. I just decompile my mod. Not copy the .java files
I don't have the source of my mod. Only the .class files, not .java. I just decompile my mod. Now copy the .java files
You need to decompile the .class files of your mod with the version they were written with, then copy the .java source to the new MCP.
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
java.lang.NullPointerException
at net.minecraft.src.ModLoader.onTick(ModLoader.java:1195)
at net.minecraft.src.EntityRendererProxy.updateCameraAndRender(EntityRendererProxy.java:21)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:854)
at net.minecraft.client.Minecraft.run(Minecraft.java:748)
at java.lang.Thread.run(Thread.java:679)
--- END ERROR REPORT 336c2356 ----------
This is the exact error I'm getting... only entities I'm using are modified tile entities from the ender portal.
Derp. Nothing to do with entities. Seems to be caused by the setInGUIHook...
I haven't been able to work on it due to other stuff. I'll let you know if I come up with anything.
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
Whenever I try to make stairs, it says "The method getCollidingBoundingBoxes(World, int, int, int, AxisAlignedBB, ArrayList) is undefined for the type Block" in the BlockNamehereStairs class. Any solution?
Post your code using code tags and in a spoiler; even if it is the same as the tutorial.
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
Has anyone else had the problem of unbreakable tools?When I 'ported' my mod from 1.2.5, all the custom tools became unbreakable,and all my custom items (not blocks) cannot be given to the player using /give command, they have to be crafted.Here is the EnumTool file
package net.minecraft.src;
public enum EnumToolAustralium
{
AUSTRALIUM(1, 10, 1000000000.0F, 10000000, 10);
private final int harvestLevel;
private final int maxUses;
private final float efficiencyOnProperMaterial;
private final int damageVsEntity;
private final int enchantability;
private EnumToolAustralium(int par3, int par4, float par5, int par6, int par7)
{
harvestLevel = par3;
maxUses = par4;
efficiencyOnProperMaterial = par5;
damageVsEntity = par6;
enchantability = par7;
}
public int getMaxUses()
{
return maxUses;
}
public float getEfficiencyOnProperMaterial()
{
return efficiencyOnProperMaterial;
}
public int getDamageVsEntity()
{
return damageVsEntity;
}
public int getHarvestLevel()
{
return harvestLevel;
}
public int getEnchantability()
{
return enchantability;
}
}
I've also tried adding the material in the existing EnumToolMaterial file but I had the same problem.
It is working fine for me. I had the same issue with not being able to give items when I ported my mod to a server ages ago. Try subtracting 256 from the id you gave it and see if it will give them to you.
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
java.lang.NullPointerException
at net.minecraft.src.ModLoader.onTick(ModLoader.java:1195)
at net.minecraft.src.EntityRendererProxy.updateCameraAndRender(EntityRendererProxy.java:21)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:854)
at net.minecraft.client.Minecraft.run(Minecraft.java:748)
at java.lang.Thread.run(Thread.java:679)
--- END ERROR REPORT 336c2356 ----------
This is the exact error I'm getting... only entities I'm using are modified tile entities from the ender portal.
Derp. Nothing to do with entities. Seems to be caused by the setInGUIHook...
It is. I commented it out and everything ran fine.
Rollback Post to RevisionRollBack
When life gives you a potato, wonder why the heck life just gave you a potato. Why not something else? Like money? Or a combustable lemon? No, you get a potato. Nothing else.
Hello I am new to Minecraft Forums and my First time modding, Ok here I go I updated to 1.3.1 and The Generations of the Ores will not Process properly either they are hard or they are not generating please Help!
Trying to use a PNG for my mod, and using it through eclipse, so I tried almost every directory I could think of,. Tried all the listed examples, and changed them to see if it would help. Here's the error report I get.
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem; Unexpected error
This error has been saved to C:\Users\Nash\Desktop\mcp70a\jars\.\crash-reports\crash-2012-08-04_16.16.34-client.txt for your convenience. Please include a copy of this file if you report this crash to anyone.
--- BEGIN ERROR REPORT f2841845 --------
Generated 8/4/12 4:16 PM
- Minecraft Version: 1.3.1
- Operating System: Windows 7 (amd64) version 6.1
- Java Version: 1.7.0_05, Oracle Corporation
- Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
- Memory: 926003824 bytes (883 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB)
- JVM Flags: 3 total; -Xincgc -Xms1024M -Xmx1024M
- ModLoader: Mods loaded: 2
ModLoader 1.3.1
mod_emeraldNugget 1.3.1
- LWJGL: 2.4.2
- OpenGL: GeForce GTS 450/PCIe/SSE2 GL version 4.2.0, NVIDIA Corporation
- Is Modded: Probably not
- Type: Client
- Texture Pack: Default
- Profiler Position: N/A (disabled)
java.lang.RuntimeException: java.lang.Exception: Image not found: /mcp70a/jars/bin/minecraft.jar/emeraldnugget.png
at net.minecraft.src.ModLoader.registerAllTextureOverrides(ModLoader.java:1607)
at net.minecraft.src.ModLoader.onTick(ModLoader.java:1163)
at net.minecraft.src.EntityRendererProxy.updateCameraAndRender(EntityRendererProxy.java:21)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:857)
at net.minecraft.client.Minecraft.run(Minecraft.java:751)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.Exception: Image not found: /mcp70a/jars/bin/minecraft.jar/emeraldnugget.png
at net.minecraft.src.ModLoader.loadImage(ModLoader.java:1080)
at net.minecraft.src.ModLoader.registerAllTextureOverrides(ModLoader.java:1599)
... 5 more
--- END ERROR REPORT 76f5e664 ----------
Here's the code in the mod_ file:
package net.minecraft.src;
public class mod_emeraldNugget extends BaseMod
{
public static final Item EmeraldNugget = new ItemEmeraldNugget(5000).setItemName("emeraldNugget");
Tips from anyone one what I might be doing wrong with the directory? I know that directory is currently rather long, but it's one of the 15 or so I've tried.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumI haven't seen anyone with that error. More likely that there is something further down in the report causing the NullPointer.
I replied to your topic in Mod Development about packages.
together they are powerful beyond imagination."
PM me with your code or look at my tutorials for those things. I am not helping with non-simple things unrelated to my tutorials on this thread.
From what I've found you need to make new classes for each item/block. ModLoader is included in ForgeModLoader so it works fine. FML isn't updated yet to 1.3.1 though.
together they are powerful beyond imagination."
I don't have the source of my mod. Only the .class files, not .java. I just decompile my mod. Not copy the .java files
You need to decompile the .class files of your mod with the version they were written with, then copy the .java source to the new MCP.
together they are powerful beyond imagination."
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumThis is the exact error I'm getting... only entities I'm using are modified tile entities from the ender portal.
Derp. Nothing to do with entities. Seems to be caused by the setInGUIHook...
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumI haven't been able to work on it due to other stuff. I'll let you know if I come up with anything.
together they are powerful beyond imagination."
Post your code using code tags and in a spoiler; even if it is the same as the tutorial.
together they are powerful beyond imagination."
It is working fine for me. I had the same issue with not being able to give items when I ported my mod to a server ages ago. Try subtracting 256 from the id you gave it and see if it will give them to you.
together they are powerful beyond imagination."
1. entity rendering
2. creative menu for both items and blocks
3. world gen(ore gen)
-
View User Profile
-
View Posts
-
Send Message
Retired StaffIt is. I commented it out and everything ran fine.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumMy Mod works but when i want to play in the normal Minecraft where i have to put the pictures?
I use Eclipsee to start it and the pictures are here: \eclipse\Client\bin\mods
package net.minecraft.src; public class mod_Cobalt extends BaseMod { public static final Block Cobalt = new BlockOre(137, 0).setBlockName("Cobalt").setHardness(15F).setResistance(3F).setLightValue(0F); public static final Item CobaltIngot = new Item(138).setItemName("CobaltIngot"); public static final Item CobaltSword = new Item(139).setItemName("CobaltSword"); public void load() { Cobalt.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/mods/cobalt.png"); ModLoader.registerBlock(Cobalt); ModLoader.addName(Cobalt, "Cobalt Ore"); CobaltIngot.iconIndex = ModLoader.addOverride("/gui/items.png", "/mods/CobaltIngot.png"); ModLoader.addName(CobaltIngot, "CobaltIngot"); ModLoader.addSmelting(Cobalt.blockID, new ItemStack(CobaltIngot, 1), 2.0F); CobaltSword.iconIndex = ModLoader.addOverride("/gui/items.png", "/mods/sword.png"); ModLoader.addName(CobaltSword, "CobaltSword"); ModLoader.addRecipe(new ItemStack(CobaltSword, 1), new Object [] {" # ", " # ", " % ", Character.valueOf('#'), CobaltIngot, Character.valueOf('%'), Item.stick}); } public String getVersion() { return "1.3.1"; } }btw. i dont understand your tools tutorial.
i simply want a sword that deal more damage then a diamondsword .
Help
Sorry for my bad english
oh, sorry....I completely forgot about that. fixed!
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem; Unexpected error
This error has been saved to C:\Users\Nash\Desktop\mcp70a\jars\.\crash-reports\crash-2012-08-04_16.16.34-client.txt for your convenience. Please include a copy of this file if you report this crash to anyone.
--- BEGIN ERROR REPORT f2841845 --------
Generated 8/4/12 4:16 PM
- Minecraft Version: 1.3.1
- Operating System: Windows 7 (amd64) version 6.1
- Java Version: 1.7.0_05, Oracle Corporation
- Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
- Memory: 926003824 bytes (883 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB)
- JVM Flags: 3 total; -Xincgc -Xms1024M -Xmx1024M
- ModLoader: Mods loaded: 2
ModLoader 1.3.1
mod_emeraldNugget 1.3.1
- LWJGL: 2.4.2
- OpenGL: GeForce GTS 450/PCIe/SSE2 GL version 4.2.0, NVIDIA Corporation
- Is Modded: Probably not
- Type: Client
- Texture Pack: Default
- Profiler Position: N/A (disabled)
java.lang.RuntimeException: java.lang.Exception: Image not found: /mcp70a/jars/bin/minecraft.jar/emeraldnugget.png
at net.minecraft.src.ModLoader.registerAllTextureOverrides(ModLoader.java:1607)
at net.minecraft.src.ModLoader.onTick(ModLoader.java:1163)
at net.minecraft.src.EntityRendererProxy.updateCameraAndRender(EntityRendererProxy.java:21)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:857)
at net.minecraft.client.Minecraft.run(Minecraft.java:751)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.Exception: Image not found: /mcp70a/jars/bin/minecraft.jar/emeraldnugget.png
at net.minecraft.src.ModLoader.loadImage(ModLoader.java:1080)
at net.minecraft.src.ModLoader.registerAllTextureOverrides(ModLoader.java:1599)
... 5 more
--- END ERROR REPORT 76f5e664 ----------
Here's the code in the mod_ file:
public class mod_emeraldNugget extends BaseMod
{
public static final Item EmeraldNugget = new ItemEmeraldNugget(5000).setItemName("emeraldNugget");
public void load()
{
EmeraldNugget.iconIndex = ModLoader.addOverride("/gui/items.png", "/mcp70a/jars/bin/minecraft.jar/emeraldnugget.png");
ModLoader.addName(EmeraldNugget, "Emerald Nugget");
ModLoader.addRecipe(new ItemStack(EmeraldNugget, 1), new Object [] {"#", Character.valueOf('#'), Item.emerald});
}
public String getVersion()
{
return "1.3.1";
}
}
Tips from anyone one what I might be doing wrong with the directory? I know that directory is currently rather long, but it's one of the 15 or so I've tried.
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumand create in /mcp70a/eclipse/client/bin/ a folder named mods and put the picture in it