Jump to content

Recommended Posts

Posted

Hey,

 

my mod is ready to publish, in client and LAN works fine so far, but if I want to install it in minecraftserver, I get an crash report.

Class atd is ClientWorld, but im not using it in my ServerTickHandler.

I've looked for hours and couldn't find the reason.

Build #200 MCversion 1.3.2

 

 

crash report:

 

2012-08-18 14:14:49 [iNFO] [ForgeModLoader] Forge Mod Loader version 3.0.71.289 for Minecraft client:1.3.2, server:1.3.2 loading
2012-08-18 14:14:49 [FINEST] [ForgeModLoader] All core mods are successfully located
2012-08-18 14:14:49 [FINEST] [ForgeModLoader] Discovering coremods
2012-08-18 14:14:49 [FINEST] [ForgeModLoader] Found library file argo-2.25.jar present and correct in lib dir

2012-08-18 14:14:49 [FINEST] [ForgeModLoader] Found library file guava-12.0.1.jar present and correct in lib dir

2012-08-18 14:14:49 [FINEST] [ForgeModLoader] Found library file asm-all-4.0.jar present and correct in lib dir

2012-08-18 14:14:49 [FINEST] [ForgeModLoader] Running coremod plugins
2012-08-18 14:14:49 [FINEST] [ForgeModLoader] Running coremod plugin FMLCorePlugin
2012-08-18 14:14:49 [FINEST] [ForgeModLoader] Coremod plugin FMLCorePlugin run successfully
2012-08-18 14:14:49 [FINEST] [ForgeModLoader] Running coremod plugin FMLForgePlugin
2012-08-18 14:14:49 [FINEST] [ForgeModLoader] Coremod plugin FMLForgePlugin run successfully
2012-08-18 14:14:49 [FINEST] [ForgeModLoader] Validating minecraft
2012-08-18 14:14:49 [FINEST] [ForgeModLoader] Minecraft validated, launching...
2012-08-18 14:14:50 [iNFO] [sTDOUT] 195 recipes
2012-08-18 14:14:50 [iNFO] [sTDOUT] 27 achievements
2012-08-18 14:14:50 [iNFO] [sTDERR] java.io.IOException: Das Handle ist ungültig
2012-08-18 14:14:50 [iNFO] [sTDERR] 	at java.io.FileInputStream.readBytes(Native Method)
2012-08-18 14:14:50 [iNFO] [sTDERR] 	at java.io.FileInputStream.read(Unknown Source)
2012-08-18 14:14:50 [iNFO] [sTDERR] 	at java.io.BufferedInputStream.read1(Unknown Source)
2012-08-18 14:14:50 [iNFO] [sTDERR] 	at java.io.BufferedInputStream.read(Unknown Source)
2012-08-18 14:14:50 [iNFO] [sTDERR] 	at sun.nio.cs.StreamDecoder.readBytes(Unknown Source)
2012-08-18 14:14:50 [iNFO] [sTDERR] 	at sun.nio.cs.StreamDecoder.implRead(Unknown Source)
2012-08-18 14:14:50 [iNFO] [sTDERR] 	at sun.nio.cs.StreamDecoder.read(Unknown Source)
2012-08-18 14:14:50 [iNFO] [sTDERR] 	at java.io.InputStreamReader.read(Unknown Source)
2012-08-18 14:14:50 [iNFO] [sTDERR] 	at java.io.BufferedReader.fill(Unknown Source)
2012-08-18 14:14:50 [iNFO] [sTDERR] 	at java.io.BufferedReader.readLine(Unknown Source)
2012-08-18 14:14:50 [iNFO] [sTDERR] 	at java.io.BufferedReader.readLine(Unknown Source)
2012-08-18 14:14:50 [iNFO] [sTDERR] 	at fv.run(SourceFile:60)
2012-08-18 14:14:50 [iNFO] [ForgeModLoader] Attempting early MinecraftForge initialization
2012-08-18 14:14:50 [iNFO] [ForgeModLoader] Completed early MinecraftForge initialization
2012-08-18 14:14:50 [FINE] [ForgeModLoader] Building injected Mod Containers [cpw.mods.fml.common.FMLDummyContainer, net.minecraftforge.common.ForgeDummyContainer]
2012-08-18 14:14:50 [FINE] [ForgeModLoader] Attempting to load mods contained in the minecraft jar file and associated classes
2012-08-18 14:14:50 [FINE] [ForgeModLoader] Found a minecraft related file at C:\Users\pitman\Desktop\server\minecraft_server(1).jar, examining for mod candidates
2012-08-18 14:14:50 [FINE] [ForgeModLoader] Skipping known library file C:\Users\pitman\Desktop\server\lib\argo-2.25.jar
2012-08-18 14:14:50 [FINE] [ForgeModLoader] Skipping known library file C:\Users\pitman\Desktop\server\lib\guava-12.0.1.jar
2012-08-18 14:14:50 [FINE] [ForgeModLoader] Skipping known library file C:\Users\pitman\Desktop\server\lib\asm-all-4.0.jar
2012-08-18 14:14:50 [FINE] [ForgeModLoader] Minecraft jar mods loaded successfully
2012-08-18 14:14:50 [iNFO] [ForgeModLoader] Searching C:\Users\pitman\Desktop\server\mods for mods
2012-08-18 14:14:50 [FINE] [ForgeModLoader] Found a candidate zip or jar file TF2.zip
2012-08-18 14:14:50 [FINE] [ForgeModLoader] Examining file minecraft_server(1).jar for potential mods
2012-08-18 14:14:50 [FINE] [ForgeModLoader] Examining file TF2.zip for potential mods
2012-08-18 14:14:50 [FINER] [ForgeModLoader] Located mcmod.info file in file TF2.zip
2012-08-18 14:14:50 [FINE] [ForgeModLoader] Identified a FMLMod type mod TF2.Teleporter.common.TF2TeleporterMod
2012-08-18 14:14:50 [iNFO] [ForgeModLoader] Forge Mod Loader has identified 3 mods to load
2012-08-18 14:14:50 [FINE] [ForgeModLoader] Received a system property request ''
2012-08-18 14:14:50 [FINE] [ForgeModLoader] System property request managing the state of 0 mods
2012-08-18 14:14:50 [FINE] [ForgeModLoader] After merging, found state information for 0 mods
2012-08-18 14:14:50 [FINE] [ForgeModLoader] Verifying mod requirements are satisfied
2012-08-18 14:14:50 [FINE] [ForgeModLoader] All mod requirements are satisfied
2012-08-18 14:14:50 [FINE] [ForgeModLoader] Sorting mods into an ordered list
2012-08-18 14:14:50 [FINE] [ForgeModLoader] Mod sorting completed successfully
2012-08-18 14:14:50 [FINE] [ForgeModLoader] Mod sorting data:
2012-08-18 14:14:50 [FINE] [ForgeModLoader] 	pitman-87_TF2_Teleporter(TF2_Teleporter): TF2.zip ()
2012-08-18 14:14:50 [FINE] [ForgeModLoader] Activating mod FML
2012-08-18 14:14:50 [FINE] [ForgeModLoader] Activating mod Forge
2012-08-18 14:14:50 [FINE] [ForgeModLoader] Enabling mod pitman-87_TF2_Teleporter
2012-08-18 14:14:50 [FINE] [ForgeModLoader] Activating mod pitman-87_TF2_Teleporter
2012-08-18 14:14:50 [FINER] [ForgeModLoader] Posting state event cpw.mods.fml.common.event.FMLConstructionEvent@140984b to mod FML
2012-08-18 14:14:50 [FINER] [ForgeModLoader] State event cpw.mods.fml.common.event.FMLConstructionEvent@140984b delivered to mod FML
2012-08-18 14:14:50 [FINER] [ForgeModLoader] Posting state event cpw.mods.fml.common.event.FMLConstructionEvent@140984b to mod Forge
2012-08-18 14:14:50 [FINER] [ForgeModLoader] State event cpw.mods.fml.common.event.FMLConstructionEvent@140984b delivered to mod Forge
2012-08-18 14:14:50 [FINER] [ForgeModLoader] Posting state event cpw.mods.fml.common.event.FMLConstructionEvent@140984b to mod pitman-87_TF2_Teleporter
2012-08-18 14:14:50 [iNFO] [sTDERR] 2012-08-18 14:14:50 [iNFO] Starting minecraft server version 1.3.2
2012-08-18 14:14:50 [WARNING] To start the server with more ram, launch it as "java -Xmx1024M -Xms1024M -jar minecraft_server.jar"
java.lang.NoClassDefFoundError: atd
2012-08-18 14:14:50 [iNFO] [sTDERR] 	at java.lang.Class.getDeclaredConstructors0(Native Method)
2012-08-18 14:14:50 [iNFO] [sTDERR] 	at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
2012-08-18 14:14:50 [iNFO] [sTDERR] 	at java.lang.Class.getConstructor0(Unknown Source)
2012-08-18 14:14:50 [iNFO] [sTDERR] 	at java.lang.Class.newInstance0(Unknown Source)
2012-08-18 14:14:50 [iNFO] [sTDERR] 	at java.lang.Class.newInstance(Unknown Source)
2012-08-18 14:14:50 [iNFO] [sTDERR] 	at cpw.mods.fml.common.network.NetworkModHandler.tryCreatingPacketHandler(NetworkModHandler.java:143)
2012-08-18 14:14:50 [iNFO] [sTDERR] 	at cpw.mods.fml.common.network.NetworkModHandler.<init>(NetworkModHandler.java:103)
2012-08-18 14:14:50 [iNFO] [sTDERR] 	at cpw.mods.fml.common.network.FMLNetworkHandler.registerNetworkMod(FMLNetworkHandler.java:217)
2012-08-18 14:14:50 [iNFO] [sTDERR] 	at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:283)
2012-08-18 14:14:50 [iNFO] [sTDERR] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2012-08-18 14:14:50 [iNFO] [sTDERR] 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2012-08-18 14:14:50 [iNFO] [sTDERR] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2012-08-18 14:14:50 [iNFO] [sTDERR] 	at java.lang.reflect.Method.invoke(Unknown Source)
2012-08-18 14:14:50 [iNFO] [sTDERR] 	at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)
2012-08-18 14:14:50 [iNFO] [sTDERR] 	at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
2012-08-18 14:14:50 [iNFO] [sTDERR] 	at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
2012-08-18 14:14:50 [iNFO] [sTDERR] 	at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
2012-08-18 14:14:50 [iNFO] [sTDERR] 	at com.google.common.eventbus.EventBus.post(EventBus.java:268)
2012-08-18 14:14:50 [iNFO] [sTDERR] 	at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:127)
2012-08-18 14:14:50 [iNFO] [sTDERR] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2012-08-18 14:14:50 [iNFO] [sTDERR] 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2012-08-18 14:14:50 [iNFO] [sTDERR] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2012-08-18 14:14:50 [iNFO] [sTDERR] 	at java.lang.reflect.Method.invoke(Unknown Source)
2012-08-18 14:14:50 [iNFO] [sTDERR] 	at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)
2012-08-18 14:14:50 [iNFO] [sTDERR] 	at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
2012-08-18 14:14:50 [iNFO] [sTDERR] 	at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
2012-08-18 14:14:50 [iNFO] [sTDERR] 	at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
2012-08-18 14:14:50 [iNFO] [sTDERR] 	at com.google.common.eventbus.EventBus.post(EventBus.java:268)
2012-08-18 14:14:50 [iNFO] [sTDERR] 	at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:85)
2012-08-18 14:14:50 [iNFO] [sTDERR] 	at cpw.mods.fml.common.Loader.loadMods(Loader.java:420)
2012-08-18 14:14:50 [iNFO] [sTDERR] 	at cpw.mods.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:108)
2012-08-18 14:14:50 [iNFO] [sTDERR] 	at cpw.mods.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:351)
2012-08-18 14:14:50 [iNFO] [sTDERR] 	at ft.b(DedicatedServer.java:49)
2012-08-18 14:14:50 [iNFO] [sTDERR] 	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:415)
2012-08-18 14:14:50 [iNFO] [sTDERR] 	at ep.run(SourceFile:539)
2012-08-18 14:14:50 [iNFO] [sTDERR] Caused by: java.lang.ClassNotFoundException: atd
2012-08-18 14:14:50 [iNFO] [sTDERR] 	at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:99)
2012-08-18 14:14:50 [iNFO] [sTDERR] 	at java.lang.ClassLoader.loadClass(Unknown Source)
2012-08-18 14:14:50 [iNFO] [sTDERR] 	at java.lang.ClassLoader.loadClass(Unknown Source)
2012-08-18 14:14:50 [iNFO] [sTDERR] 	... 35 more
2012-08-18 14:14:50 [iNFO] [sTDERR] Caused by: java.lang.NullPointerException
2012-08-18 14:14:50 [iNFO] [sTDERR] 	at org.objectweb.asm.ClassReader.<init>(Unknown Source)
2012-08-18 14:14:50 [iNFO] [sTDERR] 	at cpw.mods.fml.common.asm.transformers.SideTransformer.transform(SideTransformer.java:28)
2012-08-18 14:14:50 [iNFO] [sTDERR] 	at cpw.mods.fml.relauncher.RelaunchClassLoader.runTransformers(RelaunchClassLoader.java:141)
2012-08-18 14:14:50 [iNFO] [sTDERR] 	at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:92)
2012-08-18 14:14:50 [iNFO] [sTDERR] 	... 37 more
2012-08-18 14:14:50 [iNFO] [sTDERR] 2012-08-18 14:14:50 [sEVERE] Encountered an unexpected exception NoClassDefFoundError
java.lang.NoClassDefFoundError: atd
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
at java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at cpw.mods.fml.common.network.NetworkModHandler.tryCreatingPacketHandler(NetworkModHandler.java:143)
at cpw.mods.fml.common.network.NetworkModHandler.<init>(NetworkModHandler.java:103)
at cpw.mods.fml.common.network.FMLNetworkHandler.registerNetworkMod(FMLNetworkHandler.java:217)
at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:283)
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:127)
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:85)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:420)
at cpw.mods.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:108)
at cpw.mods.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:351)
at ft.b(DedicatedServer.java:49)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:415)
at ep.run(SourceFile:539)
Caused by: java.lang.ClassNotFoundException: atd
at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:99)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 35 more
Caused by: java.lang.NullPointerException
at org.objectweb.asm.ClassReader.<init>(Unknown Source)
at cpw.mods.fml.common.asm.transformers.SideTransformer.transform(SideTransformer.java:28)
at cpw.mods.fml.relauncher.RelaunchClassLoader.runTransformers(RelaunchClassLoader.java:141)
at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:92)
... 37 more
2012-08-18 14:15:11 [iNFO] [sTDERR] 2012-08-18 14:14:50 [sEVERE] This crash report has been saved to: C:\Users\pitman\Desktop\server\.\crash-reports\crash-2012-08-18_14.14.50-server.txt
2012-08-18 14:15:11 [iNFO] Stopping server
2012-08-18 14:15:11 [iNFO] Saving worlds
java.lang.NullPointerException
2012-08-18 14:15:11 [iNFO] [sTDERR] 	at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:323)
2012-08-18 14:15:11 [iNFO] [sTDERR] 	at net.minecraft.server.MinecraftServer.j(MinecraftServer.java:371)
2012-08-18 14:15:11 [iNFO] [sTDERR] 	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:498)
2012-08-18 14:15:11 [iNFO] [sTDERR] 	at ep.run(SourceFile:539)
2012-08-18 14:15:11 [iNFO] [sTDERR] 2012-08-18 14:15:11 [iNFO] Stopping server
Exception in thread "Thread-5" java.lang.NullPointerException
2012-08-18 14:15:11 [iNFO] [sTDERR] 	at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:323)
2012-08-18 14:15:11 [iNFO] [sTDERR] 	at net.minecraft.server.MinecraftServer.j(MinecraftServer.java:371)
2012-08-18 14:15:11 [iNFO] [sTDERR] 	at eo.run(SourceFile:527)

 

 

