Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2

Author Topic: Copy mining patterns  (Read 2701 times)

isitanos

  • Bay Watcher
  • Seasonal river flood nostalgic
    • View Profile
Copy mining patterns
« on: October 23, 2007, 02:35:00 pm »

When designing rather repetitive patterns such as rooms, it would be useful to copy and save mining designation "brushes" that you can reuse later. Re-using them from game to game would be ideal. Instant 16x16 rooms with all the non-mined pillars to prevent cave-in already marked, and so on.
Logged

Jaqie Fox

  • Bay Watcher
  • Genuine Girl Techie!
    • View Profile
Re: Copy mining patterns
« Reply #1 on: October 23, 2007, 02:46:00 pm »

google AutoHotKey. it is a key macro utility for windows. I use it all the time for room designation etc.
Logged

Faces of Mu

  • Bay Watcher
  • I once saw a baby ghost...but it was just a tissue
    • View Profile
Re: Copy mining patterns
« Reply #2 on: October 24, 2007, 03:59:00 am »

Thanks, Jaqie, that'll be a big help!
Logged

isitanos

  • Bay Watcher
  • Seasonal river flood nostalgic
    • View Profile
Re: Copy mining patterns
« Reply #3 on: October 24, 2007, 11:53:00 am »

Thanks, I'll check this out!
Logged

Ratbert_CP

  • Bay Watcher
    • View Profile
    • The Enraged Primate
Re: Copy mining patterns
« Reply #4 on: October 25, 2007, 10:31:00 am »

quote:
Originally posted by Jaqie Fox:
<STRONG>google AutoHotKey. it is a key macro utility for windows. I use it all the time for room designation etc.</STRONG>


Would you be willing to post a macro or two?  AutoHotKey looks to have a learning curve only slightly shallower than DF...  ;)

Logged
Ratbert #CP#Z
"For FUN and HONOR!"

Jaqie Fox

  • Bay Watcher
  • Genuine Girl Techie!
    • View Profile
Re: Copy mining patterns
« Reply #5 on: October 25, 2007, 04:23:00 pm »

Sure! Here is my complete macro set as of right now for DF:
code:
#IfWinActive Dwarf Fortress
Numpad1::
Run d:\games\df\obsidian.bat
WinActivate "Dwarf Fortress"
WinActivate "Dwarf Fortress"
WinActivate "Dwarf Fortress"
return

Numpad0::
Run d:\games\df\granite.exe
WinActivate "Dwarf Fortress"
WinActivate "Dwarf Fortress"
WinActivate "Dwarf Fortress"
return

; This is a 6x6 room with support in top right creation script
+F10::
Send dd{Enter}
loop 5
{
Send {Up}{Right}
}
Send {Enter}x{Enter}{Enter}
loop 5
{
Send {Left}
}
Send {Up}
return

; This is a horizontal-hall 3x3 room with 2x hall creation script
+F11::
Send dd{Enter}{Down}{Right}{Down}{Right}{Enter}{Left}{Down}{Enter}{Enter}
Send {Left}{Down}{Enter}{Down}{Right}{Right}{Right}{Enter}
Send {Left}{Left}{down}{enter}{enter}{left}{down}{enter}{right}{right}{down}{down}{enter}
Send {up}{up}{up}{up}{up}{up}{up}{up}{up}{right}{right}
return

; This is the vertical room version of above
F11::
Send dd{enter}{pgup}{pgup}{enter}{pgdn}{enter}{enter}
Send {down}{pgdn}{enter}{pgup}{up}{up}{enter}
Send {pgdn}{enter}{enter}{pgup}{enter}{pgdn}{pgdn}{enter}
Send {home}{home}{home}{home}{left}{left}{left}{left}{left}
return

; this is a mining strip selection
F5::
send dd{enter}{up}{enter}{up}{up}{up}
send dd{enter}{up}{enter}{up}{up}{up}
send dd{enter}{up}{enter}{up}{up}{up}
send dd{enter}{up}{enter}{up}{up}{up}
send dd{enter}{up}{enter}{up}{up}{up}
send dd{enter}{up}{enter}{up}{up}{up}
return
; This is an epic room creation script
^F12::
Send dd{Enter}
loop 18
{
Send {PgDn}
}
Send {Enter}
loop 5
{
Send {Home}
}
Send x{Enter}{Home}{Enter}
loop 6
{
Send {Left}
}
Send {Enter}{End}{Enter}
loop 7
{
Send {Up}
}
Send {Enter}{PgUp}{Enter}
Loop 6
{
Send {Right}
}
Send {Enter}{PgDn}{Enter}
return

;This is a vertical (entrance top) craft/storage combination area
+F12::
Send dd{enter}
loop 12
{
Send {pgdn}
}
Send {down}{down}{down}{down}{down}{enter}
Send {left}{left}{left}{left}{left}{left}x{enter}
loop 10
{
Send {up}
}
Send {enter}{left}{left}{enter}{pgup}{pgup}{pgup}{pgup}{up}{up}{up}{enter}
Send {left}d{enter}{end}{end}{enter}{down}{down}{enter}{pgdn}{pgdn}{enter}
loop 7
{
Send {home}
}
Send {right}{right}d{enter}{pgup}{enter}
loop 6
{
Send {right}
}
Send {enter}{pgdn}{enter}
Send {right}{right}{right}{pgdn}
return

;This is a vertical (entrance bottom) craft/storage combination area
F12::
Send dd{enter}
loop 12
{
Send {pgup}
}
Send {up}{up}{up}{up}{up}{enter}
Send {left}{left}{left}{left}{left}{left}x{enter}
loop 10
{
Send {down}
}
Send {enter}{left}{left}{enter}{pgdn}{pgdn}{pgdn}{pgdn}{down}{down}{down}{enter}
Send {left}d{enter}{home}{home}{enter}{up}{up}{enter}{pgup}{pgup}{enter}
loop 7
{
Send {end}
}
Send {right}{right}d{enter}{pgdn}{enter}
loop 6
{
Send {right}
}
Send {enter}{pgup}{enter}
Send {right}{right}{right}{pgup}
return


Logged

Ratbert_CP

  • Bay Watcher
    • View Profile
    • The Enraged Primate
Re: Copy mining patterns
« Reply #6 on: October 25, 2007, 09:36:00 pm »

quote:
Originally posted by Jaqie Fox:
<STRONG>Sure! Here is my complete macro set as of right now for DF:
</STRONG>

What?  No GUI?  No fractal living blocks?  No auto-detecting gems to avoid mining by a bloody novice with a dull brass pick?  (Theoretically possible, but you'd have to make sure it works for your tileset, and keep the mining activities on-screen.)

 :D

I'll spend some time tomorrow working out something fun...

[ October 25, 2007: Message edited by: Ratbert_CP ]

Logged
Ratbert #CP#Z
"For FUN and HONOR!"

Jaqie Fox

  • Bay Watcher
  • Genuine Girl Techie!
    • View Profile
Re: Copy mining patterns
« Reply #7 on: October 25, 2007, 09:58:00 pm »

You asked for mine to learn off of and got it.  I did you a favor.

Even jokingly, bashing my style is not cool.

You're welcome. (nice how you didnt even thank me)

Logged

Lord Nightmare

  • Bay Watcher
    • View Profile
Re: Copy mining patterns
« Reply #8 on: October 26, 2007, 12:26:00 am »

He did put a smiley face, which is implying that he's kidding.
Thank you for posting your script btw.

LN

Logged
"When life gives you zombies... *CHA-CHIK!* ...you make zombie-ade!"

Surma

  • Bay Watcher
    • View Profile
Re: Copy mining patterns
« Reply #9 on: October 26, 2007, 01:23:00 am »

Ratbert_CP is (hopefully) joking.  :)

Quick question, why do you have "WinActivate" run three times for numpad1 and numpad0?

[ October 26, 2007: Message edited by: Surma ]

Logged

Jaqie Fox

  • Bay Watcher
  • Genuine Girl Techie!
    • View Profile
Re: Copy mining patterns
« Reply #10 on: October 26, 2007, 03:27:00 am »

I run an external file which comes up in a console, which steals focus despite me having steal focus prevention on. A single 'focus dwarf fortress' doesn't always focus the DF window properly, a delay in there causes all sorts of frustration because its not active for that whole delay and even then doesnt always focus it.... but three does.
Logged

Ratbert_CP

  • Bay Watcher
    • View Profile
    • The Enraged Primate
Re: Copy mining patterns
« Reply #11 on: October 26, 2007, 08:42:00 am »

quote:
Originally posted by Jaqie Fox:
<STRONG>You asked for mine to learn off of and got it.  I did you a favor.

Even jokingly, bashing my style is not cool.

You're welcome. (nice how you didnt even thank me)</STRONG>


Yikes!  I am very grateful for the examples.  You'd think that after more than a decade, I'd remember that humor is a difficult thing to get across in electronic text...

Please accept my apologies for any miscommunication.  The "criticisms" of your example are all things I expect are significantly non-trivial, sort of like chiding Toady for not having full motion capture animation with per-pixel shaders and dynamic facial motion with complete lip-sync for any arbitrary spoken string.   ;)

I should have made sure to thank you before "complaining" so you'd know that I am grateful for your examples, and not some random ignorance-spouting waste of bandwidth (a class of troll hereafter to be referred to as "Garry").

Thank you for pointing out AutoHotKey and for supplying your personal script as an example.

Logged
Ratbert #CP#Z
"For FUN and HONOR!"

Jaqie Fox

  • Bay Watcher
  • Genuine Girl Techie!
    • View Profile
Re: Copy mining patterns
« Reply #12 on: October 26, 2007, 11:39:00 am »

*giggle*

OK, I'll take that. Thanks for the reply and you're certainly welcome!

Logged

darknight

  • Bay Watcher
    • View Profile
Re: Copy mining patterns
« Reply #13 on: October 30, 2007, 09:34:00 pm »

Hey man, thanks for posting about that program! I have been looking for something like that for some time now, but all I found were huge monster programs that would eat up huge amounts of memory.

If I can figure out how to use it, I'll try to remember to post some of the scripts here for others to use. Or maybe do it on the wiki.

Logged
ho watches those that watch us???

Jaqie Fox

  • Bay Watcher
  • Genuine Girl Techie!
    • View Profile
Re: Copy mining patterns
« Reply #14 on: October 30, 2007, 09:50:00 pm »

quote:
Originally posted by darknight:
Hey man

As I already said, I am not a man.
quote:
thanks for posting about that program! I have been looking for something like that for some time now, but all I found were huge monster programs that would eat up huge amounts of memory.

Yeah, took me a long time to find it too. I am glad I did.
quote:
If I can figure out how to use it, I'll try to remember to post some of the scripts here for others to use. Or maybe do it on the wiki.

There is plenty of help online and in their help function.
Logged
Pages: [1] 2