Résolu Crash des le début sans rien
-
bonsoir je viens de me remettre dans le java et je me suis dit que je devais passer a la 1.8 en refaisant tout a zero donc le jeu crash apre avoir défini @mod et les events
:::
package fr.amelya.mod.common; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.Mod.EventHandler; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; @Mod(modid = References.MOD_ID, name = References.MOD_NAME, version = References.VERSION) class MainClass { @EventHandler public void preIntit(FMLPreInitializationEvent event) { } @EventHandler public void intit(FMLInitializationEvent event) { } @EventHandler public void postIntit(FMLPostInitializationEvent event) { } }
:::
:::
package fr.amelya.mod.common; public class References { public static final String MOD_ID = "amelya"; public static final String MOD_NAME = "Mod Amelya"; public static final String VERSION = "1.0"; }
:::
:::
–-- Minecraft Crash Report ----
// I blame Dinnerbone.Time: 02/01/16 22:17
Description: There was a severe problem during mod loading that has caused the game to failnet.minecraftforge.fml.common.LoaderException: java.lang.IllegalAccessException: Class net.minecraftforge.fml.common.ILanguageAdapter$JavaAdapter can not access a member of class fr.amelya.mod.common.MainClass with modifiers “”
at net.minecraftforge.fml.common.LoadController.transition(LoadController.java:163)
at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:538)
at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:214)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:446)
at net.minecraft.client.Minecraft.run(Minecraft.java:356)
at net.minecraft.client.main.Main.main(Main.java:117)
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 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.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
at GradleStart.main(Unknown Source)
Caused by: java.lang.IllegalAccessException: Class net.minecraftforge.fml.common.ILanguageAdapter$JavaAdapter can not access a member of class fr.amelya.mod.common.MainClass with modifiers “”
at sun.reflect.Reflection.ensureMemberAccess(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at net.minecraftforge.fml.common.ILanguageAdapter$JavaAdapter.getNewInstance(ILanguageAdapter.java:174)
at net.minecraftforge.fml.common.FMLModContainer.constructMod(FMLModContainer.java:527)
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 net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:212)
at net.minecraftforge.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 net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:119)
at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:507)
… 16 moreA detailed walkthrough of the error, its code path and all known details is as follows:
– System Details –
Details:
Minecraft Version: 1.8
Operating System: Windows 10 (amd64) version 10.0
Java Version: 1.8.0_66, Oracle Corporation
Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 832347744 bytes (793 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v9.10 FML v8.0.99.99 Minecraft Forge 11.14.4.1577 4 mods loaded, 4 mods active
States: ‘U’ = Unloaded ‘L’ = Loaded ‘C’ = Constructed ‘H’ = Pre-initialized ‘I’ = Initialized ‘J’ = Post-initialized ‘A’ = Available ‘D’ = Disabled ‘E’ = Errored
UC mcp{9.05} [Minecraft Coder Pack] (minecraft.jar)
UC FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.8-11.14.4.1577.jar)
UC Forge{11.14.4.1577} [Minecraft Forge] (forgeSrc-1.8-11.14.4.1577.jar)
UE amelya{1.0} [Mod Amelya] (bin)
Loaded coremods (and transformers):
GL info: ’ Vendor: ‘ATI Technologies Inc.’ Version: ‘4.5.13397 Compatibility Profile Context 15.200.1055.0’ Renderer: ‘AMD Radeon HD 8210’
:::Merci de m’aider car la je seche j’ai deja eu du mal a trouver qu’il fallait créer une classe reference
-
class MainClass
->
public class MainClass … -
merci beaucoup ya pas une page pour savoir les changements genre un wiki ou il dise de créer la class reference par exemple encore merci et pour bientot j’esspère les tutos videos 1.8
-
Il y a les tutoriels sur notre forum.
Les tutoriels 1.8.9 ne devraient plus trop tarder normalement. -
ok merci