ServerTickHandler:

 

package TF2.Teleporter.common;

import java.util.EnumSet;


import cpw.mods.fml.common.ITickHandler;
import cpw.mods.fml.common.TickType;

public class ServerTickHandler implements ITickHandler
{
    private final EnumSet<TickType> ticksToGet;
    

    public ServerTickHandler(EnumSet<TickType> ticksToGet)
    {
        this.ticksToGet = ticksToGet;
    }


    @Override
    public void tickStart(EnumSet<TickType> type, Object... tickData)
    {
    	if (TF2TeleporterDBServer.needsUpdate)
	{
    		TF2TeleporterDBServer.writeChunkCoords();
	}
    }

    @Override
    public void tickEnd(EnumSet<TickType> type, Object... tickData)
    {
    }

    @Override
    public EnumSet<TickType> ticks()
    {
        return ticksToGet;
    }

    @Override
    public String getLabel()
    {
        return "TF2TeleporterServerTick";
    }
}

 

 

TF2TeleporterDBServer:

 

 

package TF2.Teleporter.common;

import java.io.*;
import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;

import cpw.mods.fml.common.FMLCommonHandler;

import net.minecraft.server.MinecraftServer;
import net.minecraft.src.ChunkProviderServer;
import net.minecraft.src.IChunkProvider;
import net.minecraft.src.WorldServer;

