Problèmes de mise à jour : entités et modid minuscule-majuscule



  • Salut
    J'ai encore quelques problèmes avec mon mod, mais cette fois ça concerne la mise à jour en 1.11

    J'ai réussi à réparer les textures et tout (il ne faut pas de majuscule). Mais mon problème concerne les entités, et j'ai aussi une question.

    Déjà, voilà les logs :

    2016-12-03 17:41:06,773 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
    2016-12-03 17:41:06,775 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
    [17:41:06] [main/INFO] [GradleStart]: Extra: []
    [17:41:06] [main/INFO] [GradleStart]: Running with arguments: [–userProperties, {}, --assetsDir, C:/Users/Antonin/.gradle/caches/minecraft/assets, --assetIndex, 1.11, --accessToken{REDACTED}, --version, 1.11, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
    [17:41:06] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
    [17:41:06] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
    [17:41:06] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
    [17:41:06] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
    [17:41:06] [main/INFO] [FML]: Forge Mod Loader version 13.19.0.2160 for Minecraft 1.11 loading
    [17:41:06] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_92, running on Windows 10:amd64:10.0, installed at G:\Programmes\Java\jre
    [17:41:06] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
    [17:41:07] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
    [17:41:07] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin
    [17:41:07] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
    [17:41:07] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
    [17:41:07] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
    [17:41:07] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
    [17:41:07] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
    [17:41:07] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
    [17:41:07] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
    [17:41:07] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
    [17:41:10] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
    [17:41:10] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
    [17:41:10] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
    [17:41:11] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
    [17:41:11] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
    [17:41:11] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
    [17:41:11] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
    2016-12-03 17:41:14,607 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
    2016-12-03 17:41:14,846 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
    2016-12-03 17:41:14,866 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
    [17:41:15] [Client thread/INFO]: Setting user: Player699
    [17:41:22] [Client thread/INFO]: LWJGL Version: 2.9.4
    [17:41:23] [Client thread/INFO]: [STDOUT]: –-- Minecraft Crash Report ----
    // Oops.
    
    Time: 03/12/16 17:41
    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.11
    Operating System: Windows 10 (amd64) version 10.0
    Java Version: 1.8.0_92, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 836465176 bytes (797 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: 'ATI Technologies Inc.' Version: '4.5.14009 Compatibility Profile Context 21.19.151.3' Renderer: 'AMD Radeon R9 200 Series'
    [17:41:23] [Client thread/INFO] [FML]: MinecraftForge v13.19.0.2160 Initialized
    [17:41:23] [Client thread/INFO] [FML]: Replaced 232 ore recipes
    [17:41:24] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer
    [17:41:24] [Client thread/INFO] [FML]: Searching G:\Codage\Minecraft\This_is_Christmas\v1.3\MC 1.11\run\mods for mods
    [17:41:24] [Client thread/WARN] [FML]: ****************************************
    [17:41:24] [Client thread/WARN] [FML]: * The modid This_is_Christmas is not the same as it's lowercase version. Lowercasing will be enforced in 1.11
    [17:41:24] [Client thread/WARN] [FML]: * at net.minecraftforge.fml.common.FMLModContainer.sanityCheckModId(FMLModContainer.java:143)
    [17:41:24] [Client thread/WARN] [FML]: * at net.minecraftforge.fml.common.FMLModContainer.<init>(FMLModContainer.java:128)
    [17:41:24] [Client thread/WARN] [FML]: * at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    [17:41:24] [Client thread/WARN] [FML]: * at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    [17:41:24] [Client thread/WARN] [FML]: * at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    [17:41:24] [Client thread/WARN] [FML]: * at java.lang.reflect.Constructor.newInstance(Unknown Source)…
    [17:41:24] [Client thread/WARN] [FML]: ****************************************
    [17:41:26] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
    [17:41:27] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, forge, This_is_Christmas] at CLIENT
    [17:41:27] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, forge, This_is_Christmas] at SERVER
    [17:41:28] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:This is Christmas
    [17:41:28] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
    [17:41:28] [Client thread/INFO] [FML]: Found 443 ObjectHolder annotations
    [17:41:28] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations
    [17:41:28] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations
    [17:41:28] [Client thread/INFO] [FML]: Applying holder lookups
    [17:41:28] [Client thread/INFO] [FML]: Holder lookups applied
    [17:41:28] [Client thread/INFO] [FML]: Applying holder lookups
    [17:41:28] [Client thread/INFO] [FML]: Holder lookups applied
    [17:41:28] [Client thread/INFO] [FML]: Applying holder lookups
    [17:41:28] [Client thread/INFO] [FML]: Holder lookups applied
    [17:41:28] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
    [17:41:28] [Forge Version Check/INFO] [ForgeVersionCheck]: [forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
    [17:41:28] [Client thread/INFO] [FML]: Applying holder lookups
    [17:41:28] [Client thread/INFO] [FML]: Holder lookups applied
    [17:41:28] [Client thread/INFO] [FML]: Injecting itemstacks
    [17:41:28] [Client thread/INFO] [FML]: Itemstack injection complete
    [17:41:28] [Forge Version Check/INFO] [ForgeVersionCheck]: [forge] Found status: BETA_OUTDATED Target: 13.19.0.2178
    [17:41:35] [Sound Library Loader/INFO]: Starting up SoundSystem…
    [17:41:35] [Thread-8/INFO]: Initializing LWJGL OpenAL
    [17:41:35] [Thread-8/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org)
    [17:41:35] [Thread-8/INFO]: OpenAL initialized.
    [17:41:35] [Sound Library Loader/INFO]: Sound engine started
    [17:41:44] [Client thread/INFO] [FML]: Max texture size: 16384
    [17:41:44] [Client thread/INFO]: Created: 16x16 textures-atlas
    [17:41:46] [Client thread/INFO] [FML]: Injecting itemstacks
    [17:41:46] [Client thread/INFO] [FML]: Itemstack injection complete
    [17:41:47] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods
    [17:41:47] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:This is Christmas
    [17:41:51] [Client thread/INFO]: SoundSystem shutting down…
    [17:41:51] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com
    [17:41:51] [Sound Library Loader/INFO]: Starting up SoundSystem…
    [17:41:51] [Thread-10/INFO]: Initializing LWJGL OpenAL
    [17:41:51] [Thread-10/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org)
    [17:41:51] [Thread-10/INFO]: OpenAL initialized.
    [17:41:52] [Sound Library Loader/INFO]: Sound engine started
    [17:41:58] [Client thread/INFO] [FML]: Max texture size: 16384
    [17:41:58] [Client thread/INFO]: Created: 512x512 textures-atlas
    [17:42:00] [Realms Notification Availability checker #1/INFO]: Could not authorize you against Realms server: Invalid session id
    [17:42:09] [Server thread/INFO]: Starting integrated minecraft server version 1.11
    [17:42:09] [Server thread/INFO]: Generating keypair
    [17:42:09] [Server thread/ERROR] [fml.ModTracker]: This world was saved with mod Forge which appears to be missing, things may not work well
    [17:42:09] [Server thread/INFO] [FML]: Injecting existing block and item data into this server instance
    [17:42:09] [Server thread/INFO] [FML]: Found a missing id from the world this_is_christmas:snowstick
    [17:42:09] [Server thread/INFO] [FML]: Found a missing id from the world minecraft:entity.experience_orb.touch
    [17:42:09] [Server thread/ERROR] [FML]: There are unidentified mappings in this world - we are going to attempt to process anyway
    [17:42:09] [Server thread/ERROR] [FML]: Unidentified item: this_is_christmas:snowstick, id 4175
    [17:42:11] [Server thread/INFO] [FML]: World backup created at G:\Codage\Minecraft\This_is_Christmas\v1.3\MC 1.11\run\saves\All blocks, items and entities-20161203-174210.zip.
    [17:42:11] [Server thread/WARN] [FML]: This world contains block and item mappings that may cause world breakage
    [17:42:11] [Server thread/INFO] [FML]: Applying holder lookups
    [17:42:11] [Server thread/INFO] [FML]: Holder lookups applied
    [17:42:11] [Server thread/INFO] [FML]: Loading dimension 0 (All blocks, items and entities) (net.minecraft.server.integrated.IntegratedServer@25ecc0db)
    [17:42:11] [Server thread/INFO] [FML]: Loading dimension 1 (All blocks, items and entities) (net.minecraft.server.integrated.IntegratedServer@25ecc0db)
    [17:42:11] [Server thread/INFO] [FML]: Loading dimension -1 (All blocks, items and entities) (net.minecraft.server.integrated.IntegratedServer@25ecc0db)
    [17:42:11] [Server thread/INFO]: Preparing start region for level 0
    [17:42:12] [Server thread/WARN]: Skipping Entity with id minecraft:this_is_christmas.mob
    [17:42:12] [Server thread/WARN]: Skipping Entity with id minecraft:this_is_christmas.mob
    [17:42:12] [Server thread/WARN]: Skipping Entity with id minecraft:this_is_christmas.mob
    [17:42:12] [Server thread/WARN]: Skipping Entity with id minecraft:this_is_christmas.mob
    [17:42:12] [Server thread/WARN]: Skipping Entity with id minecraft:this_is_christmas.mob
    [17:42:12] [Server thread/WARN]: Skipping Entity with id minecraft:this_is_christmas.mob
    [17:42:12] [Server thread/WARN]: Skipping Entity with id minecraft:this_is_christmas.mob
    [17:42:12] [Server thread/WARN]: Skipping Entity with id minecraft:this_is_christmas.mob
    [17:42:12] [Server thread/WARN]: Skipping Entity with id minecraft:this_is_christmas.mob
    [17:42:12] [Server thread/WARN]: Skipping Entity with id minecraft:this_is_christmas.mob
    [17:42:12] [Server thread/WARN]: Skipping Entity with id minecraft:this_is_christmas.mob
    [17:42:12] [Server thread/WARN]: Skipping Entity with id minecraft:this_is_christmas.reindeer
    [17:42:12] [Server thread/WARN]: Skipping Entity with id minecraft:this_is_christmas.mob
    [17:42:12] [Server thread/WARN]: Skipping Entity with id minecraft:this_is_christmas.reindeer
    [17:42:12] [Server thread/WARN]: Skipping Entity with id minecraft:this_is_christmas.reindeer
    [17:42:12] [Server thread/WARN]: Skipping Entity with id minecraft:this_is_christmas.reindeer
    [17:42:12] [Server thread/WARN]: Skipping Entity with id minecraft:this_is_christmas.reindeer
    [17:42:12] [Server thread/WARN]: Skipping Entity with id minecraft:this_is_christmas.mob
    [17:42:12] [Server thread/WARN]: Skipping Entity with id minecraft:this_is_christmas.reindeer
    [17:42:12] [Server thread/WARN]: Skipping Entity with id minecraft:this_is_christmas.mob
    [17:42:12] [Server thread/WARN]: Skipping Entity with id minecraft:this_is_christmas.pixie
    [17:42:12] [Server thread/WARN]: Skipping Entity with id minecraft:this_is_christmas.reindeer
    [17:42:12] [Server thread/WARN]: Skipping Entity with id minecraft:this_is_christmas.reindeer
    [17:42:12] [Server thread/WARN]: Skipping Entity with id minecraft:this_is_christmas.reindeer
    [17:42:12] [Server thread/WARN]: Skipping Entity with id minecraft:this_is_christmas.reindeer
    [17:42:12] [Server thread/WARN]: Skipping Entity with id minecraft:this_is_christmas.santaclaus
    [17:42:12] [Server thread/WARN]: Skipping Entity with id minecraft:this_is_christmas.reindeer
    [17:42:12] [Server thread/WARN]: Skipping Entity with id minecraft:this_is_christmas.reindeer
    [17:42:12] [Server thread/WARN]: Skipping Entity with id minecraft:this_is_christmas.reindeer
    [17:42:12] [Server thread/WARN]: Skipping Entity with id minecraft:this_is_christmas.mob
    [17:42:12] [Server thread/WARN]: Skipping Entity with id minecraft:this_is_christmas.reindeer
    [17:42:12] [Server thread/WARN]: Skipping Entity with id minecraft:this_is_christmas.reindeer
    [17:42:12] [Server thread/WARN]: Skipping Entity with id minecraft:this_is_christmas.reindeer
    [17:42:12] [Server thread/WARN]: Skipping Entity with id minecraft:this_is_christmas.reindeer
    [17:42:12] [Server thread/WARN]: Skipping Entity with id minecraft:this_is_christmas.mob
    [17:42:12] [Server thread/WARN]: Skipping Entity with id minecraft:this_is_christmas.reindeer
    [17:42:12] [Server thread/WARN]: Skipping Entity with id minecraft:this_is_christmas.reindeer
    [17:42:12] [Server thread/WARN]: Skipping Entity with id minecraft:this_is_christmas.mob
    [17:42:12] [Server thread/WARN]: Skipping Entity with id minecraft:this_is_christmas.mob
    [17:42:12] [Server thread/WARN]: Skipping Entity with id minecraft:this_is_christmas.mob
    [17:42:12] [Server thread/WARN]: Skipping Entity with id minecraft:this_is_christmas.mob
    [17:42:12] [Server thread/WARN]: Skipping Entity with id minecraft:this_is_christmas.mob
    [17:42:12] [Server thread/WARN]: Skipping Entity with id minecraft:this_is_christmas.mob
    [17:42:12] [Server thread/WARN]: Skipping Entity with id minecraft:this_is_christmas.mob
    [17:42:12] [Server thread/INFO]: Preparing spawn area: 91%
    [17:42:12] [Server thread/WARN]: Skipping Entity with id minecraft:this_is_christmas.mob
    [17:42:12] [Server thread/WARN]: Skipping Entity with id minecraft:this_is_christmas.mob
    [17:42:12] [Server thread/INFO]: Changing view distance to 12, from 10
    [17:42:14] [Client thread/INFO]: Stopping!
    [17:42:14] [Netty Local Client IO #0/INFO] [FML]: Server protocol version 2
    [17:42:14] [Netty Server IO #1/INFO] [FML]: Client protocol version 2
    [17:42:14] [Netty Server IO #1/INFO] [FML]: Client attempting to join with 4 mods : FML@8.0.99.99,This_is_Christmas@1.3,forge@13.19.0.2160,mcp@9.19
    [17:42:14] [Netty Local Client IO #0/INFO] [FML]: [Netty Local Client IO #0] Client side modded connection established
    [17:42:14] [Server thread/INFO] [FML]: [Server thread] Server side modded connection established
    [17:42:14] [Server thread/INFO]: Player699[local:E:4aeca107] logged in with entity id 13 at (-268.6069975227942, 64.0, -261.71200576922297)
    [17:42:14] [Server thread/INFO]: Player699 joined the game
    [17:42:14] [Server thread/INFO]: Stopping server
    [17:42:14] [Server thread/INFO]: Saving players
    [17:42:14] [Server thread/INFO]: Saving worlds
    [17:42:14] [Server thread/INFO]: Saving chunks for level 'All blocks, items and entities'/Overworld
    [17:42:14] [Server thread/INFO]: Saving chunks for level 'All blocks, items and entities'/Nether
    [17:42:14] [Server thread/INFO]: Saving chunks for level 'All blocks, items and entities'/The End
    [17:42:14] [Server thread/INFO] [FML]: Unloading dimension 0
    [17:42:14] [Server thread/INFO] [FML]: Unloading dimension -1
    [17:42:14] [Server thread/INFO] [FML]: Unloading dimension 1
    [17:42:14] [Client thread/INFO]: SoundSystem shutting down…
    [17:42:14] [Server thread/INFO] [FML]: Applying holder lookups
    [17:42:14] [Server thread/INFO] [FML]: Holder lookups applied
    [17:42:14] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com
    Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
    
    

    Comme vous pouvez le voir, le md "passe" les entités au chargement du monde (en gros, il les supprime). Mais on peut voir qu'il n'y a plus de majuscule au nom. J'avais donc pensé que c'était comme pour le reste, qu'il suffisait d'enlever les majuscules. Et bah non, c'est plus compliqué.

    Voilà mon code de base (donc celui de la version 1.10 et avant) qui enregistre les entités :

    public CreateEntities()
    {
    EntityRegistry.registerModEntity(new ResourceLocation(ThisisChristmas.MODID + ":" + "SantaClaus"), EntitySantaClaus.class, "SantaClaus", 500, ThisisChristmas.instance, 40, 1, true, 0xF20000, 0xFFFFFF);
    EntityRegistry.registerModEntity(new ResourceLocation(ThisisChristmas.MODID + ":" + "Pixie"), EntityPixie.class, "Pixie", 501, ThisisChristmas.instance, 40, 1, true, 0x137506, 0xFFFFFF);
    EntityRegistry.registerModEntity(new ResourceLocation(ThisisChristmas.MODID + ":" + "Reindeer"), EntityReindeer.class, "Reindeer", 502, ThisisChristmas.instance, 40, 1, true, 0x582900, 0x87591A);
    // Undder : santa claus's helper
    EntityRegistry.registerModEntity(new ResourceLocation(ThisisChristmas.MODID + ":" + "MOB"), EntitySantaClausHelper.class, "MOB", 503, ThisisChristmas.instance, 40, 1, true);
    }
    
    

    Et j'ai aussi une question : dans les logs ils disent que mon modid n'est pas le même que sa version en minuscule, et que les minuscule sont renforcées en 1.11. (bonne traduction ? : The modid This_is_Christmas is not the same as it's lowercase version. Lowercasing will be enforced in 1.11) Mais à part les entités, rien n'a disparu dans ma map (en 1.9.4, j'ai fait une map où je répertorie toutes les entités, items, blocks et costumes). Je pense que oui, mais est-ce que ce warning est lié au bug ci-dessus ? Est-ce que ça posera problème plus tard ?

    Merci d'avance</init>



  • Donnes nous le contenu de cette variable: ThisisChristmas.MODID
    Et la variable modid dans ton mcmodinfo 😉

    Ca peut effectivement venir de là (voir sûr ^^)



  • La variable MODID :

    public static final String MODID = "this_is_christmas";
    

    Et mon mcmod.info, bah en fait c'est assez compliqué. Je vais pas te le cacher, je l'ai pas du tout modifié, je l'ai jamais fait. Du coup c'est toujours celui de base. Mais le voilà quand même :

    [
    {
     "modid": "examplemod",
     "name": "Example Mod",
     "description": "Example placeholder mod.",
     "version": "${version}",
     "mcversion": "${mcversion}",
     "url": "",
     "updateUrl": "",
     "authorList": ["ExampleDude"],
     "credits": "The Forge and FML guys, for making this example",
     "logoFile": "",
     "screenshots": [],
     "dependencies": []
    }
    ]
    
    

    J'ai testé de changer le modid du fichier, et de lancer ma map, rien ne change (heureusement d'ailleurs). Je m'en vais le modifier.

    Mais ce qui peut sans doute t'intéressé, c'est le @Mod : ```java
    @Mod(modid = "This_is_Christmas", name = "This is Christmas", version = "1.3", acceptedMinecraftVersions = "1.11")

    C'est le modid interne qui doit buguer. En fait, celui-là n'est pas le même que la variable MODID car quand j'ai commencé mon mod, je m'y connaissais pas tellement. Sauf que si je modifie le modid comme ça, les entités marcheront sans doute mais plus les blocks/items/costumes. Sauf que pour modifier ce modid "indirectement" sans causer de conflit, j'ai trouvé un event : FMLModIdMappindEvent, de la classe net/minecraftforge/fml/common/event.
    
    Est-ce que tu pense que c'est ce modid qui fait buguer (étant donné que les majuscules sont interdits) ? Tu pense que je devrais utiliser cet event ? Si oui, faudra que je cherche comment faire.

  • Administrateurs

    @Mod(modid = "This_is_Christmas", name = "This is Christmas", version = "1.3", acceptedMinecraftVersions = "1.11")
    ->
    @Mod(modid = "this_is_christmas", name = "This is Christmas", version = "1.3", acceptedMinecraftVersions = "1.11")

    les modid ne doivent pas avoir de majuscule. Ça fait un moment que je le dis.

    Normalement ça ne devrait pas causer de problème pour les blocs et items.



  • Tu as raison, ça ne pose pas de problème pour les blocks et items. Mais les entités sont toujours passées. J'ai donc essayer d'enlever les majuscule des noms internes des mobs, ça ne marche toujours pas (j'en étais à peu près sûr). Par contre, dans l'enregistrement des entités, j'ai dû remplacer ThisisChristmas.instance par ThisisChristmas.MODID (ce qui ne doit pas changer grand chose je pense). Ca crashait sinon.
    Par contre, dans les logs, je viens de remarquer un truc : Skipping Entity with id minecraft:this_is_christmas.mob
    C'est normal que ce soit ça ? Ca ne devrait pas plutôt être this_is_christmas.mob ?


  • Administrateurs

    Le registre des entités étaient mal géré avant, d'où le fais que les entités étant enregistré comme "minecraft".

    Je ne sais pas s'il y a un moyen d'éviter leur perte 😕

    Tu peux m'envoyer le crash quand tu as l'instance dans registerModEntity ?



  • le voilà :

    2016-12-03 22:04:31,475 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
    2016-12-03 22:04:31,477 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
    [22:04:31] [main/INFO] [GradleStart]: Extra: []
    [22:04:31] [main/INFO] [GradleStart]: Running with arguments: [–userProperties, {}, --assetsDir, C:/Users/Antonin/.gradle/caches/minecraft/assets, --assetIndex, 1.11, --accessToken{REDACTED}, --version, 1.11, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
    [22:04:31] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
    [22:04:31] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
    [22:04:31] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
    [22:04:31] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
    [22:04:31] [main/INFO] [FML]: Forge Mod Loader version 13.19.0.2160 for Minecraft 1.11 loading
    [22:04:31] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_92, running on Windows 10:amd64:10.0, installed at G:\Programmes\Java\jre
    [22:04:31] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
    [22:04:31] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
    [22:04:31] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin
    [22:04:31] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
    [22:04:31] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
    [22:04:31] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
    [22:04:31] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
    [22:04:31] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
    [22:04:31] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
    [22:04:31] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
    [22:04:31] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
    [22:04:34] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
    [22:04:34] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
    [22:04:34] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
    [22:04:35] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
    [22:04:35] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
    [22:04:35] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
    [22:04:35] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
    2016-12-03 22:04:36,607 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
    2016-12-03 22:04:36,642 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
    2016-12-03 22:04:36,644 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
    [22:04:36] [Client thread/INFO]: Setting user: Player343
    [22:04:41] [Client thread/WARN]: Skipping bad option: lastServer:
    [22:04:41] [Client thread/INFO]: LWJGL Version: 2.9.4
    [22:04:42] [Client thread/INFO]: [STDOUT]: –-- Minecraft Crash Report ----
    // Why is it breaking :(
    
    Time: 03/12/16 22:04
    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.11
    Operating System: Windows 10 (amd64) version 10.0
    Java Version: 1.8.0_92, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 868331000 bytes (828 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: 'ATI Technologies Inc.' Version: '4.5.14009 Compatibility Profile Context 21.19.151.3' Renderer: 'AMD Radeon R9 200 Series'
    [22:04:43] [Client thread/INFO] [FML]: MinecraftForge v13.19.0.2160 Initialized
    [22:04:43] [Client thread/INFO] [FML]: Replaced 232 ore recipes
    [22:04:43] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer
    [22:04:43] [Client thread/INFO] [FML]: Searching G:\Codage\Minecraft\This_is_Christmas\v1.3\MC 1.11\run\mods for mods
    [22:04:45] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
    [22:04:45] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, forge, this_is_christmas] at CLIENT
    [22:04:45] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, forge, this_is_christmas] at SERVER
    [22:04:46] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:This is Christmas
    [22:04:46] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
    [22:04:46] [Client thread/INFO] [FML]: Found 443 ObjectHolder annotations
    [22:04:46] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations
    [22:04:46] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations
    [22:04:46] [Client thread/INFO] [FML]: Applying holder lookups
    [22:04:46] [Client thread/INFO] [FML]: Holder lookups applied
    [22:04:46] [Client thread/INFO] [FML]: Applying holder lookups
    [22:04:46] [Client thread/INFO] [FML]: Holder lookups applied
    [22:04:46] [Client thread/INFO] [FML]: Applying holder lookups
    [22:04:46] [Client thread/INFO] [FML]: Holder lookups applied
    [22:04:46] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
    [22:04:46] [Forge Version Check/INFO] [ForgeVersionCheck]: [forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
    [22:04:46] [Client thread/INFO] [FML]: Applying holder lookups
    [22:04:46] [Client thread/INFO] [FML]: Holder lookups applied
    [22:04:46] [Client thread/INFO] [FML]: Injecting itemstacks
    [22:04:46] [Client thread/INFO] [FML]: Itemstack injection complete
    [22:04:46] [Forge Version Check/INFO] [ForgeVersionCheck]: [forge] Found status: BETA_OUTDATED Target: 13.19.0.2180
    [22:04:51] [Sound Library Loader/INFO]: Starting up SoundSystem…
    [22:04:51] [Thread-8/INFO]: Initializing LWJGL OpenAL
    [22:04:51] [Thread-8/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org)
    [22:04:51] [Thread-8/INFO]: OpenAL initialized.
    [22:04:51] [Sound Library Loader/INFO]: Sound engine started
    [22:04:58] [Client thread/INFO] [FML]: Max texture size: 8192
    [22:04:58] [Client thread/INFO]: Created: 16x16 textures-atlas
    [22:04:59] [Client thread/ERROR] [FML]: Fatal errors were detected during the transition from INITIALIZATION to POSTINITIALIZATION. Loading cannot continue
    [22:04:59] [Client thread/ERROR] [FML]:
    States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
    UCHI mcp{9.19} [Minecraft Coder Pack] (minecraft.jar)
    UCHI FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.11-13.19.0.2160.jar)
    UCHI forge{13.19.0.2160} [Minecraft Forge] (forgeSrc-1.11-13.19.0.2160.jar)
    UCHE this_is_christmas{1.3} [This is Christmas] (bin)
    [22:04:59] [Client thread/ERROR] [FML]: The following problems were captured during this phase
    [22:04:59] [Client thread/ERROR] [FML]: Caught exception from This is Christmas (this_is_christmas)
    java.lang.NullPointerException
    at net.minecraftforge.fml.common.registry.EntityRegistry.doModEntityRegistration(EntityRegistry.java:183) ~[forgeSrc-1.11-13.19.0.2160.jar:?]
    at net.minecraftforge.fml.common.registry.EntityRegistry.registerModEntity(EntityRegistry.java:168) ~[forgeSrc-1.11-13.19.0.2160.jar:?]
    at ThisisChristmas.CreateEntities.<init>(CreateEntities.java:32) ~[bin/:?]
    at ThisisChristmas.ThisisChristmas.load(ThisisChristmas.java:77) ~[bin/:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_92]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_92]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_92]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_92]
    at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:602) ~[forgeSrc-1.11-13.19.0.2160.jar:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_92]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_92]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_92]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_92]
    at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?]
    at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?]
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?]
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?]
    at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?]
    at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:243) ~[forgeSrc-1.11-13.19.0.2160.jar:?]
    at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:221) ~[forgeSrc-1.11-13.19.0.2160.jar:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_92]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_92]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_92]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_92]
    at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?]
    at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?]
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?]
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?]
    at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?]
    at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:145) [LoadController.class:?]
    at net.minecraftforge.fml.common.Loader.initializeMods(Loader.java:795) [Loader.class:?]
    at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:330) [FMLClientHandler.class:?]
    at net.minecraft.client.Minecraft.startGame(Minecraft.java:560) [Minecraft.class:?]
    at net.minecraft.client.Minecraft.run(Minecraft.java:385) [Minecraft.class:?]
    at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_92]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_92]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_92]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_92]
    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_92]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_92]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_92]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_92]
    at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
    at GradleStart.main(GradleStart.java:26) [start/:?]
    [22:04:59] [Client thread/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:600]: –-- Minecraft Crash Report ----
    // But it works on my machine.
    
    Time: 03/12/16 22:04
    Description: There was a severe problem during mod loading that has caused the game to fail
    
    net.minecraftforge.fml.common.LoaderExceptionModCrash: Caught exception from This is Christmas (this_is_christmas)
    Caused by: java.lang.NullPointerException
    at net.minecraftforge.fml.common.registry.EntityRegistry.doModEntityRegistration(EntityRegistry.java:183)
    at net.minecraftforge.fml.common.registry.EntityRegistry.registerModEntity(EntityRegistry.java:168)
    at ThisisChristmas.CreateEntities.<init>(CreateEntities.java:32)
    at ThisisChristmas.ThisisChristmas.load(ThisisChristmas.java:77)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:602)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
    at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
    at com.google.common.eventbus.EventBus.post(EventBus.java:275)
    at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:243)
    at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:221)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
    at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
    at com.google.common.eventbus.EventBus.post(EventBus.java:275)
    at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:145)
    at net.minecraftforge.fml.common.Loader.initializeMods(Loader.java:795)
    at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:330)
    at net.minecraft.client.Minecraft.startGame(Minecraft.java:560)
    at net.minecraft.client.Minecraft.run(Minecraft.java:385)
    at net.minecraft.client.main.Main.main(Main.java:118)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97)
    at GradleStart.main(GradleStart.java:26)
    
    A detailed walkthrough of the error, its code path and all known details is as follows:
    ---------------------------------------------------------------------------------------
    
    -- System Details --
    Details:
    Minecraft Version: 1.11
    Operating System: Windows 10 (amd64) version 10.0
    Java Version: 1.8.0_92, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 729617200 bytes (695 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: MCP 9.35 Powered by Forge 13.19.0.2160 4 mods loaded, 4 mods active
    States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
    UCHI mcp{9.19} [Minecraft Coder Pack] (minecraft.jar)
    UCHI FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.11-13.19.0.2160.jar)
    UCHI forge{13.19.0.2160} [Minecraft Forge] (forgeSrc-1.11-13.19.0.2160.jar)
    UCHE this_is_christmas{1.3} [This is Christmas] (bin)
    Loaded coremods (and transformers):
    GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.5.14009 Compatibility Profile Context 21.19.151.3' Renderer: 'AMD Radeon R9 200 Series'
    [22:04:59] [Client thread/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:600]: #@!@# Game crashed! Crash report saved to: #@!@# G:\Codage\Minecraft\This_is_Christmas\v1.3\MC 1.11\run\.\crash-reports\crash-2016-12-03_22.04.59-client.txt
    AL lib: (EE) alc_cleanup: 1 device not closed
    Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
    
    

    J'ai peut-être une idée pour éviter la disparition des entités. Je peux essayer de rajouté minecraft. Je teste et je reviens te dire ce que ça fait</init></init>


  • Administrateurs

    Ton instance est null.
    Surement car le @Instance("ton modid") a encore des majuscules.



  • En fait, c'est pas un @Instance (je savais pas que ça existait), j'utilise une variable :```java
    public static ThisisChristmas instance;

    
    Sinon, pour les entités j'ai fait ```java
    EntityRegistry.registerModEntity(new ResourceLocation("minecraft:this_is_christmas." + "SantaClaus"), EntitySantaClaus.class, "SantaClaus",  500, ThisisChristmas.MODID, 40, 1, true, 0xF20000, 0xFFFFFF);
    
    ```et ça marche bien. Bon, je te l'accorde c'est un peu du raffistolage mais bon, ça marche. Par contre, ça fait un warning :```
    ****************************************
    [22:29:28] [Client thread/WARN] [FML]: * Dangerous alternative prefix `minecraft` for name `this_is_christmas.santaclaus`, expected `this_is_christmas` invalid registry invocation/invalid name?
    [22:29:28] [Client thread/WARN] [FML]: * at net.minecraftforge.fml.common.registry.IForgeRegistryEntry$Impl.setRegistryName(IForgeRegistryEntry.java:82)
    [22:29:28] [Client thread/WARN] [FML]: * at net.minecraftforge.fml.common.registry.IForgeRegistryEntry$Impl.setRegistryName(IForgeRegistryEntry.java:90)
    [22:29:28] [Client thread/WARN] [FML]: * at net.minecraftforge.fml.common.registry.EntityRegistry.doModEntityRegistration(EntityRegistry.java:181)
    [22:29:28] [Client thread/WARN] [FML]: * at net.minecraftforge.fml.common.registry.EntityRegistry.registerModEntity(EntityRegistry.java:168)
    [22:29:28] [Client thread/WARN] [FML]: * at ThisisChristmas.CreateEntities.<init>(CreateEntities.java:32)
    [22:29:28] [Client thread/WARN] [FML]: * at ThisisChristmas.ThisisChristmas.load(ThisisChristmas.java:82)…
    [22:29:28] [Client thread/WARN] [FML]: ****************************************
    ```mais c'est normal.
    
    Si un jour, un moyen existe pour modifier, je le ferais.</init>

  • Administrateurs

    @Instance(MODID)
    public static ThisisChristmas instance;

    @Instance est une interface de fml qui s'occupe d'initialiser l'instance du mod par réflexion.

    Je vais me renseigner pour les entités.