SlimeKnights / TinkersConstruct

Tinker a little, build a little, tinker a little more...
MIT License
1.23k stars 776 forks source link

Model Bake Broken (MC 1.9, Forge 12.16.0.1865, Mantle 0.9.4, TC 2.2.2) #2036

Closed JonnyBrando closed 8 years ago

JonnyBrando commented 8 years ago

So, back to the drawing board again.

I tried stock builds on F1865, and they didn't work. I found (with your Git Releases page) that 2.2.2 is 45 commits behind, so I built my own in #2034.

Same problem with official 2.2.2 and the latest GIT build.

Both copies work fine in 1.9 F1865 server, just problem with client.

---- Minecraft Crash Report ----

WARNING: coremods are present: FMLPlugin (InventoryTweaks-1.61-dev-45.jar) MalisisCorePlugin (malisiscore-1.9-3.0.5.jar) MMFMLCorePlugin (MultiMine-1.9.jar) BetterFoliageLoader (BetterFoliage-MC1.9-2.0.9.jar) MalisisSwitchesPlugin (malisisswitches-1.9-2.0.0.jar) DLFMLCorePlugin (DynamicLights-1.9.jar) SCFMLCorePlugin (StalkerCreepers-1.9.jar) Contact their authors BEFORE contacting forge

// Daisy, daisy...

Time: 4/23/16 9:27 AM Description: Initializing game

java.lang.NullPointerException: Initializing game at slimeknights.tconstruct.library.client.model.MaterialModel.bakeIt(MaterialModel.java:75) at slimeknights.tconstruct.library.client.model.ToolModel.bake(ToolModel.java:74) at net.minecraftforge.client.model.ModelLoader.func_177570_a(ModelLoader.java:161) at net.minecraft.client.renderer.block.model.ModelManager.func_110549_a(ModelManager.java:28) at net.minecraft.client.resources.SimpleReloadableResourceManager.func_110544_b(SimpleReloadableResourceManager.java:130) at net.minecraft.client.resources.SimpleReloadableResourceManager.func_110541_a(SimpleReloadableResourceManager.java:111) at net.minecraft.client.Minecraft.func_110436_a(Minecraft.java:756) at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:323) at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:513) at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:346) at net.minecraft.client.main.Main.main(SourceFile:124) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

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

-- Head -- Stacktrace: at slimeknights.tconstruct.library.client.model.MaterialModel.bakeIt(MaterialModel.java:75) at slimeknights.tconstruct.library.client.model.ToolModel.bake(ToolModel.java:74) at net.minecraftforge.client.model.ModelLoader.func_177570_a(ModelLoader.java:161) at net.minecraft.client.renderer.block.model.ModelManager.func_110549_a(ModelManager.java:28) at net.minecraft.client.resources.SimpleReloadableResourceManager.func_110544_b(SimpleReloadableResourceManager.java:130) at net.minecraft.client.resources.SimpleReloadableResourceManager.func_110541_a(SimpleReloadableResourceManager.java:111) at net.minecraft.client.Minecraft.func_110436_a(Minecraft.java:756) at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:323) at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:513)

-- Initialization -- Details: Stacktrace: at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:346) at net.minecraft.client.main.Main.main(SourceFile:124) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

-- System Details -- Details: Minecraft Version: 1.9 Operating System: Windows 8.1 (amd64) version 6.3 Java Version: 1.8.0_74, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 714179584 bytes (681 MB) / 1557389312 bytes (1485 MB) up to 4268163072 bytes (4070 MB) Mod Pack: 1.9-SNAPSHOT-r47D63A1-b7-2016-04-19_22-30-16 LiteLoader Mods: 1 loaded mod(s)

Launched Version: 1.9-forge1.9-12.16.0.1865-1.9
LWJGL: 2.9.4
OpenGL: Quadro M1000M/PCIe/SSE2 GL version 4.5.0 NVIDIA 361.91, NVIDIA Corporation
GL Caps: Using GL 1.3 multitexturing.

Using GL 1.3 texture combiners. Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported. Shaders are available because OpenGL 2.1 is supported. VBOs are available because OpenGL 1.5 is supported.

Using VBOs: Yes
Is Modded: Definitely; Client brand changed to 'fml,forge'
Type: Client (map_client.txt)
Resource Packs: ChromaHills128x-1.9_v0.1.zip, ChromaHillsMods-128x1.9_v1.0.zip, PF.Resources.zip
Current Language: English (US)
Profiler Position: N/A (disabled)
CPU: 8x Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz
OptiFine Version: OptiFine_1.9_HD_U_B2_pre
Render Distance Chunks: 8
Mipmaps: 4
Anisotropic Filtering: 1
Antialiasing: 0
Multitexture: false
Shaders: 'Sildurs Enhanced Default v1.0.1.zip
OpenGlVersion: 4.5.0 NVIDIA 361.91
OpenGlRenderer: Quadro M1000M/PCIe/SSE2
OpenGlVendor: NVIDIA Corporation
CpuCount: 8
bonii-xx commented 8 years ago

Ok, I need you to test if it also happens without Optifine, and if it does, if it also happens with only TiC and Mantle, no other mods.

And yes, we obviously can't support custom builds.

JonnyBrando commented 8 years ago

Tested without OF, and it loads up just fine (with the RPs). Tested with OF B1, and it appears to work as well (with the RPs). Looks like the texture map is larger (8192x8192) Tested with OF B2 PRE, and it crashes. Looks like the texture map is smaller (2048x1024)

crash-2016-04-23_12.01.08-client.txt

fml-client-of_b2-crash.txt shadersmod-of_b2-crash.txt

fml-client-of_b1-works.txt shadersmod-of_b1-works.txt

fml-client-no_of-works.txt

bonii-xx commented 8 years ago

Well, there you have it, Optifine screwing things up, as always.

Judging by that one stacktrace in the crash it looks like BetterFoliage also has some Optifine integration that causes a crash. Might want to remove Betterfoliage and see if B2 works with that.

sp614x commented 8 years ago

Forge #1863 + Mantle 0.9.4 + TC 2.2.2 + OptiFine B2_pre are working fine: http://i.imgur.com/pftscIB.png. Adding BetterFoliage 2.0.9 causes TC to crash. Only BetterFoliage 2.0.9 + OptiFine B2_pre also crashes: http://pastebin.com/raw/Q79npS7z

JonnyBrando commented 8 years ago

Same version of BF 2.0.9 here as well.

If I remove Tinkers & Mantle I can play MC just fine with OF B2_pre / BetterFoliage 2.0.9 / Forge 1865.

I get the same error, but, it doesn't crash and still works. The texturemap stays 8192x8192. With tinkers, the texturemap size changes, and it completely crashes.

Yes, strange, I had it run once as well.

Changed resource packs because my daughter was on a MP Server, and it crashed.

Tried without RPs, still crashes now.

I typically use ChromaHills and PresenseFootsteps (I don't really care about PF) for RPs.

Running with OF B1 for now, and all is good.

octarine-noise commented 8 years ago

The problem is entirely BetterFoliage. I'll push out a fix shortly.

bonii-xx commented 8 years ago

https://github.com/octarine-noise/BetterFoliage/issues/59

sp614x commented 8 years ago

Fixed in Better Foliage 2.0.10.