v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Difference between revisions of "User:Fleeting Frames"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
m (→‎Scripts: UnsuspendSelectedBuilding, fix/wheelbarrow-stuckinside, fix/pathchain)
Line 152: Line 152:
 
With no arguments, it waits until cart moves off the tile, then pauses the game and tells you which cart moved.
 
With no arguments, it waits until cart moves off the tile, then pauses the game and tells you which cart moved.
 
With `cposchange flip` it waits until the cart returns to the tile.
 
With `cposchange flip` it waits until the cart returns to the tile.
 +
 +
=====UnsuspendSelectedBuilding=====
 +
 +
[[User:Fleeting_Frames/UnsuspendSelectedBuilding|UnsuspendSelectedBuilding.lua]] is a script that applies the idea of autounsuspend to single building selected;
 +
 +
giving an announcement on start, stop and completion.
 +
 +
=====fix/wheelbarrow-stuckinside=====
 +
 +
[[User:Fleeting_Frames/wheelbarrow-stuckinside|wheelbarrow-stuckinside.lua]] is a script for solving {{Bug|6074}}.
 +
 +
Runs once, I apply with ''repeat -time 1 -timeUnits days -command [ fix/wheelbarrow-stuckinside ] -name wheelbarrowstuckinside'' in onMapLoad.init
 +
 +
=====fix/pathchain=====
 +
 +
[[User:Fleeting_Frames/wheelbarrow-stuckinside|wheelbarrow-stuckinside.lua]] is a script for solving {{Bug|10564}}.
 +
 +
Like above, runs once, for use ''repeat -time 1 -timeUnits days -command [ fix/pathchain ] -name pathchain''

Revision as of 10:59, 3 July 2019

Things I've worked on

Can be divided into scripts, forts and designs.


Minecarts

Both scripts and designs.

Repeaters

5-tile 4-cart bumper:

Both ramps are impulse ramps and thus need walls.

What to use it for? Well, if you plant four carts on it, you can get some of the most compact repeaters.
Furthermore, the length can be altered depending if you place carts newest to oldest or vice-versa (build order).

For example, 1199 (1200 with swapping 2 carts): 18-4-14-50, or if you will Ginkgo-Featherwood-Custard-Apple-Bloodthorn minecarts for the smallest day-long counter I know of yet. (tested)

A three-month example (for smoking sieges): 33-86-18-103 (Tested, newest to oldest from top to bottom: 1 side is 747 steps, other is 100053 steps.)

With low friction track stop on 2nd tile: 31-134-33-196, 1. and 3. can be done with almond and mangrove. Tested, with build order from newest to oldest it took 100803 steps; with oldest to newest it took 100797 steps.


I suspect this principle can be extended for smaller ones, perhaps possibly only 2-cart counter? Though with this there are both hundreds of possibilities and larger search space thanks to the generous 250000 subtile possibility space for exploring.


For a month-long (33600) toggler, the schema has to be expanded, as cart needs to pass over plate in a single step:

T r a c k R a m p s / B u i l d i n g s
S
^

S= Medium friction track stop.

Cart spends 29 steps in the secondary cycle, so it has to undershot a bit. Alas, it needs to come in with greater speed than what single ramp grants to stop near the bottommost ramp border; hence the small cycle and track stops.

Tested, with cart weights 19-88-30-79 in top to bottom older to newer it is exactly 33600 per cycle. 19 = rubber, 30 = pomegranate, 79 can be theoretically any weight from 76 to 80 (included).

As for priming the first hit, one can settle last 3 carts on tile edges by using ═▒▒instead of ╝═▒ at bottom at start, so the moment the weight 19 cart touches next cart it goes over. Then the weight 79 cart will take exactly ten steps on the three tiles before pressure plate after it is pushed over. Precise time for that can be arranged by utilizing deconstruct-toggled raised bridge holding it back.


Weight-adjustable two-cart repeaters

Idea is simple: A light cart delivers periodic impacts to heavy cart on a track stop, only moving a bit. Once the heavy cart goes over the tile, it does a small ring over a pressure plate and returns to start.

Simplest example:

