J'ai suivi le tutoriel sur le modding de Checconio mais à chaque fois que je lance et que ça charge au Initializing,il me dit que j'ai un problème et ça crash.
Pouvez-vous m'aidez ?
Voici les logs :
Code : Tout sélectionner
[15:21:50] [Client thread/INFO] [FML]: MinecraftForge v14.23.5.2847 Initialized
[15:21:50] [Client thread/INFO] [FML]: Starts to replace vanilla recipe ingredients with ore ingredients.
[15:21:50] [Client thread/INFO] [FML]: Invalid recipe found with multiple oredict ingredients in the same ingredient...
[15:21:50] [Client thread/INFO] [FML]: Replaced 1227 ore ingredients
[15:21:51] [Client thread/INFO] [FML]: Searching /Users/damjanjankovic/juxtix/flariumClient/run/./mods for mods
[15:21:52] [Client thread/INFO] [FML]: Forge Mod Loader has identified 5 mods to load
[15:21:52] [Client thread/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, flarimod] at CLIENT
[15:21:52] [Client thread/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, flarimod] at SERVER
[15:21:53] [Thread-3/INFO] [FML]: Using alternative sync timing : 200 frames of Display.update took 1544158402 nanos
[15:21:53] [Client thread/INFO] [minecraft/SimpleReloadableResourceManager]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Flarium Mod
[15:21:53] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
[15:21:53] [Client thread/INFO] [FML]: Found 1168 ObjectHolder annotations
[15:21:53] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations
[15:21:53] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations
[15:21:53] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
[15:21:53] [Client thread/INFO] [FML]: Applying holder lookups
[15:21:53] [Forge Version Check/INFO] [forge.VersionCheck]: [forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
[15:21:53] [Client thread/INFO] [FML]: Holder lookups applied
[15:21:53] [Client thread/INFO] [FML]: Applying holder lookups
[15:21:53] [Client thread/INFO] [FML]: Holder lookups applied
[15:21:53] [Client thread/INFO] [FML]: Applying holder lookups
[15:21:53] [Client thread/INFO] [FML]: Holder lookups applied
[15:21:53] [Client thread/INFO] [FML]: Applying holder lookups
[15:21:53] [Client thread/INFO] [FML]: Holder lookups applied
[15:21:53] [Client thread/INFO] [FML]: Injecting itemstacks
[15:21:53] [Client thread/INFO] [FML]: Itemstack injection complete
[15:21:54] [Client thread/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:629]: ---- Minecraft Crash Report ----
// Why is it breaking :(
Time: 4/13/20 3:21 PM
Description: Initializing game
java.lang.NullPointerException: Initializing game
at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:770)
at com.google.common.base.Joiner.toString(Joiner.java:454)
at com.google.common.base.Joiner.appendTo(Joiner.java:109)
at com.google.common.base.Joiner.appendTo(Joiner.java:154)
at com.google.common.base.Joiner.join(Joiner.java:197)
at com.google.common.base.Joiner.join(Joiner.java:187)
at net.minecraftforge.fml.common.ModMetadata.getAuthorList(ModMetadata.java:81)
at net.minecraftforge.fml.common.FMLModContainer.getSharedModDescriptor(FMLModContainer.java:716)
at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:279)
at net.minecraft.client.Minecraft.init(Minecraft.java:514)
at net.minecraft.client.Minecraft.run(Minecraft.java:422)
at net.minecraft.client.main.Main.main(Main.java:118)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97)
at GradleStart.main(GradleStart.java:25)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Thread: Client thread
Stacktrace:
at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:770)
at com.google.common.base.Joiner.toString(Joiner.java:454)
at com.google.common.base.Joiner.appendTo(Joiner.java:109)
at com.google.common.base.Joiner.appendTo(Joiner.java:154)
at com.google.common.base.Joiner.join(Joiner.java:197)
at com.google.common.base.Joiner.join(Joiner.java:187)
at net.minecraftforge.fml.common.ModMetadata.getAuthorList(ModMetadata.java:81)
at net.minecraftforge.fml.common.FMLModContainer.getSharedModDescriptor(FMLModContainer.java:716)
at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:279)
at net.minecraft.client.Minecraft.init(Minecraft.java:514)
-- Initialization --
Details:
Stacktrace:
at net.minecraft.client.Minecraft.run(Minecraft.java:422)
at net.minecraft.client.main.Main.main(Main.java:118)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97)
at GradleStart.main(GradleStart.java:25)
-- System Details --
Details:
Minecraft Version: 1.12.2
Operating System: Mac OS X (x86_64) version 10.13.6
Java Version: 1.8.0_201, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 124366208 bytes (118 MB) / 549453824 bytes (524 MB) up to 1908932608 bytes (1820 MB)
JVM Flags: 0 total;
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP 9.42 Powered by Forge 14.23.5.2847 5 mods loaded, 5 mods active
States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
| State | ID | Version | Source | Signature |
|:----- |:--------- |:------------ |:-------------------------------- |:--------- |
| LCH | minecraft | 1.12.2 | minecraft.jar | None |
| LCH | mcp | 9.42 | minecraft.jar | None |
| LCH | FML | 8.0.99.99 | forgeSrc-1.12.2-14.23.5.2847.jar | None |
| LCH | forge | 14.23.5.2847 | forgeSrc-1.12.2-14.23.5.2847.jar | None |
| LCH | flarimod | 0.0.1 | bin | None |
Loaded coremods (and transformers):
GL info: ' Vendor: 'ATI Technologies Inc.' Version: '2.1 ATI-1.68.20' Renderer: 'AMD Radeon Pro 555 OpenGL Engine'
Launched Version: 1.12.2
LWJGL: 2.9.2
OpenGL: AMD Radeon Pro 555 OpenGL Engine GL version 2.1 ATI-1.68.20, ATI Technologies Inc.
GL Caps: Using GL 1.3 multitexturing.
Using GL 1.3 texture combiners.
Using framebuffer objects because ARB_framebuffer_object is supported and separate blending is supported.
Shaders are available because OpenGL 2.1 is supported.
VBOs are available because OpenGL 1.5 is supported.
Using VBOs: Yes
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)
CPU: 4x Intel(R) Core(TM) i5-7400 CPU @ 3.00GHz
[15:21:54] [Client thread/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:629]: #@!@# Game crashed! Crash report saved to: #@!@# /Users/damjanjankovic/juxtix/flariumClient/run/./crash-reports/crash-2020-04-13_15.21.54-client.txt
Code : Tout sélectionner
package fr.flarium.flarimod;
import fr.flarium.flarimod.proxies.FServerProxy;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.Mod.EventHandler;
import net.minecraftforge.fml.common.SidedProxy;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
@Mod(modid= FlariMod.MODID, name= FlariMod.NAME, version= FlariMod.VERSION, acceptedMinecraftVersions = FlariMod.MINECRAFT_VER)
public class FlariMod {
public static final String MODID = "flarimod";
public static final String NAME = "FlariMod";
public static final String VERSION = "0.0.1";
public static final String CLIENTPROXY = "fr.flarium.flarimod.proxies.FClientProxy";
public static final String SERVERPROXY = "fr.flarium.flarimod.proxies.FServerProxy";
public static final String MINECRAFT_VER = "[1.12]";
@SidedProxy(clientSide = FlariMod.CLIENTPROXY, serverSide = FlariMod.SERVERPROXY, modId = FlariMod.MODID)
public static FServerProxy proxy;
@EventHandler
public void preInit(FMLPreInitializationEvent event)
{
}
@EventHandler
public void init(FMLInitializationEvent event)
{
proxy.register();
}
@EventHandler
public void postInit(FMLPostInitializationEvent event) {
}
}
Code : Tout sélectionner
package fr.flarium.flarimod.proxies;
public class FServerProxy {
public void register() {
// Fonction d'initialization
}
}
Code : Tout sélectionner
package fr.flarium.flarimod.proxies;
import fr.flarium.flarimod.client.FGuiPauseMenu;
import fr.flarium.flarimod.client.FMainMenu;
import net.minecraft.client.gui.GuiIngameMenu;
import net.minecraft.client.gui.GuiMainMenu;
import net.minecraftforge.client.event.GuiOpenEvent;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
public class FClientProxy extends FServerProxy{
@Override
public void register() {
MinecraftForge.EVENT_BUS.register(this);
}
@SubscribeEvent
public void onOpenGui(GuiOpenEvent event)
{
if(event.getGui() != null && event.getGui().getClass() == GuiMainMenu.class)
{
event.setGui(new FMainMenu());
}
if(event.getGui() != null && event.getGui().getClass() == GuiIngameMenu.class)
{
event.setGui(new FGuiPauseMenu());
}
}
}