public class TF2TeleporterDBServer
{
public static Map<WorldServer, Map<Integer, TF2TeleporterFrequency>> frequencies;
public static boolean needsUpdate;

public static void init()
{
	frequencies = new HashMap<WorldServer, Map<Integer, TF2TeleporterFrequency>>();
	readChunkCoords();
}

public static TF2TeleporterFrequency getOrCreateFrequency(WorldServer w, int f)
{
	Map<Integer, TF2TeleporterFrequency> m = null;
	if (frequencies == null)
	{
		init();
	}
	if (!frequencies.containsKey(w))
	{
		frequencies.put(w, new HashMap<Integer, TF2TeleporterFrequency>());
	}
	m = frequencies.get(w);

	if (!m.containsKey(f))
	{
		m.put(f, new TF2TeleporterFrequency(f));
	}
	return m.get(f);
}

public static int[] getLocations(int dim)
{
	int[] temp = new int[200];
	int size = 0;

	if (frequencies == null || frequencies.isEmpty())
	{
		return null;
	}
	Map<Integer, TF2TeleporterFrequency> map = frequencies.get(MinecraftServer.getServer().worldServerForDimension(dim));
	if (map == null || map.isEmpty())
	{
		return null;
	}
	for (Entry<Integer, TF2TeleporterFrequency> entry : map.entrySet())
	{
		TF2TeleporterFrequency tf = entry.getValue();
		if (tf != null)
		{
			if (tf.getTp1() != null)
			{
				temp[size] = entry.getKey();
				temp[size + 1] = tf.getTp1().xCoord;
				temp[size + 2] = tf.getTp1().yCoord;
				temp[size + 3] = tf.getTp1().zCoord;
				size += 4;
			}
			if (tf.getTp2() != null)
			{
				temp[size] = entry.getKey();
				temp[size + 1] = tf.getTp2().xCoord;
				temp[size + 2] = tf.getTp2().yCoord;
				temp[size + 3] = tf.getTp2().zCoord;
				size += 4;
			}
		}

	}

	int[] finalArray = new int[size];
	for (int i = 0; i < size; i++)
	{
		finalArray[i] = temp[i];
	}

	return finalArray;
}

public static void writeChunkCoords()
{
	try
	{

		File file = new File(getPath());
		FileOutputStream fos = new FileOutputStream(file);
		DataOutputStream dos = new DataOutputStream(fos);

		if (!file.exists())
		{
			file.createNewFile();
		}
		if (file.canWrite())
		{
			for (Entry<WorldServer, Map<Integer, TF2TeleporterFrequency>> entry : frequencies.entrySet())
			{
				Map<Integer, TF2TeleporterFrequency> map = entry.getValue();
				if (map == null || map.isEmpty())
				{
					continue;
				}
				for (Entry<Integer, TF2TeleporterFrequency> entry2 : map.entrySet())
				{
					TF2TeleporterFrequency tf = entry2.getValue();

					if (tf != null)
					{
						if (tf.getTp1() != null)
						{
							dos.writeInt(tf.getTp1().xCoord >> 4);
							dos.writeInt(tf.getTp1().zCoord >> 4);
						}
						if (tf.getTp2() != null)
						{
							dos.writeInt(tf.getTp2().xCoord >> 4);
							dos.writeInt(tf.getTp2().zCoord >> 4);
						}
					}
				}
			}

			fos.close();
			dos.close();
		}
	} catch (Exception e)
	{
	}

	needsUpdate = false;

}

public static void readChunkCoords()
{
	try
	{

		File file = new File(getPath());
		FileInputStream fis = new FileInputStream(file);
		DataInputStream dis = new DataInputStream(fis);

		int x;
		int z;

		WorldServer[] worlds = MinecraftServer.getServer().theWorldServer;
		for (int i = 0; i < worlds.length; i++)
		{
			IChunkProvider cp = worlds[i].getChunkProvider();
			((ChunkProviderServer) cp).loadChunkOnProvideRequest = true;

		}

		try
		{
			while (true)
			{
				x = dis.readInt();
				z = dis.readInt();

				for (int i = 0; i < worlds.length; i++)
				{
					if (worlds[i] != null && worlds[i].getChunkFromChunkCoords(x, z) != null && !worlds[i].getChunkFromChunkCoords(x, z).isChunkLoaded)
					{
						worlds[i].getChunkFromChunkCoords(x, z).onChunkLoad();

					}
				}
			}

		} catch (EOFException e)
		{

		}

		for (int i = 0; i < worlds.length; i++)
		{
			IChunkProvider cp = worlds[i].getChunkProvider();
			if (cp instanceof ChunkProviderServer)
			{
				((ChunkProviderServer) cp).loadChunkOnProvideRequest = false;
			}
		}
		fis.close();
		dis.close();

	} catch (Exception e)
	{
		//			e.printStackTrace();
	}

}

private static String getPath()
{

	MinecraftServer ms = FMLCommonHandler.instance().getMinecraftServerInstance();
	String s = (new StringBuilder()).append(ms.getFile(ms.getFolderName())).append("/teleporterLocations").append(".dat").toString();

	if (ms.isSinglePlayer())
	{
		s = (new StringBuilder()).append(ms.getFile("/saves")).append("/").append(ms.getFolderName()).append("/teleporterLocations").append(".dat").toString();
	}
			System.out.println(s);
	return s;
}

public static void convertSaveFile()
{
	String path = getPath().replaceFirst(".dat", "0.dat");
//		System.out.println(path);
	readOld(path);
	path = getPath().replaceFirst(".dat", "-1.dat");
	readOld(path);
}

public static void readOld(String path)
{
	try
	{
		File file = new File(path);
		FileInputStream fis = new FileInputStream(file);
		DataInputStream dis = new DataInputStream(fis);

		int x;
		int z;

		WorldServer[] worlds = MinecraftServer.getServer().theWorldServer;
		for (int i = 0; i < worlds.length; i++)
		{
			IChunkProvider cp = worlds[i].getChunkProvider();
			((ChunkProviderServer) cp).loadChunkOnProvideRequest = true;

		}

		try
		{
			while (true)
			{
				x = dis.readInt();
				z = dis.readInt();

				for (int i = 0; i < worlds.length; i++)
				{
					if (worlds[i] != null && worlds[i].getChunkFromChunkCoords(x, z) != null && !worlds[i].getChunkFromChunkCoords(x, z).isChunkLoaded)
					{
						worlds[i].getChunkFromChunkCoords(x, z).onChunkLoad();

					}
				}
			}

		} catch (EOFException e)
		{

		}

		for (int i = 0; i < worlds.length; i++)
		{
			IChunkProvider cp = worlds[i].getChunkProvider();
			if (cp instanceof ChunkProviderServer)
			{
				((ChunkProviderServer) cp).loadChunkOnProvideRequest = false;
			}
		}
		fis.close();
		dis.close();
		file.delete();

	} catch (Exception e)
	{
		//			e.printStackTrace();
	}

}

}

 

 