^ S ¢

You'd open the hatch on start, place heavy cart on 'S'top and light cart on hatch. But the pit doesn't have to be just 2 ramps. Few useful options:

¢

NS ramps inside, the cart will deliver 4860 hits if the pit is dry or 4460 hits if filled with 2/7 water. Low impacts are useful for precision counting.

Also, since the cart enters from the side, you can lengthen the time between impacts pretty easily without affecting output.

Everything but northeast corner is ramp, total being being 301 step cycle delivering 29300 per hit. If you use NS ramp in center-north instead, it is 299 step cycle.

T r a c k R a m p
S

1z 24-step repeater in the east cycle with 9770 velocity westward impulse; good to use with medium track stop. The tricky bit is cart return though; as of now I don't have a suitable one (papaya hitting an olive cart that uses two T-ramps to send signal and return before papaya hits again has varying times from two days to much less.) Taking advantage of NW diagonal movement on bumped cart works for consistent cycle times, at least, but with using T-ramps to deliver impact and back via EW ramp onto corner it will alternate between going NW and going EW, which is harder to predict.


1-cart 1200 (1 day) step repeater


T r a c k s R a m p s / B u i l d i n g s
+ + + +
S

The S is medium track stop. If you use NS track ramp in the SE corner and replace wall it leaned on with a minecart, it will be hit with 32620 westward and 19560 northward on every day. Alternatively, you could place pressure plate on the ╝ east of track stop - cart will pass over it in 1 step, so this will toggle a bridge.

Of course, one could also easily rig 48 or 50-step repeater to 24/25 step counter, and possibly more compactly.

Simple powerless ternary counter
T r a c k R a m p s
z 1
¢ ¢
z 0

Based on Larix's ternary counter and spin memory. 1 Cart sits on the hatch, other one in one of the topmost ╔╗╚ tiles. Each time hatch opens, the cart on it starts cycling through the lower 3 ramps. When the hatch closes, it goes over, bumps other cart over the hatch, and sits 1 tile before it - unless it is right before the hatch, where it comes to rest on the hatch. Pretty easy to add 2n tiles lengthening the topmost-left half for 5,7,9,etc. counter. To only add a single tile, one could theoretically use sideways ramp before a corner that sends a cart to the side to come to rest on one tile earlier if it comes to rest on the sideways ramp.

Although I only listed the necessary walls to function, stray cats do not function inside while hatch is open.

Relaying from a signal from this is a bit troublesome, though - one could link ╚ to a door and ╗ to a floodgate so that both are only open simultaneously for a time when one cart is keeping the door open, thus preventing it from closing before floodgate opens.

Scripts

Searcher

HTML 5-tile 4 cart exhaustive searcher for above: https://pastebin.com/Yfik6tF2

Outputs values equal and 1 lower (which happens if carts' build order is exactly aligned).

Can only expect relative accuracy (exact or off-by-as-much-as-six, depending on build order) for inelastic collisions. Since carts, notably the corner cart, can have remaining slow speed, this means using carts whose weight ratio is more than 2. On the other hand, looking only them is much faster.

Copystockpilelinks

A lua script that adds things in linked stockpile to minecart's desired items on linking.

cposchange

cposchange is a .lua script to run while loo'k'ing at cart for repeater testing.

With no arguments, it waits until cart moves off the tile, then pauses the game and tells you which cart moved. With `cposchange flip` it waits until the cart returns to the tile.

UnsuspendSelectedBuilding

UnsuspendSelectedBuilding.lua is a script that applies the idea of autounsuspend to single building selected;

giving an announcement on start, stop and completion.

fix/wheelbarrow-stuckinside

wheelbarrow-stuckinside.lua is a script for solving Bug:6074.

Runs once, I apply with repeat -time 1 -timeUnits days -command [ fix/wheelbarrow-stuckinside ] -name wheelbarrowstuckinside in onMapLoad.init

fix/pathchain

wheelbarrow-stuckinside.lua is a script for solving Bug:10564.

Like above, runs once, for use repeat -time 1 -timeUnits days -command [ fix/pathchain ] -name pathchain