Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Help diagnosing cart issue  (Read 855 times)

morikal

  • Bay Watcher
    • View Profile
Help diagnosing cart issue
« on: March 07, 2020, 10:37:00 pm »

I have a minecart route to bring wood from afar.

I had one route set up, and it works fine. It is a straight track that goes up a level via a ramp.
It has a pressure plate a few tiles from a door on each side, opening the door for the minecart.
So:
 stop by wood stockpile (take from that stockpile, wood prefered) -> NS tracks to bridge -> across bridge -> NS tracks to pressure plate (including under it) -> plate opens door further down -> NS tracks to ramp (past pressure plate triggered on empty wagon coming back) -> NS upward tracks up ramp -> NS tracks to track stop (including under track stop), which is where the 2nd stop is (give to the quantum stockpile on the other side of the track stop, track stop set to highest friction & dump).
Haulers guide the cart.

I set up a second, identical route two tiles to the right (so one tile of wall between them). I have checked over it thoroughly, and all the tracks are present (except under the bridge, but that is the same in the working route), including NS tracks on both the up & down ramp, and track under the track stop.
But the second route only works in one direction--the haulers fill the cart, then manually haul it up the stairs outside, around to the main entrance, down through that, and around to where it should dump in the quantum pile. Once they reach stop 2, they guide the cart just fine back to stop 1. Then repeat the manual hauling the long way around to stop 2...

Anyone have any ideas I can try to figure out what is wrong?


Logged

Schmaven

  • Bay Watcher
  • Abiding
    • View Profile
Re: Help diagnosing cart issue
« Reply #1 on: March 08, 2020, 01:00:06 am »

Maybe a pressure plate link didn't get completed?  If you have dfhack, type in gui/mechanisms when the plate is selected with q and it will show you its links.
Logged

mightymushroom

  • Bay Watcher
    • View Profile
Re: Help diagnosing cart issue
« Reply #2 on: March 08, 2020, 09:31:35 am »

Not a track continuity problem, because it works for the second leg. Hmm... must be an orders problem.

Double check your route directions. If the first stop is not set to push in the direction of the track, they'll start by going off-road.
Logged

morikal

  • Bay Watcher
    • View Profile
Re: Help diagnosing cart issue
« Reply #3 on: March 08, 2020, 02:06:40 pm »

I am on 47.04 and would like to get DFHack as it sounds like it has some wonderful quality of life features, but I figured I'd wait until a more stable release of it that supports 47.04.

The pressure plate does show it has a 2nd mechanism installed, and won't let me link to the door (doesn't show in list anymore when I try to link to door), so I assume it is hooked up correctly.

I was worried maybe the weight triggering settings weren't correct; does anyone know if the pathing algorithm would analyze whether the door blocking the track would go away if they go over the pressure plate? Or if I didn't link it up correctly/had no pressure plate, would a dwarf just guide the cart until blocked by the door, and then sit there waiting for the door to open forever?

I'm guessing the latter; i.e., this isn't an issue with the pressure plate, the symptom of that would be the dwarf would guide the cart south past the plate and just get stuck when the door doesn't open. instead they get the exclamation point/confusion symbol or whatever, and then haul the cart around the long way.



The route is setup almost identically to the working route; head south from the first stop when full of desired items, take from a nearby wood stockpile (this is a difference; the first route takes from the stockpile visible in the screenshot, the 2nd route takes from a different stockpile that is up a few z-levels from the screenshot; this appears to work as dwarves load the cart just fine from that stockpile), head to stop 2 (track stop with max friction & dump to the south, stop orders are to head north when empty of desired items, give to the quantum stockpile just south of the track stop; this is the other difference, the first route dumps to a different stockpile).

Dwarf hauls the cart around outside and through main entrance, plops it down at stop 2 (whereupon it instantly dumps the load of wood that was inside into the correct stockpile just to the south), dwarf guides the cart back to stop 1, they load the cart, and then haul it around the long way again...

One experiment I will try to verify that the door isn't the issue is to delay the cart from leaving stop 1 (e.g., add a timer condition), open the door with another lever (door is hooked to pressure plates on each side and to a manual release lever), and see if they will use the route once the door is open. This will not work properly, I'm guessing (when they trigger the plate it will close the door instead of opening it), but I'll see what happens.
I also made sure to use the same weight cart (copper minecart) in both routes, as I configured the 2nd route's pressure plate triggers based on the weight of the first route's cart, but then saw that the zinc cart I built was lighter and wouldn't trigger them properly. (It had been set up with the zinc cart and the zinc cart had started being loaded, but I swapped it out for copper before they fully loaded it.)

Both routes show the yellow exclamation point with warning "! Set dir/connect track" at both stops, presumably due to the door in the middle of the routes.
« Last Edit: March 08, 2020, 02:12:24 pm by morikal »
Logged

morikal

  • Bay Watcher
    • View Profile
Re: Help diagnosing cart issue
« Reply #4 on: March 08, 2020, 03:28:56 pm »

I found a 47.04 Df hack build and tried it; it does show all the stuff hooked up properly.

But, I guess I must have gotten the pressure plate settings wrong.

My experiment with the door had interesting results--after I manually opened it I allowed the cart to depart south from stop 1. This time the cart was guided just fine, but then at stop 2 it was manually hauled to stop 1 (so the opposite of before). I'll re-do the pressure plates.
Logged

chips

  • Bay Watcher
    • View Profile
Re: Help diagnosing cart issue
« Reply #5 on: March 15, 2020, 04:32:59 am »

Could it be different materials used in the minecart throwing off your weight calculations of the pressure plate?
Logged