Minecraft Forge 1.7.10 faire son propre mod en multi [Résolu/Fermé]

Signaler
Messages postés
27
Date d'inscription
lundi 21 juillet 2014
Statut
Membre
Dernière intervention
15 septembre 2014
-
 bis -
Bonjour, j'ai créé un mod forge en 1.7.10 et celui ci marche bien avec le client mais lorsque je le lance avec le serveur dans eclipse j'obtiens l'erreur :

[10:48:57] [Netty IO #1/INFO] [FML]: Attempting connection with missing mods [] at CLIENT
[10:48:57] [Netty Client IO #0/INFO] [FML]: Attempting connection with missing mods [] at SERVER
[10:48:57] [Client thread/INFO] [FML]: [Client thread] Client side modded connection established
[10:48:57] [Server thread/INFO] [FML]: [Server thread] Server side modded connection established
[10:48:57] [Server thread/INFO]: ForgeDevName[local:E:56788947] logged in with entity id 157 at (-34.66494895254341, 6.115937054816766, -2243.208852366964)
[10:48:57] [Server thread/INFO]: ForgeDevName joined the game
[10:48:58] [Server thread/INFO]: Saving and pausing game...
[10:48:58] [Server thread/INFO]: Saving chunks for level 'test'/Overworld
[10:48:58] [Server thread/INFO]: Saving chunks for level 'test'/Nether
[10:48:58] [Server thread/INFO]: Saving chunks for level 'test'/The End
[10:49:05] [Client thread/INFO]: Started on 57651
[10:49:05] [Client thread/INFO]: [CHAT] Local game hosted on port 57651
[10:49:34] [Server thread/INFO]: com.mojang.authlib.GameProfile@372805a[id=<null>,name=ForgeDevName,properties={},legacy=false] (/192.168.56.1:57669) lost connection: Internal Exception: java.io.IOException: Une connexion existante a dû être fermée par l'hôte distant
[10:49:37] [Server thread/INFO]: Stopping server
[10:49:37] [Server thread/INFO]: Saving players
[10:49:37] [Server thread/INFO]: Saving worlds
[10:49:37] [Server thread/INFO]: Saving chunks for level 'test'/Overworld
[10:49:37] [Server thread/INFO]: Saving chunks for level 'test'/Nether
[10:49:37] [Server thread/INFO]: Saving chunks for level 'test'/The End
[10:49:37] [Server thread/INFO] [FML]: Unloading dimension 0
[10:49:37] [Server thread/INFO] [FML]: Unloading dimension -1
[10:49:37] [Server thread/INFO] [FML]: Unloading dimension 1
[10:49:37] [Server thread/INFO] [FML]: Applying holder lookups
[10:49:38] [Server thread/INFO] [FML]: Holder lookups applied
[10:49:38] [Client thread/INFO]: Stopping!
SoundSystem shutting down...
Author: Paul Lamb, www.paulscode.com


Je voudrais donc savoir comment faire pour faire fonctionner mon mod en multi (Serveur et LAN)

J'ai essayé de l'utiliser dans une partie LAN mais le client du joueur rejoignant la partie crash :

---- Minecraft Crash Report ----
// Oops.

Time: 25/08/14 17:10
Description: Ticking screen

java.lang.NullPointerException: Ticking screen
at com.mojang.util.UUIDTypeAdapter.fromUUID(UUIDTypeAdapter.java:22)
at com.mojang.util.UUIDTypeAdapter.write(UUIDTypeAdapter.java:13)
at com.mojang.util.UUIDTypeAdapter.write(UUIDTypeAdapter.java:10)
at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.write(TypeAdapterRuntimeTypeWrapper.java:68)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.write(ReflectiveTypeAdapterFactory.java:89)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.write(ReflectiveTypeAdapterFactory.java:195)
at com.google.gson.Gson.toJson(Gson.java:593)
at com.google.gson.Gson.toJson(Gson.java:572)
at com.google.gson.Gson.toJson(Gson.java:527)
at com.google.gson.Gson.toJson(Gson.java:507)
at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.makeRequest(YggdrasilAuthenticationService.java:54)
at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.joinServer(YggdrasilMinecraftSessionService.java:76)
at net.minecraft.client.network.NetHandlerLoginClient.func_147389_a(NetHandlerLoginClient.java:62)
at net.minecraft.network.login.server.S01PacketEncryptionRequest.func_148833_a(SourceFile:41)
at net.minecraft.network.login.server.S01PacketEncryptionRequest.func_148833_a(SourceFile:10)
at net.minecraft.network.NetworkManager.func_74428_b(NetworkManager.java:212)
at net.minecraft.client.multiplayer.GuiConnecting.func_73876_c(SourceFile:78)
at net.minecraft.client.Minecraft.func_71407_l(Minecraft.java:1649)
at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:961)
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:887)
at net.minecraft.client.main.Main.main(SourceFile:148)
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:134)
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 magic.launcher.Launcher.main(SourceFile:207)


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

