Создал моба - краш

397
8
33
Создавал как тут. Но вылезла ошибка:
Код:
---- Minecraft Crash Report ----
// I blame Dinnerbone.

Time: 02.04.15 18:46
Description: There was a severe problem during mod loading that has caused the game to fail

cpw.mods.fml.common.LoaderException: java.lang.ClassNotFoundException: assets.gothicmod.src.ClientProxy
    at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:75)
    at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:524)
    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:74)
    at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
    at com.google.common.eventbus.EventBus.post(EventBus.java:267)
    at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:201)
    at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:181)
    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:74)
    at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
    at com.google.common.eventbus.EventBus.post(EventBus.java:267)
    at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:112)
    at cpw.mods.fml.common.Loader.loadMods(Loader.java:511)
    at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:183)
    at net.minecraft.client.Minecraft.startGame(Minecraft.java:473)
    at net.minecraft.client.Minecraft.run(Minecraft.java:808)
    at net.minecraft.client.main.Main.main(Main.java:93)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:27)
Caused by: java.lang.ClassNotFoundException: assets.gothicmod.src.ClientProxy
    at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:186)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at cpw.mods.fml.common.ModClassLoader.loadClass(ModClassLoader.java:61)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:58)
    ... 33 more
Caused by: java.lang.NullPointerException
    at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:178)
    ... 39 more


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

-- System Details --
Details:
    Minecraft Version: 1.6.4
    Operating System: Windows 8.1 (amd64) version 6.3
    Java Version: 1.7.0_67, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 947830376 bytes (903 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB)
    JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
    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 v8.11 FML v6.4.49.965 Minecraft Forge 9.11.1.965 4 mods loaded, 4 mods active
    mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed
    FML{6.4.49.965} [Forge Mod Loader] (bin) Unloaded->Constructed
    Forge{9.11.1.965} [Minecraft Forge] (bin) Unloaded->Constructed
    gothicmod{1.01} [GothicMod Minecraft] (bin) Unloaded->Errored
В чем дело?
 
Оп, точно, нашел ошибку. Исправил, теперь краш при вызове моба
Код:
---- Minecraft Crash Report ----
// Oh - I know what I did wrong!

Time: 02.04.15 18:55
Description: Exception in world tick

java.lang.NullPointerException
    at net.minecraft.client.multiplayer.NetClientHandler.handleMobSpawn(NetClientHandler.java:956)
    at net.minecraft.network.packet.Packet24MobSpawn.processPacket(Packet24MobSpawn.java:143)
    at net.minecraft.network.MemoryConnection.processReadPackets(MemoryConnection.java:89)
    at net.minecraft.client.multiplayer.NetClientHandler.processReadPackets(NetClientHandler.java:281)
    at net.minecraft.client.multiplayer.WorldClient.tick(WorldClient.java:99)
    at net.minecraft.client.Minecraft.runTick(Minecraft.java:1930)
    at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:910)
    at net.minecraft.client.Minecraft.run(Minecraft.java:838)
    at net.minecraft.client.main.Main.main(Main.java:93)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:27)


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

-- Head --
Stacktrace:
    at net.minecraft.client.multiplayer.NetClientHandler.handleMobSpawn(NetClientHandler.java:956)
    at net.minecraft.network.packet.Packet24MobSpawn.processPacket(Packet24MobSpawn.java:143)
    at net.minecraft.network.MemoryConnection.processReadPackets(MemoryConnection.java:89)
    at net.minecraft.client.multiplayer.NetClientHandler.processReadPackets(NetClientHandler.java:281)

