problème Créer la base de son mod



  • j'ai fait tout à la lettre en essayant de comprendre et quand toi @robin4002 tu fait run client sa s'initialise et pas moi , rien : mon côté mod

    package killianblnd.swordatalia;
    
    import org.apache.logging.log4j.Logger;
    
    import net.minecraftforge.fml.common.Mod;
    import net.minecraftforge.fml.common.Mod.EventHandler;
    import net.minecraftforge.fml.common.Mod.Instance;
    import net.minecraftforge.fml.common.SidedProxy;
    import net.minecraftforge.fml.common.event.FMLInitializationEvent;
    import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
    
    @Mod(modid = ModSwordatalia.MODID, name = "Mod Swordatalia", version = "1.0", acceptedMinecraftVersions = "[1.12.2]")
    public class ModSwordatalia {
    	public static final String MODID = "swordatalia";
    	
    	@Instance(ModSwordatalia.MODID)
    	public static ModSwordatalia instance;
    	
    	@SidedProxy(clientSide = " killianblnd.swordatalia.SwordataliaClient", serverSide = " killianblnd.swordatalia.SwordataliaServer")
    	public static SwordataliaCommon proxy;
    	
    	public static Logger logger;
    	
    	@EventHandler
    	public void preInit(FMLPreInitializationEvent event)
    	{
    		logger = event.getModLog();
    		proxy.preInit(event.getSuggestedConfigurationFile());
    	}
    	
    	@EventHandler
    	public void init(FMLInitializationEvent event)
    	{
    		proxy.init();
    	}
    }
    
    package killianblnd.swordatalia;
    
    import java.io.File;
    
    public class SwordataliaCommon {
    	
    	public void preInit(File configFile)
    	{
    		System.out.println("pre init côté commun");
    	}
    	
    	public void init()
    	{
    		
    	}
    } 
    

    mon côté common

    package killianblnd.swordatalia;
    
    import java.io.File;
    
    public class SwordataliaClient extends SwordataliaCommon
    {
    	@Override
    	public void preInit(File configFile) 
    	{
    		super.preInit(configFile);
    		System.out.println("pre init côté client");
    	}
    
    	@Override
    	public void init() 
    	{
    		super.init();
    	}
    }
    

    mon côté client

    package killianblnd.swordatalia;
    
    import java.io.File;
    
    public class SwordataliaServer extends SwordataliaCommon 
    {
    	@Override
    	public void preInit(File configFile) 
    	{
    		super.preInit(configFile);
    		System.out.println("pre init côté serveur");
    	}
    
    	@Override
    	public void init() 
    	{
    		super.init();
    	}
    }
    

    mon côté serveur .
    j'ai regarder ! j'ai pareil que toi , mais enfaite non …

    à oui et l'ereur : 2018-07-21 22:01:51,468 main WARN Disabling terminal, you're running in an unsupported environment.
    [22:01:51] [main/INFO] [GradleStart]: username: killiandev
    [22:01:51] [main/INFO] [GradleStart]: Extra: []
    [22:01:51] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/killi/.gradle/caches/minecraft/assets, --assetIndex, 1.12, --accessToken{REDACTED}, --version, 1.12.2, --username, killiandev, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
    [22:01:51] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
    [22:01:51] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
    [22:01:51] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
    [22:01:51] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
    [22:01:51] [main/INFO] [FML]: Forge Mod Loader version 14.23.4.2705 for Minecraft 1.12.2 loading
    [22:01:51] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_181, running on Windows 10:amd64:10.0, installed at C:\Program Files\Java\jre1.8.0_181
    [22:01:51] [main/ERROR] [FML]: Apache Maven library folder was not in the format expected. Using default libraries directory.
    [22:01:51] [main/ERROR] [FML]: Full: C:\Users\killi\.gradle\caches\modules-2\files-2.1\org.apache.maven\maven-artifact\3.5.3\7dc72b6d6d8a6dced3d294ed54c2cc3515ade9f4\maven-artifact-3.5.3.jar
    [22:01:51] [main/ERROR] [FML]: Trimmed: c:/users/killi/.gradle/caches/modules-2/files-2.1/org.apache.maven/maven-artifact/3.5.3/
    [22:01:51] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
    [22:01:51] [main/INFO] [FML]: Ignoring missing certificate for coremod FMLCorePlugin (net.minecraftforge.fml.relauncher.FMLCorePlugin), we are in deobf and it's a forge core plugin
    [22:01:51] [main/INFO] [FML]: Ignoring missing certificate for coremod FMLForgePlugin (net.minecraftforge.classloading.FMLForgePlugin), we are in deobf and it's a forge core plugin
    [22:01:51] [main/INFO] [FML]: Searching C:\Users\killi\Desktop\Codage\forge 1.12.2\run\.\mods for mods
    [22:01:51] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
    [22:01:51] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin
    [22:01:51] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
    [22:01:51] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
    [22:01:51] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
    [22:01:51] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
    [22:01:51] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
    [22:01:51] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
    [22:01:51] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
    [22:01:53] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
    [22:01:53] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
    [22:01:53] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
    [22:01:54] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
    [22:01:54] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
    [22:01:54] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
    [22:01:54] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
    [22:01:55] [main/INFO] [net.minecraft.client.Minecraft]: Setting user: killiandev
    [22:01:59] [main/WARN] [net.minecraft.client.settings.GameSettings]: Skipping bad option: lastServer:
    [22:01:59] [main/INFO] [net.minecraft.client.Minecraft]: LWJGL Version: 2.9.4
    [22:02:01] [main/INFO] [FML]: -- System Details --
    Details:
    	Minecraft Version: 1.12.2
    	Operating System: Windows 10 (amd64) version 10.0
    	Java Version: 1.8.0_181, Oracle Corporation
    	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    	Memory: 737544392 bytes (703 MB) / 1038876672 bytes (990 MB) up to 3186360320 bytes (3038 MB)
    	JVM Flags: 3 total; -Xincgc -Xmx3G -Xms1024M
    	IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    	FML: 
    	Loaded coremods (and transformers): 
    	GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 382.23' Renderer: 'GeForce GTX 1050/PCIe/SSE2'
    [22:02:01] [main/INFO] [FML]: MinecraftForge v14.23.4.2705 Initialized
    [22:02:01] [main/INFO] [FML]: Starts to replace vanilla recipe ingredients with ore ingredients.
    [22:02:01] [main/INFO] [FML]: Replaced 1036 ore ingredients
    [22:02:02] [main/INFO] [FML]: Searching C:\Users\killi\Desktop\Codage\forge 1.12.2\run\.\mods for mods
    [22:02:02] [main/INFO] [FML]: Forge Mod Loader has identified 5 mods to load
    [22:02:03] [main/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, swordatalia] at CLIENT
    [22:02:03] [main/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, swordatalia] at SERVER
    [22:02:03] [Thread-3/INFO] [FML]: Using sync timing. 200 frames of Display.update took 187414583 nanos
    [22:02:03] [main/ERROR] [FML]: An error occurred trying to load a proxy into proxy.java.lang.ClassNotFoundException:  killianblnd.swordatalia.SwordataliaClient
    [22:02:04] [main/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:629]: ---- Minecraft Crash Report ----
    // Ooh. Shiny.
    
    Time: 7/21/18 10:02 PM
    Description: There was a severe problem during mod loading that has caused the game to fail
    
    net.minecraftforge.fml.common.LoaderException: java.lang.ClassNotFoundException:  killianblnd.swordatalia.SwordataliaClient
    	at net.minecraftforge.fml.common.ProxyInjector.inject(ProxyInjector.java:102)
    	at net.minecraftforge.fml.common.FMLModContainer.constructMod(FMLModContainer.java:603)
    	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.Subscriber.invokeSubscriberMethod(Subscriber.java:91)
    	at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150)
    	at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76)
    	at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399)
    	at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71)
    	at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116)
    	at com.google.common.eventbus.EventBus.post(EventBus.java:217)
    	at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:218)
    	at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:196)
    	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.Subscriber.invokeSubscriberMethod(Subscriber.java:91)
    	at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150)
    	at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76)
    	at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399)
    	at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71)
    	at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116)
    	at com.google.common.eventbus.EventBus.post(EventBus.java:217)
    	at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:135)
    	at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:593)
    	at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:225)
    	at net.minecraft.client.Minecraft.init(Minecraft.java:513)
    	at net.minecraft.client.Minecraft.run(Minecraft.java:421)
    	at net.minecraft.client.main.Main.main(Main.java:118)
    	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(GradleStartCommon.java:97)
    	at GradleStart.main(GradleStart.java:25)
    Caused by: java.lang.ClassNotFoundException:  killianblnd.swordatalia.SwordataliaClient
    	at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191)
    	at java.lang.ClassLoader.loadClass(Unknown Source)
    	at java.lang.ClassLoader.loadClass(Unknown Source)
    	at net.minecraftforge.fml.common.ModClassLoader.loadClass(ModClassLoader.java:75)
    	at java.lang.Class.forName0(Native Method)
    	at java.lang.Class.forName(Unknown Source)
    	at net.minecraftforge.fml.common.ProxyInjector.inject(ProxyInjector.java:85)
    	... 43 more
    Caused by: java.lang.NullPointerException
    	at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:182)
    	... 49 more
    
    
    A detailed walkthrough of the error, its code path and all known details is as follows:
    ---------------------------------------------------------------------------------------
    
    -- System Details --
    Details:
    	Minecraft Version: 1.12.2
    	Operating System: Windows 10 (amd64) version 10.0
    	Java Version: 1.8.0_181, Oracle Corporation
    	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    	Memory: 784924648 bytes (748 MB) / 1038876672 bytes (990 MB) up to 3186360320 bytes (3038 MB)
    	JVM Flags: 3 total; -Xincgc -Xmx3G -Xms1024M
    	IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    	FML: MCP 9.42 Powered by Forge 14.23.4.2705 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 |
    	|:----- |:----------- |:------------ |:-------------------------------- |:--------- |
    	| UC    | minecraft   | 1.12.2       | minecraft.jar                    | None      |
    	| UC    | mcp         | 9.42         | minecraft.jar                    | None      |
    	| UC    | FML         | 8.0.99.99    | forgeSrc-1.12.2-14.23.4.2705.jar | None      |
    	| UC    | forge       | 14.23.4.2705 | forgeSrc-1.12.2-14.23.4.2705.jar | None      |
    	| UE    | swordatalia | 1.0          | bin                              | None      |
    
    	Loaded coremods (and transformers): 
    	GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 382.23' Renderer: 'GeForce GTX 1050/PCIe/SSE2'
    [22:02:04] [main/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:629]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\killi\Desktop\Codage\forge 1.12.2\run\.\crash-reports\crash-2018-07-21_22.02.04-client.txt
    Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
    


  • net.minecraftforge.fml.common.LoaderException: java.lang.ClassNotFoundException: killianblnd.swordatalia.SwordataliaClient

    cc ta pas mit le bon nom de package pour tes proxy dans l'annotation @SidedProxy

    @SidedProxy(clientSide = " killianblnd.swordatalia.SwordataliaClient", serverSide = " killianblnd.swordatalia.SwordataliaServer")

    deja vire les espaces dans les strings ensuite ca devrait mieux fonctionner mdr



  • Merci de ton Aide @SpyMan effectivement dans mon @SideProxy c'était les espace qui gêné, donc dans tout en général je ne métré plus d'espace dans les strings ^^
    sauf si nécessaire bien sur .
    Mais aussi dsl de te déranger mais quand je load la console et je regarde les mods il y a Mod Swordatalia : c'est normal mais il y a aussi ${version} : je suis pourtant sur de l'avoir mi en 1.12.2 , ou peut etre que c'est normal ?



  • @SpyMan et @robin4002 je vous demande encore de l'aide pcq sur la vidéo tuto 5 il y a à 8:05 .setUnlocalizedName tu dit de faire ctrl+space mais moi ca me met : No Default Proposals , mais sa me met une erreur donc je dois faire ce qu'il me propose et c'est : public Item setUnlocalizedName(String string) {
    // TODO Auto-generated method stub
    return null;
    }
    et ca me le crée dans une autre class et pas dans celle de mon item 😕
    et- la j'ai le même problème avec .registerItem à 8:55



  • Envoi la class de l'item en question je suis presque sur que ta class d'item n'est pas extends a net.minecraft.items.Item


  • Moddeurs confirmés Rédacteurs Administrateurs

    ${version} sera remplacé automatiquement lorsque tu fera un build du mod. C'est normal de le voir ainsi sur eclipse.



  • @robin4002 d'accord merci !
    @SpyMan :

    
    import net.minecraft.item.Item;
    
    public class ItemSwordatalia extends Item
    {
    
    } 
    

    et mon item :

    package killianblnd.swordatalia.items;
    
    import net.minecraft.item.Item;
    import net.minecraftforge.fml.common.registry.GameRegistry;
    
    public class SwordataliaItems 
    {
    	public static final Item SWORDATALIA = new ItemSwordatalia().setUnlocalizedName("swordatalia");
    	
    	public static void registerItems()
    	{
    		GameRegistry.registerItem(SWORDATALIA, "Swordatalia item");
    	}
    
    }

  • Moddeurs confirmés Rédacteurs Modérateurs Administrateurs

    Il y a plusieurs choses à changer :

    • la méthode setRegistryName("nom_de_ton_item"), elle permet d'assigner un id à ton item.
    • la méthode GameRegistry.registerItem est obsolète et n'est plus à utiliser, il faut utiliser un event maintenant RegistryEvent.Register<Item>.
    • les noms de registres doivent absolument être en minuscule et sans espace.


  • D'accord merci ! je vais essayer tes méthodes demain et je t'informe si ca marche ^^



  • This post is deleted!


  • merci : pour la première méthode ca fonctionne mais pour la 2ème je ne crois pas ca me demande de sois crée une class sois une interface, y devrai refaire un tuto avec les nouvelles commandes parce que j'essaye mais ca bug encore avec le player.addChatMessage()
    j'ai encore le No Default Proposals
    de même pour la suite de la commande il y a ChatComponentText"" mais rien : /
    merci de votre aide


  • Moddeurs confirmés Rédacteurs Modérateurs Administrateurs

    Envois le code que tu as actuellement.



  • @Superloup10

    package killianblnd.swordatalia.items;
    
    import net.minecraft.creativetab.CreativeTabs;
    import net.minecraft.item.Item;
    import net.minecraftforge.event.RegistryEvent;
    import net.minecraftforge.fml.common.registry.GameRegistry;
    
    public class SwordataliaItems 
    {
    	public static final Item SWORDATALIA = new ItemSwordatalia().setRegistryName("swordatalia").setCreativeTab(CreativeTabs.COMBAT);
    	
    	public static void registerItems()
    	{
    		RegistryEvent.Register<swordatalia>;
    	}
    
    }
    

    et :

    package killianblnd.swordatalia.items;
    
    import ibxm.Player;
    import net.minecraft.entity.player.EntityPlayer;
    import net.minecraft.item.Item;
    import net.minecraft.item.ItemStack;
    import net.minecraft.world.World;
    import net.minecraft.entity.player.EntityPlayer;
    
    
    public class ItemSwordatalia extends Item
    {
    	public ItemStack onItemRightClick(ItemStack stack, World worldIn, EntityPlayer playerIn)
    	    {
    		Player.addChatMessage(new ChatComponentText("salut"));
    	        return stack;
    	        
    	    }
    
    }
    

    l'erreur :

    2018-07-23 18:31:01,244 main WARN Disabling terminal, you're running in an unsupported environment.
    [18:31:01] [main/INFO] [GradleStart]: username: killiandev
    [18:31:01] [main/INFO] [GradleStart]: Extra: []
    [18:31:01] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/killi/.gradle/caches/minecraft/assets, --assetIndex, 1.12, --accessToken{REDACTED}, --version, 1.12.2, --username, killiandev, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
    [18:31:01] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
    [18:31:01] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
    [18:31:01] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
    [18:31:01] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
    [18:31:01] [main/INFO] [FML]: Forge Mod Loader version 14.23.4.2705 for Minecraft 1.12.2 loading
    [18:31:01] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_181, running on Windows 10:amd64:10.0, installed at C:\Program Files\Java\jre1.8.0_181
    [18:31:01] [main/ERROR] [FML]: Apache Maven library folder was not in the format expected. Using default libraries directory.
    [18:31:01] [main/ERROR] [FML]: Full: C:\Users\killi\.gradle\caches\modules-2\files-2.1\org.apache.maven\maven-artifact\3.5.3\7dc72b6d6d8a6dced3d294ed54c2cc3515ade9f4\maven-artifact-3.5.3.jar
    [18:31:01] [main/ERROR] [FML]: Trimmed: c:/users/killi/.gradle/caches/modules-2/files-2.1/org.apache.maven/maven-artifact/3.5.3/
    [18:31:02] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
    [18:31:02] [main/INFO] [FML]: Ignoring missing certificate for coremod FMLCorePlugin (net.minecraftforge.fml.relauncher.FMLCorePlugin), we are in deobf and it's a forge core plugin
    [18:31:02] [main/INFO] [FML]: Ignoring missing certificate for coremod FMLForgePlugin (net.minecraftforge.classloading.FMLForgePlugin), we are in deobf and it's a forge core plugin
    [18:31:02] [main/INFO] [FML]: Searching C:\Users\killi\Desktop\Codage\forge 1.12.2\run\.\mods for mods
    [18:31:02] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
    [18:31:02] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin
    [18:31:02] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
    [18:31:02] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
    [18:31:02] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
    [18:31:02] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
    [18:31:02] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
    [18:31:02] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
    [18:31:02] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
    [18:31:04] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
    [18:31:04] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
    [18:31:04] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
    [18:31:05] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
    [18:31:05] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
    [18:31:05] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
    [18:31:05] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
    [18:31:06] [main/INFO] [net.minecraft.client.Minecraft]: Setting user: killiandev
    [18:31:10] [main/WARN] [net.minecraft.client.settings.GameSettings]: Skipping bad option: lastServer:
    [18:31:10] [main/INFO] [net.minecraft.client.Minecraft]: LWJGL Version: 2.9.4
    [18:31:12] [main/INFO] [FML]: -- System Details --
    Details:
    	Minecraft Version: 1.12.2
    	Operating System: Windows 10 (amd64) version 10.0
    	Java Version: 1.8.0_181, Oracle Corporation
    	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    	Memory: 761662352 bytes (726 MB) / 1038876672 bytes (990 MB) up to 3186360320 bytes (3038 MB)
    	JVM Flags: 3 total; -Xincgc -Xmx3G -Xms1024M
    	IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    	FML: 
    	Loaded coremods (and transformers): 
    	GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 382.23' Renderer: 'GeForce GTX 1050/PCIe/SSE2'
    [18:31:12] [main/INFO] [FML]: MinecraftForge v14.23.4.2705 Initialized
    [18:31:12] [main/INFO] [FML]: Starts to replace vanilla recipe ingredients with ore ingredients.
    [18:31:12] [main/INFO] [FML]: Replaced 1036 ore ingredients
    [18:31:13] [main/INFO] [FML]: Searching C:\Users\killi\Desktop\Codage\forge 1.12.2\run\.\mods for mods
    [18:31:14] [main/INFO] [FML]: Forge Mod Loader has identified 5 mods to load
    [18:31:14] [main/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, swordatalia] at CLIENT
    [18:31:14] [main/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, swordatalia] at SERVER
    [18:31:15] [Thread-3/INFO] [FML]: Using sync timing. 200 frames of Display.update took 179259805 nanos
    [18:31:15] [main/INFO] [net.minecraft.client.resources.SimpleReloadableResourceManager]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Mod Swordatalia
    [18:31:15] [main/INFO] [FML]: Processing ObjectHolder annotations
    [18:31:15] [main/INFO] [FML]: Found 1168 ObjectHolder annotations
    [18:31:15] [main/INFO] [FML]: Identifying ItemStackHolder annotations
    [18:31:15] [main/INFO] [FML]: Found 0 ItemStackHolder annotations
    [18:31:15] [main/INFO] [FML]: Configured a dormant chunk cache size of 0
    [18:31:15] [Forge Version Check/INFO] [forge.VersionCheck]: [forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
    [18:31:15] [main/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:629]: ---- Minecraft Crash Report ----
    // Shall we play a game?
    
    Time: 7/23/18 6:31 PM
    Description: There was a severe problem during mod loading that has caused the game to fail
    
    net.minecraftforge.fml.common.LoaderExceptionModCrash: Caught exception from Mod Swordatalia (swordatalia)
    Caused by: java.lang.Error: Unresolved compilation problems: 
    	swordatalia cannot be resolved to a type
    	Syntax error, insert "VariableDeclarators" to complete LocalVariableDeclaration
    
    	at killianblnd.swordatalia.items.SwordataliaItems.registerItems(SwordataliaItems.java:13)
    	at killianblnd.swordatalia.SwordataliaCommon.preInit(SwordataliaCommon.java:11)
    	at killianblnd.swordatalia.client.SwordataliaClient.preInit(SwordataliaClient.java:12)
    	at killianblnd.swordatalia.ModSwordatalia.preInit(ModSwordatalia.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.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:629)
    	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.Subscriber.invokeSubscriberMethod(Subscriber.java:91)
    	at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150)
    	at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76)
    	at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399)
    	at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71)
    	at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116)
    	at com.google.common.eventbus.EventBus.post(EventBus.java:217)
    	at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:218)
    	at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:196)
    	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.Subscriber.invokeSubscriberMethod(Subscriber.java:91)
    	at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150)
    	at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76)
    	at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399)
    	at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71)
    	at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116)
    	at com.google.common.eventbus.EventBus.post(EventBus.java:217)
    	at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:135)
    	at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:627)
    	at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:245)
    	at net.minecraft.client.Minecraft.init(Minecraft.java:513)
    	at net.minecraft.client.Minecraft.run(Minecraft.java:421)
    	at net.minecraft.client.main.Main.main(Main.java:118)
    	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(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:
    ---------------------------------------------------------------------------------------
    
    -- System Details --
    Details:
    	Minecraft Version: 1.12.2
    	Operating System: Windows 10 (amd64) version 10.0
    	Java Version: 1.8.0_181, Oracle Corporation
    	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    	Memory: 756913512 bytes (721 MB) / 1038876672 bytes (990 MB) up to 3186360320 bytes (3038 MB)
    	JVM Flags: 3 total; -Xincgc -Xmx3G -Xms1024M
    	IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    	FML: MCP 9.42 Powered by Forge 14.23.4.2705 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 |
    	|:----- |:----------- |:------------ |:-------------------------------- |:--------- |
    	| UCH   | minecraft   | 1.12.2       | minecraft.jar                    | None      |
    	| UCH   | mcp         | 9.42         | minecraft.jar                    | None      |
    	| UCH   | FML         | 8.0.99.99    | forgeSrc-1.12.2-14.23.4.2705.jar | None      |
    	| UCH   | forge       | 14.23.4.2705 | forgeSrc-1.12.2-14.23.4.2705.jar | None      |
    	| UCEE  | swordatalia | 1.0          | bin                              | None      |
    
    	Loaded coremods (and transformers): 
    	GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 382.23' Renderer: 'GeForce GTX 1050/PCIe/SSE2'
    [18:31:15] [main/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:629]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\killi\Desktop\Codage\forge 1.12.2\run\.\crash-reports\crash-2018-07-23_18.31.15-client.txt
    Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release


  • j'ai 2 erreurs une à ChatComponentText et une autre à RegistryEvent.Register<>

    et j'ai pas encore les jsons pour les textures


  • Moddeurs confirmés Rédacteurs Modérateurs Administrateurs

    Tu n'as rien compris.

    Depuis quand un event est appelé de cette façon : RegistryEvent.Register<swordatalia>; ?
    Je t'ai donné le nom de l'event, maintenant il faut que tu le traites comme tous les events.

    Ensuite, Player.addChatMessage(new ChatComponentText("salut"));, tu devrais repéré très facilement le problème dans cette ligne.



  • je te rappelle que j'ai commencer le java il y a 4jour et que je ne sais absolument pas comment traiter un events et pour la 2ème erreurs je dirai Player.addChatMessage(new ChatMessage("salut")); mais je pense pas, j'aimerai bien qu'on m'explique un peut pourquoi je fait des erreurs pour que j'apprenne mais si on me donne des indices ca va être compliquer . . .


  • Moddeurs confirmés Rédacteurs Administrateurs

    Salut,
    @killianblnd a dit dans problème Créer la base de son mod :

    je te rappelle que j'ai commencer le java il y a 4jour et que je ne sais absolument pas comment traiter un events

    Dans ce cas il faut se documenter : https://www.minecraftforgefrance.fr/topic/3948/les-événements
    Tout s'apprend 😉



  • player.sendMessage(new TextComponentString("message") en 1.12 ^^


Log in to reply