Jump to content

Server Crash due to entity, not being traced to Entity Class [1.7.2] [SOLVED]


Recommended Posts

Posted

Iam having a problem with an entity earlier and fixed the client crash but the server crashes when ever i load a world. I do noteven know where to start with fixing my problem because it is a server crash only and not being traced to the entityclass please help

---- Minecraft Crash Report ----

// On the bright side, I bought you a teddy bear!

 

Time: 11/27/14 6:36 PM

Description: Exception in server tick loop

 

java.lang.NoClassDefFoundError: net/minecraft/entity/Entity$1

at net.minecraft.entity.Entity.addEntityCrashInfo(Entity.java:2097)

at net.minecraft.entity.Entity.readFromNBT(Entity.java:1444)

at net.minecraft.entity.EntityList.createEntityFromNBT(EntityList.java:172)

at net.minecraft.world.chunk.storage.AnvilChunkLoader.readChunkFromNBT(AnvilChunkLoader.java:387)

at net.minecraft.world.chunk.storage.AnvilChunkLoader.checkedReadChunkFromNBT(AnvilChunkLoader.java:101)

at net.minecraft.world.chunk.storage.AnvilChunkLoader.loadChunk(AnvilChunkLoader.java:84)

at net.minecraft.world.gen.ChunkProviderServer.safeLoadChunk(ChunkProviderServer.java:152)

at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:100)

at net.minecraft.server.MinecraftServer.initialWorldChunkLoad(MinecraftServer.java:257)

at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:78)

at net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:92)

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

at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:669)

 

 

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

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

 

-- System Details --

Details:

Minecraft Version: 1.7.2

Operating System: Windows 8.1 (amd64) version 6.3

Java Version: 1.7.0_72, Oracle Corporation

Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation

Memory: 928914640 bytes (885 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)

JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M

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

IntCache: cache: 15, tcache: 0, allocated: 13, tallocated: 95

FML: MCP v9.03 FML v7.2.165.1063 Minecraft Forge 10.12.1.1063 4 mods loaded, 4 mods active

mcp{9.03} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available

