MFF

    Minecraft Forge France
    • Récent
    • Mots-clés
    • Populaire
    • Utilisateurs
    • Groupes
    • Forge Events
      • Automatique
      • Foncé
      • Clair
    • S'inscrire
    • Se connecter

    Problème génération biome

    Planifier Épinglé Verrouillé Déplacé Non résolu 1.7.x
    1.7.10
    91 Messages 9 Publieurs 14.0k Vues 1 Watching
    Charger plus de messages
    • Du plus ancien au plus récent
    • Du plus récent au plus ancien
    • Les plus votés
    Répondre
    • Répondre à l'aide d'un nouveau sujet
    Se connecter pour répondre
    Ce sujet a été supprimé. Seuls les utilisateurs avec les droits d'administration peuvent le voir.
    • S Hors-ligne
      sventus
      dernière édition par

      personne ne sait ? 😞

      1 réponse Dernière réponse Répondre Citer 0
      • SCAREXS Hors-ligne
        SCAREX
        dernière édition par

        Les classes ne correspondent pas au crash report

        Site web contenant mes scripts : http://SCAREXgaming.github.io

        Pas de demandes de support par MP ni par skype SVP.
        Je n'accepte sur skype que l…

        1 réponse Dernière réponse Répondre Citer 0
        • S Hors-ligne
          sventus
          dernière édition par

          pourtant j’ai la class BimeTestLayer  car j’ai posté toute les class que j’ai concernant mon biome

          1 réponse Dernière réponse Répondre Citer 0
          • SCAREXS Hors-ligne
            SCAREX
            dernière édition par

            D’après le crash report le problème se trouve à la ligne 89 sauf que à la ligne 89 de ta classe tu as “else if (k1 == 2)” ce qui n’est pas possible, envoi donc ta classe en entier avec la classe correspondante

            Site web contenant mes scripts : http://SCAREXgaming.github.io

            Pas de demandes de support par MP ni par skype SVP.
            Je n'accepte sur skype que l…

            1 réponse Dernière réponse Répondre Citer 0
            • S Hors-ligne
              sventus
              dernière édition par

              ah oui c’est vrai, on m’avait conseillé de la supprimer, voila la class :

              package fr.craftesys.craftesys.generation;
              
              import java.util.ArrayList;
              import java.util.List;
              
              import net.minecraft.util.WeightedRandom;
              import net.minecraft.world.WorldType;
              import net.minecraft.world.biome.BiomeGenBase;
              import net.minecraft.world.gen.layer.GenLayer;
              import net.minecraft.world.gen.layer.IntCache;
              import net.minecraftforge.common.BiomeManager;
              import net.minecraftforge.common.BiomeManager.BiomeEntry;
              
              public class BiomeTestLayer extends GenLayer
              {
                  private List <biomeentry>desertBiomes = new ArrayList<biomeentry>();
                  private List <biomeentry>warmBiomes = new ArrayList<biomeentry>();
                  private List <biomeentry>coolBiomes = new ArrayList<biomeentry>();
                  private List <biomeentry>icyBiomes = new ArrayList<biomeentry>();
              
                  public BiomeTestLayer(long par1, GenLayer layer, WorldType worldType)
                  {
                      super(par1);
              
                      this.parent = layer;
              
                     this.desertBiomes.addAll(BiomeManager.desertBiomes);
                      this.warmBiomes.addAll(BiomeManager.warmBiomes);
                      this.coolBiomes.addAll(BiomeManager.coolBiomes);
                      this.icyBiomes.addAll(BiomeManager.icyBiomes);
              
                      if (worldType == WorldType.DEFAULT)
                      {
                          desertBiomes.add(new BiomeEntry(BiomeGenBase.desert, 10));
                          desertBiomes.add(new BiomeEntry(BiomeGenBase.forest, 10));
                          desertBiomes.add(new BiomeEntry(BiomeGenBase.extremeHills, 10));
                          desertBiomes.add(new BiomeEntry(BiomeGenBase.swampland, 10));
                          desertBiomes.add(new BiomeEntry(BiomeGenBase.plains, 10));
                          desertBiomes.add(new BiomeEntry(BiomeGenBase.taiga, 10));
                          desertBiomes.add(new BiomeEntry(BiomeRegistry.biomeTest, 40));
                      }
                      else
                      {
                          desertBiomes.add(new BiomeEntry(BiomeGenBase.desert, 30));
                          desertBiomes.add(new BiomeEntry(BiomeGenBase.savanna, 20));
                          desertBiomes.add(new BiomeEntry(BiomeGenBase.plains, 10));
                          desertBiomes.add(new BiomeEntry(BiomeRegistry.biomeTest, 40));
                      }
                  }
              
                  public int[] getInts(int par1, int par2, int par3, int par4)
                  {
                      int[] aint = this.parent.getInts(par1, par2, par3, par4);
                      int[] aint1 = IntCache.getIntCache(par3 * par4);
              
                      for (int i1 = 0; i1 < par4; ++i1)
                      {
                          for (int j1 = 0; j1 < par3; ++j1)
                          {
                              this.initChunkSeed((long)(j1 + par1), (long)(i1 + par2));
                              int k1 = aint[j1 + i1 * par3];
                              int l1 = (k1 & 3840) >> 8;
                              k1 &= -3841;
              
                              if (isBiomeOceanic(k1))
                              {
                                  aint1[j1 + i1 * par3] = k1;
                              }
                              else if (k1 == BiomeGenBase.mushroomIsland.biomeID)
                              {
                                  aint1[j1 + i1 * par3] = k1;
                              }
                              else if (k1 == 1)
                              {
                                  if (l1 > 0)
                                  {
                                      if (this.nextInt(3) == 0)
                                      {
                                          aint1[j1 + i1 * par3] = BiomeGenBase.mesaPlateau.biomeID;
                                      }
                                      else
                                      {
                                          aint1[j1 + i1 * par3] = BiomeGenBase.mesaPlateau_F.biomeID;
                                      }
                                  }
                                  else
                                  {
                                     aint1[j1 + i1 * par3] = ((BiomeEntry)WeightedRandom.getItem(this.desertBiomes, (int)(this.nextLong(WeightedRandom.getTotalWeight(this.desertBiomes) / 10) * 10))).biome.biomeID;
                                  }
                              }
                              else if (k1 == 2)
                              {
                                  if (l1 > 0)
                                  {
                                      aint1[j1 + i1 * par3] = BiomeGenBase.jungle.biomeID;
                                  }
                                  else
                                  {
                                      aint1[j1 + i1 * par3] = ((BiomeEntry)WeightedRandom.getItem(this.warmBiomes, (int)(this.nextLong(WeightedRandom.getTotalWeight(this.warmBiomes) / 10) * 10))).biome.biomeID;
                                  }
                              }
                              else if (k1 == 3)
                              {
                                  if (l1 > 0)
                                  {
                                      aint1[j1 + i1 * par3] = BiomeGenBase.megaTaiga.biomeID;
                                  }
                                  else
                                  {
                                      aint1[j1 + i1 * par3] = ((BiomeEntry)WeightedRandom.getItem(this.coolBiomes, (int)(this.nextLong(WeightedRandom.getTotalWeight(this.coolBiomes) / 10) * 10))).biome.biomeID;
                                  }
                              }
                              else if (k1 == 4)
                              {
                                  aint1[j1 + i1 * par3] = ((BiomeEntry)WeightedRandom.getItem(this.icyBiomes, (int)(this.nextLong(WeightedRandom.getTotalWeight(this.icyBiomes) / 10) * 10))).biome.biomeID;
                              }
                              else
                              {
                                  aint1[j1 + i1 * par3] = BiomeGenBase.mushroomIsland.biomeID;
                              }
                          }
                      }
              
                      return aint1;
                  }
              
              }
              
              ```</biomeentry></biomeentry></biomeentry></biomeentry></biomeentry></biomeentry></biomeentry></biomeentry>
              1 réponse Dernière réponse Répondre Citer 0
              • SCAREXS Hors-ligne
                SCAREX
                dernière édition par

                A chaque point fait un retour à la ligne puis envoi le crash report (le dernier) ainsi que la classe (une fois modifiée)

                Site web contenant mes scripts : http://SCAREXgaming.github.io

                Pas de demandes de support par MP ni par skype SVP.
                Je n'accepte sur skype que l…

                1 réponse Dernière réponse Répondre Citer 0
                • S Hors-ligne
                  sventus
                  dernière édition par

                  comment ça modifier la class ??   je vais faire le crash report 🙂

                  le crash report

                  –-- Minecraft Crash Report ----
                  // Would you like a cupcake?
                  
                  Time: 22/06/16 15:08
                  Description: Getting biome
                  
                  java.lang.NullPointerException: Getting biome
                  at fr.craftesys.craftesys.generation.BiomeTestLayer.getInts(BiomeTestLayer.java:89)
                  at net.minecraft.world.gen.layer.GenLayerZoom.getInts(GenLayerZoom.java:23)
                  at net.minecraft.world.gen.layer.GenLayerZoom.getInts(GenLayerZoom.java:23)
                  at net.minecraft.world.gen.layer.GenLayerBiomeEdge.getInts(GenLayerBiomeEdge.java:21)
                  at net.minecraft.world.gen.layer.GenLayerHills.getInts(GenLayerHills.java:26)
                  at net.minecraft.world.gen.layer.GenLayerRareBiome.getInts(GenLayerRareBiome.java:21)
                  at net.minecraft.world.gen.layer.GenLayerZoom.getInts(GenLayerZoom.java:23)
                  at net.minecraft.world.gen.layer.GenLayerAddIsland.getInts(GenLayerAddIsland.java:23)
                  at net.minecraft.world.gen.layer.GenLayerZoom.getInts(GenLayerZoom.java:23)
                  at net.minecraft.world.gen.layer.GenLayerShore.getInts(GenLayerShore.java:23)
                  at net.minecraft.world.gen.layer.GenLayerZoom.getInts(GenLayerZoom.java:23)
                  at net.minecraft.world.gen.layer.GenLayerZoom.getInts(GenLayerZoom.java:23)
                  at net.minecraft.world.gen.layer.GenLayerSmooth.getInts(GenLayerSmooth.java:23)
                  at net.minecraft.world.gen.layer.GenLayerRiverMix.getInts(GenLayerRiverMix.java:35)
                  at net.minecraft.world.gen.layer.GenLayerVoronoiZoom.getInts(GenLayerVoronoiZoom.java:25)
                  at net.minecraft.world.biome.WorldChunkManager.getRainfall(WorldChunkManager.java:82)
                  at net.minecraft.world.biome.BiomeCache$Block.<init>(BiomeCache.java:107)
                  at net.minecraft.world.biome.BiomeCache.getBiomeCacheBlock(BiomeCache.java:37)
                  at net.minecraft.world.biome.BiomeCache.getBiomeGenAt(BiomeCache.java:51)
                  at net.minecraft.world.biome.WorldChunkManager.getBiomeGenAt(WorldChunkManager.java:67)
                  at net.minecraft.world.chunk.Chunk.getBiomeGenForWorldCoords(Chunk.java:1406)
                  at net.minecraft.world.World.getBiomeGenForCoordsBody(World.java:177)
                  at net.minecraft.world.WorldProvider.getBiomeGenForCoords(WorldProvider.java:423)
                  at net.minecraft.world.World.getBiomeGenForCoords(World.java:166)
                  at net.minecraftforge.client.ForgeHooksClient.getSkyBlendColour(ForgeHooksClient.java:407)
                  at net.minecraft.world.World.getSkyColorBody(World.java:1791)
                  at net.minecraft.world.WorldProvider.getSkyColor(WorldProvider.java:457)
                  at net.minecraft.world.World.getSkyColor(World.java:1769)
                  at net.minecraft.client.renderer.EntityRenderer.updateFogColor(EntityRenderer.java:1760)
                  at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1230)
                  at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1087)
                  at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1067)
                  at net.minecraft.client.Minecraft.run(Minecraft.java:962)
                  at net.minecraft.client.main.Main.main(Main.java:164)
                  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 net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
                  at GradleStart.main(Unknown Source)
                  
                  A detailed walkthrough of the error, its code path and all known details is as follows:
                  ---------------------------------------------------------------------------------------
                  
                  -- Head --
                  Stacktrace:
                  at fr.craftesys.craftesys.generation.BiomeTestLayer.getInts(BiomeTestLayer.java:89)
                  at net.minecraft.world.gen.layer.GenLayerZoom.getInts(GenLayerZoom.java:23)
                  at net.minecraft.world.gen.layer.GenLayerZoom.getInts(GenLayerZoom.java:23)
                  at net.minecraft.world.gen.layer.GenLayerBiomeEdge.getInts(GenLayerBiomeEdge.java:21)
                  at net.minecraft.world.gen.layer.GenLayerHills.getInts(GenLayerHills.java:26)
                  at net.minecraft.world.gen.layer.GenLayerRareBiome.getInts(GenLayerRareBiome.java:21)
                  at net.minecraft.world.gen.layer.GenLayerZoom.getInts(GenLayerZoom.java:23)
                  at net.minecraft.world.gen.layer.GenLayerAddIsland.getInts(GenLayerAddIsland.java:23)
                  at net.minecraft.world.gen.layer.GenLayerZoom.getInts(GenLayerZoom.java:23)
                  at net.minecraft.world.gen.layer.GenLayerShore.getInts(GenLayerShore.java:23)
                  at net.minecraft.world.gen.layer.GenLayerZoom.getInts(GenLayerZoom.java:23)
                  at net.minecraft.world.gen.layer.GenLayerZoom.getInts(GenLayerZoom.java:23)
                  at net.minecraft.world.gen.layer.GenLayerSmooth.getInts(GenLayerSmooth.java:23)
                  at net.minecraft.world.gen.layer.GenLayerRiverMix.getInts(GenLayerRiverMix.java:35)
                  at net.minecraft.world.gen.layer.GenLayerVoronoiZoom.getInts(GenLayerVoronoiZoom.java:25)
                  at net.minecraft.world.biome.WorldChunkManager.getRainfall(WorldChunkManager.java:82)
                  at net.minecraft.world.biome.BiomeCache$Block.<init>(BiomeCache.java:107)
                  at net.minecraft.world.biome.BiomeCache.getBiomeCacheBlock(BiomeCache.java:37)
                  at net.minecraft.world.biome.BiomeCache.getBiomeGenAt(BiomeCache.java:51)
                  at net.minecraft.world.biome.WorldChunkManager.getBiomeGenAt(WorldChunkManager.java:67)
                  at net.minecraft.world.chunk.Chunk.getBiomeGenForWorldCoords(Chunk.java:1406)
                  
                  -- Coordinates of biome request --
                  Details:
                  Location: World: (-26,0,-26), Chunk: (at 6,0,6 in -2,-2; contains blocks -32,0,-32 to -17,255,-17), Region: (-1,-1; contains chunks -32,-32 to -1,-1, blocks -512,0,-512 to -1,255,-1)
                  Stacktrace:
                  at net.minecraft.world.World.getBiomeGenForCoordsBody(World.java:177)
                  at net.minecraft.world.WorldProvider.getBiomeGenForCoords(WorldProvider.java:423)
                  at net.minecraft.world.World.getBiomeGenForCoords(World.java:166)
                  at net.minecraftforge.client.ForgeHooksClient.getSkyBlendColour(ForgeHooksClient.java:407)
                  at net.minecraft.world.World.getSkyColorBody(World.java:1791)
                  at net.minecraft.world.WorldProvider.getSkyColor(WorldProvider.java:457)
                  at net.minecraft.world.World.getSkyColor(World.java:1769)
                  at net.minecraft.client.renderer.EntityRenderer.updateFogColor(EntityRenderer.java:1760)
                  at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1230)
                  
                  -- Affected level --
                  Details:
                  Level name: MpServer
                  All players: 1 total; [EntityClientPlayerMP['Player417'/292, l='MpServer', x=8,50, y=66,62, z=8,50]]
                  Chunk stats: MultiplayerChunkCache: 0, 0
                  Level seed: 0
                  Level generator: ID 04 - giant, ver 0\. Features enabled: false
                  Level generator options: 
                  Level spawn location: World: (183,64,262), Chunk: (at 7,4,6 in 11,16; contains blocks 176,0,256 to 191,255,271), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
                  Level time: 0 game time, 0 day time
                  Level dimension: 0
                  Level storage version: 0x00000 - Unknown?
                  Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
                  Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false
                  Forced entities: 1 total; [EntityClientPlayerMP['Player417'/292, l='MpServer', x=8,50, y=66,62, z=8,50]]
                  Retry entities: 0 total; []
                  Server brand: fml,forge
                  Server type: Integrated singleplayer server
                  Stacktrace:
                  at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:415)
                  at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2566)
                  at net.minecraft.client.Minecraft.run(Minecraft.java:984)
                  at net.minecraft.client.main.Main.main(Main.java:164)
                  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 net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
                  at GradleStart.main(Unknown Source)
                  
                  – System Details --
                  Details:
                  Minecraft Version: 1.7.10
                  Operating System: Windows 10 (amd64) version 10.0
                  Java Version: 1.8.0_91, Oracle Corporation
                  Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
                  Memory: 889541640 bytes (848 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB)
                  JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
                  AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
                  IntCache: cache: 8, tcache: 76, allocated: 4, tallocated: 18
                  FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1558 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{7.10.99.99} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar) 
                  UCHIJAAAA Forge{10.13.4.1558} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar) 
                  UCHIJAAAA craftesys{1.0.0} [craftesys] (bin) 
                  GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 358.91' Renderer: 'GeForce GTX 750 Ti/PCIe/SSE2'
                  Launched Version: 1.7.10
                  LWJGL: 2.9.1
                  OpenGL: GeForce GTX 750 Ti/PCIe/SSE2 GL version 4.5.0 NVIDIA 358.91, NVIDIA Corporation
                  GL Caps: Using GL 1.3 multitexturing.
                  
                  Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
                  Anisotropic filtering is supported and maximum anisotropy is 16.
                  Shaders are available because OpenGL 2.1 is supported.
                  
                  Is Modded: Definitely; Client brand changed to 'fml,forge'
                  Type: Client (map_client.txt)
                  Resource Packs: []
                  Current Language: English (US)
                  Profiler Position: N/A (disabled)
                  Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
                  Anisotropic Filtering: Off (1)
                  ```</init></init>
                  1 réponse Dernière réponse Répondre Citer 0
                  • SCAREXS Hors-ligne
                    SCAREX
                    dernière édition par

                    A la ligne 89, dès que tu vois un “.” tu fais un retour à la ligne avant le point :

                    aint1[j1 + i1 * par3] = ((BiomeEntry)WeightedRandom
                    .getItem(this
                    .desertBiomes, (int)(this
                    .nextLong(WeightedRandom
                    .getTotalWeight(this
                    .desertBiomes) / 10) * 10)))
                    .biome
                    .biomeID;
                    

                    Ensuite tu lances ton jeu et tu envoi le crash report avec la classe correspondante

                    Site web contenant mes scripts : http://SCAREXgaming.github.io

                    Pas de demandes de support par MP ni par skype SVP.
                    Je n'accepte sur skype que l…

                    1 réponse Dernière réponse Répondre Citer 0
                    • S Hors-ligne
                      sventus
                      dernière édition par

                      class biometestlayer :

                      package fr.craftesys.craftesys.generation;
                      
                      import java.util.ArrayList;
                      import java.util.List;
                      
                      import net.minecraft.util.WeightedRandom;
                      import net.minecraft.world.WorldType;
                      import net.minecraft.world.biome.BiomeGenBase;
                      import net.minecraft.world.gen.layer.GenLayer;
                      import net.minecraft.world.gen.layer.IntCache;
                      import net.minecraftforge.common.BiomeManager;
                      import net.minecraftforge.common.BiomeManager.BiomeEntry;
                      
                      public class BiomeTestLayer extends GenLayer
                      {
                          private List <biomeentry>desertBiomes = new ArrayList<biomeentry>();
                          private List <biomeentry>warmBiomes = new ArrayList<biomeentry>();
                          private List <biomeentry>coolBiomes = new ArrayList<biomeentry>();
                          private List <biomeentry>icyBiomes = new ArrayList<biomeentry>();
                      
                          public BiomeTestLayer(long par1, GenLayer layer, WorldType worldType)
                          {
                              super(par1);
                      
                              this.parent = layer;
                      
                             this.desertBiomes.addAll(BiomeManager.desertBiomes);
                              this.warmBiomes.addAll(BiomeManager.warmBiomes);
                              this.coolBiomes.addAll(BiomeManager.coolBiomes);
                              this.icyBiomes.addAll(BiomeManager.icyBiomes);
                      
                              if (worldType == WorldType.DEFAULT)
                              {
                                  desertBiomes.add(new BiomeEntry(BiomeGenBase.desert, 10));
                                  desertBiomes.add(new BiomeEntry(BiomeGenBase.forest, 10));
                                  desertBiomes.add(new BiomeEntry(BiomeGenBase.extremeHills, 10));
                                  desertBiomes.add(new BiomeEntry(BiomeGenBase.swampland, 10));
                                  desertBiomes.add(new BiomeEntry(BiomeGenBase.plains, 10));
                                  desertBiomes.add(new BiomeEntry(BiomeGenBase.taiga, 10));
                                  desertBiomes.add(new BiomeEntry(BiomeRegistry.biomeTest, 40));
                              }
                              else
                              {
                                  desertBiomes.add(new BiomeEntry(BiomeGenBase.desert, 30));
                                  desertBiomes.add(new BiomeEntry(BiomeGenBase.savanna, 20));
                                  desertBiomes.add(new BiomeEntry(BiomeGenBase.plains, 10));
                                  desertBiomes.add(new BiomeEntry(BiomeRegistry.biomeTest, 40));
                              }
                          }
                      
                          public int[] getInts(int par1, int par2, int par3, int par4)
                          {
                              int[] aint = this.parent.getInts(par1, par2, par3, par4);
                              int[] aint1 = IntCache.getIntCache(par3 * par4);
                      
                              for (int i1 = 0; i1 < par4; ++i1)
                              {
                                  for (int j1 = 0; j1 < par3; ++j1)
                                  {
                                      this.initChunkSeed((long)(j1 + par1), (long)(i1 + par2));
                                      int k1 = aint[j1 + i1 * par3];
                                      int l1 = (k1 & 3840) >> 8;
                                      k1 &= -3841;
                      
                                      if (isBiomeOceanic(k1))
                                      {
                                          aint1[j1 + i1 * par3] = k1;
                                      }
                                      else if (k1 == BiomeGenBase.mushroomIsland.biomeID)
                                      {
                                          aint1[j1 + i1 * par3] = k1;
                                      }
                                      else if (k1 == 1)
                                      {
                                          if (l1 > 0)
                                          {
                                              if (this.nextInt(3) == 0)
                                              {
                                                  aint1[j1 + i1 * par3] = BiomeGenBase.mesaPlateau.biomeID;
                                              }
                                              else
                                              {
                                                  aint1[j1 + i1 * par3] = BiomeGenBase.mesaPlateau_F.biomeID;
                                              }
                                          }
                                          else
                                          {
                                             aint1[j1 + i1 * par3] = ((BiomeEntry)WeightedRandom
                                            .getItem(this
                                            .desertBiomes, (int)(this
                                            .nextLong(WeightedRandom
                                            .getTotalWeight(this
                                            .desertBiomes) / 10) * 10)))
                                            .biome
                                            .biomeID;
                                          }
                                      }
                                      else if (k1 == 2)
                                      {
                                          if (l1 > 0)
                                          {
                                              aint1[j1 + i1 * par3] = BiomeGenBase.jungle.biomeID;
                                          }
                                          else
                                          {
                                              aint1[j1 + i1 * par3] = ((BiomeEntry)WeightedRandom.getItem(this.warmBiomes, (int)(this.nextLong(WeightedRandom.getTotalWeight(this.warmBiomes) / 10) * 10))).biome.biomeID;
                                          }
                                      }
                                      else if (k1 == 3)
                                      {
                                          if (l1 > 0)
                                          {
                                              aint1[j1 + i1 * par3] = BiomeGenBase.megaTaiga.biomeID;
                                          }
                                          else
                                          {
                                              aint1[j1 + i1 * par3] = ((BiomeEntry)WeightedRandom.getItem(this.coolBiomes, (int)(this.nextLong(WeightedRandom.getTotalWeight(this.coolBiomes) / 10) * 10))).biome.biomeID;
                                          }
                                      }
                                      else if (k1 == 4)
                                      {
                                          aint1[j1 + i1 * par3] = ((BiomeEntry)WeightedRandom.getItem(this.icyBiomes, (int)(this.nextLong(WeightedRandom.getTotalWeight(this.icyBiomes) / 10) * 10))).biome.biomeID;
                                      }
                                      else
                                      {
                                          aint1[j1 + i1 * par3] = BiomeGenBase.mushroomIsland.biomeID;
                                      }
                                  }
                              }
                      
                              return aint1;
                          }
                      
                      }
                      
                      

                      le crash report :

                      –-- Minecraft Crash Report ----
                      // On the bright side, I bought you a teddy bear!
                      
                      Time: 22/06/16 15:14
                      Description: Exception initializing level
                      
                      java.lang.NullPointerException: Exception initializing level
                      at fr.craftesys.craftesys.generation.BiomeTestLayer.getInts(BiomeTestLayer.java:96)
                      at net.minecraft.world.gen.layer.GenLayerZoom.getInts(GenLayerZoom.java:23)
                      at net.minecraft.world.gen.layer.GenLayerZoom.getInts(GenLayerZoom.java:23)
                      at net.minecraft.world.gen.layer.GenLayerBiomeEdge.getInts(GenLayerBiomeEdge.java:21)
                      at net.minecraft.world.gen.layer.GenLayerHills.getInts(GenLayerHills.java:26)
                      at net.minecraft.world.gen.layer.GenLayerRareBiome.getInts(GenLayerRareBiome.java:21)
                      at net.minecraft.world.gen.layer.GenLayerZoom.getInts(GenLayerZoom.java:23)
                      at net.minecraft.world.gen.layer.GenLayerAddIsland.getInts(GenLayerAddIsland.java:23)
                      at net.minecraft.world.gen.layer.GenLayerZoom.getInts(GenLayerZoom.java:23)
                      at net.minecraft.world.gen.layer.GenLayerShore.getInts(GenLayerShore.java:23)
                      at net.minecraft.world.gen.layer.GenLayerZoom.getInts(GenLayerZoom.java:23)
                      at net.minecraft.world.gen.layer.GenLayerZoom.getInts(GenLayerZoom.java:23)
                      at net.minecraft.world.gen.layer.GenLayerSmooth.getInts(GenLayerSmooth.java:23)
                      at net.minecraft.world.gen.layer.GenLayerRiverMix.getInts(GenLayerRiverMix.java:35)
                      at net.minecraft.world.biome.WorldChunkManager.findBiomePosition(WorldChunkManager.java:250)
                      at net.minecraft.world.WorldServer.createSpawnPosition(WorldServer.java:777)
                      at net.minecraft.world.WorldServer.initialize(WorldServer.java:757)
                      at net.minecraft.world.World.<init>(World.java:296)
                      at net.minecraft.world.WorldServer.<init>(WorldServer.java:102)
                      at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:63)
                      at net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:96)
                      at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:445)
                      at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752)
                      
                      A detailed walkthrough of the error, its code path and all known details is as follows:
                      ---------------------------------------------------------------------------------------
                      
                      -- Head --
                      Stacktrace:
                      at fr.craftesys.craftesys.generation.BiomeTestLayer.getInts(BiomeTestLayer.java:96)
                      at net.minecraft.world.gen.layer.GenLayerZoom.getInts(GenLayerZoom.java:23)
                      at net.minecraft.world.gen.layer.GenLayerZoom.getInts(GenLayerZoom.java:23)
                      at net.minecraft.world.gen.layer.GenLayerBiomeEdge.getInts(GenLayerBiomeEdge.java:21)
                      at net.minecraft.world.gen.layer.GenLayerHills.getInts(GenLayerHills.java:26)
                      at net.minecraft.world.gen.layer.GenLayerRareBiome.getInts(GenLayerRareBiome.java:21)
                      at net.minecraft.world.gen.layer.GenLayerZoom.getInts(GenLayerZoom.java:23)
                      at net.minecraft.world.gen.layer.GenLayerAddIsland.getInts(GenLayerAddIsland.java:23)
                      at net.minecraft.world.gen.layer.GenLayerZoom.getInts(GenLayerZoom.java:23)
                      at net.minecraft.world.gen.layer.GenLayerShore.getInts(GenLayerShore.java:23)
                      at net.minecraft.world.gen.layer.GenLayerZoom.getInts(GenLayerZoom.java:23)
                      at net.minecraft.world.gen.layer.GenLayerZoom.getInts(GenLayerZoom.java:23)
                      at net.minecraft.world.gen.layer.GenLayerSmooth.getInts(GenLayerSmooth.java:23)
                      at net.minecraft.world.gen.layer.GenLayerRiverMix.getInts(GenLayerRiverMix.java:35)
                      at net.minecraft.world.biome.WorldChunkManager.findBiomePosition(WorldChunkManager.java:250)
                      at net.minecraft.world.WorldServer.createSpawnPosition(WorldServer.java:777)
                      at net.minecraft.world.WorldServer.initialize(WorldServer.java:757)
                      
                      -- Affected level --
                      Details:
                      Level name: New World(t'(t
                      All players: 0 total; []
                      Chunk stats: ServerChunkCache: 0 Drop: 0
                      Level seed: 4133433021098639630
                      Level generator: ID 04 - giant, ver 0\. Features enabled: true
                      Level generator options: 
                      Level spawn location: World: (0,0,0), Chunk: (at 0,0,0 in 0,0; contains blocks 0,0,0 to 15,255,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
                      Level time: 0 game time, 0 day time
                      Level dimension: 0
                      Level storage version: 0x04ABD - Anvil
                      Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
                      Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true
                      Stacktrace:
                      at net.minecraft.world.World.<init>(World.java:296)
                      at net.minecraft.world.WorldServer.<init>(WorldServer.java:102)
                      at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:63)
                      at net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:96)
                      at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:445)
                      at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752)
                      
                      -- System Details --
                      Details:
                      Minecraft Version: 1.7.10
                      Operating System: Windows 10 (amd64) version 10.0
                      Java Version: 1.8.0_91, Oracle Corporation
                      Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
                      Memory: 898070720 bytes (856 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB)
                      JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
                      AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
                      IntCache: cache: 0, tcache: 0, allocated: 4, tallocated: 19
                      FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1558 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
                      UCHIJAA mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) 
                      UCHIJAA FML{7.10.99.99} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar) 
                      UCHIJAA Forge{10.13.4.1558} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar) 
                      UCHIJAA craftesys{1.0.0} [craftesys] (bin) 
                      GL info: ~~ERROR~~ RuntimeException: No OpenGL context found in the current thread.
                      Profiler Position: N/A (disabled)
                      Player Count: 0 / 8; []
                      Type: Integrated Server (map_client.txt)
                      Is Modded: Definitely; Client brand changed to 'fml,forge'
                      ```</init></init></init></init></biomeentry></biomeentry></biomeentry></biomeentry></biomeentry></biomeentry></biomeentry></biomeentry>
                      1 réponse Dernière réponse Répondre Citer 0
                      • SCAREXS Hors-ligne
                        SCAREX
                        dernière édition par

                        Apparemment c’est le biome qui est null, pour quoi faire une division par 10 puis ensuite multiplier par 10 ?

                        Site web contenant mes scripts : http://SCAREXgaming.github.io

                        Pas de demandes de support par MP ni par skype SVP.
                        Je n'accepte sur skype que l…

                        1 réponse Dernière réponse Répondre Citer 0
                        • S Hors-ligne
                          sventus
                          dernière édition par

                          c’est comme ça dans la class de base, puis ches this.desertbiomes que je divise par 10 pour faire *10 sur la taille totale.

                          1 réponse Dernière réponse Répondre Citer 0
                          • robin4002R Hors-ligne
                            robin4002 Moddeurs confirmés Rédacteurs Administrateurs
                            dernière édition par

                            Du-coup maintenant il te reste à trouver pourquoi le biome est null.

                            1 réponse Dernière réponse Répondre Citer 0
                            • SCAREXS Hors-ligne
                              SCAREX
                              dernière édition par

                              Essaie de retirer ton biome : desertBiomes.add(new BiomeEntry(BiomeRegistry.biomeTest, 40));

                              Site web contenant mes scripts : http://SCAREXgaming.github.io

                              Pas de demandes de support par MP ni par skype SVP.
                              Je n'accepte sur skype que l…

                              1 réponse Dernière réponse Répondre Citer 0
                              • S Hors-ligne
                                sventus
                                dernière édition par

                                dans ma class principal j’ai cela :

                                public static BiomeGenBase biometest;

                                dans le PreInit :

                                biometest = new BiomeTest(137).setBiomeName(“giant”).setDisableRain().setTemperatureRainfall(1.2F, 0.9F).setEnableSnow();
                                       BiomeDictionary.registerBiomeType(biometest, Type.FOREST);
                                       BiomeManager.addSpawnBiome(biometest);

                                et dans le postInit :

                                WorldType CUSTOM = new WorldTypeTest(3, “giant”);

                                😕  je vais essayer de comprendre ^^

                                les deux lignes, dans le else aussi ?

                                merci en tout cas 🙂

                                EDIT : en supprimant les lignes, le jeu se lance donc ça vient donc de ces lignes.

                                1 réponse Dernière réponse Répondre Citer 0
                                • SCAREXS Hors-ligne
                                  SCAREX
                                  dernière édition par

                                  D’ailleurs pourquoi ajouter un biome de type forêt à une liste de biomes du désert ?

                                  Site web contenant mes scripts : http://SCAREXgaming.github.io

                                  Pas de demandes de support par MP ni par skype SVP.
                                  Je n'accepte sur skype que l…

                                  1 réponse Dernière réponse Répondre Citer 0
                                  • S Hors-ligne
                                    sventus
                                    dernière édition par

                                    car je connais pas le biomes mountains ^^  puis le deseert, cest le plus grand

                                    1 réponse Dernière réponse Répondre Citer 0
                                    • SCAREXS Hors-ligne
                                      SCAREX
                                      dernière édition par

                                      Envoi la classe du biome

                                      Site web contenant mes scripts : http://SCAREXgaming.github.io

                                      Pas de demandes de support par MP ni par skype SVP.
                                      Je n'accepte sur skype que l…

                                      1 réponse Dernière réponse Répondre Citer 0
                                      • S Hors-ligne
                                        sventus
                                        dernière édition par

                                        ok, voila la class

                                        biometest :

                                        package fr.craftesys.craftesys.generation;
                                        import java.util.Random;
                                        
                                        import net.minecraft.entity.monster.EntitySkeleton;
                                        import net.minecraft.entity.monster.EntitySlime;
                                        import net.minecraft.entity.monster.EntitySpider;
                                        import net.minecraft.entity.monster.EntityZombie;
                                        import net.minecraft.init.Blocks;
                                        import net.minecraft.world.biome.BiomeGenBase;
                                        import net.minecraft.world.gen.feature.WorldGenTrees;
                                        import net.minecraft.world.gen.feature.WorldGenerator;
                                        
                                        public class BiomeTest  extends BiomeGenBase
                                        {
                                        
                                        public BiomeTest(int id)
                                        {
                                        super(id);
                                        
                                        this.setHeight(height_Default);
                                        
                                        this.spawnableCreatureList.add(new SpawnListEntry(EntitySlime.class, 5, 2, 10));
                                        this.spawnableCreatureList.add(new SpawnListEntry(EntityZombie.class, 6, 3, 9));
                                        this.spawnableCreatureList.add(new SpawnListEntry(EntitySkeleton.class, 7, 4, 8));
                                        this.spawnableCreatureList.add(new SpawnListEntry(EntitySpider.class, 8, 5, 7));
                                        
                                        this.theBiomeDecorator.treesPerChunk = 5;
                                        this.theBiomeDecorator.grassPerChunk = 2;
                                        this.theBiomeDecorator.bigMushroomsPerChunk = 2;
                                        
                                        this.topBlock = Blocks.redstone_block;
                                        this.fillerBlock = Blocks.redstone_block;
                                        
                                        }
                                        
                                        public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
                                           {
                                              return (WorldGenerator)(par1Random.nextInt(5) == 0 ? new WorldGenTrees(false, 4, 2, 2, false) : (par1Random.nextInt(10) == 0 ? this.worldGeneratorBigTree : new WorldGenTrees(false, 4, 0, 0, false)));
                                           }
                                        
                                        }
                                        
                                        
                                        1 réponse Dernière réponse Répondre Citer 0
                                        • SCAREXS Hors-ligne
                                          SCAREX
                                          dernière édition par

                                          Tu as regardé si l’ID n’était pas déjà enregistrée ?

                                          Site web contenant mes scripts : http://SCAREXgaming.github.io

                                          Pas de demandes de support par MP ni par skype SVP.
                                          Je n'accepte sur skype que l…

                                          1 réponse Dernière réponse Répondre Citer 0
                                          • S Hors-ligne
                                            sventus
                                            dernière édition par

                                            Non mais j’avais essayé je crois avec 137, je suis pas devant le PC :/. Et je pense pas que l’id 137 existe en biome

                                            1 réponse Dernière réponse Répondre Citer 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 2 / 5
                                            • Premier message
                                              Dernier message
                                            Design by Woryk
                                            ContactMentions Légales

                                            MINECRAFT FORGE FRANCE © 2024

                                            Powered by NodeBB