My Mod-file:

 

package TF2.Teleporter.common;

import java.util.EnumSet;

import TF2.Teleporter.client.ClientTickHandler;
import TF2.Teleporter.client.ClientPacketHandler;

import net.minecraft.src.Block;
import net.minecraft.src.Item;
import net.minecraft.src.ItemStack;
import net.minecraft.src.MLProp;
import net.minecraftforge.common.MinecraftForge;


import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Side;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.TickType;
import cpw.mods.fml.common.Mod.Init;
import cpw.mods.fml.common.Mod.PostInit;
import cpw.mods.fml.common.Mod.PreInit;
import cpw.mods.fml.common.Mod.ServerStarted;
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.event.FMLServerStartedEvent;
import cpw.mods.fml.common.network.NetworkMod;
import cpw.mods.fml.common.network.NetworkMod.SidedPacketHandler;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.TickRegistry;


/**
* @author pitman-87
* 
*/

@Mod(modid = "pitman-87_TF2_Teleporter", name = "TF2 Teleporter", version = "1.3.2")
@NetworkMod(clientSideRequired = true, serverSideRequired = true, 
clientPacketHandlerSpec = @SidedPacketHandler(channels = { "TF2_Teleporter_C" }, 
packetHandler = ClientPacketHandler.class), 
serverPacketHandlerSpec = @SidedPacketHandler(channels = { "TF2_Teleporter_S" }, 
packetHandler = ServerPacketHandler.class))

