I made a mod that adds additional customization to the Customized world type (changing caves, ravines, mineshafts, villages, etc) and while it works fine inside of MCP when I reobfuscate and add the classes to the jar (making sure to delete META-INF and all that) I get the following crashes whenever I try to make a Customized world; normal worlds generate without problems:
This crash happens if I try to make a customized world using the buttons and sliders (not a preset); the game crashes when I click on "Done" to return to the world options menu
---- Minecraft Crash Report ----
// Why is it breaking
java.lang.InternalError: Malformed class name
at java.lang.Class.getSimpleName(Class.java:1322)
at java.lang.Class.isAnonymousClass(Class.java:1403)
at com.google.gson.internal.Excluder.isAnonymousOrLocal(Excluder.java:216)
at com.google.gson.internal.Excluder.excludeClass(Excluder.java:201)
at com.google.gson.internal.Excluder.create(Excluder.java:113)
at com.google.gson.Gson.getAdapter(Gson.java:356)
at com.google.gson.Gson.toJson(Gson.java:585)
at com.google.gson.Gson.toJson(Gson.java:572)
at com.google.gson.Gson.toJson(Gson.java:527)
at com.google.gson.Gson.toJson(Gson.java:507)
at bgn.toString(ChunkProviderSettings.java:416)
at bwj.a(GuiCustomizeWorldScreen.java:945)
at bxf.a(SourceFile:342)
at bwj.a(GuiCustomizeWorldScreen.java:1156)
at bxf.k(SourceFile:405)
at bwj.k(GuiCustomizeWorldScreen.java:85)
at bxf.p(SourceFile:382)
at bsu.r(SourceFile:1473)
at bsu.as(SourceFile:877)
at bsu.a(SourceFile:314)
at net.minecraft.client.main.Main.main(SourceFile:120)
The error occurs in the following code (not modified):
public String toString()
{
return field_177901_a.toJson(this);
}
In addition, I get a slightly different crash when I click on the presets button; the crash occurs immediately when I click the button:
---- Minecraft Crash Report ----
// Who set us up the TNT?
java.lang.InternalError: Malformed class name
at java.lang.Class.getSimpleName(Class.java:1322)
at java.lang.Class.isAnonymousClass(Class.java:1403)
at com.google.gson.internal.Excluder.isAnonymousOrLocal(Excluder.java:216)
at com.google.gson.internal.Excluder.excludeClass(Excluder.java:201)
at com.google.gson.internal.Excluder.create(Excluder.java:113)
at com.google.gson.Gson.getAdapter(Gson.java:356)
at com.google.gson.Gson.fromJson(Gson.java:802)
at com.google.gson.Gson.fromJson(Gson.java:768)
at com.google.gson.Gson.fromJson(Gson.java:717)
at com.google.gson.Gson.fromJson(Gson.java:689)
at bgn.a(ChunkProviderSettings.java:405)
at bwg.<clinit>(GuiScreenCustomizePresets.java:139)
at bwj.a(GuiCustomizeWorldScreen.java:1009)
at bxf.a(SourceFile:342)
at bwj.a(GuiCustomizeWorldScreen.java:1156)
at bxf.k(SourceFile:405)
at bwj.k(GuiCustomizeWorldScreen.java:85)
at bxf.p(SourceFile:382)
at bsu.r(SourceFile:1473)
at bsu.as(SourceFile:877)
at bsu.a(SourceFile:314)
at net.minecraft.client.main.Main.main(SourceFile:120)
In this case the error occurs at the return following the "try" in this code, also unmodified:
public static ChunkProviderSettings.Factory func_177865_a(String p_177865_0_)
{
if (p_177865_0_.length() == 0)
{
return new ChunkProviderSettings.Factory();
}
else
{
try
{
return (ChunkProviderSettings.Factory)field_177901_a.fromJson(p_177865_0_, ChunkProviderSettings.Factory.class);
}
catch (Exception var2)
{
return new ChunkProviderSettings.Factory();
}
}
}
(which also doesn't seem to be catching the exception, suggesting something is very wrong)
When Optifine's creator made Optifine for 1.8 they said there were some bugs in MCP (not sure if it is the same version I used, downloaded from MCP after they added it to their downloads, Optifine's came from a tweet announcing a beta release) and I'm wondering if this is such a case and whether there is an easy way to fix it.
Would it be possible for you to give me a broken version of your mod? If I find the time, I'll have a look at it - maybe I find the thing that's causing it (and possibly even a fix)
This crash happens if I try to make a customized world using the buttons and sliders (not a preset); the game crashes when I click on "Done" to return to the world options menu
// Why is it breaking
Time: 2/3/15 4:49 PM
Description: Updating screen events
java.lang.InternalError: Malformed class name
at java.lang.Class.getSimpleName(Class.java:1322)
at java.lang.Class.isAnonymousClass(Class.java:1403)
at com.google.gson.internal.Excluder.isAnonymousOrLocal(Excluder.java:216)
at com.google.gson.internal.Excluder.excludeClass(Excluder.java:201)
at com.google.gson.internal.Excluder.create(Excluder.java:113)
at com.google.gson.Gson.getAdapter(Gson.java:356)
at com.google.gson.Gson.toJson(Gson.java:585)
at com.google.gson.Gson.toJson(Gson.java:572)
at com.google.gson.Gson.toJson(Gson.java:527)
at com.google.gson.Gson.toJson(Gson.java:507)
at bgn.toString(ChunkProviderSettings.java:416)
at bwj.a(GuiCustomizeWorldScreen.java:945)
at bxf.a(SourceFile:342)
at bwj.a(GuiCustomizeWorldScreen.java:1156)
at bxf.k(SourceFile:405)
at bwj.k(GuiCustomizeWorldScreen.java:85)
at bxf.p(SourceFile:382)
at bsu.r(SourceFile:1473)
at bsu.as(SourceFile:877)
at bsu.a(SourceFile:314)
at net.minecraft.client.main.Main.main(SourceFile:120)
The error occurs in the following code (not modified):
In addition, I get a slightly different crash when I click on the presets button; the crash occurs immediately when I click the button:
// Who set us up the TNT?
Time: 2/3/15 4:59 PM
Description: Updating screen events
java.lang.InternalError: Malformed class name
at java.lang.Class.getSimpleName(Class.java:1322)
at java.lang.Class.isAnonymousClass(Class.java:1403)
at com.google.gson.internal.Excluder.isAnonymousOrLocal(Excluder.java:216)
at com.google.gson.internal.Excluder.excludeClass(Excluder.java:201)
at com.google.gson.internal.Excluder.create(Excluder.java:113)
at com.google.gson.Gson.getAdapter(Gson.java:356)
at com.google.gson.Gson.fromJson(Gson.java:802)
at com.google.gson.Gson.fromJson(Gson.java:768)
at com.google.gson.Gson.fromJson(Gson.java:717)
at com.google.gson.Gson.fromJson(Gson.java:689)
at bgn.a(ChunkProviderSettings.java:405)
at bwg.<clinit>(GuiScreenCustomizePresets.java:139)
at bwj.a(GuiCustomizeWorldScreen.java:1009)
at bxf.a(SourceFile:342)
at bwj.a(GuiCustomizeWorldScreen.java:1156)
at bxf.k(SourceFile:405)
at bwj.k(GuiCustomizeWorldScreen.java:85)
at bxf.p(SourceFile:382)
at bsu.r(SourceFile:1473)
at bsu.as(SourceFile:877)
at bsu.a(SourceFile:314)
at net.minecraft.client.main.Main.main(SourceFile:120)
In this case the error occurs at the return following the "try" in this code, also unmodified:
When Optifine's creator made Optifine for 1.8 they said there were some bugs in MCP (not sure if it is the same version I used, downloaded from MCP after they added it to their downloads, Optifine's came from a tweet announcing a beta release) and I'm wondering if this is such a case and whether there is an easy way to fix it.
TheMasterCaver's First World - possibly the most caved-out world in Minecraft history - includes world download.
TheMasterCaver's World - my own version of Minecraft largely based on my views of how the game should have evolved since 1.6.4.
Why do I still play in 1.6.4?
Would it be possible for you to give me a broken version of your mod? If I find the time, I'll have a look at it - maybe I find the thing that's causing it (and possibly even a fix)