Posted 11 June 2014 - 04:02 PM
Hi there
I am running:
When i use any of the compare options
If NO block present in the compare direction then they return FALSE as expected.
My test program:
Error dump:
Any help?
/sEi
I am running:
MC: 1.7.2
Forge: 10.12.1.1083
ComputerCraft: 1.64pr2
When i use any of the compare options
turtle.compare()
turtle.compareUp()
turtle.compareDown()
MC crashes when a block is present in the compare direction.If NO block present in the compare direction then they return FALSE as expected.
My test program:
Spoiler
turtle.select(1)
print(turtle.compare()) -- if any block in front then CRASH
sleep(1)
print(turtle.compareUp()) -- if any block above then CRASH
sleep(1)
print(turtle.compareDown()) -- if any block below then CRASH
Error dump:
Spoiler
---- Minecraft Crash Report ----
// Shall we play a game?
Time: 6/11/14 4:41 PM
Description: Ticking block entity
cpw.mods.fml.relauncher.ReflectionHelper$UnableToFindMethodException: java.lang.NoSuchMethodException: net.minecraft.block.Block.createStackedBlock(int)
at cpw.mods.fml.relauncher.ReflectionHelper.findMethod(ReflectionHelper.java:187)
at dan200.computercraft.shared.turtle.core.TurtleCompareCommand.execute(TurtleCompareCommand.java:59)
at dan200.computercraft.shared.turtle.core.TurtleBrain.updateCommands(TurtleBrain.java:789)
at dan200.computercraft.shared.turtle.core.TurtleBrain.update(TurtleBrain.java:98)
at dan200.computercraft.shared.turtle.blocks.TileTurtle.func_145845_h(TileTurtle.java:274)
at net.minecraft.world.World.func_72939_s(World.java:1888)
at net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:500)
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:620)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:531)
at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:111)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:414)
at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:669)
Caused by: java.lang.NoSuchMethodException: net.minecraft.block.Block.createStackedBlock(int)
at java.lang.Class.getDeclaredMethod(Unknown Source)
at cpw.mods.fml.relauncher.ReflectionHelper.findMethod(ReflectionHelper.java:178)
... 11 more
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Stacktrace:
at cpw.mods.fml.relauncher.ReflectionHelper.findMethod(ReflectionHelper.java:187)
at dan200.computercraft.shared.turtle.core.TurtleCompareCommand.execute(TurtleCompareCommand.java:59)
at dan200.computercraft.shared.turtle.core.TurtleBrain.updateCommands(TurtleBrain.java:789)
at dan200.computercraft.shared.turtle.core.TurtleBrain.update(TurtleBrain.java:98)
at dan200.computercraft.shared.turtle.blocks.TileTurtle.func_145845_h(TileTurtle.java:274)
-- Block entity being ticked --
Details:
Name: turtleadv // dan200.computercraft.shared.turtle.blocks.TileTurtleAdvanced
Block type: ID #203 (tile.computercraft:turtle // dan200.computercraft.shared.turtle.blocks.BlockTurtle)
Block data value: 0 / 0x0 / 0b0000
Block location: World: (1694,57,478), Chunk: (at 14,3,14 in 105,29; contains blocks 1680,0,464 to 1695,255,479), Region: (3,0; contains chunks 96,0 to 127,31, blocks 1536,0,0 to 2047,255,511)
Actual block type: ID #203 (tile.computercraft:turtle // dan200.computercraft.shared.turtle.blocks.BlockTurtle)
Actual block data value: 0 / 0x0 / 0b0000
Stacktrace:
at net.minecraft.world.World.func_72939_s(World.java:1888)
at net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:500)
-- Affected level --
Details:
Level name: trains
All players: 1 total; [EntityPlayerMP['SenSeiSan'/5, l='trains', x=1696.59, y=56.00, z=479.35]]
Chunk stats: ServerChunkCache: 625 Drop: 0
Level seed: 58768091456364358
Level generator: ID 01 - flat, ver 0. Features enabled: false
Level generator options: 2;7,3x1,52x24;2;
Level spawn location: World: (1694,4,477), Chunk: (at 14,0,13 in 105,29; contains blocks 1680,0,464 to 1695,255,479), Region: (3,0; contains chunks 96,0 to 127,31, blocks 1536,0,0 to 2047,255,511)
Level time: 16242 game time, 27307 day time
Level dimension: 0
Level storage version: 0x04ABD - Anvil
Level weather: Rain time: 99439 (now: false), thunder time: 128596 (now: false)
Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true
Stacktrace:
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:620)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:531)
at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:111)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:414)
at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:669)
-- System Details --
Details:
Minecraft Version: 1.7.2
Operating System: Windows 7 (x86) version 6.1
Java Version: 1.7.0_55, Oracle Corporation
Java VM Version: Java HotSpotâ„¢ Client VM (mixed mode, sharing), Oracle Corporation
Memory: 204728072 bytes (195 MB) / 411414528 bytes (392 MB) up to 518979584 bytes (494 MB)
JVM Flags: 2 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx512M
AABB Pool Size: 88 (4928 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v9.03 FML v7.2.196.1083 Minecraft Forge 10.12.1.1083 12 mods loaded, 12 mods active
mcp{9.03} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
FML{7.2.196.1083} [Forge Mod Loader] (forge-1.7.2-10.12.1.1083.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
Forge{10.12.1.1083} [Minecraft Forge] (forge-1.7.2-10.12.1.1083.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
TooManyItems{1.7.2} [TooManyItems] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
BuildCraft|Core{6.0.16} [BuildCraft] (buildcraft-6.0.16.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
BuildCraft|Builders{6.0.16} [BC Builders] (buildcraft-6.0.16.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
BuildCraft|Energy{6.0.16} [BC Energy] (buildcraft-6.0.16.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
BuildCraft|Factory{6.0.16} [BC Factory] (buildcraft-6.0.16.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
BuildCraft|Transport{6.0.16} [BC Transport] (buildcraft-6.0.16.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
BuildCraft|Silicon{6.0.16} [BC Silicon] (buildcraft-6.0.16.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
ComputerCraft{1.64pr2} [ComputerCraft] (ComputerCraft) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
Railcraft{9.0.0.0} [Railcraft] (Railcraft_1.7.2-9.0.0.0.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
Profiler Position: N/A (disabled)
Vec3 Pool Size: 4 (224 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Player Count: 1 / 8; [EntityPlayerMP['SenSeiSan'/5, l='trains', x=1696.59, y=56.00, z=479.35]]
Type: Integrated Server (map_client.txt)
Is Modded: Definitely; Client brand changed to 'fml,forge'
Any help?
/sEi