-- Affected level --
Details:
    Level name: MpServer
    All players: 1 total; [EntityClientPlayerMP['Player609'/228, l='MpServer', x=148,21, y=64,62, z=275,54]]
    Chunk stats: MultiplayerChunkCache: 441
    Level seed: 0
    Level generator: ID 00 - default, ver 1. Features enabled: false
    Level generator options: 
    Level spawn location: World: (152,64,256), Chunk: (at 8,4,0 in 9,16; contains blocks 144,0,256 to 159,255,271), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
    Level time: 44624 game time, 31012 day time
    Level dimension: 0
    Level storage version: 0x00000 - Unknown?
    Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
    Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false
    Forced entities: 38 total; [EntitySquid['Спрут'/137, l='MpServer', x=203,94, y=55,28, z=321,09], EntityBat['Летучая мышь'/68, l='MpServer', x=121,47, y=58,10, z=320,75], EntityBat['Летучая мышь'/69, l='MpServer', x=113,84, y=56,03, z=330,24], EntityBat['Летучая мышь'/136, l='MpServer', x=197,61, y=23,00, z=322,46], EntitySheep['Овца'/70, l='MpServer', x=112,88, y=68,00, z=328,94], EntityChicken['Курица'/71, l='MpServer', x=126,44, y=67,00, z=349,44], EntityCow['Корова'/64, l='MpServer', x=125,50, y=79,00, z=254,50], EntityCow['Корова'/65, l='MpServer', x=123,47, y=75,00, z=259,53], EntitySheep['Овца'/66, l='MpServer', x=118,66, y=70,00, z=302,50], EntityBat['Летучая мышь'/67, l='MpServer', x=127,40, y=49,17, z=331,04], EntitySheep['Овца'/81, l='MpServer', x=138,66, y=71,00, z=326,47], EntityCow['Корова'/80, l='MpServer', x=122,47, y=73,00, z=241,99], EntityBat['Летучая мышь'/93, l='MpServer', x=140,23, y=38,43, z=223,19], EntitySquid['Спрут'/145, l='MpServer', x=211,91, y=55,16, z=322,53], EntityBat['Летучая мышь'/92, l='MpServer', x=154,25, y=42,10, z=229,75], EntityCow['Корова'/95, l='MpServer', x=153,47, y=67,00, z=301,53], EntitySquid['Спрут'/147, l='MpServer', x=209,03, y=57,38, z=338,72], EntityCow['Корова'/94, l='MpServer', x=158,50, y=71,00, z=300,50], EntityCow['Корова'/89, l='MpServer', x=145,50, y=86,00, z=197,50], EntitySquid['Спрут'/148, l='MpServer', x=203,50, y=56,34, z=338,91], EntityCow['Корова'/88, l='MpServer', x=145,50, y=83,00, z=199,50], EntityCow['Корова'/91, l='MpServer', x=146,50, y=81,00, z=198,50], EntityChicken['Курица'/150, l='MpServer', x=210,66, y=64,00, z=354,56], EntityCow['Корова'/90, l='MpServer', x=147,50, y=86,00, z=197,50], EntityCow['Корова'/102, l='MpServer', x=163,47, y=66,00, z=331,53], EntityCow['Корова'/103, l='MpServer', x=167,50, y=66,00, z=329,50], EntityCow['Корова'/96, l='MpServer', x=145,34, y=69,00, z=318,81], EntityCow['Корова'/162, l='MpServer', x=226,25, y=65,00, z=328,19], EntityClientPlayerMP['Player609'/228, l='MpServer', x=148,21, y=64,62, z=275,54], EntityBat['Летучая мышь'/106, l='MpServer', x=167,25, y=39,10, z=344,25], EntityCow['Корова'/104, l='MpServer', x=171,38, y=69,00, z=321,59], EntityBat['Летучая мышь'/105, l='MpServer', x=160,56, y=42,10, z=343,25], EntitySheep['Овца'/59, l='MpServer', x=88,34, y=66,00, z=351,47], EntityBat['Летучая мышь'/124, l='MpServer', x=178,30, y=47,87, z=352,39], EntityBat['Летучая мышь'/123, l='MpServer', x=183,66, y=36,15, z=347,04], EntityBat['Летучая мышь'/122, l='MpServer', x=176,41, y=42,10, z=335,75], EntityCow['Корова'/121, l='MpServer', x=183,63, y=74,00, z=275,50], EntityCow['Корова'/60, l='MpServer', x=98,03, y=65,00, z=259,13]]
    Retry entities: 0 total; []
    Server brand: fml,forge
    Server type: Integrated singleplayer server
