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.

User talk:Hussell/ClockToggle

From Dwarf Fortress Wiki
Jump to navigation Jump to search

It would seem to be a repeater (which is what a clock needs) - its not hard to build one. I still need to work my way through the logic a bit more thoroughly though.

The problem is finding/building a repeater that is calibrated so it counts time that is relevant. Ie, allows you to (exactly) count a day, or a year.

Given the game advances time in 'ticks', how many ticks does your device take to operate? (The use of doors instead of bridges/floodgates suggests rapid cycling. One advantage it could have is it doesn't require lots of water to function.)

Edit: do doors destroy water on their square when they close? That could be a problem...

--Squirrelloid 14:26, 9 November 2009 (UTC)

The important bit isn't that it repeats, it's that it repeats at half the speed of its input. I.e., a simple repeater generating an OPEN signal every 202 steps will cause this device to generate an OPEN signal every 404 steps. (Actually, depending on which and how many of the plates in this device you use as outputs, you can generate OPEN and/or CLOSE signals on every OPEN and/or CLOSE signal from the input, or on alternating OPEN or CLOSE signals.)

So far I've only tested this with a bridge/floodgate repeater. The doors finish changing state much faster than the repeater cycle. I'll do some timing tests sometime soon.

Yes, doors linked to mechanisms do destroy water when they close. Possibly magma too, though I haven't tested that.

--Hussell 15:19, 9 November 2009 (UTC)

404 is not a good number, because 404/1200 =/= integer. =(

Really, the trick is to find the right repeater. After that, counting should be easy...

--Squirrelloid 23:11, 9 November 2009 (UTC)

Well, I've found a way to divide a repeater's frequency by 2, and I have a good idea how to divide it by 3 or 5. I'm attempting to design a fast repeater, so that its frequency can be lowered to whatever is desired, and also trying to figure out whether it's even possible to multiply a repeater's frequency. I know there are some electronic circuits that can do it, but I suspect they work by dividing a built-in very fast oscillator's frequency until it matches the desired multiple of the input.

--Hussell 01:04, 10 November 2009 (UTC)

I only just now figured out that pressure plates delay 100 steps before sending a CLOSE signal. That makes a high-frequency repeater much more difficult, and explains some trouble I was having with the Data Flip-flop. The standard repeater takes ~300 steps, sending 4 OPEN signals per day: OPEN signal, 100 delay, bridge and floodgate open, 100 delay, CLOSE signal, 100 delay, bridge and floodgate close and OPEN signal. Hussell 18:59, 10 November 2009 (UTC)