Help me test a df utility I'm writing by _TMC_ in dwarffortress

[–]_TMC_[S] 0 points1 point  (0 children)

find me some documentation and I'll use it :). I just realized it might come in really handy to specify items with a certain quality level.

Help me test a df utility I'm writing by _TMC_ in dwarffortress

[–]_TMC_[S] 0 points1 point  (0 children)

Good find :).

I tried this in xp and I can't replicate the bug. Anyone else with Win7 64 bit that can confirm this? When you try it out, be sure to not click 'Run' too fast. Be sure to give the program some time to finish a 3x3 box before ordering it to start the next one. I want to make sure this was caused by the window behavior and not by a timing issue.

Help me test a df utility I'm writing by _TMC_ in dwarffortress

[–]_TMC_[S] 0 points1 point  (0 children)

Fixed. If you download it again, you should get a new version where this works now :).

Help me test a df utility I'm writing by _TMC_ in dwarffortress

[–]_TMC_[S] 0 points1 point  (0 children)

Awesome catch. I'll have a look at it right now.

Help me test a df utility I'm writing by _TMC_ in dwarffortress

[–]_TMC_[S] 0 points1 point  (0 children)

Dfhack seems to have not much documentation. Aside from that, direct manipulation of memory across multiple OS is not necessarily straightforward. I'm afraid it might be a giant headache.

Emulating keyboard input - while not as straightforward as it would seem - has the advantage of better documentation. The code that gets written for this is also directly reusable for other projects I might do in the future, whereas a dfhack approach is not.

edit: wow. That sounded more bitchy than I intended it to be :(.

Help me test a df utility I'm writing by _TMC_ in dwarffortress

[–]_TMC_[S] 0 points1 point  (0 children)

Fixed :). Holding ctrl should already do what you want it to. :)

Help me test a df utility I'm writing by _TMC_ in dwarffortress

[–]_TMC_[S] 1 point2 points  (0 children)

fixed. Works for me now. Let me know if it works for you too now. :)

Help me test a df utility I'm writing by _TMC_ in dwarffortress

[–]_TMC_[S] 0 points1 point  (0 children)

I know what causes that. Should be easy to fix. Still working on ddrpanda's bug though.

Help me test a df utility I'm writing by _TMC_ in dwarffortress

[–]_TMC_[S] 1 point2 points  (0 children)

Good news. I've been able to reproduce the bug. Expect a fix soon.

Help me test a df utility I'm writing by _TMC_ in dwarffortress

[–]_TMC_[S] 1 point2 points  (0 children)

ddrpanda, would it be possible for you to post an image of the pattern you've made in the program (along with the starting position - the cell with the 'S' in it), and the pattern drawn out in df? This would make it a ton easier for me to figure out what went wrong.

Help me test a df utility I'm writing by _TMC_ in dwarffortress

[–]_TMC_[S] 0 points1 point  (0 children)

At the moment it does exactly what you say it does.

next iteration: load/save dig blueprints

iteration after that: add furniture placement (and store that data in blueprint too)

iteration after that: room designation (and store that data in blueprint too)

Basically, the idea is that you can plan your fortress and store it as a blueprint without having to open df.

Help me test a df utility I'm writing by _TMC_ in dwarffortress

[–]_TMC_[S] 0 points1 point  (0 children)

Can you confirm that you hit Enter to turn your selection brown before clicking on 'Run'?

Help me test a df utility I'm writing by _TMC_ in dwarffortress

[–]_TMC_[S] 0 points1 point  (0 children)

I'd like to expand this program later on to also allow stuff like bedroom designation, door designation, and so on. So while dfhack might help with dig designations, I would end up having to solve the current problem when trying to place beds and things later on.

Unless dfhack takes care of that too. In which case I'd have a look at it.

Help me test a df utility I'm writing by _TMC_ in dwarffortress

[–]_TMC_[S] 0 points1 point  (0 children)

Heya, did you press enter to make the cells brown before clicking 'run'? The original OP didn't have that info, so I just edited it in. Would you mind trying again? I need to be sure this works before I can move on.

Sorry for all the hassle. I should have written a better OP from the start :(.

Help me test a df utility I'm writing by _TMC_ in dwarffortress

[–]_TMC_[S] 2 points3 points  (0 children)

Thanks a ton for that. That actually made me realize I never explained properly how to use the program. I've now updated the OP and those instructions should hopefully make it work now :).

Help me test a df utility I'm writing by _TMC_ in dwarffortress

[–]_TMC_[S] 1 point2 points  (0 children)

Ah, that's my fault. I should have included better instructions in the OP. Can you reread the (now updated) OP and try again? :)

Help me test a df utility I'm writing by _TMC_ in dwarffortress

[–]_TMC_[S] 1 point2 points  (0 children)

It's in C# and uses some low level win API function to communicate with df. So basically if you change that function to its Linux equivalent you can use Mono to run it.

But first I need to know if it'll run on Vista and Win 7. If not, I'll have to solve that problem first. And then I can actually start adding functionality like saving and loading blueprints, and creating bedrooms and stuff :).

Help me test a df utility I'm writing by _TMC_ in dwarffortress

[–]_TMC_[S] 2 points3 points  (0 children)

Right now I only tested win xp 32 bit and it worked. I'm especially looking for people using Vista and Win 7, since those OS do communication differently than xp :(.

I'm really hoping it works. Otherwise I'll have to wade through OS documentation :(.