Jump to content

how do i make my forge mod multiplayer supported?


d3thdrug

Recommended Posts

alright:

 

---- Minecraft Crash Report ----

// Everything's going to plan. No, really, that was supposed to happen.

 

Time: 1/28/13 7:49 AM

Description: Exception in server tick loop

 

java.lang.NoSuchMethodError: ModLoader.addOverride(Ljava/lang/String;Ljava/lang/String;)I

at josecraft.common.mod_Scraft.<clinit>(mod_Scraft.java:28)

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Unknown Source)

at cpw.mods.fml.common.ModClassLoader.loadBaseModClass(ModClassLoader.java:87)

at cpw.mods.fml.common.modloader.ModLoaderModContainer.constructMod(ModLoaderModContainer.java:489)

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.EventHandler.handleEvent(EventHandler.java:69)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)

at com.google.common.eventbus.EventBus.post(EventBus.java:268)

at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:140)

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.EventHandler.handleEvent(EventHandler.java:69)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)

at com.google.common.eventbus.EventBus.post(EventBus.java:268)

at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:83)

at cpw.mods.fml.common.Loader.loadMods(Loader.java:479)

at cpw.mods.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:86)

at cpw.mods.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:345)

at ho.c(DedicatedServer.java:64)

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:458)

at fy.run(SourceFile:849)

 

 

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

---------------------------------------------------------------------------------------

 

-- System Details --

Details:

Minecraft Version: 1.4.7

Operating System: Windows XP (x86) version 5.1

Java Version: 1.7.0_09, Oracle Corporation

Java VM Version: Java HotSpot Client VM (mixed mode, sharing), Oracle Corporation

Memory: 10662416 bytes (10 MB) / 25972736 bytes (24 MB) up to 259522560 bytes (247 MB)

JVM Flags: 0 total;

AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used

Suspicious classes: FML and Forge are installed

IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0

FML: MCP v7.26 FML v4.7.4.520 Minecraft Forge 6.6.0.497 4 mods loaded, 4 mods active

mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed

FML [Forge Mod Loader] (coremods) Unloaded->Constructed

Forge [Minecraft Forge] (coremods) Unloaded->Constructed

mod_Scraft [mod_Scraft] (@@@@@.zip) Unloaded

Profiler Position: N/A (disabled)

Is Modded: Definitely; Server brand changed to 'fml'

Type: Dedicated Server (map_server.txt)

Link to comment
Share on other sites

if you'd like to see the source code to make it easier:

 

mod_:

 

package @@@@@.common;

 

 

 

import java.util.Map;

 

import net.minecraft.block.Block;

import net.minecraft.entity.EnumCreatureType;

import net.minecraft.item.Item;

import net.minecraft.block.material.Material;

import net.minecraft.src.BaseMod;

import net.minecraft.src.ModLoader;

import net.minecraft.stats.Achievement;

import net.minecraft.world.biome.BiomeGenBase;

import cpw.mods.fml.common.Mod;

import cpw.mods.fml.common.SidedProxy;

import cpw.mods.fml.common.event.FMLInitializationEvent;

import cpw.mods.fml.common.network.NetworkMod;

import cpw.mods.fml.common.registry.GameRegistry;

import cpw.mods.fml.common.registry.LanguageRegistry;

import @@@@@.client.ClientProxy;

 

@Mod(modid = "e3e_@@@@@", name = "@@@@@", version = "1.4.6")

@NetworkMod(clientSideRequired = true, serverSideRequired = false)

 

public class mod_Scraft extends BaseMod {

 

public static final Item @@@@ = (new Item@@@(251).setIconIndex(ModLoader.addOverride("/gui/items.png", "/@@@@.png")).setItemName("@@@@@"));

 

public static final Item @@@ = (new Item@@@@(252).setIconIndex(ModLoader.addOverride("/gui/items.png", "/@@@@/@@@@.png")).setItemName("@@@@"));

 

 

public static final Block @@@ = (new Block@@@(253, ModLoader.addOverride("/terrain.png", "/@@@@.png"), null).setHardness(0.3F).setBlockName("@@@"));

 

 

public static final Achievement killed = (new Achievement(31, "killed", 10, 2, Item.leather, (Achievement)null)).registerAchievement().setIndependent();

 

int ItemToken = 251;

int ItemPoop = 252;

 

 

@SidedProxy(clientSide = "@@@@.client.ClientProxy",

            serverSide = "@@@@.common.CommonProxy")

public static ClientProxy proxy = new ClientProxy();

 

 

public void load(FMLInitializationEvent event) {

 

}

 

public String getVersion() {

 

return "";

}

 

 

 

public void addRenderer(Map var1)

    {

        var1.put(Entity@@@.class, new Render@@@(new Model@@@(), 0.5F));

        var1.put(Entity@@@.class, new Render@@@(new Model@@@(), 0.5F));

       

}

 

public mod_Scraft() {

 

ModLoader.addName(@@@, "@@@" );

 

ModLoader.addName(@@@, "@@@");

 

 

ModLoader.addName(@@@, "@@@");

ModLoader.registerBlock(@@@);

 

 

}

 

public void load() {

 

ModLoader.addAchievementDesc(killed, "@@@@, @@@");

 

ModLoader.addSpawn(Entity@@@@.class, 5, 3, 5, EnumCreatureType.creature, BiomeGenBase.forest, BiomeGenBase.taiga, BiomeGenBase.forestHills);

 

}

}

 

client proxy:

 

package josecraft.client;

 

import josecraft.common.CommonProxy;

import net.minecraftforge.client.MinecraftForgeClient;

 

public class ClientProxy extends CommonProxy {

 

public void RegisterRenders(){

MinecraftForgeClient.preloadTexture("/###########.png");

MinecraftForgeClient.preloadTexture("/###########.png");

MinecraftForgeClient.preloadTexture("/###########.png");

MinecraftForgeClient.preloadTexture("/###########.png");

MinecraftForgeClient.preloadTexture("/###########.png");

MinecraftForgeClient.preloadTexture("/###########.png");

}

}

 

common proxy:

 

package josecraft.common;

 

import cpw.mods.fml.common.*;

import cpw.mods.fml.common.network.IGuiHandler;

import cpw.mods.fml.common.registry.EntityRegistry;

import net.minecraft.entity.EnumCreatureType;

import net.minecraft.entity.player.EntityPlayer;

import net.minecraft.src.ModLoader;

import net.minecraft.world.World;

import net.minecraft.world.biome.BiomeGenBase;

import net.minecraftforge.client.MinecraftForgeClient;

 

public class CommonProxy implements IGuiHandler{

public void RegisterRendersinfo() {}

public void init() {

 

EntityRegistry.registerGlobalEntityID(Entity@@@@.class, "Bear", EntityRegistry.findGlobalUniqueEntityId(), 4996656, 4474500);

EntityRegistry.registerGlobalEntityID(Entity@@@@.class, "Angry Bear", EntityRegistry.findGlobalUniqueEntityId(), 4474420, 16711680);

EntityRegistry.addSpawn(Entity@@@@.class, 5, 3, 5, EnumCreatureType.creature, BiomeGenBase.forest, BiomeGenBase.taiga, BiomeGenBase.forestHills);

RegisterRendersinfo();

}

 

public Object getServerGuiElement( int ID, EntityPlayer player, World world,

int x, int y, int z ) {

 

return null;

 

}

 

public Object getClientGuiElement( int ID, EntityPlayer player, World world,

int x, int y, int z) {

 

return null;

}

 

public void RegisterRenders() {

 

}

}

 

 

i dont think any other files matter and srry about the @@@ it's because it's kinda private ty

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.