Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Mod Request: Multiple controllable cursors  (Read 1450 times)

toboo123

  • Bay Watcher
  • Cries when friends don't like DF
    • View Profile
Mod Request: Multiple controllable cursors
« on: March 20, 2012, 03:40:15 pm »

Im wondering if someone could make a mod to enable multiple "cursors " controllable through multiple key bindings this would allow for multiplayer in its most basic form and make DFterms less like a couple of kids fighting for control of the tv remote. Im going into C++ programmiing pretty soon but dont know anything about game design/modding as of yet and would like to know where this would lie on the specturm of super easy to super hard.
Logged

Sphalerite

  • Bay Watcher
    • View Profile
    • Drew's Robots and stuff
Re: Mod Request: Multiple controllable cursors
« Reply #1 on: March 20, 2012, 03:45:53 pm »

This would be impossible to do through modding.  It would require access to the game source code, which only Toady has and isn't giving out to anyone.
Logged
Any intelligent fool can make things bigger and more complex... It takes a touch of genius --- and a lot of courage to move in the opposite direction.

toboo123

  • Bay Watcher
  • Cries when friends don't like DF
    • View Profile
Re: Mod Request: Multiple controllable cursors
« Reply #2 on: March 20, 2012, 06:53:41 pm »

This game aint open sauce  :( i didnt know that.
Logged

Vandala

  • Bay Watcher
  • Mad Tinkerer
    • View Profile
Re: Mod Request: Multiple controllable cursors
« Reply #3 on: March 21, 2012, 01:30:54 am »

Can't you just hook up an extra mouse?
Logged
Working on the "Dwarf Fortress Mod Creation Kit"
http://www.bay12forums.com/smf/index.php?topic=102881.0

GO BUY STARFARER NOW!!!! It's crazy awesome!
http://fractalsoftworks.com/

Darekun

  • Bay Watcher
    • View Profile
Re: Mod Request: Multiple controllable cursors
« Reply #4 on: March 21, 2012, 01:39:37 am »

This game aint open sauce  :( i didnt know that.
Many things about the game would be better if it were(group specialization and all that), but Toady has chosen to keep it closed.

Can't you just hook up an extra mouse?
Sadly, no. In Windows 98, it's possible for a program to use DirectX to access two mice separately, but it must be written for it. In any "NT-based" Windows, all mice control a single cursor even if you jump through DirectX hoops. I suspect Linux allows separate access, due to the "hard things should be possible" ethos, but don't know for sure.

(I was writing a two-mouse FPS there for a while…)
Logged
Darekun likes iron, cobalt, alicorn, cut gems, elves for their comparative advantage, and goblins for being an iron-bearing ore. When possible, she prefers to consume tea, cow meat, and Bacon Salt. She absolutely detests pasture creatures.

Vandala

  • Bay Watcher
  • Mad Tinkerer
    • View Profile
Re: Mod Request: Multiple controllable cursors
« Reply #5 on: March 21, 2012, 03:28:13 am »

I've tried it once for the Jamestown game but just plugging it in under linux doesn't work.
Logged
Working on the "Dwarf Fortress Mod Creation Kit"
http://www.bay12forums.com/smf/index.php?topic=102881.0

GO BUY STARFARER NOW!!!! It's crazy awesome!
http://fractalsoftworks.com/

Vandala

  • Bay Watcher
  • Mad Tinkerer
    • View Profile
Re: Mod Request: Multiple controllable cursors
« Reply #6 on: March 21, 2012, 03:35:29 am »

http://ankurs.com/2010/10/multiple-mouse-keyboard-in-linux/

But apparently it can be done. Multiple mouse and keyboards.
Logged
Working on the "Dwarf Fortress Mod Creation Kit"
http://www.bay12forums.com/smf/index.php?topic=102881.0

GO BUY STARFARER NOW!!!! It's crazy awesome!
http://fractalsoftworks.com/

Vandala

  • Bay Watcher
  • Mad Tinkerer
    • View Profile
Re: Mod Request: Multiple controllable cursors
« Reply #7 on: March 21, 2012, 03:47:46 am »

I got it to work.

Weirdly enough though I can't get a screenshot to work with both mouse pointers being captures. I don't know what's up with that.

But it does work, heh, got to try this out in Jamestown. Hope that works.
Logged
Working on the "Dwarf Fortress Mod Creation Kit"
http://www.bay12forums.com/smf/index.php?topic=102881.0

GO BUY STARFARER NOW!!!! It's crazy awesome!
http://fractalsoftworks.com/

Vandala

  • Bay Watcher
  • Mad Tinkerer
    • View Profile
Re: Mod Request: Multiple controllable cursors
« Reply #8 on: March 21, 2012, 03:53:29 am »

Well no luck there, the game refuses to acknoledge the second mouse.

Then I tried dwarf fortress, which has no problem with two mouses, works just fine.

Don't really see the point of it though.

I could try two keyboards but I suspect I'll get the same problem as with jamestown since the game itself is not meant to be played with two keyboards.

What would work I suspect is two keyboards being used as one. That should work just fine.
Logged
Working on the "Dwarf Fortress Mod Creation Kit"
http://www.bay12forums.com/smf/index.php?topic=102881.0

GO BUY STARFARER NOW!!!! It's crazy awesome!
http://fractalsoftworks.com/

Vandala

  • Bay Watcher
  • Mad Tinkerer
    • View Profile
Re: Mod Request: Multiple controllable cursors
« Reply #9 on: March 21, 2012, 04:01:40 am »

Yup, two keyboards being used as one input device works just fine.

Not sure how useful it is since you still have to wait on the other person since you'll be controlling the same game, the same screen, the same everything.

But there you go.

Might be a cool idea for toady, allowing multiple people to give commands in a single fortress. True multiplayer style. Hmm, that might lead to people setting up their own servers for true community forts in games that never stop going.
Logged
Working on the "Dwarf Fortress Mod Creation Kit"
http://www.bay12forums.com/smf/index.php?topic=102881.0

GO BUY STARFARER NOW!!!! It's crazy awesome!
http://fractalsoftworks.com/