Jump to content

[1.12.2] crash while ticking entity/updating task


Recommended Posts

Posted

Hey guys,

I added to my mob the tasks you can see here:

Spoiler

package com.cb.cyborg.entity;

import net.minecraft.entity.SharedMonsterAttributes;
import net.minecraft.entity.ai.EntityAIAttackMelee;
import net.minecraft.entity.ai.EntityAIHurtByTarget;
import net.minecraft.entity.ai.EntityAILookIdle;
import net.minecraft.entity.ai.EntityAINearestAttackableTarget;
import net.minecraft.entity.ai.EntityAISwimming;
import net.minecraft.entity.ai.EntityAIWatchClosest;
import net.minecraft.entity.monster.EntityZombie;
import net.minecraft.entity.passive.EntityVillager;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.world.World;

public class EntityCyborg1 extends EntityZombie
{
    public static String NAME = "cyborg1";
    
    public EntityCyborg1(World worldIn)
    {
        super(worldIn);    
    }
    
    @Override
    protected void initEntityAI()
    {
        this.tasks.addTask(0, new EntityAISwimming(this));
            this.tasks.addTask(1, new EntityAIAttackMelee(this, 1, false));
            this.tasks.addTask(2, new EntityAIHurtByTarget(this, false, new Class[0]));
            this.tasks.addTask(3, new EntityAINearestAttackableTarget(this, EntityVillager.class, true));
        this.tasks.addTask(4, new EntityAIWatchClosest(this, EntityPlayer.class, 6.0F));
        this.tasks.addTask(5, new EntityAILookIdle(this));
    }
    
    @Override
    protected void applyEntityAttributes()
    {
        super.applyEntityAttributes();
        this.getEntityAttribute(SharedMonsterAttributes.MAX_HEALTH).setBaseValue(40.0D);
        this.getEntityAttribute(SharedMonsterAttributes.MOVEMENT_SPEED).setBaseValue(0.25D);
        this.getEntityAttribute(SharedMonsterAttributes.ATTACK_DAMAGE).setBaseValue(5.0D);
        this.isImmuneToFire = true;
    }
    
    @Override
    protected boolean shouldBurnInDay()
    {
        return false;
    }
    
}

I cant figure out how to fix it. I only changed from gm 1 to gm 0, and then forge crashed. Here is the report:

Spoiler

2018-09-08 18:03:10,610 main WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
[18:03:10] [main/INFO]: Extra: []
[18:03:10] [main/INFO]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/User K/.gradle/caches/minecraft/assets, --assetIndex, 1.12, --accessToken{REDACTED}, --version, 1.12.2, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
[18:03:10] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[18:03:10] [main/INFO]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[18:03:10] [main/INFO]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
[18:03:10] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
[18:03:10] [main/INFO]: Forge Mod Loader version 14.23.4.2705 for Minecraft 1.12.2 loading
[18:03:10] [main/INFO]: Java is Java HotSpot(TM) Client VM, version 1.8.0_151, running on Windows 10:x86:10.0, installed at C:\Program Files (x86)\Java\jre1.8.0_151
[18:03:11] [main/ERROR]: Apache Maven library folder was not in the format expected. Using default libraries directory.
[18:03:11] [main/ERROR]: Full: C:\Users\User K\.gradle\caches\modules-2\files-2.1\org.apache.maven\maven-artifact\3.5.3\7dc72b6d6d8a6dced3d294ed54c2cc3515ade9f4\maven-artifact-3.5.3.jar
[18:03:11] [main/ERROR]: Trimmed: c:/users/User k/.gradle/caches/modules-2/files-2.1/org.apache.maven/maven-artifact/3.5.3/
[18:03:11] [main/INFO]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[18:03:11] [main/INFO]: Ignoring missing certificate for coremod FMLCorePlugin (net.minecraftforge.fml.relauncher.FMLCorePlugin), we are in deobf and it's a forge core plugin
[18:03:11] [main/INFO]: Ignoring missing certificate for coremod FMLForgePlugin (net.minecraftforge.classloading.FMLForgePlugin), we are in deobf and it's a forge core plugin
[18:03:11] [main/INFO]: Searching C:\Users\User K\Desktop\Mod_Workspaces\1.12\Cyborg\run\.\mods for mods
[18:03:11] [main/INFO]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
[18:03:11] [main/INFO]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin
[18:03:11] [main/INFO]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
[18:03:11] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[18:03:11] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[18:03:11] [main/INFO]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[18:03:11] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[18:03:11] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[18:03:11] [main/INFO]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
2018-09-08 18:03:11,796 main WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
2018-09-08 18:03:12,251 main WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
[18:03:14] [main/ERROR]: FML appears to be missing any signature data. This is not a good thing
[18:03:14] [main/INFO]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[18:03:14] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[18:03:14] [main/INFO]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[18:03:14] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
[18:03:14] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
[18:03:15] [main/INFO]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[18:03:16] [main/INFO]: Setting user: Player612
[18:03:21] [main/WARN]: Skipping bad option: lastServer:
[18:03:21] [main/INFO]: LWJGL Version: 2.9.4
[18:03:22] [main/INFO]: -- System Details --
Details:
    Minecraft Version: 1.12.2
    Operating System: Windows 10 (x86) version 10.0
    Java Version: 1.8.0_151, Oracle Corporation
    Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
    Memory: 878945184 bytes (838 MB) / 1046937600 bytes (998 MB) up to 1046937600 bytes (998 MB)
    JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
    IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    FML:
    Loaded coremods (and transformers):
    GL info: ' Vendor: 'Intel' Version: '4.3.0 - Build 20.19.15.4835' Renderer: 'Intel(R) HD Graphics 4400'
