• S'inscrire
    • Se connecter
    • Recherche
    • Récent
    • Mots-clés
    • Populaire
    • Utilisateurs
    • Groupes

    Résolu Modifier boutons

    Anciennes versions
    1.6.4
    6
    24
    8257
    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.
    • R
      roideseaux dernière édition par

      Bonjour à tous,

      j’ai un souci pour charger mes .class dans mon minecraft.jar,

      en effet, mon programme fonctionne parfaitement dans eclipse, mais quand je met mes .class dans le minecraft.jar moddé avec forge, le jeu refuse de se lancer…

      je précise que j’ai bien fait un recompile.bat et un reobfuscate.bat pour généré les .class

      je suis en 1.6.4

      voici les logs :

      
      [15:54:42 INFO]: Minecraft Launcher 1.3.1 (through bootstrap 4) started on windows…
      [15:54:42 INFO]: Current time is Nov 11, 2013 3:54:42 PM
      [15:54:42 INFO]: System.getProperty('os.name') == 'Windows 7'
      [15:54:42 INFO]: System.getProperty('os.version') == '6.1'
      [15:54:42 INFO]: System.getProperty('os.arch') == 'amd64'
      [15:54:42 INFO]: System.getProperty('java.version') == '1.7.0_25'
      [15:54:42 INFO]: System.getProperty('java.vendor') == 'Oracle Corporation'
      [15:54:42 INFO]: System.getProperty('sun.arch.data.model') == '64'
      [15:54:42 INFO]: Refreshing local version list…
      [15:54:42 INFO]: Refreshing remote version list…
      [15:54:43 INFO]: Refresh complete.
      [15:54:43 INFO]: Loaded 7 profile(s); selected 'Littledodger'
      [15:54:43 INFO]: Refreshing auth…
      [15:54:43 INFO]: Logging in with access token
      [15:54:45 INFO]: Download job 'Resources' skipped as there are no files to download
      [15:54:45 INFO]: Job 'Resources' finished successfully
      [15:54:46 INFO]: Getting syncinfo for selected version
      [15:54:46 INFO]: Queueing library & version downloads
      [15:54:46 INFO]: Download job 'Version & Libraries' started (8 threads, 22 files)
      [15:54:46 INFO]: Finished downloading C:\Users\Kévin\AppData\Roaming\.minecraft\libraries\com\paulscode\librarylwjglopenal\20100824\librarylwjglopenal-20100824.jar for job 'Version & Libraries': Used own copy as it matched etag
      [15:54:46 INFO]: Finished downloading C:\Users\Kévin\AppData\Roaming\.minecraft\libraries\net\java\jinput\jinput-platform\2.0.5\jinput-platform-2.0.5-natives-windows.jar for job 'Version & Libraries': Used own copy as it matched etag
      [15:54:47 INFO]: Finished downloading C:\Users\Kévin\AppData\Roaming\.minecraft\libraries\org\lwjgl\lwjgl\lwjgl-platform\2.9.0\lwjgl-platform-2.9.0-natives-windows.jar for job 'Version & Libraries': Used own copy as it matched etag
      [15:54:47 INFO]: Finished downloading C:\Users\Kévin\AppData\Roaming\.minecraft\libraries\org\apache\commons\commons-lang3\3.1\commons-lang3-3.1.jar for job 'Version & Libraries': Used own copy as it matched etag
      [15:54:47 INFO]: Finished downloading C:\Users\Kévin\AppData\Roaming\.minecraft\libraries\com\google\code\gson\gson\2.2.2\gson-2.2.2.jar for job 'Version & Libraries': Used own copy as it matched etag
      [15:54:47 INFO]: Finished downloading C:\Users\Kévin\AppData\Roaming\.minecraft\libraries\net\sf\jopt-simple\jopt-simple\4.5\jopt-simple-4.5.jar for job 'Version & Libraries': Used own copy as it matched etag
      [15:54:47 INFO]: Finished downloading C:\Users\Kévin\AppData\Roaming\.minecraft\libraries\argo\argo\2.25_fixed\argo-2.25_fixed.jar for job 'Version & Libraries': Used own copy as it matched etag
      [15:54:47 INFO]: Finished downloading C:\Users\Kévin\AppData\Roaming\.minecraft\libraries\org\lwjgl\lwjgl\lwjgl\2.9.0\lwjgl-2.9.0.jar for job 'Version & Libraries': Used own copy as it matched etag
      [15:54:47 INFO]: Finished downloading C:\Users\Kévin\AppData\Roaming\.minecraft\libraries\net\java\jutils\jutils\1.0.0\jutils-1.0.0.jar for job 'Version & Libraries': Used own copy as it matched etag
      [15:54:47 INFO]: Finished downloading C:\Users\Kévin\AppData\Roaming\.minecraft\libraries\com\google\guava\guava\14.0\guava-14.0.jar for job 'Version & Libraries': Used own copy as it matched etag
      [15:54:47 INFO]: Finished downloading C:\Users\Kévin\AppData\Roaming\.minecraft\libraries\commons-io\commons-io\2.4\commons-io-2.4.jar for job 'Version & Libraries': Used own copy as it matched etag
      [15:54:47 INFO]: Finished downloading C:\Users\Kévin\AppData\Roaming\.minecraft\libraries\com\paulscode\libraryjavasound\20101123\libraryjavasound-20101123.jar for job 'Version & Libraries': Used own copy as it matched etag
      [15:54:47 INFO]: Finished downloading C:\Users\Kévin\AppData\Roaming\.minecraft\libraries\net\minecraft\launchwrapper\1.8\launchwrapper-1.8.jar for job 'Version & Libraries': Used own copy as it matched etag
      [15:54:47 INFO]: Finished downloading C:\Users\Kévin\AppData\Roaming\.minecraft\libraries\org\ow2\asm\asm-all\4.1\asm-all-4.1.jar for job 'Version & Libraries': Used own copy as it matched etag
      [15:54:47 INFO]: Finished downloading C:\Users\Kévin\AppData\Roaming\.minecraft\libraries\com\paulscode\soundsystem\20120107\soundsystem-20120107.jar for job 'Version & Libraries': Used own copy as it matched etag
      [15:54:47 INFO]: Finished downloading C:\Users\Kévin\AppData\Roaming\.minecraft\libraries\lzma\lzma\0.0.1\lzma-0.0.1.jar for job 'Version & Libraries': Used own copy as it matched etag
      [15:54:47 INFO]: Finished downloading C:\Users\Kévin\AppData\Roaming\.minecraft\libraries\com\paulscode\codecwav\20101023\codecwav-20101023.jar for job 'Version & Libraries': Used own copy as it matched etag
      [15:54:47 INFO]: Finished downloading C:\Users\Kévin\AppData\Roaming\.minecraft\libraries\org\lwjgl\lwjgl\lwjgl_util\2.9.0\lwjgl_util-2.9.0.jar for job 'Version & Libraries': Used own copy as it matched etag
      [15:54:47 INFO]: Finished downloading C:\Users\Kévin\AppData\Roaming\.minecraft\libraries\net\java\jinput\jinput\2.0.5\jinput-2.0.5.jar for job 'Version & Libraries': Used own copy as it matched etag
      [15:54:47 INFO]: Finished downloading C:\Users\Kévin\AppData\Roaming\.minecraft\libraries\org\bouncycastle\bcprov-jdk15on\1.47\bcprov-jdk15on-1.47.jar for job 'Version & Libraries': Used own copy as it matched etag
      [15:54:47 INFO]: Finished downloading C:\Users\Kévin\AppData\Roaming\.minecraft\libraries\com\paulscode\codecjorbis\20101023\codecjorbis-20101023.jar for job 'Version & Libraries': Used own copy as it matched etag
      [15:54:47 INFO]: Finished downloading C:\Users\Kévin\AppData\Roaming\.minecraft\versions\1.6.4-custom\1.6.4-custom.jar for job 'Version & Libraries': Couldn't connect to server (responded with 403) but have local file, assuming it's good
      [15:54:47 INFO]: Job 'Version & Libraries' finished successfully
      [15:54:47 INFO]: Launching game
      [15:54:47 INFO]: Looking for old natives to clean up…
      [15:54:47 INFO]: Unpacking natives to C:\Users\Kévin\AppData\Roaming\.minecraft\versions\1.6.4-custom\1.6.4-custom-natives-16875210061961
      [15:54:47 INFO]: Launching in C:\Users\Kévin\AppData\Roaming\.minecraft
      [15:54:48 INFO]: Client> nov. 11, 2013 3:54:48 PM net.minecraft.launchwrapper.LogWrapper log
      [15:54:48 INFO]: Client> INFO: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
      [15:54:48 INFO]: Client> nov. 11, 2013 3:54:48 PM net.minecraft.launchwrapper.LogWrapper log
      [15:54:48 INFO]: Client> INFO: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
      [15:54:48 INFO]: Client> nov. 11, 2013 3:54:48 PM net.minecraft.launchwrapper.LogWrapper log
      [15:54:48 INFO]: Client> INFO: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
      [15:54:48 INFO]: Client> 2013-11-11 15:54:48 [INFO] [ForgeModLoader] Forge Mod Loader version 6.4.20.916 for Minecraft 1.6.4 loading
      [15:54:48 INFO]: Client> 2013-11-11 15:54:48 [INFO] [ForgeModLoader] Java is Java HotSpot(TM) 64-Bit Server VM, version 1.7.0_25, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre7
      [15:54:48 INFO]: Client> 2013-11-11 15:54:48 [WARNING] [ForgeModLoader] The coremod invtweaks.forge.asm.FMLPlugin does not have a MCVersion annotation, it may cause issues with this version of Minecraft
      [15:54:48 INFO]: Client> 2013-11-11 15:54:48 [INFO] [ForgeModLoader] Loading tweaker optifine.OptiFineForgeTweaker from OptiFine_1.6.4_HD_C6.jar
      [15:54:48 INFO]: Client> 2013-11-11 15:54:48 [INFO] [STDOUT] Loaded 40 rules from AccessTransformer config file fml_at.cfg
      [15:54:48 INFO]: Client> 2013-11-11 15:54:48 [INFO] [STDOUT] Loaded 109 rules from AccessTransformer config file forge_at.cfg
      [15:54:49 INFO]: Client> 2013-11-11 15:54:49 [WARNING] [ForgeModLoader] Problem loading class
      [15:54:49 INFO]: Client> java.lang.SecurityException: SHA1 digest error for atv.class
      [15:54:49 INFO]: Client> at sun.security.util.ManifestEntryVerifier.verify(Unknown Source)
      [15:54:49 INFO]: Client> at java.util.jar.JarVerifier.processEntry(Unknown Source)
      [15:54:49 INFO]: Client> at java.util.jar.JarVerifier.update(Unknown Source)
      [15:54:49 INFO]: Client> at java.util.jar.JarVerifier$VerifierStream.read(Unknown Source)
      [15:54:49 INFO]: Client> at java.io.FilterInputStream.read(Unknown Source)
      [15:54:49 INFO]: Client> at net.minecraft.launchwrapper.LaunchClassLoader.readFully(LaunchClassLoader.java:296)
      [15:54:49 INFO]: Client> at net.minecraft.launchwrapper.LaunchClassLoader.getClassBytes(LaunchClassLoader.java:368)
      [15:54:49 INFO]: Client> at cpw.mods.fml.common.patcher.ClassPatchManager.getPatchedResource(ClassPatchManager.java:65)
      [15:54:49 INFO]: Client> at cpw.mods.fml.common.asm.transformers.deobf.FMLDeobfuscatingRemapper.getFieldType(FMLDeobfuscatingRemapper.java:225)
      [15:54:49 INFO]: Client> at cpw.mods.fml.common.asm.transformers.deobf.FMLDeobfuscatingRemapper.parseField(FMLDeobfuscatingRemapper.java:202)
      [15:54:49 INFO]: Client> at cpw.mods.fml.common.asm.transformers.deobf.FMLDeobfuscatingRemapper.setup(FMLDeobfuscatingRemapper.java:163)
      [15:54:49 INFO]: Client> at cpw.mods.fml.common.asm.FMLSanityChecker.injectData(FMLSanityChecker.java:245)
      [15:54:49 INFO]: Client> at cpw.mods.fml.relauncher.CoreModManager.injectTransformers(CoreModManager.java:437)
      [15:54:49 INFO]: Client> at cpw.mods.fml.relauncher.FMLLaunchHandler.injectPostfixTransformers(FMLLaunchHandler.java:108)
      [15:54:49 INFO]: Client> at cpw.mods.fml.relauncher.FMLLaunchHandler.appendCoreMods(FMLLaunchHandler.java:113)
      [15:54:49 INFO]: Client> at cpw.mods.fml.common.launcher.FMLTweaker.injectIntoClassLoader(FMLTweaker.java:124)
      [15:54:49 INFO]: Client> at net.minecraft.launchwrapper.Launch.launch(Launch.java:111)
      [15:54:49 INFO]: Client> at net.minecraft.launchwrapper.Launch.main(Launch.java:27)
      [15:54:49 INFO]: Client> 2013-11-11 15:54:49 [SEVERE] [ForgeModLoader] There is a binary discrepency between the expected input class atv (atv) and the actual class. Checksum on disk is 1, in patch f9f8f26b. Things are probably about to go very wrong. Did you put something into the jar file?
      [15:54:49 INFO]: Client> 2013-11-11 15:54:49 [SEVERE] [ForgeModLoader] The game is going to exit, because this is a critical error, and it is very improbable that the modded game will work, please obtain clean jar files.
      [15:54:49 ERROR]: Game ended with bad state (exit code 1)
      [15:54:49 INFO]: Deleting C:\Users\Kévin\AppData\Roaming\.minecraft\versions\1.6.4-custom\1.6.4-custom-natives-16875210061961
      [15:54:49 INFO]: Ignoring visibility rule and showing launcher due to a game crash
      
      

      Merci

      1 réponse Dernière réponse Répondre Citer 0
      • Zak
        Zak dernière édition par

        T’as supprimé le Meta-Inf ?

        1 réponse Dernière réponse Répondre Citer 0
        • R
          roideseaux dernière édition par

          Il faut resupprimer le meta-inf une fois que forge est installé ?
          parce que forge tout seul fonctionne parfaitement…

          1 réponse Dernière réponse Répondre Citer 0
          • elias54
            elias54 Administrateurs dernière édition par

            J’ai move. Merci de bien vouloir lire le nom des section à l’avenir. 🙂

            Mon site | GitHub

            1 réponse Dernière réponse Répondre Citer 0
            • kevin_68
              kevin_68 Moddeurs confirmés dernière édition par

              C’est juste qu’une modification du minecraft.jar fait crash le jeu avec forge, il “scan” le jar pour vérifier qu’il est clean.
              Donc on ne peut pas modifier le jar.
              Sinon, salut kévin, moi c’est kévin et c’est étrange d’écrire ça.

              Mais tu peux faire un mod qui met un gui par dessus le gui existant, pour cela utilise un tickHandler.


              Mettez à jours vers la dernière version stable (1.8.9 voir même…

              1 réponse Dernière réponse Répondre Citer 0
              • R
                roideseaux dernière édition par

                OK ok

                j’ai essayé aussi de convertir mes fichiers .class pour faire un mod mais ca n’a pas marché donc je pense que je fais mal un truc…
                comment je fais pour utiliser un tickhandler ?

                Ps: salut Kévin (c’est vrai que ca fait bizarre lol)

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

                  package fr.minecraftforgefrance.custommenu;
                  
                  import java.util.Arrays;
                  
                  import cpw.mods.fml.common.Mod;
                  import cpw.mods.fml.common.Mod.EventHandler;
                  import cpw.mods.fml.common.event.FMLInitializationEvent;
                  import cpw.mods.fml.common.event.FMLPreInitializationEvent;
                  import cpw.mods.fml.common.registry.TickRegistry;
                  import cpw.mods.fml.relauncher.Side;
                  
                  @Mod(modid = "CustomMenu", name = "Custom Menu", version = "1.0.0")
                  
                  public class ModCustomMenu
                  {
                  @EventHandler
                  public void init(FMLInitializationEvent event)
                  {
                  if(event.getSide().isClient())
                  TickRegistry.registerTickHandler(new TickHandlerClient(), Side.CLIENT);
                  }
                  }
                  
                  package fr.minecraftforgefrance.custommenu;
                  
                  import java.util.EnumSet;
                  
                  import net.minecraft.client.Minecraft;
                  import net.minecraft.client.gui.GuiMainMenu;
                  import net.minecraft.client.gui.GuiScreen;
                  import cpw.mods.fml.common.ITickHandler;
                  import cpw.mods.fml.common.TickType;
                  
                  public class TickHandlerClient implements ITickHandler
                  {
                  @Override
                  public void tickStart(EnumSet <ticktype>type, Object… tickData)
                  {
                  
                  }
                  
                  @Override
                  public void tickEnd(EnumSet <ticktype>type, Object... tickData)
                  {
                  if(type.equals(EnumSet.of(TickType.CLIENT)))
                  {
                  Minecraft mc = Minecraft.getMinecraft();
                  GuiScreen currentScreen = mc.currentScreen;
                  GuiCustomMainMenu customMenu = new GuiCustomMainMenu();
                  
                  if(currentScreen instanceof GuiMainMenu && !currentScreen.equals(customMenu))
                  {
                  mc.displayGuiScreen(customMenu);
                  }
                  }
                  }
                  
                  @Override
                  public EnumSet <ticktype>ticks()
                  {
                  return EnumSet.of(TickType.CLIENT);
                  }
                  
                  @Override
                  public String getLabel()
                  {
                  return "Client Menu Tick Handler";
                  }
                  }
                  

                  Ensuite tu créé ta classe GuiCustomMainMenu, tu copie colle GuiMainMenu dedans en changeant tout les GuiMainMenu par GuiCustomMainMenu, et tu adapte la classe comme tu le souhaite.

                  Pour finir, tu compile le mod comme un mod normal, et tu en fais un .zip que tu mets dans le dossier mods.</ticktype></ticktype></ticktype>

                  1 réponse Dernière réponse Répondre Citer 0
                  • R
                    roideseaux dernière édition par

                    Merci merci !

                    par contre, j’ai un souci, j’ai une erreur dans cette fonction :

                    private void func_130022_h()
                    {
                    this.minecraftRealmsButton.drawButton = true;
                    fmlModButton.width = 98;
                    fmlModButton.xPosition = this.width / 2 + 2;
                    }
                    

                    Il me met l’erreur au niveau du .width en me disant qu’elle n’est pas public mais elle fait référence à une classe que je touche pas…

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

                      Supprime cette ligne, elle ne sert qu’à activer le bouton “Minecraft realms”, qui est completement inutile sur un launcher personnel.
                      (il faut aussi que tu supprime la ligne ou la méthode est appelé).

                      1 réponse Dernière réponse Répondre Citer 0
                      • R
                        roideseaux dernière édition par

                        Impecc, j’ai plus d’erreurs, mais par contre, mon menu n’apparait pas… (je vois juste le menu d’origine apparaitre un quart de seconde et tout s’efface, il ne me reste plus que les boutons option et quit game…

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

                          Il y a des erreurs dans la console ?

                          1 réponse Dernière réponse Répondre Citer 0
                          • R
                            roideseaux dernière édition par

                            Je n’en vois pas…

                            nov. 13, 2013 9:23:03 PM net.minecraft.launchwrapper.LogWrapper log
                            INFO: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
                            nov. 13, 2013 9:23:03 PM net.minecraft.launchwrapper.LogWrapper log
                            INFO: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
                            nov. 13, 2013 9:23:03 PM net.minecraft.launchwrapper.LogWrapper log
                            INFO: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
                            2013-11-13 21:23:03 [INFO] [ForgeModLoader] Forge Mod Loader version 6.4.3.883 for Minecraft 1.6.4 loading
                            2013-11-13 21:23:03 [INFO] [ForgeModLoader] Java is Java HotSpot(TM) 64-Bit Server VM, version 1.7.0_25, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre7
                            2013-11-13 21:23:03 [INFO] [ForgeModLoader] Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
                            2013-11-13 21:23:04 [INFO] [STDOUT] Loaded 40 rules from AccessTransformer config file fml_at.cfg
                            2013-11-13 21:23:04 [INFO] [STDOUT] Loaded 109 rules from AccessTransformer config file forge_at.cfg
                            2013-11-13 21:23:04 [SEVERE] [ForgeModLoader] The binary patch set is missing. Either you are in a development environment, or things are not going to work!
                            2013-11-13 21:23:05 [INFO] [ForgeModLoader] Launching wrapped minecraft {net.minecraft.client.main.Main}
                            2013-11-13 21:23:06 [INFO] [Minecraft-Client] Setting user: Player606
                            2013-11-13 21:23:06 [INFO] [Minecraft-Client] (Session ID is null)
                            2013-11-13 21:23:07 [INFO] [Minecraft-Client] LWJGL Version: 2.9.0
                            2013-11-13 21:23:07 [INFO] [Minecraft-Client] Reloading ResourceManager: Default
                            2013-11-13 21:23:08 [INFO] [STDOUT]
                            2013-11-13 21:23:08 [INFO] [STDOUT] Starting up SoundSystem…
                            2013-11-13 21:23:08 [INFO] [MinecraftForge] Attempting early MinecraftForge initialization
                            2013-11-13 21:23:08 [INFO] [STDOUT] MinecraftForge v9.11.0.883 Initialized
                            2013-11-13 21:23:08 [INFO] [ForgeModLoader] MinecraftForge v9.11.0.883 Initialized
                            2013-11-13 21:23:08 [INFO] [STDOUT] Initializing LWJGL OpenAL
                            2013-11-13 21:23:08 [INFO] [STDOUT] (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org)
                            2013-11-13 21:23:08 [INFO] [STDOUT] OpenAL initialized.
                            2013-11-13 21:23:08 [INFO] [STDOUT] Replaced 101 ore recipies
                            2013-11-13 21:23:08 [INFO] [MinecraftForge] Completed early MinecraftForge initialization
                            2013-11-13 21:23:08 [INFO] [ForgeModLoader] Reading custom logging properties from C:\Users\Kévin\Desktop\forge1\mcp\jars\config\logging.properties
                            2013-11-13 21:23:08 [OFF] [ForgeModLoader] Logging level for ForgeModLoader logging is set to ALL
                            2013-11-13 21:23:08 [INFO] [ForgeModLoader] Searching C:\Users\Kévin\Desktop\forge1\mcp\jars\mods for mods
                            2013-11-13 21:23:08 [INFO] [STDOUT]
                            2013-11-13 21:23:10 [INFO] [ForgeModLoader] Forge Mod Loader has identified 4 mods to load
                            2013-11-13 21:23:10 [INFO] [mcp] Activating mod mcp
                            2013-11-13 21:23:10 [INFO] [FML] Activating mod FML
                            2013-11-13 21:23:10 [INFO] [Forge] Activating mod Forge
                            2013-11-13 21:23:10 [INFO] [CustomMenu] Activating mod CustomMenu
                            2013-11-13 21:23:10 [WARNING] [Forge Mod Loader] Mod Forge Mod Loader is missing a pack.mcmeta file, things may not work well
                            2013-11-13 21:23:10 [WARNING] [Minecraft Forge] Mod Minecraft Forge is missing a pack.mcmeta file, things may not work well
                            2013-11-13 21:23:10 [WARNING] [Custom Menu] Mod Custom Menu is missing a pack.mcmeta file, things may not work well
                            2013-11-13 21:23:10 [INFO] [Minecraft-Client] Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Custom Menu
                            2013-11-13 21:23:10 [INFO] [STDOUT]
                            2013-11-13 21:23:10 [INFO] [STDOUT] SoundSystem shutting down…
                            2013-11-13 21:23:10 [INFO] [STDOUT] Author: Paul Lamb, www.paulscode.com
                            2013-11-13 21:23:10 [INFO] [STDOUT]
                            2013-11-13 21:23:10 [INFO] [STDOUT]
                            2013-11-13 21:23:10 [INFO] [STDOUT] Starting up SoundSystem…
                            2013-11-13 21:23:11 [INFO] [ForgeModLoader] Registering Forge Packet Handler
                            2013-11-13 21:23:11 [INFO] [ForgeModLoader] Succeeded registering Forge Packet Handler
                            2013-11-13 21:23:11 [INFO] [ForgeModLoader] Configured a dormant chunk cache size of 0
                            2013-11-13 21:23:11 [INFO] [STDOUT] Initializing LWJGL OpenAL
                            2013-11-13 21:23:11 [INFO] [STDOUT] (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org)
                            2013-11-13 21:23:11 [INFO] [STDOUT] OpenAL initialized.
                            2013-11-13 21:23:11 [INFO] [STDOUT]
                            2013-11-13 21:23:12 [INFO] [ForgeModLoader] Forge Mod Loader has successfully loaded 4 mods
                            2013-11-13 21:23:12 [WARNING] [Forge Mod Loader] Mod Forge Mod Loader is missing a pack.mcmeta file, things may not work well
                            2013-11-13 21:23:12 [WARNING] [Minecraft Forge] Mod Minecraft Forge is missing a pack.mcmeta file, things may not work well
                            2013-11-13 21:23:12 [WARNING] [Custom Menu] Mod Custom Menu is missing a pack.mcmeta file, things may not work well
                            2013-11-13 21:23:12 [INFO] [Minecraft-Client] Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Custom Menu
                            2013-11-13 21:23:12 [INFO] [STDOUT]
                            2013-11-13 21:23:12 [INFO] [STDOUT] SoundSystem shutting down…
                            2013-11-13 21:23:12 [INFO] [STDOUT] Author: Paul Lamb, www.paulscode.com
                            2013-11-13 21:23:12 [INFO] [STDOUT]
                            2013-11-13 21:23:12 [INFO] [STDOUT]
                            2013-11-13 21:23:12 [INFO] [STDOUT] Starting up SoundSystem…
                            2013-11-13 21:23:13 [INFO] [STDOUT] Initializing LWJGL OpenAL
                            2013-11-13 21:23:13 [INFO] [STDOUT] (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org)
                            2013-11-13 21:23:13 [INFO] [STDOUT] OpenAL initialized.
                            2013-11-13 21:23:13 [INFO] [STDOUT]
                            2013-11-13 21:23:14 [SEVERE] [Minecraft-Client] Realms: Invalid session id
                            2013-11-13 21:23:14 [SEVERE] [Minecraft-Client] Realms: Invalid session id
                            
                            

                            Edit :

                            Autant pour moi, j’avais viré un paragraphe qu’il ne fallait pas virer >< !

                            par contre, pour modifier le menu en jeux et le menu d’option, je ne peux pas les ajouter comme ca, mais il faut que je les ajoute dans le tickhandlerclient ou bien il faut que j’en refasse un de la meme manière ?

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

                              Base toi sur ça :
                              http://dl.mcnanotech.fr/robin4002/mods/Sources/CustomMenu-src.zip

                              1 réponse Dernière réponse Répondre Citer 0
                              • R
                                roideseaux dernière édition par

                                C’est bon pour le menu principal et pour le menu en jeu, par contre pour la page des options, c’est un peu particulier il me semble, non ?

                                ca crash dès que je vais sur la page… 😕

                                j’ai mit ca comme code dans la classe tickHandlerClient :

                                			GuiCustomOptions customOptions = new GuiCustomOptions(currentScreen, null);
                                
                                			if(currentScreen instanceof GuiOptions && !currentScreen.equals(customOptions))
                                			{
                                				mc.displayGuiScreen(customOptions);
                                			}
                                

                                Et je voudrai aussi savoir si quand le serveur devient down, il est possible de retourner à l’écran principal plutôt que de tomber sur la page de sélection du serveur multijoueur ?

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

                                  @‘roideseaux’:

                                  C’est bon pour le menu principal et pour le menu en jeu, par contre pour la page des options, c’est un peu particulier il me semble, non ?

                                  ca crash dès que je vais sur la page… 😕

                                  j’ai mit ca comme code dans la classe tickHandlerClient :

                                  			GuiCustomOptions customOptions = new GuiCustomOptions(currentScreen, null);
                                  			
                                  			if(currentScreen instanceof GuiOptions && !currentScreen.equals(customOptions))
                                  			{
                                  				mc.displayGuiScreen(customOptions);
                                  			}
                                  

                                  Et je voudrai aussi savoir si quand le serveur devient down, il est possible de retourner à l’écran principal plutôt que de tomber sur la page de sélection du serveur multijoueur ?

                                  GuiCustomOptions customOptions = new GuiCustomOptions(currentScreen, mc.gameSettings);
                                  
                                  if(currentScreen instanceof GuiOptions && !currentScreen.equals(customOptions))
                                  {
                                  mc.displayGuiScreen(customOptions);
                                  }
                                  

                                  Tu ne peux pas déclare ta gui avec un paramètre null dans le constructeur, sinon c’est normal que ça crash avec un NPE 😉

                                  Pour le retour sur le menu, tu as utilisé cette fonction pour la connexion ? :

                                  this.mc.displayGuiScreen(new GuiConnecting(this, this.mc, "ip", port));
                                  

                                  Le premier this dans le constructeur correspond au gui actuelle (donc ton menu custom), GuiConnecting ouvre se gui si la connexion échoue.
                                  Si c’est pas bon comme ça, c’est que l’action après avoir perdu la connexion n’ouvre pas se gui, donc dans se cas je sais pas comment faire pour changer mettre ton menu lors de la déco du serveur.
                                  Ça doit être quand même faisable avec quelques conditions, il faudrait que je prenne le temps de regarder plus en détail.

                                  1 réponse Dernière réponse Répondre Citer 0
                                  • R
                                    roideseaux dernière édition par

                                    Oui effectivement, ça fonctionne mieux, je me doutait bien que le constructeur ne pouvais pas être null mais je ne savais pas le quel mettre !

                                    par contre, j’ai un bug, quand je clic sur done, ca ne revient pas à l’écran précédent 😕
                                    pourtant dans la class tickHandlerClient, j’ai bien appelé ma gui avec currentScreen en constructeur 😕

                                    Et pour l’autre question, j’ai déjà définit ainsi mon bouton de connexion donc effectivement, si la connexion échoue, je suis renvoyé au menu principal, mais par contre quand le serveur crash pour une raison ou pour une autre, je ratterris à la page de sélection de serveur multi !

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

                                      Étrange, regarde ce que fais le bouton done.
                                      Pour le retour sur le menu, je crains que ça va pas être possible, au pire si tu as supprimé le bouton multiplayer sur ton menu, tu peux faire que si le menu multiplayer est ouvert, ça ouvre le menu principale modifié.

                                      1 réponse Dernière réponse Répondre Citer 0
                                      • R
                                        roideseaux dernière édition par

                                        le bouton done fait ça :

                                        if (par1GuiButton.id == 200)
                                        {
                                        this.mc.gameSettings.saveOptions();
                                        this.mc.displayGuiScreen(this.parentScreen);
                                        }
                                        

                                        plus haut, il y a :

                                        
                                        public GuiCustomOptions(GuiScreen par1GuiScreen, GameSettings par2GameSettings)
                                        {
                                        this.parentScreen = par1GuiScreen;
                                        this.options = par2GameSettings;
                                        }
                                        
                                        

                                        et j’appelle la classe avec :

                                        
                                        GuiCustomOptions customOptions = new GuiCustomOptions(currentScreen, mc.gameSettings);
                                        
                                        if(currentScreen instanceof GuiOptions && !currentScreen.equals(customOptions))
                                        {
                                        mc.displayGuiScreen(customOptions);
                                        }
                                        
                                        

                                        pour moi, il n’y a rien qui cloche !

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

                                          Je vois le problème, quand tu clic sur le GuiOptions, il ouvre GuiCustomOptions, mais le currentScreen correspond à GuiOptions. Donc quand tu clic sur done, ça ouvre GuiOptions, et le tickhandler ouvre à nouveau GuiCustomOptions, ce qui fait une boucle infini.
                                          Plutôt que passer par le TickHandler, il faudrait modifier dans le menu Custom le gui ouvert lorsqu’on clic sur option, même chose pour GuiInGame (Forge permet de changer GuiInGame facilement).

                                          1 réponse Dernière réponse Répondre Citer 0
                                          • R
                                            roideseaux dernière édition par

                                            Ok, merci beaucoup !

                                            je pense que je n’ai plus de souci 🙂

                                            impec pour le menu multijoueur, dès que la page est chargée, ca me swich direct sur mon menu principal 🙂

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

                                            MINECRAFT FORGE FRANCE © 2018

                                            Powered by NodeBB