Ajouter une nouvelle dimension
-
On peut pas deviner les classes de ton mod… Je ne possède pas encore ce pouvoir.
“Bonjour, jai un crash” ça donne envie d’aider…
-
Ce message a été supprimé ! -
BiomeGenPlains /*TODO ce biome est a remplacer par le votre*/ biomegenbase = (BiomeGenPlains /*TODO ce biome est a remplacer par le votre*/)biomeList[l + k * 16];java.lang.ClassCastException: net.minecraft.world.biome.BiomeGenDesert cannot be cast to net.minecraft.world.biome.BiomeGenPlainsVu l’erreur il faudrait plutôt mettre BiomeGenDesert à la place de BiomeGenPlains, voir mettre BiomeGenBase.
-
Ce message a été supprimé ! -
public void func_150573_a(World world, Random rand, Block[] block, byte[] abyte, int x, int z, double par7) { this.field_150604_aj = 0; }Je suppose.
-
Ce message a été supprimé ! -
@‘XDoctorX’:
le mettre ou ?
à l’endroit où il y a une fonction du même nom, dans la classe biome.
PS : essaie de comprendre le code avant de l’utiliser
-
@‘SCAREX’:
PS : essaie de comprendre le code avant de l’utiliser
Je dit la même chose, avant d’utiliser le code assure toi d’avoir compris en grosse partie. En plus met toi dans ta tête pour se genre de chose simple "comment faire (pour générer un monde vide) ? ", et sit tu trouve pas tu peux demander ^^.
-
Ce message a été supprimé ! -
Ce message a été supprimé ! -
Ce message a été supprimé ! -
c’est dans la classes téléporte, à la place de get l’entity pos tu get la pos du world. Pour la structure dans le chunk Provider il faut générer un structure selon les coordonnées fix.
-
Jcomprend toujours pas un truc , jdois être débile tu dis ```java
this.dimensionId = TutoDimension.TutodimID;Mais dans ton post ou est la classe TutoDimension ? Désolé je suis le tuto a la lettre je loupe peut - être mais ca me cause plein d'erreur Oo -
TutoDimension est la classe principale du mod.
-
Ok merci j’ai un crash lié a l’ID de la dimension mais je comprend pas pourquoi je l’ai en fait
DimensionRegister
package mod.common.world.structure; import cpw.mods.fml.common.registry.GameRegistry; import mod.common.world.type.AncientWorldProvider; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.item.Item; import net.minecraftforge.common.DimensionManager; public class DimensionRegister { public static Block AncientPortail; public static Item AncientActivateur; public static int tutoDimAncient4; public static void register() { AncientPortail = new AncientPortail(Material.portal).setBlockName("portail"); AncientActivateur = new AncientActivateur().setUnlocalizedName("activateur"); GameRegistry.registerBlock(AncientPortail, "tuto_portail"); GameRegistry.registerItem(AncientActivateur, "tuto_activateur"); DimensionManager.registerProviderType(DimensionRegister.tutoDimAncient4, AncientWorldProvider.class, false); DimensionManager.registerDimension(DimensionRegister.tutoDimAncient4, DimensionRegister.tutoDimAncient4); } }le crash en entier
[00:45:46] [main/INFO] [GradleStart]: Extra: [] [00:45:46] [main/INFO] [GradleStart]: Running with arguments: [–userProperties, {}, --accessToken, {REDACTED}, --assetIndex, 1.7.10, --assetsDir, C:/Users/Legrandfifou/.gradle/caches/minecraft/assets, --version, 1.7.10, --tweakClass, cpw.mods.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker] [00:45:46] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker [00:45:46] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker [00:45:46] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker [00:45:46] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker [00:45:46] [main/INFO] [FML]: Forge Mod Loader version 7.99.16.1448 for Minecraft 1.7.10 loading [00:45:46] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.7.0_75, running on Windows 8.1:amd64:6.3, installed at C:\Program Files\Java\jre7 [00:45:46] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [00:45:46] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker [00:45:46] [main/INFO] [GradleStart]: Injecting location in coremod cpw.mods.fml.relauncher.FMLCorePlugin [00:45:46] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin [00:45:46] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [00:45:46] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker [00:45:46] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [00:45:46] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [00:45:46] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [00:45:46] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [00:45:46] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [00:45:47] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [00:45:47] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [00:45:47] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker [00:45:48] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [00:45:48] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker [00:45:48] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker [00:45:48] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} [00:45:49] [main/INFO]: Setting user: Player140 [00:45:50] [Client thread/INFO]: LWJGL Version: 2.9.1 [00:45:50] [Client thread/INFO] [STDOUT]: [cpw.mods.fml.client.SplashProgress:start:188]: –-- Minecraft Crash Report ---- // Everything's going to plan. No, really, that was supposed to happen. Time: 11/07/15 0:45 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.7.10 Operating System: Windows 8.1 (amd64) version 6.3 Java Version: 1.7.0_75, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 817696760 bytes (779 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: 0, tallocated: 0 FML: GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 350.12' Renderer: 'GeForce GTX 770/PCIe/SSE2' [00:45:50] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization [00:45:50] [Client thread/INFO] [FML]: MinecraftForge v10.13.4.1448 Initialized [00:45:50] [Client thread/INFO] [FML]: Replaced 183 ore recipies [00:45:50] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization [00:45:51] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer [00:45:51] [Client thread/INFO] [FML]: Searching C:\Users\Legrandfifou\Pictures\forge\eclipse\mods for mods [00:45:52] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load [00:45:53] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, modminecraft] at CLIENT [00:45:53] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, modminecraft] at SERVER [00:45:53] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Mod Minecraft [00:45:53] [Client thread/INFO] [FML]: Processing ObjectHolder annotations [00:45:53] [Client thread/INFO] [FML]: Found 341 ObjectHolder annotations [00:45:53] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations [00:45:53] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations [00:45:53] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0 [00:45:53] [Client thread/INFO] [FML]: Applying holder lookups [00:45:53] [Client thread/INFO] [FML]: Holder lookups applied [00:45:53] [Client thread/INFO] [FML]: Injecting itemstacks [00:45:53] [Client thread/INFO] [FML]: Itemstack injection complete [00:45:53] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: [00:45:53] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem… [00:45:53] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL [00:45:53] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [00:45:53] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized. [00:45:54] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: [00:45:54] [Sound Library Loader/INFO]: Sound engine started [00:45:54] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas [00:45:54] [Client thread/INFO]: Created: 256x256 textures/items-atlas [00:45:54] [Client thread/INFO] [STDOUT]: [mod.client.ClientProxy:registerRender:36]: render [00:45:55] [Client thread/INFO] [FML]: Injecting itemstacks [00:45:55] [Client thread/INFO] [FML]: Itemstack injection complete [00:45:55] [Client thread/ERROR] [FML]: Fatal errors were detected during the transition from POSTINITIALIZATION to AVAILABLE. Loading cannot continue [00:45:55] [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 UCHIJ mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) UCHIJ FML{7.10.99.99} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.4.1448-1.7.10.jar) UCHIJ Forge{10.13.4.1448} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1448-1.7.10.jar) UCHIE modminecraft{1.0} [Mod Minecraft] (bin) [00:45:55] [Client thread/ERROR] [FML]: The following problems were captured during this phase [00:45:55] [Client thread/ERROR] [FML]: Caught exception from modminecraft java.lang.IllegalArgumentException: Failed to register dimension for id 0, One is already registered at net.minecraftforge.common.DimensionManager.registerDimension(DimensionManager.java:118) ~[forgeSrc-1.7.10-10.13.4.1448-1.7.10.jar:?] at mod.common.world.structure.DimensionRegister.register(DimensionRegister.java:26) ~[bin/:?] at mod.ModMinecraft.postInit(ModMinecraft.java:64) ~[bin/:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_75] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_75] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_75] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_75] at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:532) ~[forgeSrc-1.7.10-10.13.4.1448-1.7.10.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_75] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_75] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_75] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_75] 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 cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212) ~[forgeSrc-1.7.10-10.13.4.1448-1.7.10.jar:?] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190) ~[forgeSrc-1.7.10-10.13.4.1448-1.7.10.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_75] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_75] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_75] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_75] 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 cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119) [LoadController.class:?] at cpw.mods.fml.common.Loader.initializeMods(Loader.java:742) [Loader.class:?] at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:311) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:597) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:942) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_75] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_75] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_75] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_75] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?] at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?] at GradleStart.main(Unknown Source) [start/:?] [00:45:55] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:388]: –-- Minecraft Crash Report ---- // On the bright side, I bought you a teddy bear! Time: 11/07/15 0:45 Description: Initializing game java.lang.IllegalArgumentException: Failed to register dimension for id 0, One is already registered at net.minecraftforge.common.DimensionManager.registerDimension(DimensionManager.java:118) at mod.common.world.structure.DimensionRegister.register(DimensionRegister.java:26) at mod.ModMinecraft.postInit(ModMinecraft.java:64) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) -
Parce que tu ne set jamais l’ID, donc l’ID est toujours à 0, il faut choisir un ID, sachant que -1,0 et 1 sont déjà pris, pour les autres faut faire en fonction des mods, le maximum est 100 je crois.
-
Désolé mais pour set l’ID je dois faire quoi ? Je suppose un int quelquechose mais je sais pas

-
Il sert à quoi lui à ton avis : public static int tutoDimAncient4; ?
public static int tutoDimAncient4 = tonID;
-
OOOOOh ok , je l’avais pas vu comme ca
Merci 
-
J’ai utilisé une variable pour le tutoriel car c’est plus portable et ça permet une adaptation facile à un fichier de config. Je te conseil de faire un fichier de config, car si un autre mod ajoute une dimension avec ton ID et n’a pas de fichier de config alors crash.