[18:03:22] [main/INFO]: MinecraftForge v14.23.4.2705 Initialized
[18:03:22] [main/INFO]: Starts to replace vanilla recipe ingredients with ore ingredients.
[18:03:22] [main/INFO]: Replaced 1036 ore ingredients
[18:03:23] [main/INFO]: Searching C:\Users\User K\Desktop\Mod_Workspaces\1.12\Cyborg\run\.\mods for mods
[18:03:24] [main/INFO]: Forge Mod Loader has identified 5 mods to load
[18:03:25] [main/INFO]: Attempting connection with missing mods [minecraft, mcp, FML, forge, cb] at CLIENT
[18:03:25] [main/INFO]: Attempting connection with missing mods [minecraft, mcp, FML, forge, cb] at SERVER
[18:03:25] [Thread-3/INFO]: Using sync timing. 200 frames of Display.update took 197528929 nanos
[18:03:26] [main/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Cyborg
[18:03:26] [main/INFO]: Processing ObjectHolder annotations
[18:03:26] [main/INFO]: Found 1168 ObjectHolder annotations
[18:03:26] [main/INFO]: Identifying ItemStackHolder annotations
[18:03:26] [main/INFO]: Found 0 ItemStackHolder annotations
[18:03:26] [main/INFO]: Configured a dormant chunk cache size of 0
[18:03:26] [Forge Version Check/INFO]: [forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
[18:03:26] [main/INFO]: Applying holder lookups
[18:03:26] [main/INFO]: Holder lookups applied
[18:03:26] [main/INFO]: Applying holder lookups
[18:03:26] [main/INFO]: Holder lookups applied
[18:03:26] [main/INFO]: Applying holder lookups
[18:03:26] [main/INFO]: Holder lookups applied
[18:03:26] [main/INFO]: Applying holder lookups
[18:03:26] [main/INFO]: Holder lookups applied
[18:03:26] [main/INFO]: Injecting itemstacks
[18:03:26] [main/INFO]: Itemstack injection complete
[18:03:26] [Forge Version Check/INFO]: [forge] Found status: UP_TO_DATE Target: null
[18:03:31] [Sound Library Loader/INFO]: Starting up SoundSystem...
[18:03:31] [Thread-5/INFO]: Initializing LWJGL OpenAL
[18:03:31] [Thread-5/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[18:03:31] [Thread-5/INFO]: OpenAL initialized.
[18:03:31] [Sound Library Loader/INFO]: Sound engine started
[18:03:38] [main/INFO]: Max texture size: 8192
[18:03:39] [main/INFO]: Created: 512x512 textures-atlas
[18:03:42] [main/INFO]: Applying holder lookups
[18:03:42] [main/INFO]: Holder lookups applied
[18:03:42] [main/INFO]: Injecting itemstacks
[18:03:42] [main/INFO]: Itemstack injection complete
[18:03:42] [main/INFO]: Forge Mod Loader has successfully loaded 5 mods
[18:03:42] [main/WARN]: Skipping bad option: lastServer:
[18:03:42] [main/INFO]: Narrator library for x86 successfully loaded
[18:03:44] [Realms Notification Availability checker #1/INFO]: Could not authorize you against Realms server: Invalid session id
[18:03:46] [Server thread/INFO]: Starting integrated minecraft server version 1.12.2
[18:03:46] [Server thread/INFO]: Generating keypair
[18:03:46] [Server thread/INFO]: Injecting existing registry data into this server instance
[18:03:47] [Server thread/INFO]: Applying holder lookups
[18:03:47] [Server thread/INFO]: Holder lookups applied
[18:03:47] [Server thread/INFO]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@169217c)
[18:03:48] [Server thread/INFO]: Loaded 488 advancements
[18:03:48] [Server thread/INFO]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@169217c)
[18:03:48] [Server thread/INFO]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@169217c)
[18:03:48] [Server thread/INFO]: Preparing start region for level 0
[18:03:49] [Server thread/INFO]: Preparing spawn area: 0%
[18:03:50] [Server thread/INFO]: Preparing spawn area: 28%
[18:03:51] [Server thread/WARN]: Keeping entity minecraft:chicken that already exists with UUID 1351cbfe-a405-4fdf-a71c-8a62f25d34d3
[18:03:51] [Server thread/INFO]: Preparing spawn area: 53%
[18:03:52] [Server thread/INFO]: Preparing spawn area: 91%
[18:03:53] [Server thread/INFO]: Unloading dimension -1
[18:03:53] [Server thread/INFO]: Unloading dimension 1
[18:03:53] [Server thread/INFO]: Changing view distance to 8, from 10
[18:03:55] [Netty Local Client IO #0/INFO]: Server protocol version 2
[18:03:55] [Netty Server IO #1/INFO]: Client protocol version 2
[18:03:55] [Netty Server IO #1/INFO]: Client attempting to join with 5 mods : [email protected],[email protected],[email protected],[email protected],[email protected]
[18:03:55] [Netty Local Client IO #0/INFO]: [Netty Local Client IO #0] Client side modded connection established
[18:03:55] [Server thread/INFO]: [Server thread] Server side modded connection established
[18:03:55] [Server thread/INFO]: Player612[local:E:115716d4] logged in with entity id 381 at (-263.9039603279775, 64.0, 236.11638780865783)
[18:03:55] [Server thread/INFO]: Player612 joined the game
[18:03:56] [Server thread/INFO]: Saving and pausing game...
[18:03:56] [Server thread/INFO]: Saving chunks for level 'New World'/overworld
[18:03:57] [pool-2-thread-1/WARN]: Couldn't look up profile properties for com.mojang.authlib.GameProfile@15ba78f[id=a349eb7d-8b74-32da-bb8d-6a1fb49c3d85,name=Player612,properties={},legacy=false]
com.mojang.authlib.exceptions.AuthenticationException: The client has sent too many requests within a certain amount of time
    at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.makeRequest(YggdrasilAuthenticationService.java:79) ~[YggdrasilAuthenticationService.class:?]
    at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillGameProfile(YggdrasilMinecraftSessionService.java:180) [YggdrasilMinecraftSessionService.class:?]
    at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:60) [YggdrasilMinecraftSessionService$1.class:?]
    at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:57) [YggdrasilMinecraftSessionService$1.class:?]
    at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3716) [guava-21.0.jar:?]
    at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2424) [guava-21.0.jar:?]
    at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2298) [guava-21.0.jar:?]
    at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2211) [guava-21.0.jar:?]
    at com.google.common.cache.LocalCache.get(LocalCache.java:4154) [guava-21.0.jar:?]
    at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4158) [guava-21.0.jar:?]
    at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:5147) [guava-21.0.jar:?]
    at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:5153) [guava-21.0.jar:?]
    at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillProfileProperties(YggdrasilMinecraftSessionService.java:170) [YggdrasilMinecraftSessionService.class:?]
    at net.minecraft.client.Minecraft.getProfileProperties(Minecraft.java:2997) [Minecraft.class:?]
    at net.minecraft.client.resources.SkinManager$3.run(SourceFile:110) [SkinManager$3.class:?]
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_151]
    at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_151]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_151]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_151]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_151]
