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 Crash quand ma structure structure ce génère.

Discussion dans 'Aide à la création de mod' créé par Arthaïr, 9 Mar 2016.

  1. Arthaïr

    Arthaïr Mineur

    Inscrit:
    1 Août 2014
    Messages:
    344
    Points:
    119
    Sexe:
    Homme
    La structure ce génère bien mais sauf que ça crash, je relance minecraft et c'est bon la structure et bien là.
     
  2. robin4002

    robin4002 Support Technique
    Staff

    Inscrit:
    17 Août 2012
    Messages:
    5 478
    Points:
    229
    Sexe:
    Homme
    rapport de crash ?
     
  3. Arthaïr

    Arthaïr Mineur

    Inscrit:
    1 Août 2014
    Messages:
    344
    Points:
    119
    Sexe:
    Homme
    Ha oui j'avais oublié
    Code (cpp):
    ---- Minecraft Crash Report ----
    // Sorry :(

    Time: 12/03/16 21:51
    Description: Ticking entity

    java.lang.NullPointerException: Ticking entity
        at net.minecraft.network.play.server.S10PacketSpawnPainting.<init>(S10PacketSpawnPainting.java:29)
        at net.minecraft.entity.EntityTrackerEntry.func_151260_c(EntityTrackerEntry.java:618)
        at net.minecraft.entity.EntityTrackerEntry.updatePlayerEntity(EntityTrackerEntry.java:377)
        at net.minecraft.entity.EntityTracker.func_85172_a(EntityTracker.java:361)
        at net.minecraft.entity.player.EntityPlayerMP.onUpdate(EntityPlayerMP.java:343)
        at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2031)
        at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:758)
        at net.minecraft.world.World.updateEntity(World.java:1997)
        at net.minecraft.world.World.updateEntities(World.java:1823)
        at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:587)
        at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:775)
        at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:669)
        at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:171)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:540)
        at java.lang.Thread.run(Thread.java:745)


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

    -- Head --
    Stacktrace:
        at net.minecraft.network.play.server.S10PacketSpawnPainting.<init>(S10PacketSpawnPainting.java:29)
        at net.minecraft.entity.EntityTrackerEntry.func_151260_c(EntityTrackerEntry.java:618)
        at net.minecraft.entity.EntityTrackerEntry.updatePlayerEntity(EntityTrackerEntry.java:377)
        at net.minecraft.entity.EntityTracker.func_85172_a(EntityTracker.java:361)
        at net.minecraft.entity.player.EntityPlayerMP.onUpdate(EntityPlayerMP.java:343)
        at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2031)
        at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:758)
        at net.minecraft.world.World.updateEntity(World.java:1997)

    -- Entity being ticked --
    Details:
        Entity Type: null (net.minecraft.entity.player.EntityPlayerMP)
        Entity ID: 349
        Entity Name: Player586
        Entity's Exact location: -1,31, 95,07, 1034,18
        Entity'
    s Block location: -2,00,95,00,1034,00 - World: (-2,95,1034), Chunk: (at 14,5,10 in -1,64; contains blocks -16,0,1024 to -1,255,1039), Region: (-1,2; contains chunks -32,64 to -1,95, blocks -512,0,1024 to -1,255,1535)
        Entity's Momentum: 0,00, 0,00, 0,00
        Entity'
    s Rider: ~~ERROR~~ NullPointerException: null
        Entity's Vehicle: ~~ERROR~~ NullPointerException: null
    Stacktrace:
        at net.minecraft.world.World.updateEntities(World.java:1823)
        at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:587)

    -- Affected level --
    Details:
        Level name: New World
        All players: 1 total; [EntityPlayerMP['
    Player586'/349, l='New World', x=-1,31, y=95,07, z=1034,18]]
        Chunk stats: ServerChunkCache: 1039 Drop: 0
        Level seed: -4335628213747785772
        Level generator: ID 04 - customized, ver 0. Features enabled: true
        Level generator options: {"coordinateScale":684.412,"heightScale":684.412,"lowerLimitScale":512.0,"upperLimitScale":512.0,"depthNoiseScaleX":200.0,"depthNoiseScaleZ":200.0,"depthNoiseScaleExponent":0.5,"mainNoiseScaleX":80.0,"mainNoiseScaleY":160.0,"mainNoiseScaleZ":80.0,"baseSize":8.5,"stretchY":12.0,"biomeDepthWeight":1.0,"biomeDepthOffset":0.0,"biomeScaleWeight":1.0,"biomeScaleOffset":0.0,"seaLevel":63,"useCaves":true,"useDungeons":true,"dungeonChance":100,"useStrongholds":true,"useVillages":true,"useMineShafts":true,"useTemples":true,"useMonuments":true,"useRavines":true,"useWaterLakes":true,"waterLakeChance":4,"useLavaLakes":true,"lavaLakeChance":80,"useLavaOceans":false,"fixedBiome":1,"biomeSize":4,"riverSize":4,"dirtSize":33,"dirtCount":10,"dirtMinHeight":0,"dirtMaxHeight":256,"gravelSize":33,"gravelCount":8,"gravelMinHeight":0,"gravelMaxHeight":256,"graniteSize":33,"graniteCount":10,"graniteMinHeight":0,"graniteMaxHeight":80,"dioriteSize":33,"dioriteCount":10,"dioriteMinHeight":0,"dioriteMaxHeight":80,"andesiteSize":33,"andesiteCount":10,"andesiteMinHeight":0,"andesiteMaxHeight":80,"coalSize":17,"coalCount":20,"coalMinHeight":0,"coalMaxHeight":128,"ironSize":9,"ironCount":20,"ironMinHeight":0,"ironMaxHeight":64,"goldSize":9,"goldCount":2,"goldMinHeight":0,"goldMaxHeight":32,"redstoneSize":8,"redstoneCount":8,"redstoneMinHeight":0,"redstoneMaxHeight":16,"diamondSize":8,"diamondCount":1,"diamondMinHeight":0,"diamondMaxHeight":16,"lapisSize":7,"lapisCount":1,"lapisCenterHeight":16,"lapisSpread":16}
        Level spawn location: 196,00,64,00,256,00 - World: (196,64,256), Chunk: (at 4,4,0 in 12,16; contains blocks 192,0,256 to 207,255,271), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
        Level time: 1797 game time, 1797 day time
        Level dimension: 0
        Level storage version: 0x04ABD - Anvil
        Level weather: Rain time: 134942 (now: false), thunder time: 163711 (now: false)
        Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true
    Stacktrace:
        at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:775)
        at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:669)
        at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:171)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:540)
        at java.lang.Thread.run(Thread.java:745)

    -- System Details --
    Details:
        Minecraft Version: 1.8
        Operating System: Windows 7 (amd64) version 6.1
        Java Version: 1.8.0_65, Oracle Corporation
        Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
        Memory: 624685472 bytes (595 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
        JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
        IntCache: cache: 0, tcache: 0, allocated: 13, tallocated: 95
        FML: MCP v9.10 FML v8.0.99.99 Minecraft Forge 11.14.4.1577 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
        UCHIJAAAA    mcp{9.05} [Minecraft Coder Pack] (minecraft.jar)
        UCHIJAAAA    FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.8-11.14.4.1577.jar)
        UCHIJAAAA    Forge{11.14.4.1577} [Minecraft Forge] (forgeSrc-1.8-11.14.4.1577.jar)
        UCHIJAAAA    arthur{1.0.0} [rubisplus] (bin)
        Loaded coremods (and transformers):
        GL info: ~~ERROR~~ RuntimeException: No OpenGL context found in the current thread.
        Profiler Position: N/A (disabled)
        Player Count: 1 / 8; [EntityPlayerMP['
    Player586'/349, l='New World', x=-1,31, y=95,07, z=1034,18]]
        Type: Integrated Server (map_client.txt)
        Is Modded: Definitely; Client brand changed to '
    fml,forge'
     
  4. robin4002

    robin4002 Support Technique
    Staff

    Inscrit:
    17 Août 2012
    Messages:
    5 478
    Points:
    229
    Sexe:
    Homme
    Oula. Il y a un NPE dans un paquet de minecraft. Étrange. Je ne sais pas d'où ça peut venir.
     
  5. Arthaïr

    Arthaïr Mineur

    Inscrit:
    1 Août 2014
    Messages:
    344
    Points:
    119
    Sexe:
    Homme
    C'est à dire ? :)
    EDIT:En fait c'est bon, donc on ne peut rien y faire ?
     
    #35 Arthaïr, 12 Mar 2016
    Dernière édition: 12 Mar 2016
  6. robin4002

    robin4002 Support Technique
    Staff

    Inscrit:
    17 Août 2012
    Messages:
    5 478
    Points:
    229
    Sexe:
    Homme
    S10PacketSpawnPainting
    Ah en fait c'est l’apparition d'un tableau qui semble faire bugguer. Tu as un tableau dans ta structure ?
     
  7. Arthaïr

    Arthaïr Mineur

    Inscrit:
    1 Août 2014
    Messages:
    344
    Points:
    119
    Sexe:
    Homme
    Oui
    Code (cpp):
    net.minecraft.entity.Entity sentity0 = EntityList.createEntityByName("Painting", world);
                if(sentity0 != null)
                {
                    sentity0.setLocationAndAngles(i + 7.96875, j + 2.5, k + 4.5, world.rand.nextFloat() * 360F, 0);
                    world.spawnEntityInWorld(sentity0);
                }
    EDIT: je viens de retirer la ligne du code et ça ne crash plus:p
     

Partager cette page