public class TF2TeleporterMod
{

@SidedProxy(clientSide = "TF2.Teleporter.client.ClientProxy", serverSide = "TF2.Teleporter.common.CommonProxy")
public static CommonProxy proxy;

@MLProp
public static int blockIDblue = 233;
@MLProp
public static int blockIDred = 234;
@MLProp
public static int itemIDBlue = 2813;
@MLProp
public static int itemIDRed = 2816;
@MLProp
public static int itemIDBase = 2814;
@MLProp
public static int itemIDPropeller = 2815;
@MLProp(info = "the volume of teleporting sound", max = 1.0, min = 0.0, name = "teleportVolume")
public static float teleportVolume = 0.2F;
@MLProp(info = "the volume of spining sound of the teleporter", max = 1.0, min = 0.0, name = "spinVolume")
public static float spinVolume = 0.05F;

public static Block teleporterBlockBlue;
public static Block teleporterBlockRed;

public static Item teleporterItemBlue;
public static Item teleporterItemRed;
public static Item teleporterBase;
public static Item teleporterPropeller;

public static boolean teamsEnabled = false;
public static String itemsPath = "/TF2/Teleporter/sprites/TF2Items.png";

@PreInit
public void preInit(FMLPreInitializationEvent event)
{
	proxy.registerTextures();
}

@Init
public void load(FMLInitializationEvent evt)
{

	TickRegistry.registerTickHandler(new ClientTickHandler(EnumSet.of(TickType.CLIENT)), Side.CLIENT);
	TickRegistry.registerTickHandler(new ServerTickHandler(EnumSet.of(TickType.SERVER)), Side.SERVER);

	teleporterBlockBlue = new BlockTF2TeleporterBlue(blockIDblue).setHardness(0.5F).setResistance(2000F).setStepSound(Block.soundWoodFootstep).setBlockName("TF2 Teleporter");
	teleporterBlockRed = new BlockTF2TeleporterRed(blockIDred).setHardness(0.5F).setResistance(2000F).setStepSound(Block.soundWoodFootstep).setBlockName("TF2 Teleporter");

	teleporterItemBlue = new ItemTF2Teleporter(itemIDBlue).setItemName("TF2 Teleporter");
	teleporterItemRed = new ItemTF2Teleporter(itemIDRed).setItemName("TF2 Teleporter");
	teleporterBase = new ItemTF2TeleporterPiece(itemIDBase).setItemName("Teleporter Base");
	teleporterPropeller = new ItemTF2TeleporterPiece(itemIDPropeller).setItemName("Teleporter Propeller");


	GameRegistry.registerBlock(teleporterBlockBlue);
	GameRegistry.registerBlock(teleporterBlockRed);
	GameRegistry.registerTileEntity(TileEntityTF2Teleporter.class, "TF2 Teleporter");

	proxy.registerRenderThings();

	GameRegistry.addRecipe(new ItemStack(teleporterBase, 1), new Object[]
	{ "X X", "XXX", "X X", Character.valueOf('X'), Item.ingotIron });
	GameRegistry.addRecipe(new ItemStack(teleporterPropeller, 1), new Object[]
	{ "#Y#", "YYY", "XXX", Character.valueOf('X'), Item.ingotIron, Character.valueOf('Y'), Item.redstone, Character.valueOf('#'), Block.torchRedstoneActive });
	GameRegistry.addRecipe(new ItemStack(teleporterItemBlue, 1), new Object[]
	{ "#", "X", "Y", Character.valueOf('X'), teleporterPropeller, Character.valueOf('Y'), teleporterBase, Character.valueOf('#'), new ItemStack(Item.dyePowder, 1, 4) });
	GameRegistry.addRecipe(new ItemStack(teleporterItemRed, 1), new Object[]
	{ "#", "X", "Y", Character.valueOf('X'), teleporterPropeller, Character.valueOf('Y'), teleporterBase, Character.valueOf('#'), new ItemStack(Item.dyePowder, 1, 1) });
	GameRegistry.addRecipe(new ItemStack(teleporterItemRed, 1), new Object[]
	{ "X", "Y", Character.valueOf('Y'), teleporterItemBlue, Character.valueOf('X'), new ItemStack(Item.dyePowder, 1, 1) });
	GameRegistry.addRecipe(new ItemStack(teleporterItemBlue, 1), new Object[]
	{ "X", "Y", Character.valueOf('Y'), teleporterItemRed, Character.valueOf('X'), new ItemStack(Item.dyePowder, 1, 4) });

}

@PostInit
public void modsLoaded(FMLPostInitializationEvent evt)
{

}

@ServerStarted
public void serverStarted(FMLServerStartedEvent event)
{
	TF2TeleporterDBServer.convertSaveFile();
	TF2TeleporterDBServer.needsUpdate = true;
}
}

 

