catageek / ByteCart

Minecraft plugin for bukkit to create a LAN/WAN rail network with routing algorithm
GNU General Public License v3.0
27 stars 9 forks source link

Router & Stations autoconfigured correctly but carts do not stop. #17

Closed andrepl closed 11 years ago

andrepl commented 11 years ago

I've got a little further with the tutorial, I've successully built the router and 3 rings, 2 of which only have 1 station each, and the 3rd ring has 2. /bcupdater region 1 and /bcupdater local 1 both seemed to work properly. my BC8010 signs were given the addresses 1.0.0 - 1.3.0 and all stations also recieved appropriate addresses. when I test the system the carts always seem to get to the correct ring, but they dont stop at the station, instead they just loop inside that ring forever. I'm not sure what to provide as far as debugging information, screenshots don't really work to demonstrate it. The following debug output occurs while the cart loops around the correct ring:

13:56:28 [INFO] ByteCart : Router : coming from NORTH going to NORTH 13:56:31 [INFO] ByteCart: BC9001.trigger() 13:56:31 [INFO] ByteCart: read page 1 13:56:31 [INFO] ByteCart: read page 1 13:56:31 [INFO] ByteCart: read page 1 13:56:31 [INFO] ByteCart: read page 1 13:56:35 [INFO] ByteCart: BC8010.trigger() 13:56:35 [INFO] ByteCart: read page 1 13:56:35 [INFO] ByteCart: property string : 11 13:56:35 [INFO] ByteCart: read page 1 13:56:35 [INFO] ByteCart : InventoryItemStackWriter before 13:56:35 [INFO] ByteCart : ItemStackMetaWriter before 13:56:35 [INFO] ByteCart : ItemStackMetaWriter after 13:56:35 [INFO] ByteCart : InventoryItemStackWriter after, index = 0 13:56:35 [INFO] ByteCart: read page 1 13:56:35 [INFO] ByteCart: property string : 10 13:56:35 [INFO] ByteCart : TTL is 10 13:56:35 [INFO] ByteCart: read page 1 13:56:35 [INFO] ByteCart: read page 1 13:56:35 [INFO] ByteCart: read page 1 13:56:35 [INFO] ByteCart: property string : 10 13:56:35 [INFO] ByteCart: read page 1 13:56:35 [INFO] ByteCart: read page 1 13:56:35 [INFO] ByteCart : Router : coming from NORTH going to NORTH 13:56:39 [INFO] ByteCart: BC9001.trigger() 13:56:39 [INFO] ByteCart: read page 1 13:56:39 [INFO] ByteCart: read page 1 13:56:39 [INFO] ByteCart: read page 1 13:56:39 [INFO] ByteCart: read page 1 13:56:42 [INFO] ByteCart: BC8010.trigger() 13:56:42 [INFO] ByteCart: read page 1 13:56:42 [INFO] ByteCart: property string : 10 13:56:42 [INFO] ByteCart: read page 1 13:56:42 [INFO] ByteCart : InventoryItemStackWriter before 13:56:42 [INFO] ByteCart : ItemStackMetaWriter before 13:56:42 [INFO] ByteCart : ItemStackMetaWriter after 13:56:42 [INFO] ByteCart : InventoryItemStackWriter after, index = 0 13:56:42 [INFO] ByteCart: read page 1 13:56:42 [INFO] ByteCart: property string : 9 13:56:42 [INFO] ByteCart : TTL is 9 13:56:42 [INFO] ByteCart: read page 1 13:56:42 [INFO] ByteCart: read page 1 13:56:42 [INFO] ByteCart: read page 1 13:56:42 [INFO] ByteCart: property string : 9 13:56:42 [INFO] ByteCart: read page 1 13:56:42 [INFO] ByteCart: read page 1 13:56:42 [INFO] ByteCart : Router : coming from NORTH going to NORTH

andrepl commented 11 years ago

Could this be another instance where I should be using buttons instead of levers? My entire router is built with levers, and I use buttons on all the simple 1-stop stations. I should mention I made sure all my signs were straight this time,s o that's not the problem

andrepl commented 11 years ago

Been playing a bit more and it seems one of carts managed to stop at it's station after about 10-15 loops.. when i tried to send it back where it came from it got stuck on that ring again. this particular cart has managed to arrive successfully at 2 stations, but can't get to those same 2 stations again... and no other cart has managed a successful arrival.. I have this on a small local server I can give access to if you have any interest in investigating. I'm stumped.

EDIT: At least one of the successful arrivals was due to bumping into a sheep and being sent backwards until it naturally entered the station, pure coincidence.

andrepl commented 11 years ago

Something I have noticed consistently in all my tests so far, the region updater cart makes 2 full loops of each ring, and after that, it stops visiting ring 3 and just goes back and forth between 1 and 2 until its removed.

catageek commented 11 years ago

I will look at it tomorrow evening. Please let me access to your server with canbuild and bytecart.* permission, and access to chest. Fly mode and/or creative mode are welcome to ease my debug. Give me the position of the network or configure a warp to go there so I can see tomorrow.

andrepl commented 11 years ago

Thanks I'll private message the server details to you.

edit: can't send a message through github, sent to your dev.bukkit.org account

catageek commented 11 years ago

You can download the new version of the plugin here:

http://bytecart.catageek.info/maven/repositories/releases/com/github/catageek/ByteCart/1.4.2/ByteCart-1.4.2.jar

andrepl commented 11 years ago

Thanks very much its working great now