Bay 12 Games Forum

Please login or register.

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

Author Topic: M.O.U.S.E Fortress - Old Thread, see New Thread  (Read 62072 times)

ghostxxx

  • Bay Watcher
  • and my Axe!
    • View Profile
Re: M.O.U.S.E Fortress v0.01 - WIP - Advice/Suggestions Welcome
« Reply #15 on: July 26, 2010, 12:51:11 pm »

Did peterix step down as the DFhack programmer? It would be wonderful to ask him to code that feature in!
Logged

xDarkz

  • Bay Watcher
    • View Profile
Re: M.O.U.S.E Fortress v0.01 - WIP - Advice/Suggestions Welcome
« Reply #16 on: July 26, 2010, 02:44:00 pm »

HOLY BAJEBUS!
Astounding! This works incredible well for me. It makes designation a TON easier. Now I can start designating massive renovations of my fortress with a few clicks of the mouse! Thank you so much Shukaro, and keep up the GREAT work.

PS. Not sure if Peterix has stepped down, perhaps a break is more like it...for once you go Dwarf, you never go back!
Sizeak however, has been incredible generous as to continuing to work on DFhack :].
« Last Edit: July 26, 2010, 02:52:32 pm by xDarkz »
Logged

mnjiman

  • Bay Watcher
    • View Profile
Re: M.O.U.S.E Fortress v0.01 - WIP - Advice/Suggestions Welcome
« Reply #17 on: July 26, 2010, 02:45:46 pm »

bump for the good of DF.
Logged
I was thinking more along the lines of this legendary champion, all clad in dented and dinged up steel plate, his blood-drenched axe slung over his back, a notch in the handle for every enemy that saw the swing of that blade as the last sight they ever saw, a battered shield strapped over his arm... and a fluffy, pink stuffed hippo hidden discretely in his breastplate.

ghostxxx

  • Bay Watcher
  • and my Axe!
    • View Profile
Re: M.O.U.S.E Fortress v0.01 - WIP - Advice/Suggestions Welcome
« Reply #18 on: July 26, 2010, 03:40:00 pm »

Just tried it out! Love it! I think the next step would be to draw a selection border but currently thats beyond the capabilities of ahk.

Nice work!
Logged

Shukaro

  • Bay Watcher
    • View Profile
Re: M.O.U.S.E Fortress v0.01 - WIP - Advice/Suggestions Welcome
« Reply #19 on: July 26, 2010, 04:37:27 pm »

Thanks for the support xDarkz!

As I'm coding the various underlying functions, I'm encountering a problem with this function.

Spoiler (click to show/hide)

It always goes to the else-if statement on line 65 and breaks. I'll keep working on it, but it would be great to get a fresh view in on the process. If you're wondering, this function is supposed to determine the DF cursors location via imagesearch and try to make it match the system cursor. I'll upload the image files I used too.
Logged
Urist McHauler Cancels Give Food: Patient Insane
------------------------------------------------------------------
Mouse Fortress | Custom Menu and Hotkey Framework
Dwarven Higher Learning Mod | Alternative Skill Training

ghostxxx

  • Bay Watcher
  • and my Axe!
    • View Profile
Re: M.O.U.S.E Fortress v0.01 - WIP - Advice/Suggestions Welcome
« Reply #20 on: July 26, 2010, 05:56:21 pm »

Your code looks alright from what I can understand.

Try to put {} into each "if" statement, even if it is one line.

Try using pure "if" statements and not "if else".

Will the numpad calls screw over laptop users?
Logged

Shukaro

  • Bay Watcher
    • View Profile
Re: M.O.U.S.E Fortress v0.01 - WIP - Advice/Suggestions Welcome
« Reply #21 on: July 26, 2010, 06:35:22 pm »

Thanks for the advice, I'll mess around with the {} and else if statements. As for the numpad calls, I don't have a laptop, so I don't know whether or not numpad keystrokes work on them. That would be a good thing for someone to tell me so I could write some alternate code for them if necessary.
Logged
Urist McHauler Cancels Give Food: Patient Insane
------------------------------------------------------------------
Mouse Fortress | Custom Menu and Hotkey Framework
Dwarven Higher Learning Mod | Alternative Skill Training

ghostxxx

  • Bay Watcher
  • and my Axe!
    • View Profile
Re: M.O.U.S.E Fortress v0.01 - WIP - Advice/Suggestions Welcome
« Reply #22 on: July 27, 2010, 06:08:25 am »

