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:DDR"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(Updated my "about me", since it's been 12 years.)
 
(17 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
== About Me ==
 
== About Me ==
I am a student living in British Colombia, Canada. DDR is my screen name, and is simply my initials. Please check out some other games I have been involved in, namely the Battle for Wesnoth, and Frogatto: Frogatto & Friends.
+
I am a game developer living in beautiful British Columbia, Canada. Check out some other games I have been involved in, such as the Battle for Wesnoth or Frogatto (an old school platformer with nice graphics). If you would like to talk to me, leave a comment on my talk page!
 +
 
 +
== Proposals ==
 +
'cascade' simple cave-in system: http://www.bay12forums.com/smf/index.php?topic=58416.0
 +
 
 +
== Stories ==
 +
'''Rakustsherik''', the farm outpost:
 +
<br />http://www.bay12forums.com/smf/index.php?topic=78025.msg2007768#msg2007768
 +
<br />"I am concerned that so many deaths were caused by TRIPPING OVER LIVESTOCK!?!"
 +
<br />"Very well written, if brief.  Good work."
 +
<br />"Great story.  Laughed myself to tears. Many thanks."
 +
 
 +
== Art ==
 +
 
 +
{| class="wikitable"
 +
|-
 +
|[[File:Unknown_curses_12x12_&_Markvii_Walls.png‎]]
 +
|An edition of the unknown curses 12x12 tileset with diagonal walls from the Markvii tileset. Rock doors are unknown curses, as are arrows. (Arrows are absolute '''logs''' in Markvii.) The fonts mix fairly well.
 +
|[[File:Unknown curses 12x12 & Markvii Walls example screenshot.jpeg]]
 +
|-
 +
|Above: The Font
 +
|
 +
|A dwarf at archery practice. (He died later.)
 +
|-
 +
|[[File:Unknown curses 12x12 & Markvii Walls T junction edit.png]]
 +
|A variant of the above font with smooth T-junction walls.
 +
|[[File:Unknown curses 12x12 & Markvii Walls DDR edit sample.png|99px]]
 +
|-
 +
|Above: A version with flat T-joints.
 +
|
 +
|Smooth wooden walls, a bedroom in the sky.
 +
|}
  
 
== AHK Scripts ==
 
== AHK Scripts ==
  
 
===Dwarf Fortress General AHK Script===
 
===Dwarf Fortress General AHK Script===
These AutoHotKey scripts (ahk scripts) contains hotkeys that automate some repetitive tasks, such as selecting trade goods and designating 100 z-levels of up/down stairs. If any problem or key conflicts are encountered, please leave me a message on the talk page. If you wish a new hotkey, you ''may'' leave me a message on the talk page.
+
These AutoHotKey scripts (ahk scripts) contains hotkeys that automate some repetitive tasks, such as selecting trade goods and designating 100 z-levels of up/down stairs. If any problem or key conflicts are encountered, please leave me a message on the talk page. If you'd like to suggest a new hotkey, you can leave me a message on the talk page.
  
====The gettage of AHK and this Script (for beginners):====
+
====Examples====
 +
Trading at a depot is conductive to RSI, especially for trades of over 20,000☼. If you've got your depot set up so that it draws from an immediate stockpile which only accepts trade goods, you can hold '''ctrl-enter''' to select everything. (So, basically, this presses the select and down key for you as long as you hold the key combo.) Pressing '''ctrl-page down''' when you have a leather or cloth barrel from a trader selected selects that barrel for trading, and advances to the next cloth or leather barrel. Much easier!<br />
 +
Now, let's say you want to move up couple dozen z-levels, for you are at the bottom of a large cavern. Normally, this is just a matter of holding shift-<, but it can take a few seconds to scroll up. If you press '''ctrl-shift-<''', you'll go up TEN z-levels for every press of the button. Over short distances of 20 z-levels, this reduces a several second wait to a second-long process, giving up to a 75% savings of time! Over long-distances, however, this hotkey is only slightly quicker, maybe 25% or so.<br />
 +
Ah, designating rooms. It's both fun and kind of boring. My least favourite is designating bedrooms for my dwarfs. Sure, I could put them in a barracks, but where's the class? (Besides, they'll clean up their clothes if you give them their own room.) You can one-press designate two styles of room, and for one of the styles you can also invoke automatic furniture layout and automatic make room.
 +
 
 +
====The installation of AHK and this Script (for beginners):====
  
 
Grab the installer from http://www.autohotkey.com/, and install it.
 
Grab the installer from http://www.autohotkey.com/, and install it.
Line 13: Line 49:
 
Next, copy the script you want below.
 
Next, copy the script you want below.
  
Nip over to Windows Explorer. Go to where you want to store the script, and, from the right click menu, select new -> autohotkey script.
+
Nip over to Windows Explorer. Go to where you want to store the script, and, from the right click menu select new -> autohotkey script.
  
Edit the script (it's in the right-click menu). Click in the text that appears, and press ctrl-a, ctrl-v, ctrl-s, ctrl-f4.
+
Edit the script (it's in the right-click menu). Click in the text that appears, then press ctrl-a, ctrl-v, ctrl-s, ctrl-f4.
  
 
Now, run the script by double-clicking on it. Now, when you press the key combo, it will start the script.
 
Now, run the script by double-clicking on it. Now, when you press the key combo, it will start the script.
Line 21: Line 57:
 
====Fortress Mode Keys:====
 
====Fortress Mode Keys:====
 
<pre>; AutoHotkey Version: 1.x
 
<pre>; AutoHotkey Version: 1.x
; Language:       English
+
; Language: English
; Platform:       WinXP
+
; Platform: WinXP
; Author:         D. D. Roberts <robertsdavidddr@gmail.com>
+
; Author: D. D. Roberts <robertsdavidddr@gmail.com>
;
+
; Version: MIN-1.0
; Script Function:
+
; License: GNU GPL
; This script is a collection of hotkeys that make playing Dwarf Fortress (fortress mode) much, much faster.
 
;
 
; Help:
 
; ctrl <, > . . . - Move up or down ten levels. Very handy for the nice new 150 z-level forts.
 
; ctrl enter . . . - Enter select, and advance the cursor with the down arrow key.
 
; ctrl number pad plus. - Enter select, and advance the cursor with the number pad plus key.
 
; ctrl i . . . . - Dig mode, up/down staircase selected, position mouse cursor in upper left corner. Press to designate a 2x2 up/down staircase and advance one level deeper.
 
; ctrl q . . . . - Dig quarters bloc. 3x3 rooms, ((8 rooms in 2x4 grid) on hallway) x4. Enter dig mode and place cursor on upper left corner of future 2x2 up/down stairway.
 
  
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
+
; Script Keys:
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
+
; These keys aim to speed up the playing of Dwarf Fortress by automating some common tasks.
SetKeydelay, 30
+
;
 +
; Furnish & Room:
 +
;~ w + arrow key . . Position a single wall segment. Hold w and an arrow key to build that wall and advance a tile.
 +
;~ g + arrow key . . Position a floor grate. Press g and {direction} arrow key to build that grate and position a floor grate to the {direction} of the first grate.
 +
;
 +
; Misc.:
 +
; alt <, > . . . Move up or down ten levels. Very handy for 150 z-level forts. (Or, alt-shift-,, ..)
 +
; ctrl enter . . . Enter select, and advance the cursor with the down arrow key.
 +
; alt enter . . . Enter select, enter confirm, and advance the cursor with the down arrow key.
 +
; ctrl number pad plus. Enter select, and advance the cursor with the number pad plus key.
 +
; ctrl page down . . Select current barrel or bin in trade screen (traders' side), and advance to the next barrel.
 +
; alt number pad plus . Press keys tiq+. For use selecting squads to train at a baracks.
 +
 
 +
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
 +
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
 +
SetKeydelay, 20
  
 
#SingleInstance force
 
#SingleInstance force
  
^+.::Send {> 10}
+
;WinWaitActive, Shortcut to dfvdig.exe
 +
;Send, {ENTER}
 +
;WinActivate, Dwarf Fortress
 +
;Reload
 +
 
 +
#IfWinActive Dwarf Fortress
 +
 
 +
!+.::Send {> 10}
 +
Return
 +
!+,::Send {< 10}
 +
Return
 +
 
 +
^Enter::
 +
Send {ENTER}{DOWN}
 +
Return
 +
!Enter::
 +
Send {ENTER}{ENTER}{DOWN}
 +
Return
 +
 
 +
^PGDN::
 +
Send, {ENTER}{PGDN}{UP}{UP}
 +
Return
 +
 
 +
^NumpadAdd::
 +
Send {ENTER}{NumpadAdd}
 +
Return
 +
 
 +
!NumpadAdd::
 +
Send, tiq{+}
 
Return
 
Return
^+,::Send {< 10}
+
 
 +
; -- Begin G Section --
 +
g & Right::
 +
Send, {ENTER}
 +
Sleep, 300
 +
Send, {ENTER}{SHIFTDOWN}g{SHIFTUP}{RIGHT} ;Grate in direction. Traps g, though, so re-g code is needed.
 
Return
 
Return
  
^Enter::Send {ENTER}{DOWN}
+
g & Left::
 +
Send, {ENTER}
 +
Sleep, 300
 +
Send, {ENTER}{SHIFTDOWN}g{SHIFTUP}{LEFT}
 
Return
 
Return
  
^NumpadAdd::Send {ENTER}{NumpadAdd}
+
g & Up::
 +
Send, {ENTER}
 +
Sleep, 300
 +
Send, {ENTER}{SHIFTDOWN}g{SHIFTUP}{UP}
 
Return
 
Return
  
^i::Send {ENTER}3{ENTER}7{SHIFTDOWN}.{SHIFTUP}
+
g & Down::
 +
Send, {ENTER}
 +
Sleep, 300
 +
Send, {ENTER}{SHIFTDOWN}g{SHIFTUP}{DOWN}
 
Return
 
Return
  
^q::  
+
 
Send, i{ENTER}{RIGHT}{DOWN}{ENTER}{SHIFTDOWN}, .{SHIFTUP}d9{ENTER}{SHIFTDOWN}, {SHIFTUP}{SHIFTDOWN}{RIGHT}{SHIFTUP}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{DOWN}{SHIFTDOWN}.{SHIFTUP}{ENTER}{DOWN}{DOWN}7{ENTER}1{ENTER}x{ENTER}9{ENTER}d{ENTER}{ENTER}1{ENTER}33{ENTER}1{ENTER}{ENTER}3{ENTER}11{ENTER}77722138{ENTER}9918{ENTER}{ENTER}11{ENTER}988{ENTER}{ENTER}7{ENTER}99{ENTER}7{ENTER}{ENTER}444{ENTER}{ENTER}x{ENTER}{ENTER}d4{ENTER}{ENTER}3{ENTER}11{ENTER}3{ENTER}{ENTER}3{ENTER}11{ENTER}778888{ENTER}11{ENTER}337{ENTER}{ENTER}88{ENTER}{ENTER}224138{ENTER}33{ENTER}{LEFT}{LEFT}{LEFT}{LEFT}{ENTER}{UP}{UP}{UP}{UP}{UP}{UP}{LEFT}{UP}{ENTER}{UP}{UP}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{DOWN}{DOWN}{ENTER}{ENTER}{LEFT}{LEFT}{LEFT}{LEFT}{UP}{UP} ;lower right corner
+
+g::Send, {SHIFTDOWN}g{SHIFTUP} ;Send g if g pressed; otherwise g won't work. Script traps g in above trigger.
Send, 9936{ENTER}{ENTER}7{ENTER}99{ENTER}7{ENTER}{ENTER}7{ENTER}99{ENTER}4444{ENTER}22222224{ENTER}66666666{ENTER}{ENTER}7{ENTER}99{ENTER}7{ENTER}{ENTER}7{ENTER}99{ENTER}66{ENTER}33{ENTER}1{ENTER}{ENTER}137{ENTER}33{ENTER}1{ENTER}{ENTER}6666{ENTER}{ENTER}9{ENTER}77{ENTER}88{ENTER}99{ENTER}122{ENTER}{ENTER}1111144444444444 ;upper right corner
+
Return
Send, {LEFT}{ENTER}{LEFT}{LEFT}{ENTER}9{ENTER}{ENTER}7{ENTER}99x222{ENTER}44d{ENTER}{ENTER}9{ENTER}77{ENTER}9{ENTER}{ENTER}9{ENTER}77{ENTER}44{ENTER}11{ENTER}3{ENTER}{ENTER}1{ENTER}33{ENTER}1{ENTER}{ENTER}1771{ENTER}{ENTER}9{ENTER}77{ENTER}9{ENTER}{ENTER}7{ENTER}99{ENTER}714{ENTER}4x{ENTER}d{ENTER}11{ENTER}3{ENTER}{ENTER}1{ENTER}33{ENTER}1{ENTER}{ENTER}1{ENTER}{SHIFTDOWN}{RIGHT}{SHIFTUP}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{DOWN}{ENTER}86 ; upper left corner
+
g::Send, g
Send, 411{ENTER}{ENTER}1{ENTER}33{ENTER}1{ENTER}{ENTER}3{ENTER}11{ENTER}44{ENTER}77{ENTER}9{ENTER}{ENTER}9{ENTER}77{ENTER}9{ENTER}{ENTER}144{ENTER}x{ENTER}7d{ENTER}{ENTER}3d{ENTER}11{ENTER}3{ENTER}{ENTER}3{ENTER}11{ENTER}44{ENTER}77{ENTER}9{ENTER}{ENTER}7{ENTER}99{ENTER}7{ENTER}{ENTER}66666666666666688{SHIFTDOWN}.{SHIFTUP} ;lower left corner
+
Return
Return</pre>
+
 
 +
 
 +
; -- Begin W Section --
 +
w & Left::
 +
Send, {ENTER}
 +
Sleep, 250
 +
Send, {ENTER 2}{LEFT}
 +
Return
 +
 
 +
w & Up::
 +
Send, {ENTER}
 +
Sleep, 250
 +
Send, {ENTER 2}{UP}
 +
Return
 +
 
 +
w & Right::
 +
Send, {ENTER}
 +
Sleep, 250
 +
Send, {ENTER 2}{RIGHT}
 +
Return
 +
 
 +
w & Down::
 +
Send, {ENTER}
 +
Sleep, 250
 +
Send, {ENTER 2}{DOWN}
 +
Return
 +
 
 +
+w::Send, {SHIFTDOWN}w{SHIFTUP}
 +
Return
 +
w::Send, w
 +
Return
 +
</pre>

Latest revision as of 19:31, 24 October 2022

About Me[edit]

I am a game developer living in beautiful British Columbia, Canada. Check out some other games I have been involved in, such as the Battle for Wesnoth or Frogatto (an old school platformer with nice graphics). If you would like to talk to me, leave a comment on my talk page!

Proposals[edit]

'cascade' simple cave-in system: http://www.bay12forums.com/smf/index.php?topic=58416.0

Stories[edit]

Rakustsherik, the farm outpost:
http://www.bay12forums.com/smf/index.php?topic=78025.msg2007768#msg2007768
"I am concerned that so many deaths were caused by TRIPPING OVER LIVESTOCK!?!"
"Very well written, if brief. Good work."
"Great story. Laughed myself to tears. Many thanks."

Art[edit]

Unknown curses 12x12 & Markvii Walls.png An edition of the unknown curses 12x12 tileset with diagonal walls from the Markvii tileset. Rock doors are unknown curses, as are arrows. (Arrows are absolute logs in Markvii.) The fonts mix fairly well. Unknown curses 12x12 & Markvii Walls example screenshot.jpeg
Above: The Font A dwarf at archery practice. (He died later.)
Unknown curses 12x12 & Markvii Walls T junction edit.png A variant of the above font with smooth T-junction walls. Unknown curses 12x12 & Markvii Walls DDR edit sample.png
Above: A version with flat T-joints. Smooth wooden walls, a bedroom in the sky.

AHK Scripts[edit]

Dwarf Fortress General AHK Script[edit]

These AutoHotKey scripts (ahk scripts) contains hotkeys that automate some repetitive tasks, such as selecting trade goods and designating 100 z-levels of up/down stairs. If any problem or key conflicts are encountered, please leave me a message on the talk page. If you'd like to suggest a new hotkey, you can leave me a message on the talk page.

Examples[edit]

Trading at a depot is conductive to RSI, especially for trades of over 20,000☼. If you've got your depot set up so that it draws from an immediate stockpile which only accepts trade goods, you can hold ctrl-enter to select everything. (So, basically, this presses the select and down key for you as long as you hold the key combo.) Pressing ctrl-page down when you have a leather or cloth barrel from a trader selected selects that barrel for trading, and advances to the next cloth or leather barrel. Much easier!
Now, let's say you want to move up couple dozen z-levels, for you are at the bottom of a large cavern. Normally, this is just a matter of holding shift-<, but it can take a few seconds to scroll up. If you press ctrl-shift-<, you'll go up TEN z-levels for every press of the button. Over short distances of 20 z-levels, this reduces a several second wait to a second-long process, giving up to a 75% savings of time! Over long-distances, however, this hotkey is only slightly quicker, maybe 25% or so.
Ah, designating rooms. It's both fun and kind of boring. My least favourite is designating bedrooms for my dwarfs. Sure, I could put them in a barracks, but where's the class? (Besides, they'll clean up their clothes if you give them their own room.) You can one-press designate two styles of room, and for one of the styles you can also invoke automatic furniture layout and automatic make room.

The installation of AHK and this Script (for beginners):[edit]

Grab the installer from http://www.autohotkey.com/, and install it.

Next, copy the script you want below.

Nip over to Windows Explorer. Go to where you want to store the script, and, from the right click menu select new -> autohotkey script.

Edit the script (it's in the right-click menu). Click in the text that appears, then press ctrl-a, ctrl-v, ctrl-s, ctrl-f4.

Now, run the script by double-clicking on it. Now, when you press the key combo, it will start the script.

Fortress Mode Keys:[edit]

; AutoHotkey Version: 1.x
; Language: English
; Platform:	WinXP
; Author: D. D. Roberts <robertsdavidddr@gmail.com>
; Version: MIN-1.0
; License: GNU GPL

; Script Keys:
;	These keys aim to speed up the playing of Dwarf Fortress by automating some common tasks.
;	
;	Furnish & Room:	
;~	w + arrow key	.	.	Position a single wall segment. Hold w and an arrow key to build that wall and advance a tile.
;~	g + arrow key	.	.	Position a floor grate. Press g and {direction} arrow key to build that grate and position a floor grate to the {direction} of the first grate.
;	
;	Misc.:	
;	alt <, >	.	.	.	Move up or down ten levels. Very handy for 150 z-level forts. (Or, alt-shift-,, ..)
;	ctrl enter	.	.	.	Enter select, and advance the cursor with the down arrow key.
;	alt enter	.	.	.	Enter select, enter confirm, and advance the cursor with the down arrow key.
;	ctrl number pad plus.	Enter select, and advance the cursor with the number pad plus key.
;	ctrl page down	.	.	Select current barrel or bin in trade screen (traders' side), and advance to the next barrel.
;	alt number pad plus	.	Press keys tiq+. For use selecting squads to train at a baracks.

#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
SetKeydelay, 20

#SingleInstance force

;WinWaitActive, Shortcut to dfvdig.exe
;Send, {ENTER}
;WinActivate, Dwarf Fortress
;Reload

#IfWinActive Dwarf Fortress

!+.::Send {> 10}
Return
!+,::Send {< 10}
Return

^Enter::
Send {ENTER}{DOWN}
Return
!Enter::
Send {ENTER}{ENTER}{DOWN}
Return

^PGDN::
Send, {ENTER}{PGDN}{UP}{UP}
Return

^NumpadAdd::
Send {ENTER}{NumpadAdd}
Return

!NumpadAdd::
Send, tiq{+}
Return

;	-- Begin G Section --
g & Right::
Send, {ENTER}
Sleep, 300
Send, {ENTER}{SHIFTDOWN}g{SHIFTUP}{RIGHT}	;Grate in direction. Traps g, though, so re-g code is needed.
Return

g & Left::
Send, {ENTER}
Sleep, 300
Send, {ENTER}{SHIFTDOWN}g{SHIFTUP}{LEFT}	
Return

g & Up::
Send, {ENTER}
Sleep, 300
Send, {ENTER}{SHIFTDOWN}g{SHIFTUP}{UP}	
Return

g & Down::
Send, {ENTER}
Sleep, 300
Send, {ENTER}{SHIFTDOWN}g{SHIFTUP}{DOWN}	
Return


+g::Send, {SHIFTDOWN}g{SHIFTUP}	;Send g if g pressed; otherwise g won't work. Script traps g in above trigger.
Return
g::Send, g
Return


;	-- Begin W Section --
w & Left::
Send, {ENTER}
Sleep, 250
Send, {ENTER 2}{LEFT}
Return

w & Up::
Send, {ENTER}
Sleep, 250
Send, {ENTER 2}{UP}
Return

w & Right::
Send, {ENTER}
Sleep, 250
Send, {ENTER 2}{RIGHT}
Return

w & Down::
Send, {ENTER}
Sleep, 250
Send, {ENTER 2}{DOWN}
Return

+w::Send, {SHIFTDOWN}w{SHIFTUP}
Return
w::Send, w
Return