[18:03:57] [main/INFO]: Loaded 9 advancements
[18:03:58] [Server thread/INFO]: Saving and pausing game...
[18:03:58] [Server thread/INFO]: Saving chunks for level 'New World'/overworld
[18:03:59] [Server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 3872ms behind, skipping 77 tick(s)
[18:04:12] [main/INFO]: [CHAT] /gamemode, /gamerule, /give
[18:04:12] [Server thread/INFO]: [Player612: Set own game mode to Survival Mode]
[18:04:12] [main/INFO]: [CHAT] Your game mode has been updated to Survival Mode
[18:04:12] [Server thread/ERROR]: Encountered an unexpected exception
net.minecraft.util.ReportedException: Ticking entity
    at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:773) ~[MinecraftServer.class:?]
    at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:668) ~[MinecraftServer.class:?]
    at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:185) ~[IntegratedServer.class:?]
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526) [MinecraftServer.class:?]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_151]
Caused by: java.lang.NullPointerException
    at net.minecraft.entity.ai.EntityLookHelper.setLookPositionWithEntity(SourceFile:19) ~[EntityLookHelper.class:?]
    at net.minecraft.entity.ai.EntityAIAttackMelee.updateTask(EntityAIAttackMelee.java:123) ~[EntityAIAttackMelee.class:?]
    at net.minecraft.entity.ai.EntityAITasks.onUpdateTasks(SourceFile:129) ~[EntityAITasks.class:?]
    at net.minecraft.entity.EntityLiving.updateEntityActionState(EntityLiving.java:763) ~[EntityLiving.class:?]
    at net.minecraft.entity.EntityLivingBase.onLivingUpdate(EntityLivingBase.java:2350) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.EntityLiving.onLivingUpdate(EntityLiving.java:577) ~[EntityLiving.class:?]
    at net.minecraft.entity.monster.EntityMob.onLivingUpdate(EntityMob.java:45) ~[EntityMob.class:?]
    at net.minecraft.entity.monster.EntityZombie.onLivingUpdate(EntityZombie.java:223) ~[EntityZombie.class:?]
    at net.minecraft.entity.EntityLivingBase.onUpdate(EntityLivingBase.java:2170) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.EntityLiving.onUpdate(EntityLiving.java:295) ~[EntityLiving.class:?]
    at net.minecraft.entity.monster.EntityMob.onUpdate(EntityMob.java:50) ~[EntityMob.class:?]
    at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:1990) ~[World.class:?]
    at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:832) ~[WorldServer.class:?]
    at net.minecraft.world.World.updateEntity(World.java:1952) ~[World.class:?]
    at net.minecraft.world.World.updateEntities(World.java:1756) ~[World.class:?]
    at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:613) ~[WorldServer.class:?]
    at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:767) ~[MinecraftServer.class:?]
    ... 4 more
