1. Le forum de Minecraft-France va définitivement fermer ses portes. Celui-ci restera en lecture seule mais vous ne pourrez plus y apporter de nouveaux topics. Nous vous invitons à nous rejoindre sur le Discord de Minecraft-France qui permet de présenter vos projets, discuter avec la communauté etc.. Merci à tous d'avoir fait vivre ce forum de nombreuses années. Pour nous rejoindre sur Discord, Cliquez ici

Résolu Erreur model json 1.8

Discussion dans 'Aide à la création de mod' créé par manelGad, 20 Oct 2016.

  1. manelGad

    manelGad Enter the World

    Inscrit:
    23 Mai 2015
    Messages:
    26
    Points:
    11
    Sexe:
    Homme
    Salut à tous, je suis nouveau en matière de création de mods et j'ai voulu m'attaquer à quelque chose de très utile c'est à dire les blocs "machine" avec TileEntities, GUIs et tout le tremblement. Je me suis beaucoup renseigné et jusque là tout va bien sauf que mon bloc n'affiche aucune texture (ni en tant que bloc ni en tant qu'item), ce qui est tout à fait gênant.
    Je vous communique donc les logs d'Eclipse lors du lancement du jeux ainsi que toutes mes sources et ressources (bon c'est vraiment une version du début du commencement donc vous étonnez pas si c'est graphiquement très minimaliste voir carrément pas fini (même dans le code à certains endroit très certainement.. Je débute))

    Les logs :

    Code (cpp):
    [11:56:16] [main/INFO] [GradleStart]: username: manelGad
    [11:56:16] [main/INFO] [GradleStart]: Extra: []
    [11:56:16] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/Gaétan/.gradle/caches/minecraft/assets, --assetIndex, 1.8, --accessToken{REDACTED}, --version, 1.8, --username, manelGad, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
    [11:56:16] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
    [11:56:16] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
    [11:56:16] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
    [11:56:16] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
    [11:56:16] [main/INFO] [FML]: Forge Mod Loader version 11.14.4.1563 for Minecraft 1.8 loading
    [11:56:16] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_101, running on Windows 8.1:amd64:6.3, installed at C:\Program Files\Java\jre1.8.0_101
    [11:56:16] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
    [11:56:16] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
    [11:56:16] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin
    [11:56:16] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
    [11:56:16] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
    [11:56:16] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
    [11:56:16] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
    [11:56:16] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
    [11:56:16] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
    [11:56:16] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
    [11:56:16] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
    [11:56:18] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
    [11:56:18] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
    [11:56:18] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
    [11:56:19] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
    [11:56:19] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
    [11:56:19] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
    [11:56:19] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
    [11:56:21] [Client thread/INFO]: Setting user: manelGad
    [11:56:25] [Client thread/INFO]: LWJGL Version: 2.9.1
    [11:56:28] [Client thread/INFO] [STDOUT]: [net.minecraftforge.fml.client.SplashProgress:start:246]: ---- Minecraft Crash Report ----
    // You're mean.

    Time: 20/10/16 11:56
    Description: Loading screen debug info

    This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR


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

    -- System Details --
    Details:
       Minecraft Version: 1.8
       Operating System: Windows 8.1 (amd64) version 6.3
       Java Version: 1.8.0_101, Oracle Corporation
       Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
       Memory: 802072952 bytes (764 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
       JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
       IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
       FML:
       Loaded coremods (and transformers):
       GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 372.70' Renderer: 'GeForce 830M/PCIe/SSE2'
    [11:56:28] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization
    [11:56:28] [Client thread/INFO] [FML]: MinecraftForge v11.14.4.1563 Initialized
    [11:56:28] [Client thread/INFO] [FML]: Replaced 204 ore recipies
    [11:56:28] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization
    [11:56:28] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer
    [11:56:28] [Client thread/INFO] [FML]: Searching C:\Eclipse workspace for Java\Solar Craft Mod 1.8 1563\run\mods for mods
    [11:56:31] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
    [11:56:32] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, scm] at CLIENT
    [11:56:32] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, scm] at SERVER
    [11:56:33] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:SolarCraft Mod
    [11:56:33] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
    [11:56:33] [Client thread/INFO] [FML]: Found 384 ObjectHolder annotations
    [11:56:33] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations
    [11:56:33] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations
    [11:56:33] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
    [11:56:33] [Forge Version Check/INFO] [ForgeVersionCheck]: [Forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
    [11:56:33] [Client thread/INFO] [FML]: Applying holder lookups
    [11:56:33] [Client thread/INFO] [FML]: Holder lookups applied
    [11:56:33] [Client thread/INFO] [FML]: Injecting itemstacks
    [11:56:33] [Client thread/INFO] [FML]: Itemstack injection complete
    [11:56:34] [Forge Version Check/INFO] [ForgeVersionCheck]: [Forge] Found status: UP_TO_DATE Target: null
    [11:56:34] [Sound Library Loader/INFO]: Starting up SoundSystem...
    [11:56:34] [Thread-9/INFO]: Initializing LWJGL OpenAL
    [11:56:34] [Thread-9/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
    [11:56:34] [Thread-9/INFO]: OpenAL initialized.
    [11:56:35] [Sound Library Loader/INFO]: Sound engine started
    [11:56:46] [Client thread/ERROR] [FML]: Exception loading model scm:block/separator with loader instance, skipping
    com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Unterminated object at line 5 column 3
       at com.google.gson.internal.Streams.parse(Streams.java:56) ~[Streams.class:?]
       at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:54) ~[TreeTypeAdapter.class:?]
       at com.google.gson.Gson.fromJson(Gson.java:803) ~[Gson.class:?]
       at com.google.gson.Gson.fromJson(Gson.java:741) ~[Gson.class:?]
       at net.minecraft.client.renderer.block.model.ModelBlock.deserialize(ModelBlock.java:47) ~[ModelBlock.class:?]
       at net.minecraft.client.resources.model.ModelBakery.loadModel(ModelBakery.java:269) ~[ModelBakery.class:?]
       at net.minecraftforge.client.model.ModelLoader.access$900(ModelLoader.java:68) ~[ModelLoader.class:?]
       at net.minecraftforge.client.model.ModelLoader$VanillaLoader.loadModel(ModelLoader.java:677) ~[ModelLoader$VanillaLoader.class:?]
       at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:106) [ModelLoaderRegistry.class:?]
       at net.minecraftforge.client.model.ModelLoader.loadAnyModel(ModelLoader.java:226) [ModelLoader.class:?]
       at net.minecraftforge.client.model.ModelLoader.getModel(ModelLoader.java:207) [ModelLoader.class:?]
       at net.minecraftforge.client.model.ModelLoader$WeightedRandomModel.<init>(ModelLoader.java:516) [ModelLoader$WeightedRandomModel.class:?]
       at net.minecraftforge.client.model.ModelLoader.registerVariant(ModelLoader.java:165) [ModelLoader.class:?]
       at net.minecraft.client.resources.model.ModelBakery.loadVariants(ModelBakery.java:122) [ModelBakery.class:?]
       at net.minecraftforge.client.model.ModelLoader.loadBlocks(ModelLoader.java:146) [ModelLoader.class:?]
       at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:94) [ModelLoader.class:?]
       at net.minecraft.client.resources.model.ModelManager.onResourceManagerReload(ModelManager.java:29) [ModelManager.class:?]
       at net.minecraft.client.resources.SimpleReloadableResourceManager.registerReloadListener(SimpleReloadableResourceManager.java:130) [SimpleReloadableResourceManager.class:?]
       at net.minecraft.client.Minecraft.startGame(Minecraft.java:511) [Minecraft.class:?]
       at net.minecraft.client.Minecraft.run(Minecraft.java:356) [Minecraft.class:?]
       at net.minecraft.client.main.Main.main(Main.java:117) [Main.class:?]
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_101]
       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_101]
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_101]
       at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_101]
       at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]
       at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_101]
       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_101]
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_101]
       at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_101]
       at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?]
       at GradleStart.main(Unknown Source) [start/:?]
    Caused by: com.google.gson.stream.MalformedJsonException: Unterminated object at line 5 column 3
       at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1505) ~[JsonReader.class:?]
       at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:480) ~[JsonReader.class:?]
       at com.google.gson.stream.JsonReader.hasNext(JsonReader.java:403) ~[JsonReader.class:?]
       at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:666) ~[TypeAdapters$25.class:?]
       at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:667) ~[TypeAdapters$25.class:?]
       at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:642) ~[TypeAdapters$25.class:?]
       at com.google.gson.internal.Streams.parse(Streams.java:44) ~[Streams.class:?]
       ... 32 more
    [11:56:46] [Client thread/INFO] [FML]: Max texture size: 16384
    [11:56:46] [Client thread/INFO]: Created: 16x16 textures-atlas
    [11:56:47] [Client thread/INFO] [FML]: Injecting itemstacks
    [11:56:47] [Client thread/INFO] [FML]: Itemstack injection complete
    [11:56:48] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods
    [11:56:48] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:SolarCraft Mod
    [11:56:48] [Client thread/INFO]: SoundSystem shutting down...
    [11:56:48] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com
    [11:56:48] [Sound Library Loader/INFO]: Starting up SoundSystem...
    [11:56:48] [Thread-11/INFO]: Initializing LWJGL OpenAL
    [11:56:48] [Thread-11/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
    [11:56:48] [Thread-11/INFO]: OpenAL initialized.
    [11:56:49] [Sound Library Loader/INFO]: Sound engine started
    [11:56:52] [Client thread/ERROR] [FML]: Exception loading model scm:block/separator with loader instance, skipping
    com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Unterminated object at line 5 column 3
       at com.google.gson.internal.Streams.parse(Streams.java:56) ~[Streams.class:?]
       at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:54) ~[TreeTypeAdapter.class:?]
       at com.google.gson.Gson.fromJson(Gson.java:803) ~[Gson.class:?]
       at com.google.gson.Gson.fromJson(Gson.java:741) ~[Gson.class:?]
       at net.minecraft.client.renderer.block.model.ModelBlock.deserialize(ModelBlock.java:47) ~[ModelBlock.class:?]
       at net.minecraft.client.resources.model.ModelBakery.loadModel(ModelBakery.java:269) ~[ModelBakery.class:?]
       at net.minecraftforge.client.model.ModelLoader.access$900(ModelLoader.java:68) ~[ModelLoader.class:?]
       at net.minecraftforge.client.model.ModelLoader$VanillaLoader.loadModel(ModelLoader.java:677) ~[ModelLoader$VanillaLoader.class:?]
       at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:106) [ModelLoaderRegistry.class:?]
       at net.minecraftforge.client.model.ModelLoader.loadAnyModel(ModelLoader.java:226) [ModelLoader.class:?]
       at net.minecraftforge.client.model.ModelLoader.getModel(ModelLoader.java:207) [ModelLoader.class:?]
       at net.minecraftforge.client.model.ModelLoader$WeightedRandomModel.<init>(ModelLoader.java:516) [ModelLoader$WeightedRandomModel.class:?]
       at net.minecraftforge.client.model.ModelLoader.registerVariant(ModelLoader.java:165) [ModelLoader.class:?]
       at net.minecraft.client.resources.model.ModelBakery.loadVariants(ModelBakery.java:122) [ModelBakery.class:?]
       at net.minecraftforge.client.model.ModelLoader.loadBlocks(ModelLoader.java:146) [ModelLoader.class:?]
       at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:94) [ModelLoader.class:?]
       at net.minecraft.client.resources.model.ModelManager.onResourceManagerReload(ModelManager.java:29) [ModelManager.class:?]
       at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:143) [SimpleReloadableResourceManager.class:?]
       at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:121) [SimpleReloadableResourceManager.class:?]
       at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:774) [Minecraft.class:?]
       at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:332) [FMLClientHandler.class:?]
       at net.minecraft.client.Minecraft.startGame(Minecraft.java:528) [Minecraft.class:?]
       at net.minecraft.client.Minecraft.run(Minecraft.java:356) [Minecraft.class:?]
       at net.minecraft.client.main.Main.main(Main.java:117) [Main.class:?]
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_101]
       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_101]
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_101]
       at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_101]
       at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]
       at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_101]
       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_101]
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_101]
       at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_101]
       at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?]
       at GradleStart.main(Unknown Source) [start/:?]
    Caused by: com.google.gson.stream.MalformedJsonException: Unterminated object at line 5 column 3
       at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1505) ~[JsonReader.class:?]
       at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:480) ~[JsonReader.class:?]
       at com.google.gson.stream.JsonReader.hasNext(JsonReader.java:403) ~[JsonReader.class:?]
       at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:666) ~[TypeAdapters$25.class:?]
       at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:667) ~[TypeAdapters$25.class:?]
       at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:642) ~[TypeAdapters$25.class:?]
       at com.google.gson.internal.Streams.parse(Streams.java:44) ~[Streams.class:?]
       ... 35 more
    [11:56:52] [Client thread/INFO] [FML]: Max texture size: 16384
    [11:56:53] [Client thread/INFO]: Created: 512x512 textures-atlas
    [11:56:57] [Client thread/INFO]: Stopping!
    [11:56:57] [Client thread/INFO]: SoundSystem shutting down...
    [11:56:57] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com
    ________________________________________________________________________________________
    Les src: https://github.com/manelGad/mod-src

    Merci d'avance pour votre aide ^^.

    p.s: Si vous avez des suggestions d'amélioration dans ce que j'ai fais ou ce que je pourrai faire, je suis toujours ouvert aux critiques ^^. Et comme je compte rajouter un système d'énergie (probablement des RF pour la compatibilité n'est-ce pas), si vous avez des ressources à me proposer à ce sujet n'hésitez pas.

    Encore merci.
     
    #1 manelGad, 20 Oct 2016
    Dernière édition par un modérateur: 20 Oct 2016
  2. robin4002

    robin4002 Support Technique
    Staff

    Inscrit:
    17 Août 2012
    Messages:
    5 478
    Points:
    229
    Sexe:
    Homme
    Salut,
    Tes json sont mal formé :
    [11:56:46] [Client thread/ERROR] [FML]: Exception loading model scm:block/separator with loader instance, skipping
    com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Unterminated object at line 5 column 3
    la ligne 5 du fichier scm:block/separator n'est pas bonne.
    Tu peux vérifier tes jsons avec http://jsonlint.com/#
     
  3. manelGad

    manelGad Enter the World

    Inscrit:
    23 Mai 2015
    Messages:
    26
    Points:
    11
    Sexe:
    Homme
    J'avais bien vu ça mais j'avais .... Bon en vrai je l'avais soupçonné et j'aurai du tester de mettre des virgules pour séparer les éléments de mon tableau.. J'ai été bête mais merci beaucoup pour le site :).
     

Partager cette page