[Recherche] Un son à chaque kills

Statut
N'est pas ouverte pour d'autres réponses.

Almarchand

Aventurier
3 Mai 2016
11
0
2
21
Bon, je vais aller test. Mais sinon, j'ai vu que y'a des des convertisseurs en ligne de .zip en .jar dans le pire des cas. Mais j'ai déjà réussi à faire tourner un mod quand il était en .zip avec forge, donc je crois que y'a pas de problème :p

EDIT : Le jeu crash à chaque fois que je le lance. Je n'ai rien changé dans le code SAUF le son de mort.

Crash report :
Code:
---- Minecraft Crash Report ----

WARNING: coremods are present:
Contact their authors BEFORE contacting forge

// Ooh. Shiny.

Time: 16-05-03 18:45
Description: There was a severe problem during mod loading that has caused the game to fail

net.minecraftforge.fml.common.LoaderException: java.lang.ClassNotFoundException: fr.minecraftforgefrance.deathplayer.SoundAtDeath
    at net.minecraftforge.fml.common.LoadController.transition(LoadController.java:162)
    at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:543)
    at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:208)
    at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:417)
    at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:329)
    at net.minecraft.client.main.Main.main(SourceFile:124)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
Caused by: java.lang.ClassNotFoundException: fr.minecraftforgefrance.deathplayer.SoundAtDeath
    at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at net.minecraftforge.fml.common.ModClassLoader.loadClass(ModClassLoader.java:65)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:348)
    at net.minecraftforge.fml.common.FMLModContainer.constructMod(FMLModContainer.java:468)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
    at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
    at com.google.common.eventbus.EventBus.post(EventBus.java:275)
    at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:211)
    at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:189)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
    at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
    at com.google.common.eventbus.EventBus.post(EventBus.java:275)
    at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:118)
    at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:512)
    ... 10 more
Caused by: java.lang.NullPointerException
    at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:182)
    ... 38 more


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

-- System Details --
Details:
    Minecraft Version: 1.8.9
    Operating System: Mac OS X (x86_64) version 10.10.5
    CPU: 4x Intel(R) Core(TM) i5-4260U CPU @ 1.40GHz
    Java Version: 1.8.0_74, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 163379960 bytes (155 MB) / 278986752 bytes (266 MB) up to 5355339776 bytes (5107 MB)
    JVM Flags: 5 total; -Xmx5G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M
    IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    FML: MCP 9.19 Powered by Forge 11.15.1.1722 Optifine OptiFine_1.8.9_HD_U_H3 4 mods loaded, 4 mods active
    States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
    UC    mcp{9.19} [Minecraft Coder Pack] (minecraft.jar)
    UC    FML{8.0.99.99} [Forge Mod Loader] (forge-1.8.9-11.15.1.1722.jar)
    UC    Forge{11.15.1.1722} [Minecraft Forge] (forge-1.8.9-11.15.1.1722.jar)
    UE    soundatdeath{0.1} [Sound At Death] (Soundatdeath-1.0.zip)
    Loaded coremods (and transformers):
    GL info: ' Vendor: 'Intel Inc.' Version: '2.1 INTEL-10.6.33' Renderer: 'Intel HD Graphics 5000 OpenGL Engine'
 
Dernière édition:

robin4002

Expert en informatique et systèmes d'information
Staff
Responsable technique
Responsable forum
12 Novembre 2012
20 815
156
3 000
347
26
Alsace
www.minecraftforgefrance.fr
Tu as mal refais le zip.
à la racine du zip tu dois avoir le dossier fr, assets, META-INF et le fichier mcmod.info. Tu ne dois pas avoir le dossier "Soundatdeath-1.0".
Pour éviter ce problème places-toi à l'intérieur du dossier, sélectionne les 3 dossiers et le fichiers cités précédemment et ajoutes-les dans une archive.
 

Almarchand

Aventurier
3 Mai 2016
11
0
2
21
Mhhh, okay, je comprend ce que tu veux dire mais c'est normal que y ait pas de son quand je tue la personne ? Avec le .jar original.
 

robin4002

Expert en informatique et systèmes d'information
Staff
Responsable technique
Responsable forum
12 Novembre 2012
20 815
156
3 000
347
26
Alsace
www.minecraftforgefrance.fr
Non, ce n'est pas normal.
Lors de mes tests ça fonctionnait très bien.
Tu peux m'envoyer les logs de ton jeu ? (fichier fml-client-latest.log dans le dossier minecraft/logs) ?
 

Almarchand

Aventurier
3 Mai 2016
11
0
2
21
Mhh, okay je viens de tuer mon ami sur mon serveur x). Je t'envoie le fichier.
 

Fichiers joints

  • fml-client-latest.log.zip
    7.1 KB · Affichages: 230

robin4002

Expert en informatique et systèmes d'information
Staff
Responsable technique
Responsable forum
12 Novembre 2012
20 815
156
3 000
347
26
Alsace
www.minecraftforgefrance.fr
FML n'a pas chargé le mod :
Code:
[08:03:06] [Client thread/INFO] [FML/]: FML has found a non-mod file Soundatdeath-1.0.zip in your mods directory. It will now be injected into your classpath. This could severe stability issues, it should be removed if possible.
Ce qui explique pourquoi il ne se passe rien. Il ne le considère pas comme un mod.

Tu as mit dans le dossier mods directement le fichier que j'ai envoyé par pièce jointe ? Si oui, il ne fallait pas, il faut d'abord l'extraire, comme je l'ai précisé l'archive contient le fichier jar du mod (celui qui doit être mit dans le dossier mods) ainsi que le dossier src qui contient le code source du mod.
 

Almarchand

Aventurier
3 Mai 2016
11
0
2
21
Même à ca, il n'a pas le son, je t'envoie mes log d'en ce moment...

EDIT : C'est simple, y'a un spam que y'a pas le mod sur le serveur
Code:
[17:45:09] [Netty Client IO #3/INFO] [FML/]: Attempting connection with missing mods [mcp, FML, Forge, soundatdeath] at SERVER
 

Fichiers joints

  • fml-client-latest.log 2.zip
    7.5 KB · Affichages: 255

robin4002

Expert en informatique et systèmes d'information
Staff
Responsable technique
Responsable forum
12 Novembre 2012
20 815
156
3 000
347
26
Alsace
www.minecraftforgefrance.fr
Ah tu veux un mod qui n'a que besoin d'être mit en solo ?
Dans ce cas ce que j'ai fait ne va pas, l'event LivingDeathEvent n'est que déclenché côté serveur. (enfin il me semble).

Je ne suis pas sûr que ce soit faisable facilement en client side only.
 

Almarchand

Aventurier
3 Mai 2016
11
0
2
21
Bah, j'ai utilisé un mod qui marche qu'au niveau client. Je ne sais pas si tu peux le prendre pour voir ce qu'il faut rajouter...
 

Fichiers joints

  • BetterPvPFairPlay_1.8.4_Forge_1.8.9.jar.zip
    227.4 KB · Affichages: 207

robin4002

Expert en informatique et systèmes d'information
Staff
Responsable technique
Responsable forum
12 Novembre 2012
20 815
156
3 000
347
26
Alsace
www.minecraftforgefrance.fr
Ça c'est juste du binaire, sans le code source je ne peux pas faire grand chose.

Je regarderai demain si on peut détecter une mort côté client.


EDIT : visiblement l'event LivingDeathEvent est aussi appelé côté client, le soucis est que côté client event.source.getSourceOfDamage() est null.
Donc pas possible :/
 
Dernière édition:
Statut
N'est pas ouverte pour d'autres réponses.