-- Head --
Stacktrace:
at com.mojang.util.UUIDTypeAdapter.fromUUID(UUIDTypeAdapter.java:22)
at com.mojang.util.UUIDTypeAdapter.write(UUIDTypeAdapter.java:13)
at com.mojang.util.UUIDTypeAdapter.write(UUIDTypeAdapter.java:10)
at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.write(TypeAdapterRuntimeTypeWrapper.java:68)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.write(ReflectiveTypeAdapterFactory.java:89)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.write(ReflectiveTypeAdapterFactory.java:195)
at com.google.gson.Gson.toJson(Gson.java:593)
at com.google.gson.Gson.toJson(Gson.java:572)
at com.google.gson.Gson.toJson(Gson.java:527)
at com.google.gson.Gson.toJson(Gson.java:507)
at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.makeRequest(YggdrasilAuthenticationService.java:54)
at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.joinServer(YggdrasilMinecraftSessionService.java:76)
at net.minecraft.client.network.NetHandlerLoginClient.func_147389_a(NetHandlerLoginClient.java:62)
at net.minecraft.network.login.server.S01PacketEncryptionRequest.func_148833_a(SourceFile:41)
at net.minecraft.network.login.server.S01PacketEncryptionRequest.func_148833_a(SourceFile:10)
at net.minecraft.network.NetworkManager.func_74428_b(NetworkManager.java:212)
at net.minecraft.client.multiplayer.GuiConnecting.func_73876_c(SourceFile:78)

-- Affected screen --
Details:
Screen name: net.minecraft.client.multiplayer.GuiConnecting
Stacktrace:
at net.minecraft.client.Minecraft.func_71407_l(Minecraft.java:1649)
at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:961)
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:887)
at net.minecraft.client.main.Main.main(SourceFile:148)
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:134)
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 magic.launcher.Launcher.main(SourceFile:207)

-- System Details --
Details:
Minecraft Version: 1.7.10
Operating System: Windows 8.1 (amd64) version 6.3
Java Version: 1.7.0_67, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 5880791328 bytes (5608 MB) / 6174015488 bytes (5888 MB) up to 6174015488 bytes (5888 MB)
JVM Flags: 3 total; -Xms6144m -Xmx6144m -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump
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.18.1180 Minecraft Forge 10.13.0.1180 5 mods loaded, 5 mods active
mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available
FML{7.10.18.1180} [Forge Mod Loader] (forge-1.7.10-10.13.0.1180.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available
Forge{10.13.0.1180} [Minecraft Forge] (forge-1.7.10-10.13.0.1180.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available
flansmod{4.5.1} [Flan's Mod] (Flans Mod-1.7.10-4.5.1.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available
mineworldmod{1.2} [MineWorld Mod] (Mineworld mod 1.2 for MC 1.7.10.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available
Launched Version: 1.7.10-Forge10.13.0.1180
LWJGL: 2.9.1
OpenGL: Intel(R) HD Graphics 4600 GL version 4.2.0 - Build 10.18.10.3496, 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: English (US)
Profiler Position: N/A (disabled)
Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Anisotropic Filtering: Off (1)



Le code de ma classe principale :

package com.mineworldmod;

import net.minecraftforge.common.util.EnumHelper;
import com.mineworldmod.items.ItemRegistry;
import com.mineworldmod.lib.Strings;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.Mod.Instance;
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.common.registry.GameRegistry;

@Mod(modid = Strings.MODID, name = Strings.name, version = Strings.version)

public class Main {

@SidedProxy(clientSide = "com.mineworldmod.ClientProxy", serverSide = "com.mineworldmod.ServerProxy")
public static ServerProxy proxy;

@Instance(Strings.MODID)
public static Main modInstance;


@EventHandler
public static void Preinit(FMLPreInitializationEvent PreEvent) {
ItemRegistry.mainRegistry();
proxy.registerRenderThings();
}

@EventHandler
public static void init(FMLInitializationEvent event) {
}


@EventHandler
public static void Postinit(FMLPostInitializationEvent PostEvent) {

}


Le code de mon Server Proxy :

package com.mineworldmod;

import cpw.mods.fml.relauncher.Side;

public class ServerProxy {
public void registerRenderThings() {
}
public int addArmor(String armor){
return 0;
}
}


Le code de mon Client Proxy :

package com.mineworldmod;

import cpw.mods.fml.client.registry.RenderingRegistry;

public class ClientProxy extends ServerProxy{
public void registerRenderThings(){
}
public int addArmor(String armor){
return RenderingRegistry.addNewArmourRendererPrefix(armor);
}
}

1 réponse

Messages postés
27
Date d'inscription
lundi 21 juillet 2014
Statut
Membre
Dernière intervention
15 septembre 2014
9
En fait le problème ne vient pas de mon mod il vient de minecraft lui meme.
4
Merci

Heureux de vous avoir aidé ! Vous nous appréciez ? Donnez votre avis sur nous ! Evaluez Comment Ça Marche

CCM 87707 internautes nous ont dit merci ce mois-ci