FML{7.2.165.1063} [Forge Mod Loader] (forgeBin-1.7.2-10.12.1.1063.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available

Forge{10.12.1.1063} [Minecraft Forge] (forgeBin-1.7.2-10.12.1.1063.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available

Invention_Craft_Weather{alpha 1.0} [invention_Craft_Weather] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available

Profiler Position: N/A (disabled)

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

Player Count: 0 / 8; []

Type: Integrated Server (map_client.txt)

Is Modded: Definitely; Client brand changed to 'fml,forge'

 

 

entity class

 

package src.IVWeather.entity;

 

import java.util.List;

 

import src.IVWeather.block.BlockFlyingBlock;

import net.minecraft.entity.Entity;

import net.minecraft.entity.item.EntityFallingBlock;

import net.minecraft.init.Blocks;

import net.minecraft.block.*;

import net.minecraft.block.material.Material;

import net.minecraft.nbt.NBTTagCompound;

import net.minecraft.util.AxisAlignedBB;

import net.minecraft.util.MathHelper;

import net.minecraft.world.World;

 

public class EntityFlyingBlock extends Entity {

 

List collidingBondingBloxes;

Material mate;

float density1;

 

public EntityFlyingBlock(World world) {

super(world);

}

 

public EntityFlyingBlock(World world, Block inheritblock, float density, Material mat, int x, int y, int z) {

super(world);

float velocity = (float) (this.motionX + this.motionY + this.motionZ) / 3;

float force = velocity * density;

mate = mat;

setPosition(x, y, z);

density1 = density;

setSize(1, 1);

this.iblock = inheritblock;

}

 

float force;

Block iblock;

 

public void onUpdate() {

super.onUpdate();

 

int onIdle = 0;

float velocity = (float) (this.motionX + this.motionY + this.motionZ) / 3;

force = velocity * density1;

 

if(velocity == 0) {

onIdle++;

}

 

List list = this.getCollidingBlocksWithMoveBlock(this, this.boundingBox);

if(list != null) {

 

for(int k = 0; k < list.size(); k++) {

Block block = (Block) list.get(k);

BlockFlyingBlock g = (BlockFlyingBlock) block;

float hardness = g.getFBlockHardness();

if(velocity > hardness) {

block = new BlockFlyingBlock(block.getMaterial(), block);

}

}

    }

collidingBondingBloxes.clear();

if(onIdle > 40) {

worldObj.setBlock((int) this.posX, (int) this.posY, (int) this.posZ, this.iblock);

setDead();

}

}

 

public float getForce() {

return force;

}

 

 

public List getCollidingBlocksWithMoveBlock(Entity entity, AxisAlignedBB par2AxisAlignedBB) {

// declaring bounding box as int to be used in 'for' statement

int i = MathHelper.floor_double(entity.boundingBox.minX);

    int j = MathHelper.floor_double(entity.boundingBox.maxX + 1.0D);

    int k = MathHelper.floor_double(entity.boundingBox.minY);

    int l = MathHelper.floor_double(entity.boundingBox.maxY + 1.0D);

    int i1 = MathHelper.floor_double(entity.boundingBox.minZ);

    int j1 = MathHelper.floor_double(entity.boundingBox.maxZ + 1.0D);

    // 'for' statement of minX to MaxX

    for (int k1 = i; k1 < j; k1++) {

    //'for' statement of minZ to MaxZ

        for (int l1 = i1; l1 < j1; l1++) {

        // 'for' statement of minY to MaxY

            for (int i2 = k - 1; i2 < l; i2++)

            {

            //declaring block

            Block block;

              if ((k1 >= -30000000) && (k1 < 30000000) && (l1 >= -30000000) && (l1 < 30000000)) {

                // getting all blocks inside bounding Box

              block = worldObj.getBlock(k1, i2, l1);

            // i dont want air blocks included so they will not be added

              if(!worldObj.isAirBlock(k1, i2, l1)){

           

                this.collidingBondingBloxes.add(block);

              }

              } else {

                block =  null;

              }

              block.addCollisionBoxesToList(worldObj, k1, i2, l1, par2AxisAlignedBB, this.collidingBondingBloxes, (Entity) entity);

            }

          }

      }

    return this.collidingBondingBloxes;

}

 

public boolean canBeCollidedWith() {

return true;

 

}

 

 

@Override

protected void readEntityFromNBT(NBTTagCompound arg0) {

super.readFromNBT(arg0);

 

}

 

@Override

protected void writeEntityToNBT(NBTTagCompound arg0) {

 

 

}

 

@Override

protected void entityInit() {

 

 

}

}

 

 

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

    • That seems to have fixed it, thank you!
    • I am having some issues starting an RLCraft server on a minimal install of Debian 12. I have Java installed and I'm able to start the vanilla Minecraft server jar no problem and people can join and play without any issues, as soon as I try to create a new directory with the Forge jar the initial install with the INSTALLER jar works when I use the java command with the --installServer flag, but as soon as I try to start the server using the forge jar that is NOT labelled with installer I get the following error: A problem occurred running the Server launcher.java.lang.reflect.InvocationTargetException         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)         at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)         at java.base/java.lang.reflect.Method.invoke(Method.java:569)         at net.minecraftforge.fml.relauncher.ServerLaunchWrapper.run(ServerLaunchWrapper.java:70)         at net.minecraftforge.fml.relauncher.ServerLaunchWrapper.main(ServerLaunchWrapper.java:34) Caused by: java.lang.ClassCastException: class jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to class java.net.URLClassLoader (jdk.internal.loader.ClassLoaders$AppClassLoader and java.net.URLClassLoader are in module java.base of loader 'bootstrap')         at net.minecraft.launchwrapper.Launch.<init>(Launch.java:34)         at net.minecraft.launchwrapper.Launch.main(Launch.java:28)         ... 6 more   I have tried using newer versions of Java directly from Oracle as well. Has anybody been successful in starting and running a RLCraft server from the terminal on a Linux machine? I cannot figure out why it doesn't want to work but the vanilla jar works without issue. Thank you in advance!
    • This is my latest attempt :  public class ManaScreen extends Screen { Mana mana = new Mana(); boolean removeManaBar = false; ResourceLocation manaBar = ResourceLocation.fromNamespaceAndPath(RSGArmoury.MOD_ID, "/textures/block/spawnable_arena_wall.png"); public ManaScreen() { super(Component.literal("Mana")); } @Override protected void init() { super.init(); Minecraft.getInstance().setScreen(this); } @Override public boolean isPauseScreen() { return false; } @Override public void render(GuiGraphics pGuiGraphics, int pMouseX, int pMouseY, float pPartialTick) { pGuiGraphics.blit(manaBar, 10, -10, 0, 0, mana.getMana(), 10, mana.getMana(), 10); if (removeManaBar) { this.onClose(); return; } super.render(pGuiGraphics, pMouseX, pMouseY, pPartialTick); } public void addManaBar() { removeManaBar = false; Minecraft.getInstance().setScreen(new ManaScreen()); } public boolean removeManaBar() { return removeManaBar = true; } }
    • I tried a few different things that all didnt work. Right now I have nothing but what I had that seemed most likely to work was just a guiOverlay.blit(x, y, z, vx, vy, getMana()). I dont remember the exact code but it was somthing along those lines. It was in a new class extending screen I believe.
  • Topics

×
×
  • Create New...

Important Information

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