Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 4 5 [6] 7 8 ... 11

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

Shukaro

  • Bay Watcher
    • View Profile

s20dan: Yeah, if you have two sets in there, it would be a matter of chance which, say, yellowx.png it used as a reference image.

NRN_R_Sumo1: Hmm, I thought that different resolutions were the problem when you mentioned that, but I just tested it at several different resolutions, including 800x600, and it worked. The issue, it seems, is that my computer, your computer, and s20dan's computer seem to have slight different images on screen.

Like NRN said, right now how to fix it is to capture screenshots of the different cursor colors then either letting me crop them or doing it yourself. :-\

Don't worry guys, since I found some sweet values in memory.xml, I'm rewriting the cursorfollow function so that it doesn't need to use imagesearch anymore. :D
Logged
Urist McHauler Cancels Give Food: Patient Insane
------------------------------------------------------------------
Mouse Fortress | Custom Menu and Hotkey Framework
Dwarven Higher Learning Mod | Alternative Skill Training

NRN_R_Sumo1

  • Bay Watcher
    • View Profile

While you're at it, you should have it turn into cursor mode when you push K on the keyboard as well, that way df can be played like most pc games, using both hands.
:D
Logged
A dwarf is nothing but an alcohol powered beard.

s20dan

  • Bay Watcher
    • View Profile

Ive tested it on 2560x1600 and 1280x800, I didnt try any other sizes though.
... The issue, it seems, is that my computer, your computer, and s20dan's computer seem to have slight different images on screen....

 Ah, the joys of development ;)

 Ill check back tomorrow, if theres still no joy i'll take some screenshots and crop them.
Good luck :)
Logged

Shukaro

  • Bay Watcher
    • View Profile

Good news everyone! I've found all the necessary offsets for 31.12 and rewrote the cursorfollow function. It should now be faster, doesn't need images, and will work for everyone with 31.12. Woo!
Logged
Urist McHauler Cancels Give Food: Patient Insane
------------------------------------------------------------------
Mouse Fortress | Custom Menu and Hotkey Framework
Dwarven Higher Learning Mod | Alternative Skill Training

NRN_R_Sumo1

  • Bay Watcher
    • View Profile

doesnt seem to be detecting the cursor for me, it goes top left to the 0,0 coords, so my guess is that 0,0 is the default value and the cursor not being tracked properly.

Kudos on the major speed increase though, that certainly looks like it could keep up with my mouse movements a little better :D
Logged
A dwarf is nothing but an alcohol powered beard.

Shukaro

  • Bay Watcher
    • View Profile

And of course, it doesn't work, fabulous.

I know exactly what the problem is, though. The offsets I used. They probably migrated to a different address, I'll see what I can do.
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

Are you using the SDL version of DF, or Legacy?
Logged
Urist McHauler Cancels Give Food: Patient Insane
------------------------------------------------------------------
Mouse Fortress | Custom Menu and Hotkey Framework
Dwarven Higher Learning Mod | Alternative Skill Training

NRN_R_Sumo1

  • Bay Watcher
    • View Profile
Logged
A dwarf is nothing but an alcohol powered beard.

Shukaro

  • Bay Watcher
    • View Profile

Alright, time for a status report.

The issue I'm focusing on right now is the cursorfollow function. It works perfectly, but, the offsets that DF stores the data it needs to access in have a tendency to move around. That means that while it will work for me now, it probably won't work for someone else, or even if I just restart DF.  :'( What I'm trying to do, is find out how to get the function to access the data reliably.

After the offsets are worked out, the next thing I'll focus on is getting support for the various in-game menus up and running. This should be a fairly straightforward task.

After that, I'll work on whatever needs the most work at the time, as well as the future goal of adventure mode support (also should be fairly straightforward, if slightly tedious).

I'll also be looking into possible uses for a GUI of some sort between all of that.

Of course, suggestions are very welcome, and are, in fact, encouraged.

If you'd like to take a gander at the code, simply open the mouse fortress.ahk file in any text editor.
Logged
Urist McHauler Cancels Give Food: Patient Insane
------------------------------------------------------------------
Mouse Fortress | Custom Menu and Hotkey Framework
Dwarven Higher Learning Mod | Alternative Skill Training

Mike Mayday

  • Bay Watcher
  • gfx whr
    • View Profile
    • Goblinart

I have admired a finely constructed DF interface improvement lately. Good job!

I'm not well versed in these matters but are you using DFhack to access/find the offsets? Cause if you're not, maybe that would help?
Logged
<3

s20dan

  • Bay Watcher
    • View Profile

Don't lose heart Shukaro, your doing a good job. Its already working better than it was originally and in its current state is already a big improvement over vanilla IMO :)
 
 I made a little change to help with constuctions:

WheelDown::SendInput {]},{+}
WheelUp::SendInput {[}, {-}

 It just binds + and - to the mousewheel as well as up/down level, which helps a lot with designating materials for walls etc.
« Last Edit: August 05, 2010, 09:08:31 pm by s20dan »
Logged

ghostxxx

  • Bay Watcher
  • and my Axe!
    • View Profile

I have to say,Shukaro, I am blown away but what you've managed to accomplish! I was expecting just a simple point and click mining designating add on but boy oh boy, you went beyond and above that! I just want to say great job and keep it up!
Logged

s20dan

  • Bay Watcher
    • View Profile

This is an exceptionally designed interface by Shukaro.
 On the item is an image of Shukaro and Dwarves. Shukaro is surrounded by the dwarves, the dwarves are cheering. The artwork relates to the creation of the new interface.
 On the item is an image of a Dwarf and a mouse, the dwarf is hugging the mouse.
 On the item is an image of a dwarf and a keyboard, the keyboard is making a plaintative gesture, the dwarf is laughing.
« Last Edit: August 06, 2010, 02:57:24 pm by s20dan »
Logged

Shukaro

  • Bay Watcher
    • View Profile

Aw shucks, thanks for all the support guys.  :D

Mike: When I first switched over to memory reading from image searching, I looked at DFHack, but the two tools that I actually needed, dfposition and dfoffsets are missing from the distribution. I also looked at the memory.xml and it only had values for 31.11 which didn't work for 31.12, understandably. When I can get my hands on those tools, it will probably be fairly easy to fix up the offsets.

s20dan: Right now, I'm working out the kinks in the in-game menu things, and how I handle that, is I have a cycle key set up, where if, say, the building menu is up you can cycle between +/- and [/] on the mousewheel. Also, sweet.

ghostxxx: Thanks, I often find myself thinking, "Man, I wish I could do X with the standard interface." Now, I can code that kind of stuff in.
Logged
Urist McHauler Cancels Give Food: Patient Insane
------------------------------------------------------------------
Mouse Fortress | Custom Menu and Hotkey Framework
Dwarven Higher Learning Mod | Alternative Skill Training

s20dan

  • Bay Watcher
    • View Profile

Btw I posted a link to the dfposition and dfoffset tools in that other thread. 
 Anyway I was trying to find the offsets myself, I Entered in the offset for CursorXYZ from dfoffsets, but all I managed to do was cause the cursor to go bottom right instead of top left hehe.

 In case this is useful to you, the Cursor offsets for me were: 0xaa62d8

 Ok I just did a check, those offsets do change with every reload so I suppose they arent too useful to you.

 But I have no problems with entering in different offsets each time I play, its just that i cant figure out exactly what to put where ;)
Logged
Pages: 1 ... 4 5 [6] 7 8 ... 11