[18:04:12] [Server thread/ERROR]: This crash report has been saved to: C:\Users\User K\Desktop\Mod_Workspaces\1.12\Cyborg\run\.\crash-reports\crash-2018-09-08_18.04.12-server.txt
[18:04:12] [Server thread/INFO]: Stopping server
[18:04:12] [Server thread/INFO]: Saving players
[18:04:12] [main/INFO]: [net.minecraft.init.Bootstrap:printToSYSOUT:553]: ---- Minecraft Crash Report ----
// Everything's going to plan. No, really, that was supposed to happen.

Time: 9/8/18 6:04 PM
Description: Ticking entity

java.lang.NullPointerException: Ticking entity
    at net.minecraft.entity.ai.EntityLookHelper.setLookPositionWithEntity(SourceFile:19)
    at net.minecraft.entity.ai.EntityAIAttackMelee.updateTask(EntityAIAttackMelee.java:123)
    at net.minecraft.entity.ai.EntityAITasks.onUpdateTasks(SourceFile:129)
    at net.minecraft.entity.EntityLiving.updateEntityActionState(EntityLiving.java:763)
    at net.minecraft.entity.EntityLivingBase.onLivingUpdate(EntityLivingBase.java:2350)
    at net.minecraft.entity.EntityLiving.onLivingUpdate(EntityLiving.java:577)
    at net.minecraft.entity.monster.EntityMob.onLivingUpdate(EntityMob.java:45)
    at net.minecraft.entity.monster.EntityZombie.onLivingUpdate(EntityZombie.java:223)
    at net.minecraft.entity.EntityLivingBase.onUpdate(EntityLivingBase.java:2170)
    at net.minecraft.entity.EntityLiving.onUpdate(EntityLiving.java:295)
    at net.minecraft.entity.monster.EntityMob.onUpdate(EntityMob.java:50)
    at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:1990)
    at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:832)
    at net.minecraft.world.World.updateEntity(World.java:1952)
    at net.minecraft.world.World.updateEntities(World.java:1756)
    at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:613)
    at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:767)
    at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:668)
    at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:185)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526)
    at java.lang.Thread.run(Unknown Source)


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