Hey! So last night just before I fell asleep, I thought of something cool. Once again, it requires a graphic overlay, BUT, nonetheless, here is the idea.

So, for any designation, it would be amazing for a grid to come up, with each cell being 1 tile size. That way it would be much easier to designate stuff and make sure things line up.

Have a selection square come up to. That would be neat.

I built a fortress with your tool yesterday. It was awesome! So much faster! Just click, click, BAM, magma people invade me! Love it! (Right before I get attacked by an etin, block myself in, and a wave of immigrants comes and proceeds to be slaughtered by the etin! Some funny there!)

Also, your designation script should also work for Stockpiles. (P menu)

Also, another fantastic feature, although Toady will have to code this one in, would be edge scrolling. Whenever you move the mouse to the edge, the screen would scroll in that direction. (Wishful thinking here)



Logged

Shukaro

  • Bay Watcher
    • View Profile
Re: M.O.U.S.E Fortress v0.01 - WIP - Advice/Suggestions Welcome
« Reply #23 on: July 27, 2010, 08:56:56 am »

About the grid and squares, I'll have to check out AHK's drawing capabilities, but it seems doable.

I'm also going to tweak the box drawing function so that instead of waiting for the left button to go up and down, then moving and clicking, it will only wait for it to be down, then click there, then wait for it to be up, then click there. That will also make it compatible with scrolling.

As for scrolling with the mouse, I believe I'll go with a mouse click and drag vector function, where it sends keystrokes dependent on the position and distance of the mouse relative to the clicked point.

Time to code!
Logged
Urist McHauler Cancels Give Food: Patient Insane
------------------------------------------------------------------
Mouse Fortress | Custom Menu and Hotkey Framework
Dwarven Higher Learning Mod | Alternative Skill Training

ghostxxx

  • Bay Watcher
  • and my Axe!
    • View Profile
Re: M.O.U.S.E Fortress v0.01 - WIP - Advice/Suggestions Welcome
« Reply #24 on: July 28, 2010, 12:47:26 pm »

Sounds great! Keep us posted!
Logged

Shukaro

  • Bay Watcher
    • View Profile
Re: M.O.U.S.E Fortress v0.01 - WIP - Advice/Suggestions Welcome
« Reply #25 on: July 28, 2010, 02:43:53 pm »

Alright, we're in the home stretch now! All that needs to be done is some tedious label work and final testing/tweaking.
Logged
Urist McHauler Cancels Give Food: Patient Insane
------------------------------------------------------------------
Mouse Fortress | Custom Menu and Hotkey Framework
Dwarven Higher Learning Mod | Alternative Skill Training

Shukaro

  • Bay Watcher
    • View Profile
Re: M.O.U.S.E Fortress v1.0 - Ultimate Power at your Fingertips!
« Reply #26 on: July 28, 2010, 08:22:19 pm »

Hey everybody, time to inject a little life into you dull and dreary lives. M.O.U.S.E. Fortress is finally here!
Logged
Urist McHauler Cancels Give Food: Patient Insane
------------------------------------------------------------------
Mouse Fortress | Custom Menu and Hotkey Framework
Dwarven Higher Learning Mod | Alternative Skill Training

SethCreiyd

  • Bay Watcher
  • [VESPERTINE]
    • View Profile
Re: M.O.U.S.E Fortress v1.0 - Ultimate Power at your Fingertips!
« Reply #27 on: July 28, 2010, 08:33:01 pm »

This is amazing.
Logged

Patchouli

  • Bay Watcher
  • Where very delicious cake shop?
    • View Profile
Re: M.O.U.S.E Fortress v1.0 - Ultimate Power at your Fingertips!
« Reply #28 on: July 28, 2010, 08:35:09 pm »

Code: [Select]
Mouse Wheel Up/Down - Go Up/Down in Z-LevelsInstant download.
Logged

Shukaro

  • Bay Watcher
    • View Profile
Re: M.O.U.S.E Fortress v1.0 - Ultimate Power at your Fingertips!
« Reply #29 on: July 28, 2010, 08:36:08 pm »

Thank you very much. Just thought this kind of thing could be very useful. As for the scrolling, I think that feature has been needed for too long.
Logged
Urist McHauler Cancels Give Food: Patient Insane
------------------------------------------------------------------
Mouse Fortress | Custom Menu and Hotkey Framework
Dwarven Higher Learning Mod | Alternative Skill Training
Pages: 1 [2] 3 4 ... 11