MFF

    Minecraft Forge France
    • Récent
    • Mots-clés
    • Populaire
    • Utilisateurs
    • Groupes
    • Forge Events
      • Automatique
      • Foncé
      • Clair
    • S'inscrire
    • Se connecter

    Changer l'icône du jeu / Ressourcelocation, chemin véritable ?

    Planifier Épinglé Verrouillé Déplacé Résolu 1.7.x
    1.7.10
    23 Messages 7 Publieurs 4.9k Vues 1 Watching
    Charger plus de messages
    • Du plus ancien au plus récent
    • Du plus récent au plus ancien
    • Les plus votés
    Répondre
    • Répondre à l'aide d'un nouveau sujet
    Se connecter pour répondre
    Ce sujet a été supprimé. Seuls les utilisateurs avec les droits d'administration peuvent le voir.
    • DiabolicaTrixD Hors-ligne
      DiabolicaTrix Correcteurs Moddeurs confirmés
      dernière édition par

      Mon erreur.

      1 réponse Dernière réponse Répondre Citer 0
      • Benjamin LoisonB Hors-ligne
        Benjamin Loison
        dernière édition par

        Voici mon src :

        http://altiscraft.fr/BEN/src.zip

        Je comprends pas, aucune erreur sur Eclipse et ça veut pas gradlew build

        D:\Dossier Benjamin\Installations nouveau PC\Code\Minefus>gradlew build


        Powered By MCP:
        http://modcoderpack.com/
        Searge, ProfMobius, Fesh0r,
        R4wk, ZeuX, IngisKahn, bspkrs
        MCP Data version : unknown


        :compileApiJava UP-TO-DATE
        :processApiResources UP-TO-DATE
        :apiClasses UP-TO-DATE
        :sourceMainJava UP-TO-DATE
        :compileJava
        warning: [options] bootstrap class path not set in conjunction with -source 1.6
        D:\Dossier Benjamin\Installations nouveau PC\Code\Minefus\build\sources\java\fr\minefus\benjaminloison\common\Minefus.java:20: error: package de.matthiasmann.twl.utils does not exist
        import de.matthiasmann.twl.utils.PNGDecoder;
        ^
        D:\Dossier Benjamin\Installations nouveau PC\Code\Minefus\build\sources\java\fr\minefus\benjaminloison\common\Minefus.java:65: error: cannot find symbol
        PNGDecoder decoder = new PNGDecoder(inputStream);
        ^
        symbol: class PNGDecoder
        location: class Minefus
        D:\Dossier Benjamin\Installations nouveau PC\Code\Minefus\build\sources\java\fr\minefus\benjaminloison\common\Minefus.java:65: error: cannot find symbol
        PNGDecoder decoder = new PNGDecoder(inputStream);
        ^
        symbol: class PNGDecoder
        location: class Minefus
        D:\Dossier Benjamin\Installations nouveau PC\Code\Minefus\build\sources\java\fr\minefus\benjaminloison\common\Minefus.java:67: error: package PNGDecoder does not exist
        decoder.decode(bytebuf, decoder.getWidth() * 4, PNGDecoder.Format.RGBA);
        ^
        Note: D:\Dossier Benjamin\Installations nouveau PC\Code\Minefus\build\sources\java\fr\minefus\benjaminloison\gui\GuiCustomMainMenu.java uses unchecked or unsafe operations.
        Note: Recompile with -Xlint:unchecked for details.
        4 errors
        1 warning
        :compileJava FAILED

        FAILURE: Build failed with an exception.

        • What went wrong:
          Execution failed for task ‘:compileJava’.

        Compilation failed; see the compiler error output for details.

        • Try:
          Run with –stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

        BUILD FAILED

        Total time: 8.773 secs

        D:\Dossier Benjamin\Installations nouveau PC\Code\Minefus>

        J’ai ajouté une libs et je pense que le problème vient de là mais comment le régler :X ?

        Merci

        >! Développeur de Altis-Life (Arma III) sur Minecraft !
        >! Site web     : https://lemnoslife.com

        1 réponse Dernière réponse Répondre Citer 0
        • DeletedD Hors-ligne
          Deleted
          dernière édition par

          Oui le problème vient de ta lib. Comment l’as-tu ajouté ? Via le build path de eclipse ? Essaie de déplacer le .jar dans un dossier libs crée à la racine de ta workspace. Sinon si tu as les sources (les .java), rajoute les directement dans ton mod.

          1 réponse Dernière réponse Répondre Citer 0
          • Benjamin LoisonB Hors-ligne
            Benjamin Loison
            dernière édition par

            C’est bon merci 😉

            Juste quand je fais un String d’une ressource image png comme ceci

            String[] ICON_PATHS = { "assets//minefus//textures//gui//16.png", "assets//minefus//textures//gui//32.png",
            "assets//minefus//textures//gui//128.png" };
            

            C’est censé marcher non ??

            >! Développeur de Altis-Life (Arma III) sur Minecraft !
            >! Site web     : https://lemnoslife.com

            1 réponse Dernière réponse Répondre Citer 0
            • robin4002R Hors-ligne
              robin4002 Moddeurs confirmés Rédacteurs Administrateurs
              dernière édition par

              un seul / pas deux.

              1 réponse Dernière réponse Répondre Citer 0
              • Benjamin LoisonB Hors-ligne
                Benjamin Loison
                dernière édition par

                Toujours un crash :

                [18:11:58] [Client thread/ERROR] [FML]: Fatal errors were detected during the transition from PREINITIALIZATION to INITIALIZATION. Loading cannot continue
                [18:11:58] [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.1492-1.7.10.jar)
                UCH Forge{10.13.4.1492} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1492-1.7.10.jar)
                UCH CodeChickenCore{1.0.4.29} [CodeChicken Core] (minecraft.jar)
                UCE minefus.MODID{1.0.0} [Minefus] (bin)
                UCH CarpentersBlocks{3.3.5} [Carpenter’s Blocks] (Carpenters.jar)
                UCH customnpcs{1.7.10c} [CustomNpcs] (CustomNPCs_1.7.10b.jar)
                UCH tutoMod{1.0} [Mod de Tuto] (Docraft-1.0.jar)
                UCH custommenu{1.1.0} [Custom Menu] (Docraft-1.0.jar)
                UCH gvc{0.6.1} [�aGliby’s�f Voice Chat Mod] (GlibysVC-1.7.10-0.6.2a.jar)
                [18:11:58] [Client thread/ERROR] [FML]: The following problems were captured during this phase
                [18:11:58] [Client thread/ERROR] [FML]: Caught exception from minefus.MODID
                java.lang.NullPointerException
                at org.lwjgl.opengl.Display.setIcon(Display.java:1222) ~[lwjgl-2.9.1.jar:?]
                at fr.minefus.benjaminloison.common.Minefus.preInit(Minefus.java:56) ~[bin/:?]
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_66]
                at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_66]
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_66]
                at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_66]
                at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:532) ~[forgeSrc-1.7.10-10.13.4.1492-1.7.10.jar:?]
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_66]
                at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_66]
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_66]
                at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_66]
                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.1492-1.7.10.jar:?]
                at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190) ~[forgeSrc-1.7.10-10.13.4.1492-1.7.10.jar:?]
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_66]
                at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_66]
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_66]
                at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_66]
                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_66]
                at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_66]
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_66]
                at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_66]
                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/:?]
                [18:11:58] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:388]: –-- Minecraft Crash Report ----
                // You’re mean.

                Time: 07/03/16 18:11
                Description: Initializing game

                java.lang.NullPointerException: Initializing game
                at org.lwjgl.opengl.Display.setIcon(Display.java:1222)
                at fr.minefus.benjaminloison.common.Minefus.preInit(Minefus.java:56)
                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)

                A detailed walkthrough of the error, its code path and all known details is as follows:

                – Head –
                Stacktrace:
                at org.lwjgl.opengl.Display.setIcon(Display.java:1222)
                at fr.minefus.benjaminloison.common.Minefus.preInit(Minefus.java:56)
                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)

                – Initialization –
                Details:
                Stacktrace:
                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)

                – System Details –
                Details:
                Minecraft Version: 1.7.10
                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: 704741928 bytes (672 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB)
                JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
                AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
                IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
                FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1492 10 mods loaded, 10 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.1492-1.7.10.jar)
                UCH Forge{10.13.4.1492} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1492-1.7.10.jar)
                UCH CodeChickenCore{1.0.4.29} [CodeChicken Core] (minecraft.jar)
                UCE minefus.MODID{1.0.0} [Minefus] (bin)
                UCH CarpentersBlocks{3.3.5} [Carpenter’s Blocks] (Carpenters.jar)
                UCH customnpcs{1.7.10c} [CustomNpcs] (CustomNPCs_1.7.10b.jar)
                UCH tutoMod{1.0} [Mod de Tuto] (Docraft-1.0.jar)
                UCH custommenu{1.1.0} [Custom Menu] (Docraft-1.0.jar)
                UCH gvc{0.6.1} [�aGliby’s�f Voice Chat Mod] (GlibysVC-1.7.10-0.6.2a.jar)
                GL info: ’ Vendor: ‘Intel’ Version: ‘4.3.0 - Build 10.18.15.4256’ Renderer: ‘Intel® HD Graphics 4600’
                Launched Version: 1.7.10
                LWJGL: 2.9.1
                OpenGL: Intel® HD Graphics 4600 GL version 4.3.0 - Build 10.18.15.4256, Intel
                GL Caps: Using GL 1.3 multitexturing.
                Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
                Anisotropic filtering is supported and maximum anisotropy is 16.
                Shaders are available because OpenGL 2.1 is supported.

                Is Modded: Definitely; Client brand changed to ‘fml,forge’
                Type: Client (map_client.txt)
                Resource Packs: []
                Current Language: Français (France)
                Profiler Position: N/A (disabled)
                Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
                Anisotropic Filtering: Off (1)
                [18:11:58] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:398]: #@!@# Game crashed! Crash report saved to: #@!@# D:\Dossier Benjamin\Installations nouveau PC\Code\Minefus\eclipse.\crash-reports\crash-2016-03-07_18.11.58-client.txt
                Java HotSpot™ 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release

                Ma classe :

                package fr.minefus.benjaminloison.common;
                
                import java.io.File;
                import java.io.FileInputStream;
                import java.io.IOException;
                import java.io.InputStream;
                import java.nio.ByteBuffer;
                
                import org.lwjgl.opengl.Display;
                
                import com.google.common.base.Throwables;
                
                import cpw.mods.fml.common.FMLCommonHandler;
                import cpw.mods.fml.common.Mod;
                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.relauncher.Side;
                import de.matthiasmann.twl.utils.PNGDecoder;
                import fr.minefus.benjaminloison.events.ForgeT4EventHandler;
                import fr.minefus.benjaminloison.proxy.CommonProxy;
                import fr.minefus.benjaminloison.proxy.RenderTickHandler;
                import net.minecraft.client.Minecraft;
                import net.minecraftforge.common.MinecraftForge;
                
                @Mod(modid = "minefus.MODID", name = "Minefus", version = "1.0.0")
                public class Minefus {
                public static final String MODID = "minefus";
                @Mod.Instance("minefus.MODID")
                public static Minefus instance;
                @SidedProxy(clientSide = "fr.minefus.benjaminloison.proxy.ClientProxy", serverSide = "fr.minefus.benjaminloison.proxy.CommonProxy")
                public static CommonProxy proxy;
                
                String[] ICON_PATHS = { "assets/minefus/textures/gui/16.png", "assets/minefus/textures/gui/32.png",
                "assets/minefus/textures/gui/128.png" };
                
                @Mod.EventHandler
                public void preInit(FMLPreInitializationEvent event) throws IOException {
                if ((event.getSide().isClient()) && (!Minecraft.getMinecraft().mcDataDir.getAbsolutePath().contains("Minefus"))
                && (!Minecraft.getMinecraft().mcDataDir.equals(new File(".")))) {
                Throwables.propagate(new Exception("Launcher non autorisé"));
                }
                if (event.getSide() == Side.CLIENT) {
                Display.setTitle("Minefus");
                ByteBuffer[] icon_array = new ByteBuffer[ICON_PATHS.length];
                try {
                for (int i = 0; i < ICON_PATHS.length; i++) {
                icon_array* = ByteBuffer.allocateDirect(1);
                String path = ICON_PATHS*;
                icon_array* = loadIcon(path);
                }
                } catch (IOException e) {
                e.printStackTrace();
                }
                Display.setIcon(icon_array);
                }
                
                }
                
                private static ByteBuffer loadIcon(String path) throws IOException {
                InputStream inputStream = new FileInputStream(path);
                try {
                PNGDecoder decoder = new PNGDecoder(inputStream);
                ByteBuffer bytebuf = ByteBuffer.allocateDirect(decoder.getWidth() * decoder.getHeight() * 4);
                decoder.decode(bytebuf, decoder.getWidth() * 4, PNGDecoder.Format.RGBA);
                bytebuf.flip();
                return bytebuf;
                } finally {
                inputStream.close();
                }
                }
                
                @Mod.EventHandler
                public void init(FMLInitializationEvent event) {
                MinecraftForge.EVENT_BUS.register(new ForgeT4EventHandler());
                if (event.getSide().isClient()) {
                FMLCommonHandler.instance().bus().register(new RenderTickHandler(Minecraft.getMinecraft()));
                }
                }
                
                @Mod.EventHandler
                public void postInit(FMLPostInitializationEvent event) {
                }
                }
                

                Et il y a bien les images au bonne endroit*

                >! Développeur de Altis-Life (Arma III) sur Minecraft !
                >! Site web     : https://lemnoslife.com

                1 réponse Dernière réponse Répondre Citer 0
                • robin4002R Hors-ligne
                  robin4002 Moddeurs confirmés Rédacteurs Administrateurs
                  dernière édition par

                  NPE dans la fonction setIcon, à mon avis il n’arrive pas à lire correctement le logo.

                  1 réponse Dernière réponse Répondre Citer 0
                  • Benjamin LoisonB Hors-ligne
                    Benjamin Loison
                    dernière édition par

                    Je me dis bien comme lorsque je met un chemin absolu avec C:… ça marche… mais j’aimerais ne pas à avoir d’autres fichiers (images) hors de mon mod pour les logos et que tout soit contenu dans le .jar

                    >! Développeur de Altis-Life (Arma III) sur Minecraft !
                    >! Site web     : https://lemnoslife.com

                    1 réponse Dernière réponse Répondre Citer 0
                    • robin4002R Hors-ligne
                      robin4002 Moddeurs confirmés Rédacteurs Administrateurs
                      dernière édition par

                      InputStream inputStream = new FileInputStream(path);
                      Utilise plutôt
                      InputStream inputStream = this.getClass().getResourceAsStream(path);

                      1 réponse Dernière réponse Répondre Citer 0
                      • Benjamin LoisonB Hors-ligne
                        Benjamin Loison
                        dernière édition par

                        Exactement la même erreur 😕

                        >! Développeur de Altis-Life (Arma III) sur Minecraft !
                        >! Site web     : https://lemnoslife.com

                        1 réponse Dernière réponse Répondre Citer 0
                        • robin4002R Hors-ligne
                          robin4002 Moddeurs confirmés Rédacteurs Administrateurs
                          dernière édition par

                          Ajoutes un / avant assets.

                          1 réponse Dernière réponse Répondre Citer 0
                          • 1
                          • 2
                          • 2 / 2
                          • Premier message
                            Dernier message
                          Design by Woryk
                          ContactMentions Légales

                          MINECRAFT FORGE FRANCE © 2024

                          Powered by NodeBB