Posted

Sorry for doublepost, but I have removed every clientside connected classes, but still get the error.

 

I assume it have something todo with

 

@NetworkMod(clientSideRequired = true, serverSideRequired = true, 
clientPacketHandlerSpec = @SidedPacketHandler(channels = {"TF2_Teleporter_C"}, packetHandler = ClientPacketHandler.class),
serverPacketHandlerSpec = @SidedPacketHandler(channels = {"TF2_Teleporter_S"}, packetHandler = ServerPacketHandler.class))

 

because "ClientPacketHandler" is the last class I'm using in a common package, but I'm not sure about it.

 

 

Nevermind, notice to myself: Do not put ClientPackageHandler into client-package...

Posted

Can you elaborate on what you did to fix it. I am doing the same thing as you but I don't understand the mistake you made and corrected, but I am still making.

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.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Hello support, I would like to tell you that I recently had troubles with getting into forge in Minecraft. I wanted to play with my friend a modpack in the game in version 1.20.1 when I downloaded it it crashed so we I started deleting some unnecessary mods to maybe lower the pressure if my PC is not good enough to run the modpack. But I went to delete every mod and installed a hole new version of forge with no mods installed or anything with it it still crashed. I found some help on the forms telling to download java 17 and install it on my windows so I did that and still couldn’t play because it crashes  The log files and everything I could find to help this problem is here : https://pastebin.com/9rWpANcW Hope your help arrives quickly
    • I'm testing a modpack for a server, and everything is fine, until I update the Aether mod from version "aether-1.20.1-1.4.2-neoforge" to version "aether-1.20.1-1.5.1-neoforge" now on the server it gives the error: Failed to load datapacks, can't proceed with server load. You can either fix your datapacks or reset to vanilla with --safeMode but in the game it says something different (scroll down) [21Nov2024 15:58:50.673] [main/WARN] [net.minecraft.server.Main/]: Failed to load datapacks, can't proceed with server load. You can either fix your datapacks or reset to vanilla with --safeMode 2002java.util.concurrent.ExecutionException: java.lang.IllegalStateException: Failed to load registries due to above errors 2003at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:396) ~[?:?] 2004at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2073) ~[?:?] 2005at net.minecraft.server.Main.main(Main.java:195) ~[server-1.20.1-20230612.114412-srg.jar%23535!/:?] 2006at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] 2007at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?] 2008at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] 2009at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?] 2010at net.minecraftforge.fml.loading.targets.CommonLaunchHandler.runTarget(CommonLaunchHandler.java:111) ~[fmlloader-1.20.1-47.3.12.jar%2369!/:?] 2011at net.minecraftforge.fml.loading.targets.CommonLaunchHandler.serverService(CommonLaunchHandler.java:103) ~[fmlloader-1.20.1-47.3.12.jar%2369!/:?] 2012at net.minecraftforge.fml.loading.targets.CommonServerLaunchHandler.lambda$makeService$0(CommonServerLaunchHandler.java:27) ~[fmlloader-1.20.1-47.3.12.jar%2369!/:?] 2013at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:30) ~[modlauncher-10.0.9.jar%2355!/:?] 2014at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) ~[modlauncher-10.0.9.jar%2355!/:?] 2015at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) ~[modlauncher-10.0.9.jar%2355!/:?] 2016at cpw.mods.modlauncher.Launcher.run(Launcher.java:108) ~[modlauncher-10.0.9.jar%2355!/:?] 2017at cpw.mods.modlauncher.Launcher.main(Launcher.java:78) ~[modlauncher-10.0.9.jar%2355!/:?] 2018at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) ~[modlauncher-10.0.9.jar%2355!/:?] 2019at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) ~[modlauncher-10.0.9.jar%2355!/:?] 2020at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:141) ~[bootstraplauncher-1.1.2.jar:?] 2021Caused by: java.lang.IllegalStateException: Failed to load registries due to above errors 2022at net.minecraft.resources.RegistryDataLoader.m_247207_(RegistryDataLoader.java:77) ~[server-1.20.1-20230612.114412-srg.jar%23535!/:?] 2023at net.minecraft.server.WorldLoader.m_246152_(WorldLoader.java:54) ~[server-1.20.1-20230612.114412-srg.jar%23535!/:?] 2024at net.minecraft.server.WorldLoader.m_245736_(WorldLoader.java:58) ~[server-1.20.1-20230612.114412-srg.jar%23535!/:?] 2025at net.minecraft.server.WorldLoader.m_214362_(WorldLoader.java:31) ~[server-1.20.1-20230612.114412-srg.jar%23535!/:?] 2026at net.minecraft.server.Main.lambda$main$2(Main.java:167) ~[server-1.20.1-20230612.114412-srg.jar%23535!/:?] 2027at net.minecraft.Util.m_214652_(Util.java:777) ~[server-1.20.1-20230612.114412-srg.jar%23535!/:?] 2028at net.minecraft.Util.m_214679_(Util.java:772) ~[server-1.20.1-20230612.114412-srg.jar%23535!/:?] 2029at net.minecraft.server.Main.main(Main.java:166) ~[server-1.20.1-20230612.114412-srg.jar%23535!/:?] 2030... 15 more   AND THE ERROR THAT THE GAME SAY WENT I WANT TO PLAY IN SOLO (local): Time: 2024-11-21 16:16:37 Description: mouseClicked event handler java.lang.IllegalStateException: Failed to load registries due to above errors     at net.minecraft.resources.RegistryDataLoader.m_247207_(RegistryDataLoader.java:77) ~[client-1.20.1-20230612.114412-srg.jar%23652!/:?] {re:mixin,pl:connector_pre_launch:A,re:classloading,pl:mixin:APP:bclib.mixins.common.json:RegistryDataLoaderMixin from mod bclib,pl:mixin:APP:lithostitched.mixins.json:common.RegistryDataLoaderMixin from mod lithostitched,pl:mixin:APP:zeta.mixins.json:RegistryDataLoaderMixin from mod zeta,pl:mixin:APP:fabric-registry-sync-v0.mixins.json:RegistryLoaderMixin from mod fabric_registry_sync_v0,pl:mixin:APP:together.mixins.common.json:RegistryDataLoaderMixin from mod bclib,pl:mixin:APP:connectormod.mixins.json:registries.RegistryDataLoaderMixin from mod connectormod,pl:mixin:A,pl:connector_pre_launch:A} at net.minecraft.server.WorldLoader.m_246152_(WorldLoader.java:54) ~[client-1.20.1-20230612.114412-srg.jar%23652!/:?] {re:mixin,pl:connector_pre_launch:A,re:classloading,pl:mixin:APP:together.mixins.common.json:WorldLoaderMixin from mod bclib,pl:mixin:A,pl:connector_pre_launch:A}     at net.minecraft.server.WorldLoader.m_245736_(WorldLoader.java:58) ~[client-1.20.1-20230612.114412-srg.jar%23652!/:?] {re:mixin,pl:connector_pre_launch:A,re:classloading,pl:mixin:APP:together.mixins.common.json:WorldLoaderMixin from mod bclib,pl:mixin:A,pl:connector_pre_launch:A}     at net.minecraft.server.WorldLoader.m_214362_(WorldLoader.java:31) ~[client-1.20.1-20230612.114412-srg.jar%23652!/:?] {re:mixin,pl:connector_pre_launch:A,re:classloading,pl:mixin:APP:together.mixins.common.json:WorldLoaderMixin from mod bclib,pl:mixin:A,pl:connector_pre_launch:A}     at net.minecraft.client.gui.screens.worldselection.CreateWorldScreen.m_232896_(CreateWorldScreen.java:125) ~[client-1.20.1-20230612.114412-srg.jar%23652!/:?] {re:mixin,pl:accesstransformer:B,pl:connector_pre_launch:A,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:modernfix-common.mixins.json:perf.dedicated_reload_executor.CreateWorldScreenMixin from mod modernfix,pl:mixin:APP:modernfix-forge.mixins.json:bugfix.extra_experimental_screen.CreateWorldScreenMixin from mod modernfix,pl:mixin:APP:cumulus_menus.mixins.json:client.accessor.CreateWorldScreenAccessor from mod cumulus_menus,pl:mixin:APP:mediumcore.mixins.json:client.CreateWorldScreenMixin from mod mediumcore,pl:mixin:APP:aether.mixins.json:client.CreateWorldScreenMixin from mod aether,pl:mixin:APP:together.mixins.client.json:CreateWorldScreen_Mixin from mod bclib,pl:mixin:APP:fancymenu.mixins.json:client.MixinCreateWorldScreen from mod fancymenu,pl:mixin:A,pl:connector_pre_launch:A,pl:runtimedistcleaner:A}        
    • I just tried installing Forge version 1.21.3, and tried launching it with no mods installed. It loads, and immediately crashes while "loading bootstrap resourses." Does anyone know a fix for this? My Java is up to date, as well as my graphics drivers. Here's a snip right before it crashes: https://imgur.com/a/elLujPj
    • I know this is a forge only place, but just to be clear, my error is in Fabric I was actually super frustrated while trying to fix this, like this mod does work when I play it by launching it in minecraft, but when I was trying to install it onto the server it just kept crashing so I decided to delete every mod I've got but kept the bewitchment mod and the necessary mod it needs to function and I tried to run the server... But it somehow still crashed, and the thing is that I really do want the bewitchment mod to be in the SMP so it'll be SUPER helpful if anyone can figure out on how to fix this: It didn't give me any "crash-reports" so I'll be sending the logs and what the console said: Console: [18:51:46] [main/INFO]: SpongePowered MIXIN Subsystem Version=0.8.5 Source=file:/home/container/libraries/net/fabricmc/sponge-mixin/0.13.3+mixin.0.8.5/sponge-mixin-0.13.3+mixin.0.8.5.jar Service=Knot/Fabric Env=SERVER [18:51:46] [main/WARN]: Error loading class: io/github/apace100/origins/power/PreventItemUsePower (java.lang.ClassNotFoundException: io/github/apace100/origins/power/PreventItemUsePower) [18:51:46] [main/WARN]: @Mixin target io.github.apace100.origins.power.PreventItemUsePower was not found bewitchment.mixins.json:integration.origins.PreventItemUsePowerMixin from mod bewitchment [18:51:47] [main/INFO]: Initializing MixinExtras via com.llamalad7.mixinextras.service.MixinExtrasServiceImpl(version=0.3.5). [18:51:52] [main/FATAL]: Failed to start the minecraft server java.lang.RuntimeException: Could not execute entrypoint stage 'main' due to errors, provided by 'bewitchment'! at net.fabricmc.loader.impl.FabricLoaderImpl.lambda$invokeEntrypoints$2(FabricLoaderImpl.java:388) ~[fabric-loader-0.15.11.jar:?] at net.fabricmc.loader.impl.util.ExceptionUtil.gatherExceptions(ExceptionUtil.java:33) ~[fabric-loader-0.15.11.jar:?] at net.fabricmc.loader.impl.FabricLoaderImpl.invokeEntrypoints(FabricLoaderImpl.java:386) ~[fabric-loader-0.15.11.jar:?] at net.fabricmc.loader.impl.game.minecraft.Hooks.startServer(Hooks.java:63) ~[fabric-loader-0.15.11.jar:?] at net.minecraft.server.Main.main(Main.java:92) [server-intermediary.jar:?] at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:470) [fabric-loader-0.15.11.jar:?] at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74) [fabric-loader-0.15.11.jar:?] at net.fabricmc.loader.impl.launch.knot.KnotServer.main(KnotServer.java:23) [fabric-loader-0.15.11.jar:?] at net.fabricmc.loader.impl.launch.server.FabricServerLauncher.main(FabricServerLauncher.java:69) [fabric-loader-0.15.11.jar:?] at net.fabricmc.installer.ServerLauncher.main(ServerLauncher.java:69) [server.jar:1.0.1] Caused by: java.lang.NoSuchFieldError: TEXTURE at moriyashiine.bewitchment.common.item.SpecterBangleItem.<clinit>(SpecterBangleItem.java:28) ~[bewitchment-1.16.5-18.jar:?] at moriyashiine.bewitchment.common.registry.BWObjects.<clinit>(BWObjects.java:272) ~[bewitchment-1.16.5-18.jar:?] at moriyashiine.bewitchment.common.Bewitchment.onInitialize(Bewitchment.java:221) ~[bewitchment-1.16.5-18.jar:?] at net.fabricmc.loader.impl.FabricLoaderImpl.invokeEntrypoints(FabricLoaderImpl.java:384) ~[fabric-loader-0.15.11.jar:?] ... 7 more Logs: https://mclo.gs/wSsqMfn
    • I know this is a forge only place, but just so you know my error is in Fabric I was actually super frustrated while trying to fix this, like this mod does work when I play it by launching it in minecraft, but when I was trying to install it onto the server it just kept crashing so I decided to delete every mod I've got but kept the bewitchment mod and the necessary mod it needs to function and I tried to run the server... But it somehow still crashed, and the thing is that I really do want the bewitchment mod to be in the SMP so it'll be SUPER helpful if anyone can figure out on how to fix this: It didn't give me any "crash-reports" so I'll be sending the logs and what the console said: Console: [18:51:46] [main/INFO]: SpongePowered MIXIN Subsystem Version=0.8.5 Source=file:/home/container/libraries/net/fabricmc/sponge-mixin/0.13.3+mixin.0.8.5/sponge-mixin-0.13.3+mixin.0.8.5.jar Service=Knot/Fabric Env=SERVER [18:51:46] [main/WARN]: Error loading class: io/github/apace100/origins/power/PreventItemUsePower (java.lang.ClassNotFoundException: io/github/apace100/origins/power/PreventItemUsePower) [18:51:46] [main/WARN]: @Mixin target io.github.apace100.origins.power.PreventItemUsePower was not found bewitchment.mixins.json:integration.origins.PreventItemUsePowerMixin from mod bewitchment [18:51:47] [main/INFO]: Initializing MixinExtras via com.llamalad7.mixinextras.service.MixinExtrasServiceImpl(version=0.3.5). [18:51:52] [main/FATAL]: Failed to start the minecraft server java.lang.RuntimeException: Could not execute entrypoint stage 'main' due to errors, provided by 'bewitchment'! at net.fabricmc.loader.impl.FabricLoaderImpl.lambda$invokeEntrypoints$2(FabricLoaderImpl.java:388) ~[fabric-loader-0.15.11.jar:?] at net.fabricmc.loader.impl.util.ExceptionUtil.gatherExceptions(ExceptionUtil.java:33) ~[fabric-loader-0.15.11.jar:?] at net.fabricmc.loader.impl.FabricLoaderImpl.invokeEntrypoints(FabricLoaderImpl.java:386) ~[fabric-loader-0.15.11.jar:?] at net.fabricmc.loader.impl.game.minecraft.Hooks.startServer(Hooks.java:63) ~[fabric-loader-0.15.11.jar:?] at net.minecraft.server.Main.main(Main.java:92) [server-intermediary.jar:?] at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:470) [fabric-loader-0.15.11.jar:?] at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74) [fabric-loader-0.15.11.jar:?] at net.fabricmc.loader.impl.launch.knot.KnotServer.main(KnotServer.java:23) [fabric-loader-0.15.11.jar:?] at net.fabricmc.loader.impl.launch.server.FabricServerLauncher.main(FabricServerLauncher.java:69) [fabric-loader-0.15.11.jar:?] at net.fabricmc.installer.ServerLauncher.main(ServerLauncher.java:69) [server.jar:1.0.1] Caused by: java.lang.NoSuchFieldError: TEXTURE at moriyashiine.bewitchment.common.item.SpecterBangleItem.<clinit>(SpecterBangleItem.java:28) ~[bewitchment-1.16.5-18.jar:?] at moriyashiine.bewitchment.common.registry.BWObjects.<clinit>(BWObjects.java:272) ~[bewitchment-1.16.5-18.jar:?] at moriyashiine.bewitchment.common.Bewitchment.onInitialize(Bewitchment.java:221) ~[bewitchment-1.16.5-18.jar:?] at net.fabricmc.loader.impl.FabricLoaderImpl.invokeEntrypoints(FabricLoaderImpl.java:384) ~[fabric-loader-0.15.11.jar:?] ... 7 more Logs: https://mclo.gs/wSsqMfn
  • Topics

×
×
  • Create New...

Important Information

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