Stacktrace:
    at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:440)
    at net.minecraft.client.Minecraft.runTick(Minecraft.java:1943)
    at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:910)
    at net.minecraft.client.Minecraft.run(Minecraft.java:838)
    at net.minecraft.client.main.Main.main(Main.java:93)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:27)

-- Affected level --
Details:
    Level name: MpServer
    All players: 1 total; [EntityClientPlayerMP['Player609'/228, l='MpServer', x=148,21, y=64,62, z=275,54]]
    Chunk stats: MultiplayerChunkCache: 441
    Level seed: 0
    Level generator: ID 00 - default, ver 1. Features enabled: false
    Level generator options: 
    Level spawn location: World: (152,64,256), Chunk: (at 8,4,0 in 9,16; contains blocks 144,0,256 to 159,255,271), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
    Level time: 44624 game time, 31012 day time
    Level dimension: 0
    Level storage version: 0x00000 - Unknown?
    Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
    Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false
    Forced entities: 38 total; [EntitySquid['Спрут'/137, l='MpServer', x=203,94, y=55,28, z=321,09], EntityBat['Летучая мышь'/68, l='MpServer', x=121,47, y=58,10, z=320,75], EntityBat['Летучая мышь'/69, l='MpServer', x=113,84, y=56,03, z=330,24], EntityBat['Летучая мышь'/136, l='MpServer', x=197,61, y=23,00, z=322,46], EntitySheep['Овца'/70, l='MpServer', x=112,88, y=68,00, z=328,94], EntityChicken['Курица'/71, l='MpServer', x=126,44, y=67,00, z=349,44], EntityCow['Корова'/64, l='MpServer', x=125,50, y=79,00, z=254,50], EntityCow['Корова'/65, l='MpServer', x=123,47, y=75,00, z=259,53], EntitySheep['Овца'/66, l='MpServer', x=118,66, y=70,00, z=302,50], EntityBat['Летучая мышь'/67, l='MpServer', x=127,40, y=49,17, z=331,04], EntitySheep['Овца'/81, l='MpServer', x=138,66, y=71,00, z=326,47], EntityCow['Корова'/80, l='MpServer', x=122,47, y=73,00, z=241,99], EntityBat['Летучая мышь'/93, l='MpServer', x=140,23, y=38,43, z=223,19], EntitySquid['Спрут'/145, l='MpServer', x=211,91, y=55,16, z=322,53], EntityBat['Летучая мышь'/92, l='MpServer', x=154,25, y=42,10, z=229,75], EntityCow['Корова'/95, l='MpServer', x=153,47, y=67,00, z=301,53], EntitySquid['Спрут'/147, l='MpServer', x=209,03, y=57,38, z=338,72], EntityCow['Корова'/94, l='MpServer', x=158,50, y=71,00, z=300,50], EntityCow['Корова'/89, l='MpServer', x=145,50, y=86,00, z=197,50], EntitySquid['Спрут'/148, l='MpServer', x=203,50, y=56,34, z=338,91], EntityCow['Корова'/88, l='MpServer', x=145,50, y=83,00, z=199,50], EntityCow['Корова'/91, l='MpServer', x=146,50, y=81,00, z=198,50], EntityChicken['Курица'/150, l='MpServer', x=210,66, y=64,00, z=354,56], EntityCow['Корова'/90, l='MpServer', x=147,50, y=86,00, z=197,50], EntityCow['Корова'/102, l='MpServer', x=163,47, y=66,00, z=331,53], EntityCow['Корова'/103, l='MpServer', x=167,50, y=66,00, z=329,50], EntityCow['Корова'/96, l='MpServer', x=145,34, y=69,00, z=318,81], EntityCow['Корова'/162, l='MpServer', x=226,25, y=65,00, z=328,19], EntityClientPlayerMP['Player609'/228, l='MpServer', x=148,21, y=64,62, z=275,54], EntityBat['Летучая мышь'/106, l='MpServer', x=167,25, y=39,10, z=344,25], EntityCow['Корова'/104, l='MpServer', x=171,38, y=69,00, z=321,59], EntityBat['Летучая мышь'/105, l='MpServer', x=160,56, y=42,10, z=343,25], EntitySheep['Овца'/59, l='MpServer', x=88,34, y=66,00, z=351,47], EntityBat['Летучая мышь'/124, l='MpServer', x=178,30, y=47,87, z=352,39], EntityBat['Летучая мышь'/123, l='MpServer', x=183,66, y=36,15, z=347,04], EntityBat['Летучая мышь'/122, l='MpServer', x=176,41, y=42,10, z=335,75], EntityCow['Корова'/121, l='MpServer', x=183,63, y=74,00, z=275,50], EntityCow['Корова'/60, l='MpServer', x=98,03, y=65,00, z=259,13]]
    Retry entities: 0 total; []
    Server brand: fml,forge
    Server type: Integrated singleplayer server

