Dwarf Fortress > DF Dwarf Mode Discussion

Configurable Fast Repeater

(1/2) > >>

taleden:
Inspired by the great work in this old thread (the diagrams from which I had to resurrect via the internet archive's wayback machine), I present a new design for a compact, self-powered minecart repeater which can be configured (via the track stop friction settings) for 104, 144 or 206 tick cycle times, providing nearly-optimally-fast oscillation of doors/hatches/etc, upright spikes, or bridges/floodgates/etc.



Miscellaneous notes:

* This design abuses the impulse ramp and drag-less up-ramp exploits (note carefully the track directions on the ramps), and also benefits from DFHack's ability to change track stop friction settings after construction.
* The four marked pressure plate positions will work with all three cycle length settings regardless of activation order (that is, no matter if the plate or its linked devices are built first). Other track positions may not work for some cycle lengths because the cart may be moving too slowly, causing it to linger long enough on the plate that its next loop comes before the plate or its linked device has fully reset.
* When first constructing the repeater, a hauling route is required to assign a cart to be pushed west from stop #5, and the cart should then be immediately forbidden (and the hauling route optionally deleted).
* The lever and hatch on the upper level aren't strictly required but provide a safe and easy toggle; once the cart is installed, the repeater can be stopped and restarted with just the one lever (anywhere in the fort), without having to wait for a dwarf to reposition or push the cart.Enjoy!

Saiko Kila:
I cannot test it right away, because I'm just leaving for vacation, but the quoted old thread was the originator of the design I use routinely (the one named 148 ticks). However, in present version of DF (0.44.12) I've actually counted the ticks of this 148-repeater, and there was 176 ticks, for some reason.

It's was not a big deal, but slightly complicated my intended use, which was placing several more plates and triggering a hatch on average less than every 10 ticks (for goblin trap). Still used it for a danger room (which is more like medical training facility now). Also spikes are bit slow now, so I'm looking to test your design for Forgotten Beast Incapacitator.

I like the idea of easy restart, waiting for a dwarf to put the minecart in a slow fortress can be outrageous.

Fleeting Frames:
If it worked with 144 before, misconstructon is my bet, haven't detected any changes. One possible way to assure equal designations is to use a macro.

There's been other designs like suokki's proof of concept:

(haven't tested or improved, because I have only used repeating spears sensitive to length once)


Anyway, taleden, few notes:
 - most of door togglers I've seen have been long strips, so being a box is relatively unique.
 
 - you could make it 1z - I think you already know how - and ensure stop by linking highest track stop to a lever. This does lose you the lever restart unless you place it just before and after an accelerating ramp and add a second minecart into the system, which I guess could add 1 step wait depending on build order.

- The 144 is ~useless for repeating spears. They have 40 step cycle, placing all four plates in a row like that will result in only the first's signal doing anything and other 3 being ignored. suokko managed 2 plates by making the cart leave plate exactly 20 steps after entering it. Good effort figuring it out, though.

- The 206 is workable but there's been smaller designs with less material. I'm amused at the one I posted here being four carts in six tiles box, but it's hardly optimal. Larix has one on his wiki page as well that might be more to your fancy, supporting a hatch. I hypothesize smallest possible design could fit in 4 tiles or less while taking exactly as much steps as desired.

Haven't really looked, as my weight-configurable repeaters have been primarily focused on periods between a day and a season. You may find my notes of interest, though, if you're curious about the topic of different repeater lengths with same track designs.

taleden:

--- Quote from: Fleeting Frames on August 18, 2018, 04:54:22 pm --- - most of door togglers I've seen have been long strips, so being a box is relatively unique.

--- End quote ---
The 104 tick door/hatch toggle was kind of an afterthought anyway; my original intention was just to get a smaller and lever-restartable 200+ repeater for a blinking bridge entrance, and I preferred a square layout for that since my fort designs usually allot 5x5 or 7x7 rooms so this could fit into that scheme anywhere. After solving the bridge timings I found it was easy to tweak the resistances to work for spears, and then finally figured I might as well also find settings for minimum pressure plate reset interval which only matters for things that respond immediately like doors.

--- Quote from: Fleeting Frames on August 18, 2018, 04:54:22 pm ---
 - you could make it 1z - I think you already know how - and ensure stop by linking highest track stop to a lever. This does lose you the lever restart unless you place it just before and after an accelerating ramp and add a second minecart into the system, which I guess could add 1 step wait depending on build order.
--- End quote ---
Yeah, I couldn't come up with a restartable design in 1z so I opted for the compromise of a very small upper-level footprint because the lever restart was important to me. But sure, you could remove the up/down ramps and stick a door or highest stop where the wall is and it'd be stoppable in 1z, just not easily restartable. The timings would have to be adjusted though.

--- Quote from: Fleeting Frames on August 18, 2018, 04:54:22 pm ---- The 144 is ~useless for repeating spears. They have 40 step cycle, placing all four plates in a row like that will result in only the first's signal doing anything and other 3 being ignored. suokko managed 2 plates by making the cart leave plate exactly 20 steps after entering it. Good effort figuring it out, though.
--- End quote ---
I tested it with spears and it works just fine. They have a 40 step response but the pressure plate itself has a 99 tick reset period, so the plate sends open on tick 0, the cart leaves the plate tile on tick 3 (plates A,B) or 4 (plates C,D), the spears retract on tick 40, the plate deactivates on tick 102-103, the spears extend again on tick 142-143 just barely in time for the cart to come back and hit the plate again on tick 144. The idea is not to use all four plates with the same spear(s), you'd link just one plate to all spears in a room; the four slots are just what's available in the design, so you could split them up a plate per room if you like, or just only use one plate for all spears everywhere. I thought about trying to fit two plates in so they could alternate and leave the spears retracted for only 40 ticks rather than 100, but decided I didn't care enough about that small gain in spear damage output at the cost of doubling the mechanism cost to link every spear in a room to a second plate.

--- Quote from: Fleeting Frames on August 18, 2018, 04:54:22 pm ---- The 206 is workable but there's been smaller designs with less material. I'm amused at the one I posted here being four carts in six tiles box, but it's hardly optimal. Larix has one on his wiki page as well that might be more to your fancy, supporting a hatch. I hypothesize smallest possible design could fit in 4 tiles or less while taking exactly as much steps as desired.
--- End quote ---
I'll have to take a look at that, thanks for the links.

Fleeting Frames:
If you have a second cart pushing on the one on the lever-linked highest track stop, it is restartable with the pull of a lever. Unless it stops on upper z by hitting a wall rather than descending, it should work the same way when flattened out (though yeah this restart mechanism may mess with things).

That's what I mean by ~useless. When doubling or quadrupling single pear damage is too small a gain, trying to get close to 142 is not much of a gain either, and you can stick ╔║╗ ramps with sideways return(around 149 step cycle, depending on return system) with a plate and direction control to not hit plate if desired. Sorry if it comes across brusquely; I know you made at least fify tests for this setup, probably over a hundred.

It's a good try to improve upon previous designs though, that's for sure; certainly far smaller than the designs in original post, and somewhat unique on door waving.

Navigation

[0] Message Index

[#] Next page

Go to full version