-- Head --
Thread: Client thread
Stacktrace:
    at net.minecraft.entity.ai.EntityLookHelper.setLookPositionWithEntity(SourceFile:19)
    at net.minecraft.entity.ai.EntityAIAttackMelee.updateTask(EntityAIAttackMelee.java:123)
    at net.minecraft.entity.ai.EntityAITasks.onUpdateTasks(SourceFile:129)
    at net.minecraft.entity.EntityLiving.updateEntityActionState(EntityLiving.java:763)
    at net.minecraft.entity.EntityLivingBase.onLivingUpdate(EntityLivingBase.java:2350)
    at net.minecraft.entity.EntityLiving.onLivingUpdate(EntityLiving.java:577)
    at net.minecraft.entity.monster.EntityMob.onLivingUpdate(EntityMob.java:45)
    at net.minecraft.entity.monster.EntityZombie.onLivingUpdate(EntityZombie.java:223)
    at net.minecraft.entity.EntityLivingBase.onUpdate(EntityLivingBase.java:2170)
    at net.minecraft.entity.EntityLiving.onUpdate(EntityLiving.java:295)
    at net.minecraft.entity.monster.EntityMob.onUpdate(EntityMob.java:50)
    at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:1990)
    at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:832)
    at net.minecraft.world.World.updateEntity(World.java:1952)

-- Entity being ticked --
Details:
    Entity Type: cb:cyborg1 (com.cb.cyborg.entity.EntityCyborg1)
    Entity ID: 210
    Entity Name: Cyborg1
    Entity's Exact location: -268.70, 64.00, 231.84
    Entity's Block location: World: (-269,64,231), Chunk: (at 3,4,7 in -17,14; contains blocks -272,0,224 to -257,255,239), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
    Entity's Momentum: 0.00, -0.08, 0.00
    Entity's Passengers: []
    Entity's Vehicle: ~~ERROR~~ NullPointerException: null
Stacktrace:
    at net.minecraft.world.World.updateEntities(World.java:1756)
    at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:613)

-- Affected level --
Details:
    Level name: New World
    All players: 1 total; [EntityPlayerMP['Player612'/381, l='New World', x=-266.42, y=64.00, z=233.97]]
    Chunk stats: ServerChunkCache: 305 Drop: 0
    Level seed: -7783602713138113706
    Level generator: ID 00 - default, ver 1. Features enabled: true
    Level generator options:
    Level spawn location: World: (-256,64,248), Chunk: (at 0,4,8 in -16,15; contains blocks -256,0,240 to -241,255,255), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
    Level time: 128387 game time, 52392 day time
    Level dimension: 0
    Level storage version: 0x04ABD - Anvil
    Level weather: Rain time: 44358 (now: false), thunder time: 3939 (now: true)
    Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true