-- System Details --
Details:
    Minecraft Version: 1.6.4
    Operating System: Windows 8.1 (amd64) version 6.3
    Java Version: 1.7.0_67, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 759773584 bytes (724 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB)
    JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
    AABB Pool Size: 11891 (665896 bytes; 0 MB) allocated, 477 (26712 bytes; 0 MB) used
    Suspicious classes: FML and Forge are installed
    IntCache: cache: 0, tcache: 0, allocated: 3, tallocated: 63
    FML: MCP v8.11 FML v6.4.49.965 Minecraft Forge 9.11.1.965 4 mods loaded, 4 mods active
    mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
    FML{6.4.49.965} [Forge Mod Loader] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
    Forge{9.11.1.965} [Minecraft Forge] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
    gothicmod{1.01} [GothicMod Minecraft] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
    Launched Version: 1.6
    LWJGL: 2.9.0
    OpenGL: Intel(R) HD Graphics 4600 GL version 4.2.0 - Build 10.18.10.3368, Intel
    Is Modded: Definitely; Client brand changed to 'fml,forge'
    Type: Client (map_client.txt)
    Resource Pack: Default
    Current Language: Русский (Россия)
    Profiler Position: N/A (disabled)
    Vec3 Pool Size: 3955 (221480 bytes; 0 MB) allocated, 410 (22960 bytes; 0 MB) used
А что тут не так?...
 
С хабра
"НЛО прилетело и удалило эту запись"(или типа того)
Вот и у тебя ошибка неясная. Никуда не показывает. Но ошибка с энтитем и нулл где-то
 
Dovakin написал(а):
С хабра
"НЛО прилетело и удалило эту запись"(или типа того)
Вот и у тебя ошибка неясная. Никуда не показывает. Но ошибка с энтитем и нулл где-то
Под описание идет только этот метод (копипаст с паука):
Код:
public EntityLivingData onSpawnWithEgg(EntityLivingData par1EntityLivingData) {
        
        Object par1EntityLivingData1 = super.onSpawnWithEgg(par1EntityLivingData);
        if (this.worldObj.rand.nextInt(100) == 0) {
            
            EntitySkeleton entityskeleton = new EntitySkeleton(this.worldObj);
            entityskeleton.setLocationAndAngles(this.posX, this.posY, this.posZ, this.rotationYaw, 0.0F);
            entityskeleton.onSpawnWithEgg((EntityLivingData)null);
            this.worldObj.spawnEntityInWorld(entityskeleton);
            entityskeleton.mountEntity(this);
            
        }

        if (par1EntityLivingData1 == null) {
            
            par1EntityLivingData1 = new SpiderEffectsGroupData();
            if (this.worldObj.difficultySetting > 2 && this.worldObj.rand.nextFloat() < 0.1F * this.worldObj.getLocationTensionFactor(this.posX, this.posY, this.posZ)) {
                
                ((SpiderEffectsGroupData)par1EntityLivingData1).func_111104_a(this.worldObj.rand);
                
            }
            
        }

        if (par1EntityLivingData1 instanceof SpiderEffectsGroupData) {
            
            int i = ((SpiderEffectsGroupData)par1EntityLivingData1).field_111105_a;
            if (i > 0 && Potion.potionTypes[i] != null) {
                
                this.addPotionEffect(new PotionEffect(i, Integer.MAX_VALUE));
                
            }
            
        }

        return (EntityLivingData)par1EntityLivingData1;
        
    }
П.С. эта ошибка была и тогда, когда метода не было
 
Назад
Сверху