Créer un bloc basique
-
Ton mod apparaît-il dans la liste des mods ?
-
@‘robin4002’:
Ton mod apparaît-il dans la liste des mods ?
oui
-
Vraiment pas normal …
Tu test ton mod en solo ou sur un serveur ? -
@‘robin4002’:
Vraiment pas normal …
Tu test ton mod en solo ou sur un serveur ?Ouais je comprends pas
Et en solo je le lance -
Il y a en effet un gros soucis.
Tu peux m’envoyer un zip de ton dossier src ?EDIT : essaies avant de clean la workspace.
-
Je t’ai envoyé tout ça en mp robin
ÉDIT : tu l’as reçu ?
-
J’avais demandé un zip du dossier src, pas de tout le dossier forge x)
Bon c’est pas grave c’est juste plus lourd. Je regardes, j’éditerai ce message dans ~10 min.EDIT : bon la classe principale chez moi ne contient pas ton bloc. Donc dans ton dossier src/main/java/fr/timelight/Camouflage/common le fichier BaseMod ne contient pas ce que tu as envoyé, d’où ton problème.
Maintenant reste à savoir quel fichier tu as modifié ?!?
-
@‘robin4002’:
J’avais demandé un zip du dossier src, pas de tout le dossier forge x)
Bon c’est pas grave c’est juste plus lourd. Je regardes, j’éditerai ce message dans ~10 min.EDIT : bon la classe principale chez moi ne contient pas ton bloc. Donc dans ton dossier src/main/java/fr/timelight/Camouflage/common le fichier BaseMod ne contient pas ce que tu as envoyé, d’où ton problème.
Maintenant reste à savoir quel fichier tu as modifié ?!?
C’est bon j’ai trouvé, enfin vraiment merci de ton aide tu as étais super !
-
Quand je démarre mon client il me met ça en log
[20:42:51] [main/INFO] [GradleStart]: Extra: []
[20:42:51] [main/INFO] [GradleStart]: Running with arguments: [–userProperties, {}, --assetsDir, C:/Users/T-o/.gradle/caches/minecraft/assets, --assetIndex, 1.7.10, --accessToken, {REDACTED}, --version, 1.7.10, --tweakClass, cpw.mods.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
[20:42:51] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[20:42:51] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[20:42:51] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
[20:42:51] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
[20:42:51] [main/INFO] [FML]: Forge Mod Loader version 7.99.40.1614 for Minecraft 1.7.10 loading
[20:42:51] [main/INFO] [FML]: Java is Java HotSpot 64-Bit Server VM, version 1.8.0_91, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre1.8.0_91
[20:42:51] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[20:42:51] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
[20:42:51] [main/INFO] [GradleStart]: Injecting location in coremod cpw.mods.fml.relauncher.FMLCorePlugin
[20:42:51] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
[20:42:51] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[20:42:51] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
[20:42:51] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[20:42:51] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[20:42:51] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[20:42:51] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
[20:42:52] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
[20:42:53] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
[20:42:53] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
[20:42:53] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
[20:42:54] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[20:42:54] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker
[20:42:54] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker
[20:42:54] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[20:42:55] [main/INFO]: Setting user: Player29
[20:42:57] [Client thread/INFO]: LWJGL Version: 2.9.1
[20:42:58] [Client thread/INFO] [FML]: Could not load splash.properties, will create a default one
[20:42:58] [Client thread/INFO] [STDOUT]: [cpw.mods.fml.client.SplashProgress:start:188]: –-- Minecraft Crash Report ----
// I blame Dinnerbone.Time: 08/05/16 20:42
Description: Loading screen debug infoThis 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 7 (amd64) version 6.1
Java Version: 1.8.0_91, Oracle Corporation
Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 769354488 bytes (733 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 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: ‘Intel’ Version: ‘4.0.0 - Build 10.18.10.3412’ Renderer: ‘Intel HD Graphics 4000’
[20:42:58] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization
[20:42:58] [Client thread/INFO] [FML]: MinecraftForge v10.13.4.1614 Initialized
[20:42:58] [Client thread/INFO] [FML]: Replaced 183 ore recipies
[20:42:58] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization
[20:42:59] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer
[20:42:59] [Client thread/INFO] [FML]: Searching C:\Users\T-o\Desktop\Personnel\Archive Forge\eclipse\mods for mods
[20:43:10] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
[20:43:10] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, ModTEM] at CLIENT
[20:43:10] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, ModTEM] at SERVER
[20:43:11] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:The Evolution Of McDonald
[20:43:11] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
[20:43:11] [Client thread/INFO] [FML]: Found 341 ObjectHolder annotations
[20:43:11] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations
[20:43:11] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations
[20:43:11] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
[20:43:11] [Client thread/ERROR] [FML]: Caught an exception during block registration
java.lang.NullPointerException: Can’t add null-object to the registry, name ModTEM:Barre.
at cpw.mods.fml.common.registry.FMLControlledNamespacedRegistry.add(FMLControlledNamespacedRegistry.java:384) ~[FMLControlledNamespacedRegistry.class:?]
at cpw.mods.fml.common.registry.GameData.registerBlock(GameData.java:894) ~[GameData.class:?]
at cpw.mods.fml.common.registry.GameData.registerBlock(GameData.java:869) ~[GameData.class:?]
at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:229) [GameRegistry.class:?]
at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:188) [GameRegistry.class:?]
at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:177) [GameRegistry.class:?]
at com.google.commando24.common.ModTEM.preInit(ModTEM.java:36) [ModTEM.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_91]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_91]
at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:532) [FMLModContainer.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_91]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_91]
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) [LoadController.class:?]
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190) [LoadController.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_91]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_91]
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.preinitializeMods(Loader.java:556) [Loader.class:?]
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:243) [FMLClientHandler.class:?]
at net.minecraft.client.Minecraft.startGame(Minecraft.java:522) [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.8.0_91]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_91]
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 net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?]
at GradleStart.main(Unknown Source) [start/:?]
[20:43:11] [Client thread/INFO] [FML]: Applying holder lookups
[20:43:11] [Client thread/INFO] [FML]: Holder lookups applied
[20:43:11] [Client thread/INFO] [FML]: Injecting itemstacks
[20:43:11] [Client thread/INFO] [FML]: Itemstack injection complete
[20:43:11] [Client thread/ERROR] [FML]: Fatal errors were detected during the transition from PREINITIALIZATION to INITIALIZATION. Loading cannot continue
[20:43:11] [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
UCH mcp{9.05} [Minecraft Coder Pack] (minecraft.jar)
UCH FML{7.10.99.99} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar)
UCH Forge{10.13.4.1614} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar)
UCE ModTEM{1.0.0} [The Evolution Of McDonald] (bin)
[20:43:11] [Client thread/ERROR] [FML]: The following problems were captured during this phase
[20:43:11] [Client thread/ERROR] [FML]: Caught exception from ModTEM
cpw.mods.fml.common.LoaderException: java.lang.NullPointerException: Can’t add null-object to the registry, name ModTEM:Barre.at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:239) ~[forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar:?]
at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:188) ~[forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar:?]
at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:177) ~[forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar:?]
at com.google.commando24.common.ModTEM.preInit(ModTEM.java:36) ~[bin/:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_91]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_91]
at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:532) ~[forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_91]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_91]
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.1614-1.7.10.jar:?]
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190) ~[forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_91]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_91]
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.preinitializeMods(Loader.java:556) [Loader.class:?]
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:243) [FMLClientHandler.class:?]
at net.minecraft.client.Minecraft.startGame(Minecraft.java:522) [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.8.0_91]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_91]
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 net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?]
at GradleStart.main(Unknown Source) [start/:?]
Caused by: java.lang.NullPointerException: Can’t add null-object to the registry, name ModTEM:Barre.
at cpw.mods.fml.common.registry.FMLControlledNamespacedRegistry.add(FMLControlledNamespacedRegistry.java:384) ~[forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar:?]
at cpw.mods.fml.common.registry.GameData.registerBlock(GameData.java:894) ~[forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar:?]
at cpw.mods.fml.common.registry.GameData.registerBlock(GameData.java:869) ~[forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar:?]
at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:229) ~[forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar:?]
… 42 more
[20:43:11] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:388]: –-- Minecraft Crash Report ----
// Hi. I’m Minecraft, and I’m a crashaholic.Time: 08/05/16 20:43
Description: There was a severe problem during mod loading that has caused the game to failcpw.mods.fml.common.LoaderException: java.lang.NullPointerException: Can’t add null-object to the registry, name ModTEM:Barre.
at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:239)
at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:188)
at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:177)
at com.google.commando24.common.ModTEM.preInit(ModTEM.java:36)
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 cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:532)
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 cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190)
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 cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119)
at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:556)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:243)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:522)
at net.minecraft.client.Minecraft.run(Minecraft.java:942)
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)
Caused by: java.lang.NullPointerException: Can’t add null-object to the registry, name ModTEM:Barre.
at cpw.mods.fml.common.registry.FMLControlledNamespacedRegistry.add(FMLControlledNamespacedRegistry.java:384)
at cpw.mods.fml.common.registry.GameData.registerBlock(GameData.java:894)
at cpw.mods.fml.common.registry.GameData.registerBlock(GameData.java:869)
at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:229)
… 42 moreA 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 7 (amd64) version 6.1
Java Version: 1.8.0_91, Oracle Corporation
Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 812198488 bytes (774 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 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: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1614 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
UCH mcp{9.05} [Minecraft Coder Pack] (minecraft.jar)
UCH FML{7.10.99.99} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar)
UCH Forge{10.13.4.1614} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar)
UCE ModTEM{1.0.0} [The Evolution Of McDonald] (bin)
GL info: ’ Vendor: ‘Intel’ Version: ‘4.0.0 - Build 10.18.10.3412’ Renderer: ‘Intel HD Graphics 4000’
[20:43:11] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:398]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\T-o\Desktop\Personnel\Archive Forge\eclipse.\crash-reports\crash-2016-05-08_20.43.11-client.txt
Java HotSpot 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future releaseEt il me met ça en crash report
–-- Minecraft Crash Report ----
// Quite honestly, I wouldn’t worry myself about that.Time: 08/05/16 20:42
Description: There was a severe problem during mod loading that has caused the game to failcpw.mods.fml.common.LoaderException: java.lang.NullPointerException: Can’t add null-object to the registry, name ModTEM:Barre.
at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:239)
at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:188)
at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:177)
at com.google.commando24.common.ModTEM.preInit(ModTEM.java:36)
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 cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:532)
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 cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190)
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 cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119)
at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:556)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:243)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:522)
at net.minecraft.client.Minecraft.run(Minecraft.java:942)
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)
Caused by: java.lang.NullPointerException: Can’t add null-object to the registry, name ModTEM:Barre.
at cpw.mods.fml.common.registry.FMLControlledNamespacedRegistry.add(FMLControlledNamespacedRegistry.java:384)
at cpw.mods.fml.common.registry.GameData.registerBlock(GameData.java:894)
at cpw.mods.fml.common.registry.GameData.registerBlock(GameData.java:869)
at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:229)
… 42 moreA 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 7 (amd64) version 6.1
Java Version: 1.8.0_91, Oracle Corporation
Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 813200400 bytes (775 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 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: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1614 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
UCH mcp{9.05} [Minecraft Coder Pack] (minecraft.jar)
UCH FML{7.10.99.99} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar)
UCH Forge{10.13.4.1614} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar)
UCE ModTEM{1.0.0} [RP Life] (bin)
GL info: ’ Vendor: ‘Intel’ Version: ‘4.0.0 - Build 10.18.10.3412’ Renderer: ‘Intel HD Graphics 4000’ -
Tu essayes de register ton Item sans qu’il soit initializé (avant tonItem = quelque chose).
Envoyé de mon RAINBOW LITE 4G en utilisant Tapatalk
-
@‘AymericRed’:
Tu essayes de register ton Item sans qu’il soit initializé (avant tonItem = quelque chose).
Envoyé de mon RAINBOW LITE 4G en utilisant Tapatalk
Tu peux expliquer mieux sil te plait
-
Bah il explique déjà très bien. En gros tu as ta ligne GameRegistry.registerItem(blabla). Eh bien cette ligne DOIT, c’est OBLIGÉ (sinon tu te tappes ce crash que tu viens d’avoir), se trouver APRES la ligne d’initialisation (voir les bases en java, si tu ne les possèdes pas), de ton item, à savoir tonItem (je crois qu’il s’appelle barre, d’après la crash-report) = new Item().blabla;
Si tu ne comprends toujours pas, relis le tuto, ça ira sûrement mieux -
@‘Plaigon’:
Bah il explique déjà très bien. En gros tu as ta ligne GameRegistry.registerItem(blabla). Eh bien cette ligne DOIT, c’est OBLIGÉ (sinon tu te tappes ce crash que tu viens d’avoir), se trouver APRES la ligne d’initialisation (voir les bases en java, si tu ne les possèdes pas), de ton item, à savoir tonItem (je crois qu’il s’appelle barre, d’après la crash-report) = new Item().blabla;
Si tu ne comprends toujours pas, relis le tuto, ça ira sûrement mieuxpackage com.google.commando24.common; import com.google.commando24.proxy.CommonProxy; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.Mod.Instance; import cpw.mods.fml.common.SidedProxy; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLPostInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.registry.GameRegistry; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; @Mod(modid = "ModTEM", name = "The Evolution Of McDonald", version = "1.0.0") public class ModTEM { private static final Block ModTEM = null; @Instance("ModTEM") public static ModTEM instance; public static Block Barre, Brique, Route; @SidedProxy(clientSide = "com.google.commando24.proxy.ClientProxy", serverSide = "com.google.commando24.proxy.CommonProxy") public static CommonProxy proxy; @EventHandler public void preInit(FMLPreInitializationEvent event) { Barre = new Barre(Material.rock).setBlockName("Barre").setBlockTextureName(ModTEM + ":barre").setCreativeTab(CreativeTabs.tabFood); Brique = new Brique(Material.rock).setBlockName("Brique").setBlockTextureName(ModTEM + ":brique").setCreativeTab(CreativeTabs.tabFood); Route = new Route(Material.rock).setBlockName("Route").setBlockTextureName(ModTEM + ":route").setCreativeTab(CreativeTabs.tabFood); GameRegistry.registerBlock(ModTEM, "Barre"); GameRegistry.registerBlock(ModTEM, "Brique"); GameRegistry.registerBlock(ModTEM, "Route"); } @EventHandler public void Init(FMLInitializationEvent event) { proxy.registerRender(); } @EventHandler public void postInit(FMLPostInitializationEvent event) { } }
-
Ah oui mais le premier argument de registerBlock doit justement être l’instance du block qu’on souhaite enregistré.
En gros pour le premier, c’est GameRegistry.registerBlock(Barre, "Barre’);
Compris ?PS = Fais attention à la convention Java. T’es pas le premier à qui on fait la remarque, ça serait donc pas mal que tu l’apprennes. Crois moi ça sers toujours
-
salut, essaye de poster sur pastebin, ou de mettre des balises quand tu mets des logs ou autre, car la, c’est ***** de lire
et oui package sans majuscule, class avec, package en lien avec ton url genre la fr.minecraftforgefrance. ……
c’est important pour les autres, et toi tu arriveras à te retrouver plus facilement
-
[font=Ubuntu, sans-serifBonjour j’ai un problème avec ma texture voila mon chemin d’accé “C:\Users\T-o\Desktop\Personnel\Archive Forge\src\main\resources\assets\modtem\textures\blocks\brique.png”]
[font=Ubuntu, sans-serifC’est du 32 x 32 ]
[font=Ubuntu, sans-serifet voilà ma class =][font=Ubuntu, sans-serifpackage com.google.commando24.common;] [font=Ubuntu, sans-serifimport com.google.commando24.proxy.CommonProxy;] [font=Ubuntu, sans-serifimport cpw.mods.fml.common.Mod;] [font=Ubuntu, sans-serifimport cpw.mods.fml.common.Mod.EventHandler;] [font=Ubuntu, sans-serifimport cpw.mods.fml.common.Mod.Instance;] [font=Ubuntu, sans-serifimport cpw.mods.fml.common.SidedProxy;] [font=Ubuntu, sans-serifimport cpw.mods.fml.common.event.FMLInitializationEvent;] [font=Ubuntu, sans-serifimport cpw.mods.fml.common.event.FMLPostInitializationEvent;] [font=Ubuntu, sans-serifimport cpw.mods.fml.common.event.FMLPreInitializationEvent;] [font=Ubuntu, sans-serifimport cpw.mods.fml.common.registry.GameRegistry;] [font=Ubuntu, sans-serifimport net.minecraft.block.Block;] [font=Ubuntu, sans-serifimport net.minecraft.block.material.Material;] [font=Ubuntu, sans-serifimport net.minecraft.creativetab.CreativeTabs;] [font=Ubuntu, sans-serifimport net.minecraft.item.Item;] [font=Ubuntu, sans-serif@Mod(modid = "ModTEM", name = "The Evolution Of McDonald", version = "1.0.0") ] [font=Ubuntu, sans-serifpublic class ModTEM] [font=Ubuntu, sans-serif{] [font=Ubuntu, sans-serif ]private static final Block ModTEM = null; [font=Ubuntu, sans-serif ]@Instance("ModTEM") [font=Ubuntu, sans-serif ]public static ModTEM instance; [font=Ubuntu, sans-serif ]public static Block Barre, Brique, Route; [font=Ubuntu, sans-serif ]@SidedProxy(clientSide = "com.google.commando24.proxy.ClientProxy", serverSide = "com.google.commando24.proxy.CommonProxy") [font=Ubuntu, sans-serif ]public static CommonProxy proxy; [font=Ubuntu, sans-serif ]@EventHandler [font=Ubuntu, sans-serif ]public void preInit(FMLPreInitializationEvent event) [font=Ubuntu, sans-serif ]{ [font=Ubuntu, sans-serif ]Barre = new Barre(Material.rock).setBlockName("Barre").setBlockTextureName(ModTEM + ":barre").setCreativeTab(CreativeTabs.tabFood); [font=Ubuntu, sans-serif ]Brique = new Brique(Material.rock).setBlockName("Brique").setBlockTextureName(ModTEM + ":brique").setCreativeTab(CreativeTabs.tabFood); [font=Ubuntu, sans-serif ]Route = new Route(Material.rock).setBlockName("Route").setBlockTextureName(ModTEM + ":route").setCreativeTab(CreativeTabs.tabFood); [font=Ubuntu, sans-serif ]GameRegistry.registerBlock(Barre, "Barre"); [font=Ubuntu, sans-serif ]GameRegistry.registerBlock(Brique, "Brique"); [font=Ubuntu, sans-serif ]GameRegistry.registerBlock(Route, "Route"); [font=Ubuntu, sans-serif ]} [font=Ubuntu, sans-serif ]@EventHandler [font=Ubuntu, sans-serif ]public void Init(FMLInitializationEvent event) [font=Ubuntu, sans-serif ]{ [font=Ubuntu, sans-serif ]proxy.registerRender(); [font=Ubuntu, sans-serif ]} [font=Ubuntu, sans-serif @EventHandler] [font=Ubuntu, sans-serif ]public void postInit(FMLPostInitializationEvent event) [font=Ubuntu, sans-serif ]{ [font=Ubuntu, sans-serif ]} [font=Ubuntu, sans-serif}]
-
.setBlockTextureName(ModTEM + “:barre”).
devrait être :
.setBlockTextureName(“modtem:barre”).Et cette variable :
[font=Ubuntu,sans-serifprivate static final Block ModTEM = null;ne devrait pas exister.]
-
Salut !
Désolé de vous déranger mais j’ai un probleme de texture, mon block est bien présent dans le jeu j’ai bien mit la texture dans le dossier blocks mais sur les log il y a écrit missing texture et je ne sais pas pourquoi la texture ne s’affiche pas je l’ai fait pour un item’ cela marche parfaitement mais pas pour le block…:::
[16:41:43] [main/INFO] [GradleStart]: Extra: [] [16:41:43] [main/INFO] [GradleStart]: Running with arguments: [–userProperties, {}, --assetsDir, C:/Users/NicoOo/.gradle/caches/minecraft/assets, --assetIndex, 1.7.10, --accessToken, {REDACTED}, --version, 1.7.10, --tweakClass, cpw.mods.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker] [16:41:43] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker [16:41:43] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker [16:41:43] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker [16:41:43] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker [16:41:43] [main/INFO] [FML]: Forge Mod Loader version 7.99.36.1558 for Minecraft 1.7.10 loading [16:41:43] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_121, running on Windows 10:amd64:10.0, installed at C:\Program Files\Java\jre1.8.0_121 [16:41:43] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [16:41:43] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker [16:41:43] [main/INFO] [GradleStart]: Injecting location in coremod cpw.mods.fml.relauncher.FMLCorePlugin [16:41:43] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin [16:41:43] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [16:41:43] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker [16:41:43] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [16:41:43] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [16:41:43] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [16:41:43] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [16:41:43] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [16:41:44] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [16:41:44] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [16:41:44] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker [16:41:44] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [16:41:44] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker [16:41:44] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker [16:41:44] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} [16:41:45] [main/INFO]: Setting user: Player696 [16:41:46] [Client thread/INFO]: LWJGL Version: 2.9.1 [16:41:47] [Client thread/INFO] [STDOUT]: [cpw.mods.fml.client.SplashProgress:start:188]: –-- Minecraft Crash Report ---- // Who set us up the TNT? Time: 28/02/17 16: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.7.10 Operating System: Windows 10 (amd64) version 10.0 Java Version: 1.8.0_121, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 783041968 bytes (746 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 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 376.53' Renderer: 'GeForce GTX 1050 Ti/PCIe/SSE2' [16:41:47] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization [16:41:47] [Client thread/INFO] [FML]: MinecraftForge v10.13.4.1558 Initialized [16:41:47] [Client thread/INFO] [FML]: Replaced 183 ore recipies [16:41:47] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization [16:41:48] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer [16:41:48] [Client thread/INFO] [FML]: Searching C:\Users\NicoOo\Desktop\Forge\eclipse\mods for mods [16:41:53] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load [16:41:53] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, nicomod] at CLIENT [16:41:53] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, nicomod] at SERVER [16:41:53] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Nico Mod [16:41:54] [Client thread/INFO] [FML]: Processing ObjectHolder annotations [16:41:54] [Client thread/INFO] [FML]: Found 341 ObjectHolder annotations [16:41:54] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations [16:41:54] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations [16:41:54] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0 [16:41:54] [Client thread/INFO] [FML]: Applying holder lookups [16:41:54] [Client thread/INFO] [FML]: Holder lookups applied [16:41:54] [Client thread/INFO] [FML]: Injecting itemstacks [16:41:54] [Client thread/INFO] [FML]: Itemstack injection complete [16:41:54] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: [16:41:54] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem… [16:41:54] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL [16:41:54] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005 [16:41:54] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized. [16:41:54] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: [16:41:54] [Sound Library Loader/INFO]: Sound engine started [16:41:55] [Client thread/INFO]: Created: 16x16 textures/blocks-atlas [16:41:55] [Client thread/INFO]: Created: 16x16 textures/items-atlas [16:41:55] [Client thread/INFO] [FML]: Injecting itemstacks [16:41:55] [Client thread/INFO] [FML]: Itemstack injection complete [16:41:55] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods [16:41:55] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Nico Mod [16:41:55] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas [16:41:56] [Client thread/INFO]: Created: 256x256 textures/items-atlas [16:41:56] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: [16:41:56] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down… [16:41:56] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:importantMessage:90]: Author: Paul Lamb, www.paulscode.com [16:41:56] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: [16:41:56] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: [16:41:56] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem… [16:41:56] [Thread-10/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL [16:41:56] [Thread-10/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [16:41:56] [Thread-10/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized. [16:41:56] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: [16:41:56] [Sound Library Loader/INFO]: Sound engine started [16:41:57] [Client thread/ERROR] [TEXTURE ERRORS]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= [16:41:57] [Client thread/ERROR] [TEXTURE ERRORS]: The following texture errors were found. [16:41:57] [Client thread/ERROR] [TEXTURE ERRORS]: ================================================== [16:41:57] [Client thread/ERROR] [TEXTURE ERRORS]: DOMAIN minecraft [16:41:57] [Client thread/ERROR] [TEXTURE ERRORS]: –------------------------------------------------ [16:41:57] [Client thread/ERROR] [TEXTURE ERRORS]: domain minecraft is missing 1 texture [16:41:57] [Client thread/ERROR] [TEXTURE ERRORS]: domain minecraft has 3 locations: [16:41:57] [Client thread/ERROR] [TEXTURE ERRORS]: unknown resourcepack type net.minecraft.client.resources.DefaultResourcePack : Default [16:41:57] [Client thread/ERROR] [TEXTURE ERRORS]: mod FML resources at C:\Users\NicoOo\.gradle\caches\minecraft\net\minecraftforge\forge\1.7.10-10.13.4.1558-1.7.10\forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar [16:41:57] [Client thread/ERROR] [TEXTURE ERRORS]: mod Forge resources at C:\Users\NicoOo\.gradle\caches\minecraft\net\minecraftforge\forge\1.7.10-10.13.4.1558-1.7.10\forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar [16:41:57] [Client thread/ERROR] [TEXTURE ERRORS]: –----------------------- [16:41:57] [Client thread/ERROR] [TEXTURE ERRORS]: The missing resources for domain minecraft are: [16:41:57] [Client thread/ERROR] [TEXTURE ERRORS]: textures/blocks/nicomodnico_block.png [16:41:57] [Client thread/ERROR] [TEXTURE ERRORS]: –----------------------- [16:41:57] [Client thread/ERROR] [TEXTURE ERRORS]: No other errors exist for domain minecraft [16:41:57] [Client thread/ERROR] [TEXTURE ERRORS]: ================================================== [16:41:57] [Client thread/ERROR] [TEXTURE ERRORS]: ================================================== [16:41:57] [Client thread/ERROR] [TEXTURE ERRORS]: DOMAIN nicomod [16:41:57] [Client thread/ERROR] [TEXTURE ERRORS]: –------------------------------------------------ [16:41:57] [Client thread/ERROR] [TEXTURE ERRORS]: domain nicomod is missing 1 texture [16:41:57] [Client thread/ERROR] [TEXTURE ERRORS]: domain nicomod has 1 location: [16:41:57] [Client thread/ERROR] [TEXTURE ERRORS]: mod nicomod resources at C:\Users\NicoOo\Desktop\Forge\bin [16:41:57] [Client thread/ERROR] [TEXTURE ERRORS]: –----------------------- [16:41:57] [Client thread/ERROR] [TEXTURE ERRORS]: The missing resources for domain nicomod are: [16:41:57] [Client thread/ERROR] [TEXTURE ERRORS]: textures/items/item_nico2.png [16:41:57] [Client thread/ERROR] [TEXTURE ERRORS]: –----------------------- [16:41:57] [Client thread/ERROR] [TEXTURE ERRORS]: No other errors exist for domain nicomod [16:41:57] [Client thread/ERROR] [TEXTURE ERRORS]: ================================================== [16:41:57] [Client thread/ERROR] [TEXTURE ERRORS]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
:::
L’item_nico2 je ne lui ai pas mit de texture mais pour le block si et ca m’affiche les meme message pour les deux.
:::
package fr.nicobt10.nico.common; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.Mod.Instance; import cpw.mods.fml.common.SidedProxy; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLPostInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.registry.GameRegistry; import fr.nicobt10.nico.proxy.CommonProxy; @Mod(modid = "nicomod", name = "Nico Mod", version = "1.0.0") public class ModNico { public static final String MODID = "nicomod"; @Instance(MODID) public static ModNico instance; @SidedProxy(clientSide = "fr.nicobt10.nico.proxy.ClientProxy", serverSide = "fr.nicobt10.nico.proxy.CommonProxy") public static CommonProxy proxy; public static Item itemNico, itemNico2; public static Block blockNico; @EventHandler public void preInit(FMLPreInitializationEvent event) { itemNico = new ItemNico().setUnlocalizedName("itemNico").setTextureName(ModNico.MODID + ":item_nico").setCreativeTab(CreativeTabs.tabMaterials); itemNico2 = new ItemNico().setUnlocalizedName("itemNico2").setTextureName(ModNico.MODID + ":item_nico2").setCreativeTab(CreativeTabs.tabMaterials); GameRegistry.registerItem(itemNico, "item_nico"); GameRegistry.registerItem(itemNico2, "item_nico2"); blockNico = new BlockNico(Material.rock).setBlockName("Nico").setBlockTextureName(MODID + "nico_block").setCreativeTab(CreativeTabs.tabBlock); GameRegistry.registerBlock(blockNico, "block_nico"); } @EventHandler public void init(FMLInitializationEvent event) { proxy.registerRender(); } @EventHandler public void postInit(FMLPostInitializationEvent event) { } }
:::
:::
package fr.nicobt10.nico.common; import net.minecraft.block.Block; import net.minecraft.block.material.Material; public class BlockNico extends Block { protected BlockNico(Material material) { super(material); } }
:::
Merci beaucoup d’avance et comme d’habitude super tuto !
-
Utilise les balises [ java ] pour ton code, même à l’intérieur d’un spoiler. Ça nous permet d’avoir des couleurs, et ton code est nettement plus lisible comme ça.
Edit : Ce n’est pas très important, mais il n’est pas conseillé d’avoir des noms non-localisés utilisant des majuscules. Donc ton setBlockName(“Nico”) devrait être setBlockName(“nico”)
Edit 2 : Merci, avec les couleurs, le problème se repère tout de suite :
.setBlockTextureName(MODID + "nico_block") ``` devrait être ```java .setBlockTextureName(MODID + ":nico_block")
-
@‘@Pchom’:
Utilise les balises [ java ] pour ton code, même à l’intérieur d’un spoiler. Ça nous permet d’avoir des couleurs, et ton code est nettement plus lisible comme ça.
Edit : Ce n’est pas très important, mais il n’est pas conseillé d’avoir des noms non-localisés utilisant des majuscules. Donc ton setBlockName(“Nico”) devrait être setBlockName(“nico”)
Edit 2 : Merci, avec les couleurs, le problème se repère tout de suite :
.setBlockTextureName(MODID + "nico_block") ``` devrait être ```java .setBlockTextureName(MODID + ":nico_block")
Merci beaucoup et je suis plus qu’un débutant dans le modding donc merci beaucoup de votre aide et de vos réponces si rapide à mes questionts !
Bonne journée !