Page 1 of 1

[PLEASE READ] Things to check before posting a question

Posted: 23 Sep 2016, 18:33
by HanFox

Model Troubleshooting Tips

The same questions keep coming up and most of them you can solve pretty easily yourself.

Firstly...

Make sure you've watched the video tutorials and read the tips and tricks and read the frequently asked questions.

Do a forum search for your issue either using the forum's search function or using Google using the Cubik forum as the site in the search term (e.g. site:http://bdcraft.net/community/cubik/ your issue).

The views in game are different from in Cubik

How models work changed between MC1.8 and MC1.9. To support this Cubik now supplies 2 exe files.

The one for MC1.8 models is called: BDcraft Cubik PRO MC18.exe

The one for MC1.9+ models is called: BDcraft Cubik PRO.exe

A placed model block makes "holes"/X-ray in other blocks

This is caused due to other blocks culling their faces.

The only ways around it is to either make your model fill a full block, so you can't see around the edges of it when placed, or use a block for your model that won't effect other blocks' culling, e.g. glass.

Figuring out issues yourself (such as pink models or models not loading at all)

If you run the Minecraft launcher and keep it visible you can see the log screen which spits out useful errors/warnings about models.

To keep the log open whilst running Minecraft go to "Edit Profile" in the launcher and tick the box "Launcher Visibility". In the dropdown change it to "Keep launcher open".

On the launcher screen you can then click the "Game Output (yournick)" tab and it'll show you all the general information about what Minecraft is doing.

You will then be able to see errors such as this:
Show

Code: Select all

[01:40:33] [Client thread/WARN]: Unable to load item model: 'minecraft:item/bed' for item: 'minecraft:bed'
com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Unterminated object at line 12 column 4
	at com.google.gson.internal.Streams.parse(Streams.java:56) ~[gson-2.2.4.jar:?]
	at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:54) ~[gson-2.2.4.jar:?]
	at com.google.gson.Gson.fromJson(Gson.java:803) ~[gson-2.2.4.jar:?]
	at com.google.gson.Gson.fromJson(Gson.java:741) ~[gson-2.2.4.jar:?]
	at bgl.a(SourceFile:50) ~[1.8.9.jar:?]
	at bot.c(SourceFile:264) ~[1.8.9.jar:?]
	at bot.d(SourceFile:291) [1.8.9.jar:?]
	at bot.b(SourceFile:160) [1.8.9.jar:?]
	at bot.a(SourceFile:135) [1.8.9.jar:?]
	at bou.a(SourceFile:23) [1.8.9.jar:?]
	at bnn.c(SourceFile:104) [1.8.9.jar:?]
	at bnn.a(SourceFile:92) [1.8.9.jar:?]
	at ave.e(SourceFile:652) [1.8.9.jar:?]
	at azo.a(SourceFile:168) [1.8.9.jar:?]
	at axu.a(SourceFile:350) [1.8.9.jar:?]
	at azo.a(SourceFile:176) [1.8.9.jar:?]
	at axu.k(SourceFile:413) [1.8.9.jar:?]
	at azo.k(SourceFile:77) [1.8.9.jar:?]
	at axu.p(SourceFile:390) [1.8.9.jar:?]
	at ave.s(SourceFile:1498) [1.8.9.jar:?]
	at ave.av(SourceFile:889) [1.8.9.jar:?]
	at ave.a(SourceFile:325) [1.8.9.jar:?]
	at net.minecraft.client.main.Main.main(SourceFile:124) [1.8.9.jar:?]
Caused by: com.google.gson.stream.MalformedJsonException: Unterminated object at line 12 column 4
	at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1505) ~[gson-2.2.4.jar:?]
	at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:480) ~[gson-2.2.4.jar:?]
	at com.google.gson.stream.JsonReader.hasNext(JsonReader.java:403) ~[gson-2.2.4.jar:?]
	at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:666) ~[gson-2.2.4.jar:?]
	at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:667) ~[gson-2.2.4.jar:?]
	at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:642) ~[gson-2.2.4.jar:?]
	at com.google.gson.internal.Streams.parse(Streams.java:44) ~[gson-2.2.4.jar:?]
	... 22 more


This particular log tells you that there's an "Unterminated object" on line 12 of the item/bed.json (this is usually a missing comma):

Code: Select all

[01:40:33] [Client thread/WARN]: Unable to load item model: 'minecraft:item/bed' for item: 'minecraft:bed'
com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Unterminated object at line 12 column 4
You can also check for errors in your json using JSONLint.

If you can't figure out how to fix your error after reading the log and checking JSONLint then post the log contents in Show
tags on the forum when you post.

If you still need help

If you haven't figured out the issue from the log and still need help then supply the:
  • Minecraft version you're making models for
  • Name of the Cubik exe you're using
  • Minecraft log as described above (using Show
    tags) if it does show errors
    [*]JSON of the file that's causing you issues in Show
    tags (the whole file, not just snippets)
    • Or a small example resourcepack including the json and textures
    [*]Screenshots of the issue