Got a NullPointerException in mod_Railcraft.gameIsHost (mod_Railcraft.java:866)
I am still running Rails 1.3.0 and not 1.4.0 because I do run a MC server for my son and I to play multiplayer, but it wasn't running at the time and I was creating a new SSP world to play when I got this error.
Minecraft has stopped running because it encountered a problem.
If you wish to report this, please copy this entire text and email it to [email protected].
Please include a description of what you did when the error occured.
--- BEGIN ERROR REPORT a68a0e37 --------
Generated 29/10/11 23:44
Minecraft: Minecraft Beta 1.8.1
OS: Windows 7 (amd64) version 6.1
Java: 1.7.0_02-ea, Oracle Corporation
VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: GeForce GTX 550 Ti/PCI/SSE2 version 4.1.0, NVIDIA Corporation
java.lang.NullPointerException
at mod_Railcraft.gameIsHost(mod_Railcraft.java:866)
at railcraft.common.RailcraftUtils.gameIsHost(RailcraftUtils.java:11)
at railcraft.common.RailcraftUtils.gameIsClient(RailcraftUtils.java:19)
at railcraft.common.BlockRCRail.a(BlockRCRail.java:102)
at rv.m(World.java:611)
at rv.j(World.java:599)
at rv.h(World.java:555)
at rv.d(World.java:535)
at if.h(SourceFile:107)
at if.a(SourceFile:91)
at rv.a(World.java:1382)
at if.a(SourceFile:218)
at vy.a(Chunk.java:361)
at rv.b(World.java:419)
at rv.d(World.java:533)
at if.a(SourceFile:82)
at rv.a(World.java:1382)
at if.a(SourceFile:218)
at vy.a(Chunk.java:361)
at rv.b(World.java:419)
at rv.d(World.java:533)
at if.h(SourceFile:107)
at if.a(SourceFile:91)
at ns.a(SourceFile:36)
at sp.b(SourceFile:196)
at sp.a(SourceFile:27)
at vh.a(SourceFile:180)
at adp.a(SourceFile:484)
at ic.a(ic.java:125)
at vy.a(Chunk.java:863)
at ic.c(ic.java:68)
at ic.b(ic.java:76)
at rv.c(World.java:400)
at rv.a(World.java:333)
at rv.i(World.java:339)
at rv.a(World.java:247)
at acz.a(SourceFile:50)
at rv.i(World.java:211)
at rv.<init>(World.java:178)
at rv.<init>(World.java:116)
at net.minecraft.client.Minecraft.a(SourceFile:1436)
at ry.a(SourceFile:151)
at qr.a(SourceFile:72)
at ry.a(SourceFile:194)
at qr.f(SourceFile:120)
at qr.i(SourceFile:108)
at net.minecraft.client.Minecraft.k(SourceFile:1197)
at net.minecraft.client.Minecraft.run(SourceFile:666)
at java.lang.Thread.run(Thread.java:722)
--- END ERROR REPORT 54744f3b ----------
17 achievements
161 recipes
OptiFine_1.8.1_HD_S_D
Sat Oct 29 23:42:45 CEST 2011
OS: Windows 7 (amd64) version 6.1
Java: 1.7.0_02-ea, Oracle Corporation
VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: GeForce GTX 550 Ti/PCI/SSE2 version 4.1.0, NVIDIA Corporation
OpenGL Version: 4.0
setupTexture: "/title/mojang.png", id: 1
ModLoader Beta 1.8.1 Initializing...
Mod Loaded: mod_BetterPlates by Vazkii. For Beta 1.8.1
Mod Loaded: mod_BuildCraftCore 2.2.4
Mod Loaded: mod_BuildCraftBuilders 2.2.4
Mod Loaded: mod_BuildCraftEnergy 2.2.4
Mod Loaded: mod_BuildCraftFactory 2.2.4
Mod Loaded: mod_BuildCraftTransport 2.2.4
Mod Loaded: mod_CraftGuide 1.2.1
Mod Loaded: mod_EllianDetector V1.22
Mod Loaded: mod_BuildCraft_BucketFiller 2.2.4_1
Mod Loaded: mod_Kaevator_Corners 1.8.1
Mod Loaded: mod_Kaevator_IntCorners 1.8.1
Mod Loaded: mod_Kaevator_Slopes 1.8.1
Overriding /terrain.png with /Lanterns/woodenlantern.png @ 30. 64 left.
Overriding /terrain.png with /Lanterns/stonelantern.png @ 76. 63 left.
Overriding /terrain.png with /Lanterns/cobblelantern.png @ 77. 62 left.
Mod Loaded: mod_Lanterns 1.8.1
Mod Loaded: mod_LightSensor Beta 1.8
Mod Loaded: mod_Stackables Beta 1.8
setupTexture: "/textures/railcraft.png", id: 7
ModLoaderMP Beta 1.7.3 unofficial Initialized
CONFLICT @ -4
MinecraftForge V1.1.2 Initialized
Mod Loaded: mod_Railcraft 1.3.0
Mod Loaded: mod_RedPowerArray 2.0pr3b
Mod Loaded: mod_RedPowerCore 2.0pr3b
Mod Loaded: mod_RedPowerLighting 2.0pr3b
Mod Loaded: mod_RedPowerLogic 2.0pr3b
Mod Loaded: mod_RedPowerWiring 2.0pr3b
Overriding /gui/items.png with /TF2/Teleporter/teleporterItemBlue.png @ 38. 117 left.
Overriding /gui/items.png with /TF2/Teleporter/teleporterItemRed.png @ 46. 116 left.
Overriding /gui/items.png with /TF2/Teleporter/teleporterBase.png @ 102. 115 left.
Overriding /gui/items.png with /TF2/Teleporter/teleporterPropeller.png @ 108. 114 left.
Mod Loaded: mod_TF2Teleporter 1.8.1
Overriding /terrain.png with /ToolRepair/AnvilFront.png @ 78. 61 left.
Overriding /terrain.png with /ToolRepair/AnvilBack.png @ 138. 60 left.
Overriding /terrain.png with /ToolRepair/AnvilSides.png @ 139. 59 left.
Overriding /terrain.png with /ToolRepair/AnvilTop.png @ 153. 58 left.
Mod Loaded: mod_ToolRepair 1.8.1
Mod Loaded: mod_treecapitator 1.8-DaftPVF
WirelessRedstone: Loading Properties.
WirelessRedstone: ReceiverID=113
WirelessRedstone: TransmitterID=115
Overriding /terrain.png with /WirelessSprites/topOn.png @ 154. 57 left.
Overriding /terrain.png with /WirelessSprites/topOff.png @ 155. 56 left.
Overriding /terrain.png with /WirelessSprites/rxOn.png @ 156. 55 left.
Overriding /terrain.png with /WirelessSprites/rxOff.png @ 157. 54 left.
Overriding /terrain.png with /WirelessSprites/txOn.png @ 158. 53 left.
Overriding /terrain.png with /WirelessSprites/txOff.png @ 159. 52 left.
Mod Loaded: WirelessRedstone 1.4
Mod Loaded: mod_zAdditionalPipes Rev27
Overriding /gui/items.png with /arrows/eggarrow.png @ 118. 113 left.
Overriding /gui/items.png with /arrows/exarrow.png @ 119. 112 left.
Overriding /gui/items.png with /arrows/fiarrow.png @ 120. 111 left.
Overriding /gui/items.png with /arrows/hombow.png @ 123. 110 left.
Overriding /gui/items.png with /arrows/icearrow.png @ 124. 109 left.
Overriding /gui/items.png with /arrows/liarrow.png @ 125. 108 left.
Mod Loaded: mod_Arrows Beta 1.8
Mod Loaded: mod_ReiMinimap v2.6_01 [Beta 1.8.1]
Mod Loaded: mod_SignEdit by Vazkii. For Beta 1.8.1
Mod Loaded: mod_SpawnerGUI Beta 1.8
Mod Loaded: mod_TooManyItems 1.8.1 2011-09-27
Done.
setupTexture: "/net/minecraft/src/buildcraft/core/gui/block_textures.png", id: 8
setupTexture: "/net/minecraft/src/buildcraft/core/gui/item_textures.png", id: 9
TextureFX registered: buildcraft.energy.TextureOilFX@322d115e, texId: 8, index: 205
TextureFX registered: buildcraft.energy.TextureFuelFX@7232b8e0, texId: 9, index: 48
TextureFX registered: buildcraft.energy.TextureOilFlowFX@6007b4b2, texId: 8, index: 206
setupTexture: "/eloraam/base/base1.png", id: 10
setupTexture: "/eloraam/logic/logic1.png", id: 11
setupTexture: "/eloraam/wiring/redpower1.png", id: 12
setupTexture: "/eloraam/array/array1.png", id: 13
setupTexture: "/eloraam/lighting/lighting1.png", id: 14
TextureFX registered: ModTextureStatic@7815bc09, texId: 14, index: 128
TextureFX registered: ModTextureStatic@26271bf2, texId: 14, index: 129
TextureFX registered: ModTextureStatic@a7bc768, texId: 14, index: 130
TextureFX registered: ModTextureStatic@1ee46f29, texId: 14, index: 131
TextureFX registered: ModTextureStatic@36c51c9c, texId: 14, index: 132
TextureFX registered: ModTextureStatic@3e960865, texId: 14, index: 133
TextureFX registered: ModTextureStatic@18dd79e9, texId: 14, index: 135
TextureFX registered: ModTextureStatic@3975c884, texId: 14, index: 134
TextureFX registered: ModTextureStatic@70071305, texId: 14, index: 136
TextureFX registered: ModTextureStatic@25d480f6, texId: 14, index: 137
TextureFX registered: ModTextureStatic@3956ed04, texId: 14, index: 138
TextureFX registered: ModTextureStatic@4de2ab6d, texId: 14, index: 139
TextureFX registered: ModTextureStatic@301a3db, texId: 14, index: 140
TextureFX registered: ModTextureStatic@3d7bcc32, texId: 14, index: 141
TextureFX registered: ModTextureStatic@36291568, texId: 14, index: 142
TextureFX registered: ModTextureStatic@34ed138f, texId: 14, index: 143
setupTexture: "/net/minecraft/src/buildcraft/zeldo/gui/block_textures.png", id: 15
setupTexture: "/net/minecraft/src/buildcraft/zeldo/gui/block_textures_override.png", id: 16
WARNING: Found unknown Windows version: Windows 7
Attempting to use default windows plug-in.
Loading: net.java.games.input.DirectAndRawInputEnvironmentPlugin
Starting up SoundSystem...
Initializing LWJGL OpenAL
(The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org)
OpenAL initialized.
Hey mate - i was looking at your mod, and even though i like it largely, i also really really like working with redstone and such, so that makes the major parts of the mod not more me - which is quite unfortunate as its a really good mod :sad.gif:
I like the wooden rails, and the dectection part of the dectectors...
I was wondering if it was possible for you to make a mini mod with just the wooden rails - and an assortment of different dectector rails(not blocks) - one for mobs, animals, player, and empty
Regardless if you do this - great mod, great idea's! keep up to good work :smile.gif:
I will continue to add options to the config so you can disable the parts of the mod you dont like, but I will not be adding additional detector rails since in my opinion the Detector blocks are much more flexible because you can use a Detector and an advanced rail at the same time.
I will continue to add options to the config so you can disable the parts of the mod you dont like, but I will not be adding additional detector rails since in my opinion the Detector blocks are much more flexible because you can use a Detector and an advanced rail at the same time.
They only explode when loaded with buckets? Are you braking the high speed line properly with Speed Booster and Transition Rails?
EDIT: Hmm...I am seeing an issue with Chestcarts and slopes.
EDIT2: For what ever reason a drag value of 0.99 makes the carts behave oddly on slopes (the cart's y-axis position becomes incorrect, making the cart think there is no rail under it). I changed the chest cart drag to 0.99199997901916504 (ridden carts are 0.99699997901916504, empty and vanilla chest carts are 0.95999997854232788) and it seems to have fixed the issue. Despite staring at the code for an hour I can't figure out why that drag rate effects the carts y-axis position so drastically. Anyway, they shouldnt explode now on slopes of only 1 block height. Any cart will explode if you try to send them down a slope of 4 blocks or more. Fixing that would require limiting the carts max speed while going down hill (like I do going up), but I thought that was silly so I left it.
Is the Minecart Compatibility layer required for the mod to run now? I tried using it but it crashes my game, and I'm not interested in Steve's Carts or the extra blocks, just want the physics fixes and tweaks D:
Pretty sure I'm not alone in that either, physics have been broken since the beginning and atm this is the only up to date mod I can find that fixes it.
Is the Minecart Compatibility layer required for the mod to run now? I tried using it but it crashes my game, and I'm not interested in Steve's Carts or the extra blocks, just want the physics fixes and tweaks D:
Pretty sure I'm not alone in that either, physics have been broken since the beginning and atm this is the only up to date mod I can find that fixes it.
If you want only the physics fix. Open the railcraft config in .minecraft/config/railcraft.cfg and change all the block ids to 0 to disable all rails that this mod adds.
For the crash. Try posting you modloader.txt here so CJ(short for CovertJaguar) can help. Also if you have Better than wolves(and only if you have BTW). Be sure to install BTW first then Minecraft compatibility layer and also extract the btwconfig.txt to .minecraft and change this line
If you want only the physics fix. Open the railcraft config in .minecraft/config/railcraft.cfg and change all the block ids to 0 to disable all rails that this mod adds.
For the crash. Try posting you modloader.txt here so CJ(short for CovertJaguar) can help.
Issue isn't so much about the crash, it's more that the simple physics fix (and upcoming cart linkage) which people have wanted for ages (and got, but those are either bukkit plugins or outdated) is getting buried under an ever growing mod with ever growing incompatibilities. Still it's worth it at the moment.
Not saying he should stop development of course, but I'm thinking it would be a good idea to just split the physics fix and cart linkage (when it's done) into a separate mod (and still incorporated in the main mod of course). Would net him extra downloads and therefore extra revenue if nothing else.
First:
Version 1.5 (which I hope to push out later today) will allow you to disable just about anything in the config. I finally finished converting most of the items to self contained blocks of code that are easily disable by the config. While I'm not opposed to releasing a physics only patch, I'm not even sure how I would separate those changes from the rest. And I dont want to have to maintain yet another codebase.
Second:
Rewrote the collision handler again. Used standardized collision algorithms this time (penalty force + impulse) instead of the oddly modified vanilla penalty force and the self designed and inefficient method I was using to average the magnitude of the velocity vectors. Collisions should be less bouncy and more realistic and Steamcarts seem to work a tad better than before.
Third:
You claim the mod is become less compatible, on what do you base this claim? Before it didnt work with ANYTHING that added rails or minecarts. Now it does. There aren't that many minecart mods out there that I'm aware of: Steve's Carts, Trains, BTW, and Minefactory. I don't know what the progress is on converting Steve's Carts to the MCL, but as of version 1.4, Trains, BTW, and Minefactory should all work with Railcraft. If they don't its a probably a bug on my end. As for BTW, yes you must overwrite BTW minecart changes with the MCL, but they are very, very minor changes. As far as I know, BTW only changes the chestcart drag rate in EntityMinecart, which Railcraft also does. Anything else that doesnt modify BlockRail, EntityMinecart, or RailLogic should be 100% compatible if it works with Forge. If it isn't, its probably because I'm doing something the wrong way (ex. Recipe Book Bug, Id Resolver Crash). Such things are usually easily fixed and included in the next release once I'm made aware of them. And before anyone asks, there will never be a non-Forge version.
Fourth:
If you post the crash report, I will tell you what is wrong and how to fix it.
Added Tank Cart for transporting Buildcraft liquids (only available if Railcraft detects that Buildcraft is installed)
Added Elevator Rail (uses new block id) - original code and concept by DizzyDragon
Minecarts moving at normal speed no longer collide with items by default. They still collide at high speed, both can be changed in the config.
Finished giving everything the ability to be disabled with the config (including several tweaks)
Adjusted Chestcart drag rate (was causing the cart to explode on slopes at high speed for some strange reason)
Rewrote the collision routine again. Collisions should be less bouncy and Steamcarts should work a tad better.
Converted the basic Wooden Rail over to the tiled rail system (the MCL made this possible). It will no longer use a separate block id. Existing maps will be converted on first load. Make sure you visit every part of your map with wooden rails before exiting. The converter will be removed in a future patch.
When would this easy fix happen? I love the concepts here but I have to have ID Resolver.
Awesome, I'll be waiting.
who are you responding to?
I can't wait. :biggrin.gif:
Here is the link if you want to download it.
http://www.4shared.com/file/cj8LBC_5/Faithful_32x_Railcraft.html
Here is the texture.
This is intended to be used with Vattic's Faithful 32 pack. As I sampled the rails and such from his pack.
Here is the link to the faithful texture pack
http://www.minecraftforum.net/topic/72747-faithful-32x32-pack-update19-pre-4-support-19-pre-4/
Hmm...I'll add some checks to make sure everything is initialized. Should fix that.
I like the wooden rails, and the dectection part of the dectectors...
I was wondering if it was possible for you to make a mini mod with just the wooden rails - and an assortment of different dectector rails(not blocks) - one for mobs, animals, player, and empty
Regardless if you do this - great mod, great idea's! keep up to good work :smile.gif:
thanks mate :smile.gif:
Well can you make a minimod?
EDIT: Hmm...I am seeing an issue with Chestcarts and slopes.
EDIT2: For what ever reason a drag value of 0.99 makes the carts behave oddly on slopes (the cart's y-axis position becomes incorrect, making the cart think there is no rail under it). I changed the chest cart drag to 0.99199997901916504 (ridden carts are 0.99699997901916504, empty and vanilla chest carts are 0.95999997854232788) and it seems to have fixed the issue. Despite staring at the code for an hour I can't figure out why that drag rate effects the carts y-axis position so drastically. Anyway, they shouldnt explode now on slopes of only 1 block height. Any cart will explode if you try to send them down a slope of 4 blocks or more. Fixing that would require limiting the carts max speed while going down hill (like I do going up), but I thought that was silly so I left it.
Pretty sure I'm not alone in that either, physics have been broken since the beginning and atm this is the only up to date mod I can find that fixes it.
If you want only the physics fix. Open the railcraft config in .minecraft/config/railcraft.cfg and change all the block ids to 0 to disable all rails that this mod adds.
For the crash. Try posting you modloader.txt here so CJ(short for CovertJaguar) can help.
Also if you have Better than wolves(and only if you have BTW). Be sure to install BTW first then Minecraft compatibility layer and also extract the btwconfig.txt to .minecraft and change this line
to
*this steps are only required if you have BTW*
Erhm
Only since 1.4.0 it depends on it. Read OP before posting
Issue isn't so much about the crash, it's more that the simple physics fix (and upcoming cart linkage) which people have wanted for ages (and got, but those are either bukkit plugins or outdated) is getting buried under an ever growing mod with ever growing incompatibilities. Still it's worth it at the moment.
Not saying he should stop development of course, but I'm thinking it would be a good idea to just split the physics fix and cart linkage (when it's done) into a separate mod (and still incorporated in the main mod of course). Would net him extra downloads and therefore extra revenue if nothing else.
Version 1.5 (which I hope to push out later today) will allow you to disable just about anything in the config. I finally finished converting most of the items to self contained blocks of code that are easily disable by the config. While I'm not opposed to releasing a physics only patch, I'm not even sure how I would separate those changes from the rest. And I dont want to have to maintain yet another codebase.
Second:
Rewrote the collision handler again. Used standardized collision algorithms this time (penalty force + impulse) instead of the oddly modified vanilla penalty force and the self designed and inefficient method I was using to average the magnitude of the velocity vectors. Collisions should be less bouncy and more realistic and Steamcarts seem to work a tad better than before.
Third:
You claim the mod is become less compatible, on what do you base this claim? Before it didnt work with ANYTHING that added rails or minecarts. Now it does. There aren't that many minecart mods out there that I'm aware of: Steve's Carts, Trains, BTW, and Minefactory. I don't know what the progress is on converting Steve's Carts to the MCL, but as of version 1.4, Trains, BTW, and Minefactory should all work with Railcraft. If they don't its a probably a bug on my end. As for BTW, yes you must overwrite BTW minecart changes with the MCL, but they are very, very minor changes. As far as I know, BTW only changes the chestcart drag rate in EntityMinecart, which Railcraft also does. Anything else that doesnt modify BlockRail, EntityMinecart, or RailLogic should be 100% compatible if it works with Forge. If it isn't, its probably because I'm doing something the wrong way (ex. Recipe Book Bug, Id Resolver Crash). Such things are usually easily fixed and included in the next release once I'm made aware of them. And before anyone asks, there will never be a non-Forge version.
Fourth:
If you post the crash report, I will tell you what is wrong and how to fix it.
Works fine here, what is the problem? What browser and OS?
Behold the Tank Cart has arrived!
Also added DizzyDragon's Elevator Rails:
Patch Notes: