*This is a Obsidian program. All craftdwarfship is of the highest quality. The program menaces with spikes of 1's and 0's. Below the program is an image of a programmer feverently typing.*
New version. BACK UP YOUR OLD INI!
Get 1.2 from DFFD! http://dffd.wimbli.com/file.php?id=104
DFCOm Does not alter memory, it just feeds it key presses.
Changes to 1.2: Image Viewer, the prefabs now have images or instructions, to view, highlight a command and hit the "Show Image" button. Hit the button again to hide the image window. Other changes just some minor code tweaks.
Screenshot of new image feature at bottom of this post
[Older Stuff]
Update April 12:
Added some screenshots to bottom of post...
Update April 11:
New version 1.1 BETA. BACK UP YOUR OLD INI!
Get 1.1 from DFFD! http://dffd.wimbli.com/file.php?id=104
see the DF.INI for more new trick examples.
Changes..now has a {REPEAT} tag and a {PAUSE} tag (examples in the ini file)
these tags work with the new textboxes.
Putting a {PAUSE} tag in a long string of commands will stop keyboard buffer overflow. Experiment with a timer values that best suits your system.
in the directional arrows, you'll notice a little "F" in the corner, click the "F" and it will change to a "C" for Course mode, every click of the arrow in course mode moves your "X" cursor in DF 10 spaces in the clicking direction. Click the "C" to change it back to "F" (Fine mode) which moves the "X" cursor 1 space at a time.
The timer will run at different speeds on different computers, so test it out and use values that work for your computer.
Any questions post them here and I'll try to answer...
Thx,
Zep--
update 2: hint: if you click the timer countdown text while a command is running it will stop the command when the timer reaches the timer value you set. in case you notice something going horribly wrong, you can stop a {repeat} this way as long as you used a {pause} with it.
[Older stuff]
DFCom is a little something I cooked up today.
DFCom is a room creator, stone dumper, or whatever you need it to be. You code what you want into the ini file.
DFCom ONLY WORKS IN WINDOW MODE, not full screen.
DFCom Requires you have the Microsoft .NET Framework 2.x or above.
Put your commands into the df.ini file. Look at the df.ini to figure out what you need to do. but a short example. ";" is a comment, The Name of the command is in brackets [Command Name], followed by the commands, special keys (up arrow, right arrow ,ENTER, SPACE, etc... must be enclosed in {}, letters and numbers can be put as is. (look at the file, you'll figure it out. I have a couple samples in the df.ini file for you to examine the structure.
code:
;a 5x5 workshop with south center doorway. this line is a comment
[D-Workshop 5x5]
{ENTER}
{DOWN}
{DOWN}
{DOWN}
{DOWN}
{RIGHT}
{RIGHT}
{RIGHT}
{RIGHT}
{ENTER}
{DOWN}
{LEFT}
{LEFT}
{ENTER}
{ENTER}
{DOWN}
So, let's start Dwarf Fortress, when it's up and running start DFCom. It should say it found the Dwarf Fortress window at the bottom if everything is running correctly.
Let's practice.
IN Dwarf Fortress select d and d for mine (make sure you are in a mineable area and not on the surface.
Highlight the 3x3 bedroom and click the "Do Command" button in DFCom.
Dwarf Fortress should now show your command being done.
(you can, after you create the room, select x from the d menu move the df "X" to the top left of the room and hit do command, the bedroom will now disappear)
Now try the 5x5 workshop!
You can use the 4 directional arrows buttons to move the df "X" cursor (when you are in the right df mode) and the 2 up and down arrows buttons to go up and down Z levels if you like. (this also assumes you haven't changed the default key settings)
PRO TIP: if you grab the bottom of the DFC window and pull it down, you'll see the commands DFCom intends to send when you push the "Do Command" button. I like to keep it shrunk, but that view is good for debugging your commands if they dont seem right.
I'm willing to add your rooms,commands, etc... to the default package should anyone be willing to send them to me.
Try to follow the convention in the df ini file.
let examine how i'd like it to be, lets use bedroom again.
[D-Bedroom 3x3]
the D means we must be in the designation menu before we click the command button. (if your building a room, you also want to make sure it's on "Mine"
other example
[K-Dumper 5x5]
You must be in the "k" look menu, when you hit "do command" it will set everything in a 5x5 area from the "X" cusor to be dumped.
If you download and test it and have any bugs or suggestions for future releases, let me know.
A list of the special keys you can use in the {} can be found here: http://www.developerfusion.co.uk/show/57/
I invented the {SPACE} tag because a blank space in the INI file looked dumb.
Thanks,
Zep--
ps, i'm a programmer, not a documenter
[ April 13, 2008: Message edited by: Zep-- ]
[ April 13, 2008: Message edited by: Zep-- ]
[ April 13, 2008: Message edited by: Zep-- ]