feldim2425 / OC-Minecarts

Minecraft Mod / Addon for OpenComputers
MIT License
10 stars 4 forks source link

Cartputer runs out of power but doesn't shut down #12

Closed Forecaster closed 7 years ago

Forecaster commented 8 years ago

http://imgur.com/bwv7PJk

ocminecart 1.5-oc1.6 Minecraft 1.7.10 OpenComputers 1.6.0.907-dev

feldim2425 commented 8 years ago

Hmm. I don't see a big differece between my code and the code from the OC Drone. Maybe it's a OC issue. Not sure.

feldim2425 commented 8 years ago

Sorry but I cannot reproduce it.

I used the same OC and OC-Minecart version, but the Cart turned off the Engine and the internal computer. (as you can see in the screenshot)

bildschirmfoto vom 2016-07-07 23-52-52

Forecaster commented 8 years ago

Hm... um, I was in the nether when this happened? (I was pumping lava)

Doubt that'd matter, if not that it'd be one of the other mods in my modpack.

You can find my modlist here: http://towerofawesome.org/youtube/modlist

As well as a link to download my modpack, although my system isn't working quite right, so not all mods are included for some reason. I've yet to fix that.

When I have time I'll do some more testing with this and see if I can narrow down the problem mods.

feldim2425 commented 8 years ago

Can you try if the bug also happens with drones and/or robots?

Or reading the amount of energy in lua. Just start the "lua" program and use computer.getEnergy()

Forecaster commented 8 years ago

I figured it out. It's a server-client sync issue. It doesn't happen in SP, but happens on my dedicated server, which is where I first tried making a cart for testing.

The energy reported by Lua is indeed correct, but the GUI is displaying the wrong amount and quickly goes negative. But in a singleplayer world it works correctly.

And regular OC robots and drones work correctly on the server, it's just the carts.

feldim2425 commented 8 years ago

Ok. I will look into that.

feldim2425 commented 8 years ago

I mark is as fixed. But I will not close this issue because i'm not sure if it is fixed. Version: 1.6