Stacktrace:
    at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:767)
    at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:668)
    at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:185)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526)
    at java.lang.Thread.run(Unknown Source)

-- System Details --
Details:
    Minecraft Version: 1.12.2
    Operating System: Windows 10 (x86) version 10.0
    Java Version: 1.8.0_151, Oracle Corporation
    Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
    Memory: 628374352 bytes (599 MB) / 1046937600 bytes (998 MB) up to 1046937600 bytes (998 MB)
    JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
    IntCache: cache: 0, tcache: 0, allocated: 13, tallocated: 95
    FML: MCP 9.42 Powered by Forge 14.23.4.2705 5 mods loaded, 5 mods active
    States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored

    | State     | ID        | Version      | Source                           | Signature |
    |:--------- |:--------- |:------------ |:-------------------------------- |:--------- |
    | UCHIJAAAA | minecraft | 1.12.2       | minecraft.jar                    | None      |
    | UCHIJAAAA | mcp       | 9.42         | minecraft.jar                    | None      |
    | UCHIJAAAA | FML       | 8.0.99.99    | forgeBin-1.12.2-14.23.4.2705.jar | None      |
    | UCHIJAAAA | forge     | 14.23.4.2705 | forgeBin-1.12.2-14.23.4.2705.jar | None      |
    | UCHIJAAAA | cb        | 1.0          | bin                              | None      |

    Loaded coremods (and transformers):
    GL info: ~~ERROR~~ RuntimeException: No OpenGL context found in the current thread.
    Profiler Position: N/A (disabled)
    Player Count: 1 / 8; [EntityPlayerMP['Player612'/381, l='New World', x=-266.42, y=64.00, z=233.97]]
    Type: Integrated Server (map_client.txt)
    Is Modded: Definitely; Client brand changed to 'fml,forge'
[18:04:12] [main/INFO]: [net.minecraft.init.Bootstrap:printToSYSOUT:553]: #@!@# Game crashed! Crash report saved to: #@!@# .\crash-reports\crash-2018-09-08_18.04.12-server.txt
[18:04:12] [main/INFO]: Waiting for the server to terminate/save.
[18:04:12] [Server thread/INFO]: Saving worlds
[18:04:12] [Server thread/INFO]: Saving chunks for level 'New World'/overworld
[18:04:13] [Server thread/INFO]: Unloading dimension 0
[18:04:13] [Server thread/INFO]: Applying holder lookups
[18:04:13] [Server thread/INFO]: Holder lookups applied
[18:04:13] [Server thread/INFO]: The state engine was in incorrect state SERVER_STOPPING and forced into state SERVER_STOPPED. Errors may have been discarded.
[18:04:13] [main/INFO]: Server terminated.
[18:04:13] [Client Shutdown Thread/INFO]: Stopping server
AL lib: (EE) alc_cleanup: 1 device not closed
Java HotSpot(TM) Client VM warning: Using incremental CMS is deprecated and will likely be removed in a future release

 

Could anybody help me please?

DeBugger

Posted
27 minutes ago, DeBugger said:

NullPointerException

Something is null.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted

Thank you. I think I know what the failure was. I used an integer for an float variable. Dont no why, but the NullPointerException is no longer appearing.

Sorry I know that the following isnt that what the topic is called but I dont want to spam topics. How can I let my mob turning villagers on death to my mob? I think I have to override the default vanilla method, but I dont know how it is called. I couldnt find a method or attribute named like "TurnOnDeath" or something like that (I know it would be to easy). Does you or anybody else have an idea or advice?

Posted

Sorry, where do I have to see "onKillEntity"? I dont have decompiled the sourcecode. Could you give me an advice where I can see the code or give me an example? Sorry.

Posted
7 minutes ago, DeBugger said:

I dont have decompiled the sourcecode

Why? You should have the decompiled source code. It is pretty much necessary for learning modding. How did you setup your workspace?

Posted

I did it with setupDevWorkspace. The reason is that it seems like my computer on which I have my workspace doesnt have enough RAM to decompile. This problem should be fixed in a few days (hopely). Sorry for that.

Posted

How much RAM is in your machine?

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

Spoiler

Logs (Most issues require logs to diagnose):

Spoiler

Please post logs using one of the following sites (Thank you Lumber Wizard for the list):

https://gist.github.com/100MB Requires member (Free)

https://pastebin.com/: 512KB as guest, 10MB as Pro ($$$)

https://hastebin.com/: 400KB

Do NOT use sites like Mediafire, Dropbox, OneDrive, Google Drive, or a site that has a countdown before offering downloads.

 

What to provide:

...for Crashes and Runtime issues:

Minecraft 1.14.4 and newer:

Post debug.log

Older versions:

Please update...

 

...for Installer Issues:

Post your installer log, found in the same place you ran the installer

This log will be called either installer.log or named the same as the installer but with .log on the end

Note for Windows users:

Windows hides file extensions by default so the installer may appear without the .jar extension then when the .log is added the log will appear with the .jar extension

 

Where to get it:

Mojang Launcher: When using the Mojang launcher debug.log is found in .minecraft\logs.

 

Curse/Overwolf: If you are using the Curse Launcher, their configurations break Forge's log settings, fortunately there is an easier workaround than I originally thought, this works even with Curse's installation of the Minecraft launcher as long as it is not launched THROUGH Twitch:

Spoiler
  1. Make sure you have the correct version of Forge installed (some packs are heavily dependent on one specific build of Forge)
  2. Make a launcher profile targeting this version of Forge.
  3. Set the launcher profile's GameDir property to the pack's instance folder (not the instances folder, the folder that has the pack's name on it).
  4. Now launch the pack through that profile and follow the "Mojang Launcher" instructions above.

Video:

Spoiler

 

 

 

or alternately, 

 

Fallback ("No logs are generated"):

If you don't see logs generated in the usual place, provide the launcher_log.txt from .minecraft

 

Server Not Starting:

Spoiler

If your server does not start or a command window appears and immediately goes away, run the jar manually and provide the output.

 

Reporting Illegal/Inappropriate Adfocus Ads:

Spoiler

Get a screenshot of the URL bar or copy/paste the whole URL into a thread on the General Discussion board with a description of the Ad.

Lex will need the Ad ID contained in that URL to report it to Adfocus' support team.

 

Posting your mod as a GitHub Repo:

Spoiler

When you have an issue with your mod the most helpful thing you can do when asking for help is to provide your code to those helping you. The most convenient way to do this is via GitHub or another source control hub.

When setting up a GitHub Repo it might seem easy to just upload everything, however this method has the potential for mistakes that could lead to trouble later on, it is recommended to use a Git client or to get comfortable with the Git command line. The following instructions will use the Git Command Line and as such they assume you already have it installed and that you have created a repository.

 

  1. Open a command prompt (CMD, Powershell, Terminal, etc).
  2. Navigate to the folder you extracted Forge’s MDK to (the one that had all the licenses in).
  3. Run the following commands:
    1. git init
    2. git remote add origin [Your Repository's URL]
      • In the case of GitHub it should look like: https://GitHub.com/[Your Username]/[Repo Name].git
    3. git fetch
    4. git checkout --track origin/master
    5. git stage *
    6. git commit -m "[Your commit message]"
    7. git push
  4. Navigate to GitHub and you should now see most of the files.
    • note that it is intentional that some are not synced with GitHub and this is done with the (hidden) .gitignore file that Forge’s MDK has provided (hence the strictness on which folder git init is run from)
  5. Now you can share your GitHub link with those who you are asking for help.

[Workaround line, please ignore]

 

Posted (edited)

Hey guys,

is there a way to upgrade my DevWorkspace to DecompWorkspace without lost of my classes?

DeBugger

 

PS: Are Im allowed to use  the onKillEntity-code of the Zombie class? I would like to change from ZombieVillager to Cyborg (my mob). I have no idea how to let my mob create more Cyborgs without using the onKillEntity-method. Is that against the EULA of Mojang?  

Edited by DeBugger
Posted

Do I issue the EULA of Mojang if I override the onKillEntity method by using the same Code? I only would Change the variables and the used Mobs. I also would add a few lines of own Code. Could anybody help me?

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



×
×
  • Create New...

Important Information

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