PDA

View Full Version : Better XBOX Controller emulation



Pages : [1] 2

Mikee
04-17-2012, 09:19 AM
Updates:
2012-04-21: CREDIT to fatalazn for upgrading/fixing. Download instructions updated.


-----------------------------

Hi all,

I didn't have much luck with the different methods of emulating xbox controllers on here. Some require you to install drivers that have issues with 64 bit windows, others have very limited control.

I decided to customise the x360ce code to tailor it around dungeon defenders.

I'm not a C/C++ developer, so my code isn't beautiful. I've had to hack my way through it. But it seems to work so far.

If anyone is interested in developing the source code, please get in contact and I'll share it.

So, this plugin attempts to allow you to press F1, F2, F3 and F4 to switch between players to take over your mouse and keyboard.

When on the character select screen, to attach a new character press the F2 key to take over the keyboard on controller 2, then press O to start. From here you should be able to navigate through the menus as through you are on an xbox.

These are the key mappings as they stand:



XBOX Keyboard
--------------------------------
LEFT THUMB WASD
X E
Y F
A SPACE
B C
LEFT SHOULDER Left Ctrl
START O
START ESCAPE
LEFT 1 (heal)
DOWN 2 (skill 1)
UP 3 (skill 2)
RIGHT 4 (repair)


The mouse should function in the same way as it does now (left/middle click).

When positioning traps/towers, you must use your WASD keys to position/rotate it, but you can also press left shift to let the mouse take control of positioning instead.


Installation:

1) Download and upzip http://www.mediafire.com/?uox72nk9vd6co8o
2) Drop the DLL file into "C:\Program Files (x86)\Steam\steamapps\common\dungeon defenders\Binaries\Win32" or "C:\Program Files\Steam\steamapps\common\dungeon defenders\Binaries\Win32"
3) Launch game
4) On character selection, press F2, then "O" to enable a character. (then F3, F4 for other slots)

Known Issues:

1) No activate crystal button yet?
2) Switching back to player 1 sometimes causes you to lose a lot of mouse sensitivity [FIXED]
3) Not everything is mapped fully yet!

TODO:

1) Add some indicator to show you which character is currently selected
2) Allow real xbox controllers to be used alongside virtual ones

DISCLAIMER:

Although these seem quite widely used, it's not entirely clear whether or not VAC/Trendy are happy with this kinda stuff. Use at your own risk - I take no responsibly for people getting banned.
The same goes for this DLL - if anyone doesn't trust me and wants to compile from the source that's completely fine, I can supply a copy on request.


Currently only tested on a single machine. Any feedback at this point to whether or not it works for other people would be lovely. :)

I'm sure there's a huge amount of bugs in this because I only made it last night. Please don't get upset if issues aren't fixed quickly - I've never programmed in this language so I'm learning as I go. :)

Mikee
04-17-2012, 01:14 PM
New version:

http://www.mikeefranklin.co.uk/xinput1_3_v3.zip

This should have sorted the mouse sensitivity issue.

ShadedDimensions
04-17-2012, 03:50 PM
Very nice, I'd love to see the source of that, just to see how you did it - and maybe see if I can improve on anything.

But the concept of it sounds great, nice work.

EDIT:
After playing around with it for a few minutes, I've noticed a few problems.
- Press F2-4 to change player, now alt-tab to a new window - the mouse is still locked to the middle of the screen, until you hit F1 to swap back to the first player. (In windowed mode at least, didn't try fullscreen.)
- I'm still getting the lowered sensitivity when switching back to player 1.
- When swapped to a new player, moving the mouse still makes player 1 look around in that direction, can be a little disorientating.
- When swapped to a new player, you can't look up/down.

Other than that, it seems a lot better than the other alternatives I've tried.

pedrogush
04-17-2012, 06:33 PM
As i've said earlier, you're da bomb Mikee! I've humbly posted a link to this thread on mine and sandbagr's guide. Thanks a lot for this!

pieman509
04-17-2012, 06:41 PM
ill test it the first chance i get, but looks pretty solid. unlike some of the other ways, this one may actually work for me :D

Mikee
04-17-2012, 07:03 PM
Very nice, I'd love to see the source of that, just to see how you did it - and maybe see if I can improve on anything.

But the concept of it sounds great, nice work.

EDIT:
After playing around with it for a few minutes, I've noticed a few problems.
- Press F2-4 to change player, now alt-tab to a new window - the mouse is still locked to the middle of the screen, until you hit F1 to swap back to the first player. (In windowed mode at least, didn't try fullscreen.)
- I'm still getting the lowered sensitivity when switching back to player 1.
- When swapped to a new player, moving the mouse still makes player 1 look around in that direction, can be a little disorientating.
- When swapped to a new player, you can't look up/down.

Other than that, it seems a lot better than the other alternatives I've tried.

Thanks for the feedback - really appreciated. I'll see if I can fix some of those issues for the next release. Hadn't even thought of checking it in windowed mode! :)

TheRedMood
04-18-2012, 01:38 AM
My god man, this is exactly what I've been looking for! I will try it when I get home today, but I would like to ask if you could give me the source code. I'm an new coder so I like to learn from reading code, I promise
that I won't redistribute it.

If you could email it to: teodor.spaeren@gmail.com
That would be awesome.

But regardless of that, thanks for something that looks like a gift from the gods :)

WaxPaper
04-18-2012, 02:15 AM
This sounds great, but I'm having trouble with it... First of all, it looks like you're supposed to put the .dll in the Win32 folder like the other emulators, not just the Binaries root folder. Then I got it to work, somewhat; when I click F2, I lose control of the mouse. At first I thought that might be normal until I actually selected a character, but the O key (the letter "O") won't respond.

I can click on F1 to regain mouse control, but so far I haven't been able to figure out what's wrong.

Are your keybinds already stored in the dll file, or do we need to set the keybinds ourselves in the x360kb.ini file from the original keyboard emulator?

ShadedDimensions
04-18-2012, 04:14 AM
This sounds great, but I'm having trouble with it... First of all, it looks like you're supposed to put the .dll in the Win32 folder like the other emulators, not just the Binaries root folder. Then I got it to work, somewhat; when I click F2, I lose control of the mouse. At first I thought that might be normal until I actually selected a character, but the O key (the letter "O") won't respond.

I can click on F1 to regain mouse control, but so far I haven't been able to figure out what's wrong.

Are your keybinds already stored in the dll file, or do we need to set the keybinds ourselves in the x360kb.ini file from the original keyboard emulator?

Yeah, you're supposed to put it into the Win32 folder.

As far as I can tell without seeing the source code, all the keybinds are hard-coded, as it doesn't generate any sort of configuration file. (Hopefully soon there will be an option to customize them.)

That said, I have no idea if Mikee has left the existing code in from x360ce where it reads the file, and could be altering the keybinds based on what is stored in there.

hikarikami
04-18-2012, 04:24 AM
Sounds awesome! I've tried a few other emulation options and only ever been able to have one, non movable player in the game. Okay for leveling up but that's about it. I've just downloaded this so hopefully it works without any problems! Thanks!

Mikee
04-18-2012, 04:33 AM
Yep! Sorry, my bad! It was meant to be the Win32 folder.

I was having a couple of problems with this myself last night and mouse movement wasn't working correctly - I'll have a go at fixing it all tonight.

I'll put the source code up on GitHub - It'll be quite embarrassing because it's completely hacked together, but hopefully someone can help out a bit.

Regarding key customisation - It's something I stripped out to make it easier for myself with my limited knowledge of C/C++. I'll put it back in (albeit altered slightly) once the rest of the plugin is working as I'd like. :)

WaxPaper
04-18-2012, 06:13 AM
Any idea what would cause the F1-F4 selection keys to work, but not the other keys, like O? That's where I'm stuck right now. I made sure to overwrite my old .dll with yours, and I also deleted the x360ce.ini file from the original emulator.

Could it have something to do with my OS being Win 7 64-bit, as opposed to 32? (Just for the hell of it, I threw the dll in the Binaries\Win64 folder as well, but no luck...

I can change the mouse possession with F1 to F4, but the letter O (nor any others) work to add a character in. Regardless, thanks for making this; it's gonna be a lot more convenient than the standard emulator!

Mikee
04-18-2012, 06:38 AM
No, I'm not too sure actually.

Try this testing program to see what's happening:

http://www.mikeefranklin.co.uk/xinput_test.zip

Just extract that folder onto your desktop or somewhere and run XInputTest.exe

Now press F2 (which is "Controller 1") and try a few keys like O/A/S/D/W and the mouse. See if that picks up any key presses.

Similarly, F3 should map to "Controller 2" and F4 should map to "Controller 3". Controller 4 shouldn't have any mapping.

Mikee
04-18-2012, 06:45 AM
To anyone interested, the source code is up at:

https://github.com/mikeemoo/x360dd

Sorry it's in such a mess. Like I say, I don't know this language! :)

WaxPaper
04-18-2012, 07:25 AM
Mikee, just tested it with the xinput_test app (used your dll in the folder), and it seems to be working fine with that... F2 is Controller 1 and so on, just like you said...

Maybe this has something to do with it... Every time I was trying to test it before, I was in the character selection screen and I had already selected a first character for the "Character 1" spot... So I was trying to use the emulator to bring in a second character into the selection screen. F1 would give me control of the mouse like it should, while F2 to F4 would take control of the mouse (again, like it should), but the O key for Start wouldn't work... Although according to this test app, it's registering fine.

I'll get in there and try again; maybe it doesn't work if I already have a first character selected or something... Thanks for the help thus far...

EDIT: Nope, there was no difference if I had already selected the first character or not. Really odd here; I can't imagine why part of it's working but it won't register the Start keybind. Eh, it might be worth a game reinstall... ;)

hikarikami
04-18-2012, 08:08 AM
So I just tested it out then and it mostly works for me. The only problem I have is the mouse not taking over for player 2/3/4 when I use the F2/3/4 keys. While I can control those characters with the keyboard, the mouse still moves player 1 around. Still, this allows me to reposition characters relatively easy. Would love to see a version with the "Activate Crystal" button in tact!

Edit*
I just tried it out with the test version you posted, and now the mouse works. Great work!

Also, I'm Windows 7 64 bit, and I brought the second/third/fourth characters in once I was already in a game rather than at the character select game.

ShadedDimensions
04-18-2012, 08:15 AM
To anyone interested, the source code is up at:

https://github.com/mikeemoo/x360dd

Sorry it's in such a mess. Like I say, I don't know this language! :)

Nice, just re-installing VS11 and I'll take a look.

Mikee
04-18-2012, 08:38 AM
I'll take a look at these issues tonight then release a fixed version (hopefully!).

Inbetween doing Misty and working on my other secret DD software.. ;D

TheRedMood
04-18-2012, 09:16 AM
I just tested it out and it works like a charm, but it has a few bugs. Nothing really new, but when i first started up the sensetivity was really low on character one and when i tabbed out the mouse no longer followed the selected character, but the main one.

I can't wait for the bug fix and I hope that your future software for DD will be as good as this one :)

Baillieboy7
04-18-2012, 02:42 PM
@WaxPaper I have the exact same problem, although i have absolutely no idea what any of you are talking about, so if you manage to find a solution, could you please pass it on, in laymans terms though! :p

noodle2k
04-18-2012, 03:39 PM
Really nice work, i searched exactly this, just one thing anoying me.
The sensibility of the controler affect my mouse speed like everybody, but can you just make a txt file were we can adjust the sensibility? In mouse and pad mode the sensibility is really too slow for me.

Sorry if my english is bad and i'll hope you can do something about that.
And thanks again for your great job.

Oh and i had an issue after deleting your dll on my guardian pet:
http://cloud.steampowered.com/ugc/559813634571515882/E4DC536B087D7B633F1968575D79F339B786B90F/
not really annoying but i hope nobody will report me for seeing this stats ><

ShadedDimensions
04-18-2012, 03:55 PM
Oh and i had an issue after deleting your dll on my guardian pet:
http://cloud.steampowered.com/ugc/559813634571515882/E4DC536B087D7B633F1968575D79F339B786B90F/
not really annoying but i hope nobody will report me for seeing this stats ><

It's not the emulator, it's the most recent patch. (7.29c)
http://forums.trendyent.com/showthread.php?56282-Uh...-what-7.29c&p=428259#post428259

WaxPaper
04-18-2012, 04:54 PM
Hey Mikee, just had one more thought that I wanted to share in case it helps you debug the issue that some of us are having... Could the problem have anything to do with the "hook mode" you're using?

Previously, when I've used either x360ce (for generic controllers) or x360kb (for the keyboard), they always worked with whatever the default hooking mechanism was, and both of them would give me that notification beep when I launched DD to announce they had initiated...

With your dll, I don't get that beep. Could that mean it's not hooking correctly? And maybe the F1 to F4 keys don't rely on the hook, which is why they work for me but nothing else does? Anyway, it's just something I thought of while using the testing app again and reading the through the official website... Thanks again for all your work, this will be a long-overdo tool for the DD community!

Mikee
04-18-2012, 05:49 PM
It doesn't beep because I removed the line of code that makes the beep noise :)

I'm wondering if it's something to do with your F-keys. Maybe some alternative-function mode on your keyboard or something which I can't replicate.

As an experiment I'll add the bindings to 1,2,3,4 on the keypad too, so we can see if that fixes it.

(sorry, haven't worked on this yet tonight. heads in another thing!)

WaxPaper
04-18-2012, 07:13 PM
It doesn't beep because I removed the line of code that makes the beep noise :)

I'm wondering if it's something to do with your F-keys. Maybe some alternative-function mode on your keyboard or something which I can't replicate.

As an experiment I'll add the bindings to 1,2,3,4 on the keypad too, so we can see if that fixes it.

(sorry, haven't worked on this yet tonight. heads in another thing!)

No rush, no problem... Just to confirm, the F1 to F4 keys are the only part that works for me (it's the other keybinds which do noting, like "O" to Start), even though I can see them working in the tester app. Just wanted to make that clear, because the way you were talking about offering the 1 to 4 as alternate keys, it seemed like you thought the function keys weren't working.

The only reason I say "they work" (besides them working in the testing app) is because in-game, if I press F2 to F4, my mouse cursor disappears like it should, but none of the other keybinds work. I can gain back control of the cursor fine though, just by pressing F1.

Pyriana
04-18-2012, 07:18 PM
Is it possible to make us able to adjust the hotkeys through a cfg file?

I ask because I don't use wasd, I use esdf, in fact I've remapped a lot of my keys.

noodle2k
04-18-2012, 09:58 PM
It's not the emulator, it's the most recent patch. (7.29c)
http://forums.trendyent.com/showthread.php?56282-Uh...-what-7.29c&p=428259#post428259

thx for the information.

sandbagr
04-19-2012, 12:24 AM
Mikee, I have to agree with Pedrogush, you are a god!
I was never crazy about that other convoluted complicated way of kludging some basic functions, this sounds like the only way to fly! I am so glad you got this project going, you da man.


Is it possible to make us able to adjust the hotkeys through a cfg file?
I ask because I don't use wasd, I use esdf, in fact I've remapped a lot of my keys.

Me too, same deal. I use most of my Function keys too.

Nogal
04-19-2012, 06:30 PM
Love the fact that I can split screen now and do it quite well. Any chance you might be able to get this to work in windowed mode?

Cymmina
04-19-2012, 07:58 PM
The mouse is sluggish for me, even with just the 1 character. I can tell even from the startup screen. Tracking isn't too bad, it's adjusting the camera that's killer.

Excited about having a working version of this, but I'll have to go back to the original dll for now ><

squireal
04-19-2012, 11:33 PM
I'm hoping the first post disclaimer is just an 'in case'. Is this safe with ranked mode as I really don't need a Vac ban? Thanks Mikee for the effort you've put into this.

WaxPaper
04-19-2012, 11:46 PM
Okay, I might have figured out the problem I was having, because now the controls seem to be working and I'm able to hit "O" for Start, to join a game when F2, F3 or F4 is selected...

If anyone was having the same problem as me (the function keys worked to change virtual controllers, but no other keys would work), try removing these files from the following folder:

Files:

XInputDotNetPure.dll
XInputInterface.dll

Folder: \Steam\steamapps\common\dungeon defenders\Binaries\

My problem was that although I removed files related to previous emulators (x360kb and x360ce) in the "Binaries\Win32" folder, I never noticed that the above-mentioned files were also leftover in the root "Binaries" folder, and they must have been what was interfering.

Just wanted to share this with people having a similar problem...

Cheers!

fatalazn
04-20-2012, 12:30 AM
Okay, I might have figured out the problem I was having, because now the controls seem to be working and I'm able to hit "O" for Start, to join a game when F2, F3 or F4 is selected...

If anyone was having the same problem as me (the function keys worked to change virtual controllers, but no other keys would work), try removing these files from the following folder:

Files:

XInputDotNetPure.dll
XInputInterface.dll

Folder: \Steam\steamapps\common\dungeon defenders\Binaries\

My problem was that although I removed files related to previous emulators (x360kb and x360ce) in the "Binaries\Win32" folder, I never noticed that the above-mentioned files were also leftover in the root "Binaries" folder, and they must have been what was interfering.

Just wanted to share this with people having a similar problem...

Cheers!

I don't know if that's a good idea, since those are files provided by Trendy I believe. What I found to be the issue was that the link posted on the first post and the compiled version on GitHub (also in the tester app) are different versions. Try using that version, also I believe it only works fullscreen?

And I'm not completely sure, but I think the dll doesn't hook properly if you change it often (or I was imagining things) due to steam cloud or some other unknown issue.

Best of luck getting this working, it's worth it :) (after fixing the mouse lag issue anyway)

WaxPaper
04-20-2012, 01:05 AM
I don't know if that's a good idea, since those are files provided by Trendy I believe. What I found to be the issue was that the link posted on the first post and the compiled version on GitHub (also in the tester app) are different versions. Try using that version, also I believe it only works fullscreen?

And I'm not completely sure, but I think the dll doesn't hook properly if you change it often (or I was imagining things) due to steam cloud or some other unknown issue.

Best of luck getting this working, it's worth it :) (after fixing the mouse lag issue anyway)

Well, I just moved them into a backup folder, so I can restore them if need be. Good point though...

This is strange; I downloaded the newer file from GitHub that you mentioned (different checksum and it's smaller in file size), but despite being newer, that dll didn't work for me at all. I used fullscreen mode just in case, but no luck. In fact, that newer one doesn't even seem to be hooking, because the function keys wouldn't even respond to change the mouse control, let alone the other keybinds.

So the newer one is working for you, though? The one that's 79 KB with a CRC of 3fa29356? Hmmm...

I really hope Mikee can get some help for this, because it's a great alternative to the other methods available.

EDIT: You might be on to something about that Steam Sync thing... I tried the newer dll one last time, and this time it worked. In both full screen and windowed mode.

The only thing is -- and I didn't realize this until just now -- the mouse control seems to stay with Player 1 no matter what, even though another controller is selected and the rest of the keybinds are working... I can make other characters enter the game, use A and B and walk around using the WASD keys. But the mouse stays fixed in the center of the screen, and the LMB and RMB still control Player 1, not the character that you have selected with the Function keys. So you can't look around using the mouse... And you're supposed to be able to do that with this, right?

fatalazn
04-20-2012, 03:44 AM
That's actually a really strange glitch you mention that the LMB and RMB control player 1 but WSAD and other keys control the other character. I actually recompiled and edited some code to fix the mouse sensitivity issue, and I also PMed Mikee about it, but I don't know why yours has that glitch. It may be cause of the files you removed? Also make sure your UDKInput.ini file is default, cause that can also mess with some stuff.

Nogal
04-20-2012, 10:37 AM
I'm having some of the same issues that WaxPaper is having. Which file am I looking for on GitHub? I found the dll under the Release folder but it's a different size that he mentioned...

fatalazn
04-20-2012, 11:03 AM
If you download it, you'll see that it is the right size.

Nogal
04-20-2012, 11:46 AM
I am having the same issues with mouse control. The mouse stays with player 1 regardless of what player you are controlling.

Kandar
04-20-2012, 04:10 PM
same thing for me with the mouse control. still useful to get extra pets when im soloing .

fatalazn
04-20-2012, 05:14 PM
Well... Probably wrong compiled version or something, here's my compiled version with some edited code

http://www.mediafire.com/?uox72nk9vd6co8o

Just for you guys to test.

WaxPaper
04-20-2012, 05:55 PM
Well... Probably wrong compiled version or something, here's my compiled version with some edited code

http://www.mediafire.com/?uox72nk9vd6co8o

Just for you guys to test.

Thanks man, I'll post back after I try it to let you know if it worked for me as opposed to the original release.

Kandar
04-20-2012, 06:27 PM
Using that file, everything works fine for me.

Nogal
04-20-2012, 06:43 PM
Everything is working great here as well... actually able to do it in windowed mode now.

2 things I still notice however. When going to the second hero, the mouse movement is very sluggish and you don't have the full range of motion you should. Also when going to the second here, the mouse movement is still happening on the first player.

Other than that, this compile has fixed my biggest issues. Thanks!

The Clone
04-20-2012, 08:11 PM
I still get a slower mouse but only in 1st person or the 3rd person with the lowest zoom, zooming further away makes the mouse go at normal speed again.

geegee
04-20-2012, 10:32 PM
Thanks, Mikee, and fatalazn for upgrading it ! works awesome.

Mikee
04-20-2012, 10:36 PM
Sorry guys I've had my head deep in other projects. I WILL get back onto this soon.

For now, I can merge any code back into the main repository if anyone wants to send over some code or do some pull requests (or indeed take it over).

The 'other' project I'm working on will probably make you guys extremely happy if I actually manage to do it. :)

Mikee
04-20-2012, 10:40 PM
First post updated with the download link. :)

fatalazn
04-21-2012, 05:54 AM
I did a pull request on the git repository... Man I thought Git was same as SVN, man was I wrong, took a while to figure out I had to commit AND push instead of just commit.

Mikee
04-21-2012, 06:11 AM
Beautiful :) You tidied up too!

Yeah switching from Svn to Git took me a while at first. I do prefer Git now, but it did get me quite angry to start with. Commit->pull->push! seems crazy.

fatalazn
04-21-2012, 06:50 AM
Just a bit, case statements are more intuitive for those types of things I believe.

What's this other project you're working on? :D

Nogal
04-21-2012, 01:08 PM
So I need to take back my last statement. Seems it works in windowed mode only if you start out in full screen and then switch to windowed. Mouse controls are still very slow on P2 and mouse movement still happens on P1 when controlling P2.

fatalazn
04-21-2012, 01:48 PM
So I need to take back my last statement. Seems it works in windowed mode only if you start out in full screen and then switch to windowed. Mouse controls are still very slow on P2 and mouse movement still happens on P1 when controlling P2.

Yeah, I know those bugs exist, and moving the mouse in p1 doesn't make a big difference, if you have a mouse where you can change the hertz that it refreshes at, setting it at a lower speed will improve the slow sensitivity issue. Until there's a new way to hook the mouse to the game, or to make it more efficient that either me or Mikee or someone else discovers, there's not really much you can do about it.

The fullscreen thing is something I'll eventually look into... But I've never done WinAPI or C++ much before, so no hopes up there. :)

Nogal
04-21-2012, 02:19 PM
No worries, I'm not really complaining about it. Just little things I notice here and there. :)

Mikee
04-24-2012, 05:08 AM
Bumping up a bit just in case anyone else is looking for this.

farcry15
04-24-2012, 02:23 PM
So I need to take back my last statement. Seems it works in windowed mode only if you start out in full screen and then switch to windowed. Mouse controls are still very slow on P2 and mouse movement still happens on P1 when controlling P2.

you can quickly switch between windowed/fullscreen at any point with either alt+enter or F11

KamelJabber
04-24-2012, 05:57 PM
Are you serious!
this is amazing!
Sticky!!!
Great job.

Few i think I counted four links. Does the OP have the most recent download?

KamelJabber
04-24-2012, 06:09 PM
How do you leave a game? I tried hitting E when the "leave game" option is selected, O and Esc
Am I missing something?
ty

EDIT: nvm, DUH, i'm embarrassing myself, i'm giddy, works great! :)

Devilfire
04-25-2012, 02:32 AM
I'm having major problems with this, I've put the .dll file into the correct location, but upon pressing F2 in game (or F3 and F4) nothing happens at all.

fatalazn
04-25-2012, 03:01 AM
I'm having major problems with this, I've put the .dll file into the correct location, but upon pressing F2 in game (or F3 and F4) nothing happens at all.

Try launching as full screen.

KamelJabber
04-25-2012, 06:53 AM
I'm having major problems with this, I've put the .dll file into the correct location, but upon pressing F2 in game (or F3 and F4) nothing happens at all.

You know you have to hit F2 then hit "O" to bring up the character screen.
Then hit F1 to go back to the main controls.

This worked flawlessly for me yesterday w/o any tweaking/changes or modifications...

WaxPaper
04-26-2012, 06:46 PM
This is buried earlier in the thread, but as fatalazn proposed (and I confirmed, at least on my end), there could be something screwy going on with Steam's syncing of game files, even though you wouldn't think that would affect a .dll file simply dropped in the folder. Basically for me, whenever I dropped a new .dll file (a newer or older version of this emulator), it sometimes wouldn't "take" until 20 or 30 minutes later, or after a dozen or so launches/exits of the game client.

I don't know why this is, or if it really is a problem related to the way that Steam saves and syncs things like local .ini and preferences, but all I can say is that there seemed to be no rhyme or reason why it would suddenly just "start working" after a while...

So if it isn't working for you after the first time you download it, leave it in the folder for a while and keep checking to see if it's working throughout your next dozen game launches, or after a few hours. You'll know it's working if you press F2 through F4 anywhere (even the title screen) and you lose control of the mouse cursor (usually it fixes itself in the middle of the screen). You can regain control by pushing F1.

As for fullscreen vs. windowed, it works in both for me, and I never found one or the other as a determining factor in whether or not it's working. When I earlier described the files initially not working for me, they wouldn't work in fullscreen or windowed. Then when it started working, it would work for both.

MalenkoMC
04-27-2012, 11:52 AM
So I saw a post about this on Reddit. Where is the "official" version of this located at so that I can try this out?

Have the mouse issues been corrected? Is there any changes to the procedure from the OP?

Mikee
04-27-2012, 12:30 PM
I've had my head in other stuff so not got around to fixing the things I wanted to fix.

Anyone is welcome to fork and submit a pull request though if they know C++ better than me.

The latest version is the link in the OP.

laddy3
04-29-2012, 10:31 PM
I'M MAD nice program BUT I WAS STUPID and didn't know the controlls so I clicked mindlessly and DELETED TWO of my characters with gear on them GEE GEE DD :d fml. Use with caution XD.

MitchellW
04-30-2012, 11:08 AM
Does it only work full screen?

-it does, working fully now, yay!

Thanks guys!

DrBHindert
04-30-2012, 02:20 PM
So is this "legal" btw ?
Can there be a Trendy or VAC bann for using that ?

pedrogush
04-30-2012, 03:38 PM
So is this "legal" btw ?
Can there be a Trendy or VAC bann for using that ?

From my personal experience no. I've been using emulation for 3 months now without any issue. Unless VAC is really slow (hint: it isn't), this is totally legit. As for Trendy their issues are with item hacking, not emulation by a long shot.

Bipper
04-30-2012, 04:18 PM
This is probably idiot question of the week, but does this app still need a physical controller plugged in (via USB I'd imagine?) for it to work?

Kandar
04-30-2012, 04:49 PM
No it does not.

Bipper
04-30-2012, 05:12 PM
No it does not.

Thank you!

mey!R
05-01-2012, 04:03 PM
Realy nice work, tested it in and I love it. Had to switch back to the other emulator though since I always play in window mode, hope it gets fixed soon ^^

Kandar
05-01-2012, 04:41 PM
Realy nice work, tested it in and I love it. Had to switch back to the other emulator though since I always play in window mode, hope it gets fixed soon ^^

You can use it in window mode... Simply start the game in Full screen, once in game switch to window mode. It will function normally.

mey!R
05-01-2012, 08:59 PM
Thx I will try it.

Defender 001
05-04-2012, 07:16 AM
Hey I cant seem to get it to work..
I downloaded the file and put it in the win32 map, but when I press F2 and O nothing happens.. what should I do?

Defender 001
05-04-2012, 07:24 AM
lol player 4 works now. But I cant seem to get around with it. player 2 and 3 still don't work :P

btw: is there an option to change the keys? I'd like to do everything with the numpad.

Bennit
05-06-2012, 06:12 PM
Nice idea!
I'd like the source aswell, mainly to change keybindings for azerty keyboard, since it seems hardcoded? :)

Compiled with mingw? or cross compile environment on linux?

fatalazn
05-06-2012, 08:22 PM
Launch as fullscreen to get it to work.

The source is posted on GitHub if you care to look through the thread, compiled on Windows natively.

PackOfWildAsians
05-06-2012, 09:29 PM
Awww yeah, this is so nice. SO much loot all to myself! Muahahahaha

Sestren
05-06-2012, 10:43 PM
lol player 4 works now. But I cant seem to get around with it. player 2 and 3 still don't work :P

btw: is there an option to change the keys? I'd like to do everything with the numpad.

I had the same problem as you for a while. Apparently it was because I had an actual usb controller plugged in. It was not compatible with the game, but was apparently locking out players 2-3 from working correctly using this emulation method.

draemn
05-07-2012, 04:45 AM
odd... it was working for me a couple hours ago and now it's not working period... a few other people in my game who use it says it doesn't work anymore for them either. I restarted my game and it started working again... but super inconvenient to be on survival and have it stop working :/

Helios
05-07-2012, 11:52 AM
Works great for me. I suggest for people who it doesn't work for, post your system specs along with any input modifying software you're running (Like Synergy, Keyscrambler, etc)


Also, it might be worth disabling your Anti-virus and try again. Some A/Vs might not like that sort of thing and are blocking it.

Arkangel
05-08-2012, 01:28 PM
As of 7.33, this isn't working for me anymore :(

Helios
05-08-2012, 02:07 PM
As of 7.33, this isn't working for me anymore :(

Check to see that the patch hasn't overwritten/deleted the .dll file. If it has, reextract it into the win32 folder.

This is still working for me.

S7envy
05-09-2012, 01:20 PM
I just started too use this, and i think its really great!:)
But i wonder, if i use 4 chars running alch lab, does the mana given go too my account since its splitted too all 4 of my chars?
And how do you drop mana ? Pressing m only works on the 1st on:/

Helios
05-09-2012, 01:42 PM
I just started too use this, and i think its really great!:)
But i wonder, if i use 4 chars running alch lab, does the mana given go too my account since its splitted too all 4 of my chars?
And how do you drop mana ? Pressing m only works on the 1st on:/


That's the beautiful part. All the mana goes to your mana bank.

S7envy
05-09-2012, 01:57 PM
Sweeeeeeeeet:) anybody knows how to drop mana ? Hate giving mana too my trapper just too set 1 proxy and she keeps all the
rest lol:/

fatalazn
05-09-2012, 03:17 PM
Sweeeeeeeeet:) anybody knows how to drop mana ? Hate giving mana too my trapper just too set 1 proxy and she keeps all the
rest lol:/

You can change the functionality of the C button to "DropAllMana" instead of the CallOutOn functionality in the configuration file "UDKInput.ini" in your Dungeon Defenders directory. There are examples of this and instructions on other emulator threads.

Getting more advanced, but not really hard, you can recompile the code to change the bindings to be able to use G for start and M for drop all mana.

kendd
05-09-2012, 06:17 PM
Getting more advanced, but not really hard, you can recompile the code to change the bindings to be able to use G for start and M for drop all mana.

You overestimate the code-savviness of your typical gamer! It took me at least an hour or two just to figure out how to add directx libs and include directories before I got the darn project to compile.

Pointless aside: the forum thinks sad-is-tick is censor-worthy...

Grimmbles
05-09-2012, 08:05 PM
It really is the only way to farm. Thanks=)

http://cloud.steampowered.com/ugc/541800987097888056/8F61686A46856E90505A0F6FF6A58F8BC76B1077/

kendd
05-09-2012, 09:42 PM
So I've been making modifications to the x360kb version of the dll for gits n shiggles. I'm neither a dev nor familiar with c++ / winapi / directx / xinput, so it's slow-going.

Re-reading through the thread, it sounded like at some point you wanted better mouse sensitivity. Are you still looking for another approach? At least for my re-write, mouse sensitivity's not a problem. I basically just followed http://www.directxtutorial.com/tutorial9/e-directinput/dx9E2.aspx and used directinput. This approach is sensitive enough that I have to throttle the input to Gamepad.sThumbRX to 25000 instead of the max size of short. Very few lines of code, and you can get rid of the cursor coordinate math.

...currently trying to wrap my head around your hooks 'cause I want to consume keystrokes instead of having them seep through to the game all the time.

Thanks for putting the source online!

WaxPaper
05-09-2012, 10:34 PM
You can change the functionality of the C button to "DropAllMana" instead of the CallOutOn functionality in the configuration file "UDKInput.ini" in your Dungeon Defenders directory. There are examples of this and instructions on other emulator threads.

Getting more advanced, but not really hard, you can recompile the code to change the bindings to be able to use G for start and M for drop all mana.

If anyone gets around to doing this, can you upload your .dll file somewhere and post the link so that we can download it too? Those are a couple things that I wish I could do when using this emulator; drop mana and ready-up...

Cheers!

What
05-09-2012, 11:18 PM
Gave it a go, and I love it. Rang NMHC Aquanos Survival. Got to wave 10 before I had a power outage. >.<

AFK leveled 3 alts with it. It's amazing

kendd
05-10-2012, 04:18 AM
Mikee, fatalazn, any thoughts on an alternative means of isolating input? Like, stopping mouse movement from affecting player1 when you're controlling another pad? I see that you're already mitigating the leakage by using WH_MOUSE_LL instead of WH_MOUSE, but can you think of a potentially leak-proof method?

Are hooks the only way to intercept input? I'm barely getting my head around your source and the x360 source, so nothing is obvious to me.

fatalazn
05-10-2012, 04:41 AM
So I've been making modifications to the x360kb version of the dll for gits n shiggles. I'm neither a dev nor familiar with c++ / winapi / directx / xinput, so it's slow-going.

Re-reading through the thread, it sounded like at some point you wanted better mouse sensitivity. Are you still looking for another approach? At least for my re-write, mouse sensitivity's not a problem. I basically just followed http://www.directxtutorial.com/tutorial9/e-directinput/dx9E2.aspx and used directinput. This approach is sensitive enough that I have to throttle the input to Gamepad.sThumbRX to 25000 instead of the max size of short. Very few lines of code, and you can get rid of the cursor coordinate math.

...currently trying to wrap my head around your hooks 'cause I want to consume keystrokes instead of having them seep through to the game all the time.

Thanks for putting the source online!

Ah, that's an interesting approach, have you got the mouse and controller working with direct input? I didn't look much into this, since it functions decently well for me. The hooks are just a callback that keeps getting called in order to read some input from the mouse or keyboard. Surely this code could be improved, but neither me nor Mikee are experts with WinAPI. :)




If anyone gets around to doing this, can you upload your .dll file somewhere and post the link so that we can download it too? Those are a couple things that I wish I could do when using this emulator; drop mana and ready-up...

Cheers!

I did actually do this, and here is the dll: http://www.mediafire.com/?bu8sj8fh93ft3sz

And the modifications to the UDKInput.ini file:

Bindings=(Name="XboxTypeS_B", Command="DropAllMana")
Bindings=(Name="XboxTypeS_Back", Command="ActivateCrystal")


Mikee, fatalazn, any thoughts on an alternative means of isolating input? Like, stopping mouse movement from affecting player1 when you're controlling another pad? I see that you're already mitigating the leakage by using WH_MOUSE_LL instead of WH_MOUSE, but can you think of a potentially leak-proof method?

Are hooks the only way to intercept input? I'm barely getting my head around your source and the x360 source, so nothing is obvious to me.

Hmm, to be honest, I didn't mind the movement of player 1's mouse, since it didn't harm me much. And since I don't play this game much anymore, it's not much concern to me right now. I will look into using DirectInput though, since that seems like an interesting approach to make this more efficient since the hooks aren't the best way to do this by far.

Mikee
05-10-2012, 04:45 AM
Kendd: I think the issue regarding mouse sensitivity was that the locked mouse coords were not resetting back to the original place once the hook let go.

Regarding stopping keystrokes going through to the game: set up a WH_KEYBOARD hook, then in your hook code simply don't call CallNextHookEx. This should stop the message getting any further.

Mikee
05-10-2012, 04:50 AM
Personally I want to do a real hook into the Virtual method table to do REAL modifications and rewrite that part of the game so that it really allows multiple keyboard players.

I have the code (to locate/hook/overwrite, at least), but unfortunately it'd definitely be vac bannable.

Spectator
05-10-2012, 10:58 AM
I did actually do this, and here is the dll: http://www.mediafire.com/?bu8sj8fh93ft3sz

And the modifications to the UDKInput.ini file:

Bindings=(Name="XboxTypeS_B", Command="DropAllMana")
Bindings=(Name="XboxTypeS_Back", Command="ActivateCrystal")


So how do I use the B key now? Cant swap char ingame for example.


Also, it stopped working for me now. :(

fatalazn
05-10-2012, 06:15 PM
So how do I use the B key now? Cant swap char ingame for example.


Also, it stopped working for me now. :(

The B key is still the B key, just press M instead of C.

Just saying it stopped working doesn't help much, just go back to the old one.

I guess I did forget to mention but, DropAllMana button is M and ActivateCrystal button is G in the new version.

WaxPaper
05-10-2012, 08:19 PM
I did actually do this, and here is the dll: http://www.mediafire.com/?bu8sj8fh93ft3sz

And the modifications to the UDKInput.ini file:

Bindings=(Name="XboxTypeS_B", Command="DropAllMana")
Bindings=(Name="XboxTypeS_Back", Command="ActivateCrystal")

Cool, thanks man... Just out of curiosity, since you mentioned the UDKInput.ini file, does this mean that ini file will still work with these modded .dlls (like, if an .ini is present, will that override the hard-coded settings)? Or were you just referencing it as in, that's what you changed in the hard-coded version?

I'm about to try this out so I guess I'll find out soon enough, but I was also a little confused about the keybinds, like the "Back" keybind for readying-up... I see that a few posts later, you mention that "B will still work as B" but you said to use M instead... Okay lemme rephrase this to simplify things for other readers as well; are the keybinds for dropping mana and readying-up two new, previously-unused keys, or did you switch them around, meaning that the keyboard letter "C" is no longer the Xbox controller equivalent for the "B" button?

Sorry for the confusion... Cheers!

fatalazn
05-10-2012, 08:25 PM
Cool, thanks man... Just out of curiosity, since you mentioned the UDKInput.ini file, does this mean that ini file will still work with these modded .dlls (like, if an .ini is present, will that override the hard-coded settings)? Or were you just referencing it as in, that's what you changed in the hard-coded version?

I'm about to try this out so I guess I'll find out soon enough, but I was also a little confused about the keybinds, like the "Back" keybind for readying-up... I see that a few posts later, you mention that "B will still work as B" but you said to use M instead... Okay lemme rephrase this to simplify things for other readers as well; are the keybinds for dropping mana and readying-up two new, previously-unused keys, or did you switch them around, meaning that the keyboard letter "C" is no longer the Xbox controller equivalent for the "B" button?

Sorry for the confusion... Cheers!

Uhm, given that Xbox controller doesn't have a "G" button, and some of the buttons are hardcoded to do a specific function for some reason unknown to me, I used the xbox B button and the xbox Back buttons for dropping mana and activating crystal. C is just changed to M and instead of Calling out, it drops mana. It's really simple, just use it and you'll understand what I did. No need to confuse people.

WaxPaper
05-10-2012, 09:16 PM
Sorry about that; I haven't been a console player since the SNES days, so I'm pretty unfamiliar with controllers and I wasn't even thinking in that line of thought (I thought "Back" referred to the keyboard's "Backspace" key). Lol... Sorry.

kendd
05-10-2012, 11:10 PM
have you got the mouse and controller working with direct input?
I do have it working, but you're already using direct input for the keyboard, since that was x360ce's method. I stumbled on the direct input for mouse because I was reading the linked tutorial to get a handle on what x360ce was doing. Thankfully, the "next" link was dealing with mice, which I wanted to do anyways. I like the DIMOUSESTATE approach because it spits out relative mouse movement, which gets rid of the need to do cursor math.

I didn't mind the movement of player 1's mouse
It doesn't bother me much either. I guess I'm more curious about why some mouse input still gets to the application despite there being a hook that isn't passing the message along. That doesn't make sense in my head, so it has been bothering me. I must be missing something. ...well, my understanding is full of holes, but this hole in particular has gotten under my skin.

the hooks aren't the best way to do this by far
I don't know enough about this stuff to understand the performance impact of hooking, but I wound up having to hook anyways to prevent player 1 from moving around (I really like this x360dd method of using the same keybinds for all input methods). I tried removing the mouse hook in my implementation, but I found player 1 receiving 100% of the mouse input of my activity on controllers was really annoying.

the issue regarding mouse sensitivity was that the locked mouse coords were not resetting back to the original place once the hook let go.
Ah cool. I was wondering why mouse sensitivity was seeming fine for me when using x360dd. You must've had that fixed before I started using it. Sorry dig up something that was already dealt with.

Regarding stopping keystrokes going through to the game: set up a WH_KEYBOARD hook, then in your hook code simply don't call CallNextHookEx. This should stop the message getting any further.
Yar. My inability to figure out how to do this on my own (from the x360kb source) was what made me look for your source code. I basically had player 1 completely marionette-ing around when I was *trying* to handle input on the controllers.

Personally I want to do a real hook into the Virtual method table to do REAL modifications and rewrite that part of the game so that it really allows multiple keyboard players.
I have the code (to locate/hook/overwrite, at least), but unfortunately it'd definitely be vac bannable.
Oooh sounds like some really fancy kung-fu! It's too bad that this sort of functionality hasn't been rolled into the PC version already, and that playing with it implemented more directly would probably be vac bannable.

Spectator
05-11-2012, 12:51 AM
After i tried the first version of the .dll file it stopped working.
Hmm, just though of something. I opened the .dll file to see if i could change some stuff myself.
What program should be the default program to open .dll files? :P


The problem is that pressing F2 ingame doesnt do anything. Exept make my mouse work like a joystick.
Ive no idea how it could be solved, im the wrong type of programmer :P

zaibas
05-11-2012, 02:18 AM
gah so many dlls and stuff posted, whats the best version to use now?

kendd
05-11-2012, 02:30 AM
Spectator, to modify functionality, you'll have to edit the source code (downloadable from the github link that I think was on p2), and then re-compile the source. Dll's aren't human-readable like ini files. Regarding getting stuck, not sure if you're forgetting to hit "o" to send a start button press, or if something's actually wrong.

Zaibas, up to you. The one in the first post is more clearly documented, but it sounds like fatalazn added some button mappings and described his changes to WaxPaper on page 10.

Spectator
05-11-2012, 08:14 AM
I have tried pressing F2 the o. Nothing happened.
It worked the first time, then I tiried the dll from p1. And it stopped working.

Spectator
05-11-2012, 08:15 AM
I have tried pressing F2 the o. Nothing happened.
It worked the first time, then I tiried the dll from p1. And it stopped working.

BoMbaStiXxX
05-11-2012, 05:10 PM
I have only read the first post and the last page. Now my question.

Can I still not use this when I always play with my xBox-Controller?

CamboSliice
05-11-2012, 07:44 PM
I read that in fatalazn's dll you can drop mana and hit a key to start the wave. Am i mistaken or is it true? If true then what keys on the keyboard are they, i can't seem to find them. I've hit all the keys i can lol.

ollie6286
05-11-2012, 10:26 PM
i have an xbox 360 controller with wireless adapter. is using this emulator the only way for me to set a 'g' key?

Cremate
05-12-2012, 10:06 AM
I like using my keyboard, and don't even have an Xbox or controller. I just want the functionality of being able to use multiple AFK characters. Will this program do it?

Mikee
05-12-2012, 12:16 PM
This plugin is designed to work with people who do not have any additional controllers and just want to use their mouse/keyboard to control all 4 characters.

Galadedrid
05-12-2012, 06:57 PM
This is marvellous, but I have a small problem.

Randomly, when controlling characters 2-4, keyboard commands are also sent to Character 1. I'm aware the mouse events are sent to P1, but as everyone notes, that doesn't really matter. When the keyboard commands derp out though all manner of crazy 'Where is he going' situations arise. Has anyone else noticed this, or am I just cursed.

WaxPaper
05-13-2012, 05:26 PM
Uhm, given that Xbox controller doesn't have a "G" button, and some of the buttons are hardcoded to do a specific function for some reason unknown to me, I used the xbox B button and the xbox Back buttons for dropping mana and activating crystal. C is just changed to M and instead of Calling out, it drops mana. It's really simple, just use it and you'll understand what I did. No need to confuse people.

Hey man, sorry to bring this up again, but after trying out this version of the dll, I can't get the "Activate Crystal" to work... The "Drop Mana" key works, but pressing "G" doesn't ready-up.

However, is that what you intended? Because it looks like you tied it to the controller key "Back" which of course isn't on a PC keyboard (just in case it meant the "Back" direction, I tried the keyboard direction keys, both WASD and the arrow keys).

Am I still missing something? Thanks man.

Mikee
05-13-2012, 06:42 PM
Looking at the crystal and pressing E will activate.

kendd
05-13-2012, 07:47 PM
"Back" is an xbox 360 controller button. Look for it in your udkinput.ini file.

If:
* You are using fatalazn's dll AND
* that dll has "back" bound to the G key

You still need to make the "back" key on your pretend xbox 360 controller to issue the "ActivateCrystal" key.

There's an emulator thread by pedrogush that puts it in more words if you feel like that might help you grasp the concept more fully. Took me a while too, in all honesty.

The emulator's config (hard coded in this case) maps keyboard buttons to x360 buttons. udkinput.ini maps x360 buttons to actions in-game. You can generally leave udkinput.ini alone, but since ActivateCrystal is bafflingly not keybound by default, you have to touch udkinput.ini in order to gain that functionality.

Mikee
05-14-2012, 04:14 AM
I think I'm pretty much done with DD now and probably going to move onto another game. If anyone wants to take over development of this little plugin, just give me an email or something (mikeefranklin - a-t- gmail .com) and I'll help transfer ownership of the project to you.

Grimmbles
05-14-2012, 10:13 AM
So it's probably already been mentioned but today I found a nice helpful bug. If you switch characters while holding down the attack button the character will keep attacking. Even when you switch back. Works for all classes including Barbarian with both weapons. So you get autofire until you either hit the button again or bring up the window to type. Even repairing/upgrading just stopped it as long as you're actively casting, right back to shooting when finished.

Don't actually need another char in to do it, just hitting the button to control them works.

knuBBe
05-16-2012, 12:25 PM
Is it just me, or the mouse doesn't work on players 2 - 4? I can only use the keyboard, doesn't take any input from the mouse at all.

Jason Begley
05-21-2012, 11:25 AM
just tried this mid round.. using the arrow keys kicked me back out of a survival round.. past the tavern.. to the search lobby.

LunarDonkey
05-21-2012, 04:00 PM
This seems to be a virus and was removed straight away by norton!

Hauntedshadows
05-22-2012, 09:54 AM
This seems to be a virus and was removed straight away by norton!
Yeah i had that too, I turned off norton while doing it because it thinks everything you download is sketchy, it isn't a virus though, just because it has a low trust rating unfortunately

Infernotez
05-28-2012, 02:53 PM
There is a bug where the thing won't run. I had it happen to me twice mid wave and it's very annoying.

Fosters
05-28-2012, 06:35 PM
Not bad i was using the Ps2 mod and couldn't even move the added toons this is working great. takes a bit to get use to it....

Hadzee
06-05-2012, 05:47 AM
Anyone care to explain how to compile the DLL from the source code?

Open the solution file and build?

Downloaded all the files for Github, installed Microsoft DirectX SDK 9.0c, Visual Studio 2010 Express, Microsoft Windows SDK but no idea what to do next. VS10 gives me errors when trying to open some of the files. Do I need VS11?

Can someone with the smarts help out a dummy like me

Thanks.

TediousTacoMan
06-06-2012, 10:17 PM
I cant find the file i am suposed to drop the dl file into

lordinario
06-15-2012, 06:31 PM
Anyone has a copy of the xinput1_3_v3.zip or the dll?

I mean the one that has no mouse sensitivity issue?

Gungniir
06-28-2012, 09:31 PM
Anyone has a copy of the xinput1_3_v3.zip or the dll?

I mean the one that has no mouse sensitivity issue?
also looking for it, help please :D

Edit, found it around page 10\11 cant remember, but working for the most part well!

only problem I've found is occasionally into several waves of survival, the camera will not stop swiveling, I can't figure out why or how to fix it >< (so far) but it's happened 2\2 times after 4-6 waves so far

Uchihia
06-29-2012, 11:02 PM
Ok everything runs perfectly for me but i usually play with the an actual Xbox 360 controller, when i drop the file in the designated location and launch the game i am able to add the extra emulated controllers but my actual Xbox 360 controller does not respond, suggestions on how i can play with my actual wireless Xbox 360 controller ?

SuperFX
07-04-2012, 01:24 PM
http://forums.trendyent.com/showthread.php?55927-GUIDE-How-to-use-a-controller-AND-emulate-extra-controllers-at-the-same-time-%28Win7%29

maybe that will help


Ok everything runs perfectly for me but i usually play with the an actual Xbox 360 controller, when i drop the file in the designated location and launch the game i am able to add the extra emulated controllers but my actual Xbox 360 controller does not respond, suggestions on how i can play with my actual wireless Xbox 360 controller ?

Gungniir
07-04-2012, 09:06 PM
anyone else having issues with this not working any longer?

after several restarts it picked back up randomly, still not sure why it wouldnt work lol

Peanut Noir
07-06-2012, 10:06 PM
anyone else having issues with this not working any longer?

after several restarts it picked back up randomly, still not sure why it wouldnt work lol

If you run the game in windowed mode, the emulator will not work.

Gungniir
07-07-2012, 02:49 AM
odd, because I ALWAYS run in windowed mode, and it usually works, just had that error twice but otherwise np XD

Peanut Noir
07-07-2012, 11:43 AM
Haha, well that's the problem I had (I thought), but I'll go double check now! >.>

Wally
07-07-2012, 05:05 PM
Hey guys,

is there a way to make you able to change your emulated dudes at a forge or somesuch?

I tried pressing all the buttons on my keyboard but not one initiated it so one could change out that character. The only button that seems to work is the O button and naturally F1 - F4 buttons. Nothing else. Or am i overlooking something ?

Gungniir
07-07-2012, 09:46 PM
wally go to page 10, use his download and follow his instructions, makes life much easier

Wally
07-08-2012, 08:05 AM
wally go to page 10, use his download and follow his instructions, makes life much easier

I did :(. I can move my char around. I put in the bindings in that input thingy. But no key that I press wherever on my keyboard does the activate when i stand at a forge so that i can switch the character during the moment that i'm inside of the tavern.

Or I must have forgotten to put in some changes somewhere...

Gungniir
07-08-2012, 05:57 PM
you might of not edited the notepad haha, you gotta do that before they work (very simple to do)

Wally
07-08-2012, 06:45 PM
what notepad ?

Gungniir
07-08-2012, 09:35 PM
follow the instructions on page 10 lol

copy pasted...


And the modifications to the UDKInput.ini file:

Bindings=(Name="XboxTypeS_B", Command="DropAllMana")
Bindings=(Name="XboxTypeS_Back", Command="ActivateCrystal")

Wally
07-09-2012, 01:20 AM
follow the instructions on page 10 lol

copy pasted...


And the modifications to the UDKInput.ini file:

Bindings=(Name="XboxTypeS_B", Command="DropAllMana")
Bindings=(Name="XboxTypeS_Back", Command="ActivateCrystal")

oh that... I did that. I thought that there maybe was another notepad thingy that set xboxtypes_B as a specific key cause. Or well the key I'm actually looking for is useactivate... My mouse does not activate or whatever when i'm in controller 2 or 3 or 4. Only when I'm controller 1. And i can't find any other keystroke on my keyboard where another key acts as activate. I even pressed B but it doesn't change the char like other people suggested.

So yeah i'm at a loss.

Gungniir
07-09-2012, 03:59 AM
f1-f4 determines who you are using currently. mouse doesnt do much for anyone but f1 (standard controls) Idk I may be readin what you said wrong Im tired lol

the xbox B key = m
to proceed to next wave = g

idk if that answers it or not lol

Wally
07-09-2012, 11:53 AM
you might have read it wrong.

All i want to know is when i choose my xbox emulated controller to be a monk, how I can change him from a game into a hunter or apprentice or... I haven't found a specific key to be able to use the forge to change this.

I can change it for my f1 character, but not for my f2, f3 or f4 character. And that is what i want to know.

Gungniir
07-10-2012, 07:10 PM
lol you just use space bar to select any option you want, overthinking it I think lol

and to open forge = e

Corey
07-10-2012, 07:50 PM
I'm assuming this is not allowed in ranked matches?

It would be great for farming pets if you don't have any wired controllers but i only really play ranked so...

CrzyRndm
07-10-2012, 11:35 PM
I'm assuming this is not allowed in ranked matches?

It would be great for farming pets if you don't have any wired controllers but i only really play ranked so...
its fine on ranked

Gungniir
07-11-2012, 12:44 AM
its fine on ranked
this.

devs care about hackers, not emulators :D

Wally
07-11-2012, 03:56 AM
tried both space and e, it didn't work.

now i'm miffed.

Corey
07-11-2012, 11:31 AM
its fine on ranked

Sweeet! :D

Ty

Gungniir
07-11-2012, 02:07 PM
sounds like you didn't download off page 10........ because the first post dl is far different from the one on page 10....

SuperFX
07-11-2012, 03:56 PM
you would think, I am under the impression that additional pets for local players are hit with crappy stats 100% of the time so is better for mana farming and friends and having the builder active if you want to dps, not worth messing with all this if you think you have double the chances of getting a good pet


I'm assuming this is not allowed in ranked matches?

It would be great for farming pets if you don't have any wired controllers but i only really play ranked so...

Toprem
07-11-2012, 04:07 PM
I got rid of my old x360ce files and placed this one in my win32 folder, but for some reason its not working for me. Is there something I'm doing wrong?

Defenestration
07-11-2012, 04:09 PM
Not working me either anymore! :( Worked fine earlier today.

Avous
07-13-2012, 01:34 PM
it's working great for me.

Diablo2050
07-13-2012, 02:46 PM
7.38d and working great since 7.37

Defenestration
07-13-2012, 03:25 PM
Yeah it stopped working for me during 7.38c but at 7.38d it worked again, which was kinda weird.

Gungniir
07-13-2012, 04:50 PM
make sure you're full screen, occasionally in split screen it *will* randomly stop working

happened to me a few times, switch to full screen and restart til it works... always does eventually x.x

Toprem
07-13-2012, 08:35 PM
Still can't get it to work for me for some reason, anyone able to give me some info on how to get it to work? At least I did just find out that I can now Alt+Enter and go into windowed mode and then go back to full screen mode and have SoftTH stretch the window across both of my monitors properly.

chrisssj4
07-19-2012, 01:40 PM
I installed it in C:\Games\Steam\steamapps\common\dungeon defenders\Binaries\Win32

Tried windowed/fullscreen, Main menu, Tavern, but it doesn't work! nothign happens when I press F2+ O on keyboard.

Also my xbox controller is broken when this dll is installed. (though I tried disabling my xbox controller for F2+O

Algor Mortis
07-19-2012, 06:41 PM
i get "This is somewhat embarrassing, isn’t it? (Page not Found)" when i Press that link... :(

CrzyRndm
07-19-2012, 07:31 PM
i get "This is somewhat embarrassing, isn’t it? (Page not Found)" when i Press that link... :(
Post 90 something has a working DL link.

I installed it in C:\Games\Steam\steamapps\common\dungeon defenders\Binaries\Win32

Tried windowed/fullscreen, Main menu, Tavern, but it doesn't work! nothign happens when I press F2+ O on keyboard.

Also my xbox controller is broken when this dll is installed. (though I tried disabling my xbox controller for F2+O
I dont know why it isnt working at all, but it's never going to work with physical controllers without some more effort. It's either one or the other.

Try verifying game cache through steam.

chrisssj4
07-20-2012, 05:06 AM
Got it to work! after revalidating.

New problem though when ingame and I switch between charachters using F2+o etc. each time I do so, the escape window popups for every charachter :S. Which means I cannot play because I have to switch to charachters to turn off escape windows and press resume game..

EDIT
Nvm I was noob ;D

EDIT2:
hard to control camera as non 1 player, when I leave game as 4th player game because kinda stuck and freezes I lose the controll of the game.

Wally
07-20-2012, 05:47 AM
chriss can you use the forge and the stuff within the tavern ergo have an activate button?

Otherwise I might just have to find that x360ce thingy and delete it...

Toprem
07-20-2012, 07:47 AM
Try verifying game cache through steam.

Doing this kinda got the dll to work, F2 and F3 would take control away from the mouse, but only F4 would allow me to hit O and start a second character. Also the binds were messed up for me or something, dunno what was wrong.

kyzuo0310
07-26-2012, 07:26 AM
hello,i need some help

i dwonload page10 file,then
1) Download and upzip http://www.mediafire.com/?uox72nk9vd6co8o
2) Drop the DLL file into "C:\Program Files (x86)\Steam\steamapps\common\dungeon defenders\Binaries\Win32" or "C:\Program Files\Steam\steamapps\common\dungeon defenders\Binaries\Win32"
3) Launch game

but step 4
4) On character selection, press F2, then "O" to enable a character. (then F3, F4 for other slots)

i press F1 OR F2 NO reaction,press F3,F4 also no reaction
how about i lost step?or has download many file?

1~download page 10 file
2~and copy to"C:\Program Files\Steam\steamapps\common\dungeon defenders\Binaries\Win32"
3~then Launch game
4~On character selection, press F1/F2

arasfang
07-26-2012, 12:16 PM
Did you also press the letter O after every F-key?


hello,i need some help

i dwonload page10 file,then
1) Download and upzip http://www.mediafire.com/?uox72nk9vd6co8o
2) Drop the DLL file into "C:\Program Files (x86)\Steam\steamapps\common\dungeon defenders\Binaries\Win32" or "C:\Program Files\Steam\steamapps\common\dungeon defenders\Binaries\Win32"
3) Launch game

but step 4
4) On character selection, press F2, then "O" to enable a character. (then F3, F4 for other slots)

i press F1 OR F2 NO reaction,press F3,F4 also no reaction
how about i lost step?or has download many file?

1~download page 10 file
2~and copy to"C:\Program Files\Steam\steamapps\common\dungeon defenders\Binaries\Win32"
3~then Launch game
4~On character selection, press F1/F2

kyzuo0310
07-27-2012, 01:01 AM
Did you also press the letter O after every F-key?

yes,also no reaction

CrzyRndm
07-27-2012, 01:22 AM
Verify game cache through steam normally makes it work

gigazelle
07-27-2012, 05:04 PM
Mine broke with the last update, but after verifying the game cache it worked again. You could also try moving the DLL to your desktop, verifying the game cache, then moving the DLL back to its proper location.

Thunder Chief
08-04-2012, 05:58 PM
Verify game cache through steam normally makes it work

THANK YOU!!!

Have been having issue for a while now, thought it was just Talay hating me, but this resolved it. 3 files broken and re-DL'd. Now I can go farm like a boss once again. :squire:

If Mikee is around, he should really update the OP to reflect this little gem of knowledge, since you can bet after so many posts, and ppl ony checking the last page (like I just did... :p), that this question is bound (and maybe already has been) to be asked over and over and over... Just food for thought.

MrBurningFinger
08-05-2012, 03:11 PM
it seems like every time i'm finished playing and i shut the game down. I have to verify game cache everytime. anybody else having this problem?

ciqa
08-09-2012, 04:51 PM
hi guys, nice guide :)

has anybody been banned because of using this emulation? i have played 600 hours dd and im afraid of using it....i heard some emulations gotplayers vac banned, soit is safe to use it on ranked mode? im looking for emulation for longer time now so i can use squire and dps char at same time spil screen for soloing....

thanks for answer:)

CrzyRndm
08-09-2012, 09:42 PM
Been using this for several months now with no issues. There was a period a while back where VAC was accidentally being activated by emulators, but they were all reversed and it hasn't happened again to my knowledge.

Gungniir
08-10-2012, 03:28 AM
hi guys, nice guide :)

has anybody been banned because of using this emulation? i have played 600 hours dd and im afraid of using it....i heard some emulations gotplayers vac banned, soit is safe to use it on ranked mode? im looking for emulation for longer time now so i can use squire and dps char at same time spil screen for soloing....

thanks for answer:)

heyo I've got 700 hours played and for around half of this time played I have frequently used this, and am not banned! xD

Shino
08-10-2012, 06:49 AM
I'm having an issue and I've verifyed game cache many, many times.

1. The G button brings up my inventory. It does not ready up.
2. Occasionally, my 1P spams 'g'. When I press tab (the talk key), it is flooded by gs. When I open the console (f1), it is flooded by gs.
3. M 'calls', it does not drop mana

I'm using the .dll from page 10. Does anyone have any suggestions? Other than that, this works perfectly and great and I could not be happier. Thank you for your hard work :)

BULLSEYE
08-11-2012, 06:17 PM
I dont know why but it doesnt work for me any more, verified cache but still doesnt work, any suggestions?

stormreaper
08-11-2012, 06:36 PM
If you verify files with steam the udkinput.ini and other config settings get reset. So you will have to redo the changes on page 10 to make g key work again.

Gwenholick
08-18-2012, 04:51 PM
Wow, i dont know how to thank you. This is amazing, keep up the good work.

XboxRainbow
08-24-2012, 09:07 AM
I'm not completely understanding this, I have a pc usb adapter to use a wireless Xbox 360 controller on my PC with the drivers from Microsoft. All the buttons and analog are mappable to nearly every game I play. However with Dungeon Defenders, it's not mapping the analog sticks.. anyway to fix this?

Edit:
Sorry just realized this is about strictly emulation, and my issue is fixed, have to start DD with controller on and hit default for controller mapping and all buttons will work JUST like in the xbox for steam. It's great! The microphone port even works too! Too bad chat pad doesn't.

CrzyRndm
08-24-2012, 04:52 PM
Try tech support, or the sticky at the top of the guides section about using controllers.

This thread is all about an emulator

pakkux
08-25-2012, 07:27 AM
This dll works with windows 7 pro 64 bit?

Argotto
09-01-2012, 03:37 PM
This dll works with windows 7 pro 64 bit?

Wondering the same thing. So far 64 bit users are pretty screwed when it comes to a lot of these emulators. Have been unable to get a single one to work yet.

Shino
09-01-2012, 04:24 PM
Wondering the same thing. So far 64 bit users are pretty screwed when it comes to a lot of these emulators. Have been unable to get a single one to work yet.

It works but you have to re-copy paste the files every single time you start the game.

CrzyRndm
09-01-2012, 06:37 PM
Running Win 7 64 pro.

Have never had long term issues. Occasionally (like 1-2 months without verifying cache) it does stop working, but a verify solves it.

tl;dr
It works with no issues on win 7 64 pro

MadeInLondon
09-01-2012, 06:52 PM
Running Win7 64 bit Ultimate, never have I had any issues at all. I have been using this for a couple of months now.

Rarman
09-01-2012, 08:07 PM
Been using this primary as well on Win 7 64 bit and other then having to copy over my files once because they stopped working at one point I haven't had any issues.... Now if only I could get this to work with 1 or 2 real controllers I would be set!

Fructis
09-14-2012, 01:12 PM
need help with this guys, i download whats on page 1, then on page 10, both happens the same, i press F2 and it doesn.t do anything, i then get my mouse sensibility reaally low, which sucks, i.m runing win7 ultimate 86x, could any1 see me?

CrzyRndm
09-14-2012, 05:09 PM
You are pressing f<2-4>, and then pressing the letter O (<- Start button)? Also, if you hit f1 your PL1 should go back to normal sensitivity. It seems the mouse movements weren't completely removed from P1 when switching to other characters.

Also, do a verify :p

Fructis
09-15-2012, 02:06 AM
well, i managed to press f2, but when i do, the mouse cursor sticks in the center of screen and won.t move, then i press "o" and nothing happens. i got press f1 again to go back and make it the mouse move, is it suppose to open a new game tab automatically or what is it supposed to do?

ty for the reply
CrzyRndm

edit: when i press F's then G, it ask if i want to overwrite the data, if i press Yes it will delete my heroeS?

edit2: finally got it to work, ty

TaoJay
09-21-2012, 05:02 AM
Sorry to be Dim but what and where is this 'UDKInput.ini' file.

I have downloaded the patch from page 10 but only a dll file is included.........

I have tried to read through this thread but an still unsure as to how this works and what is needed to make it work.

Hopefully I'll get to test this later today....

CrzyRndm
09-21-2012, 06:07 AM
steam\steamapps\common\dungeon defenders\UDKGame\Config

Edit the file in there (Keep a copy of the edited one somewhere for quickly redoing after verify/patches)

TaoJay
09-21-2012, 06:58 AM
OMG this is too cool for school ^^

what have I been doing for the last few hundred hours!

Awesome tweak.

Zacharry
09-24-2012, 02:04 AM
It really sounds amazing. I have not tried other emulation options but I am looking for the best that will definitely let you play the game in the best manner. i am so happy to play this game as it is very interesting.

Starman
11-07-2012, 07:15 PM
Free bump, I feel like this thread is still relevant and should be bumped; It is very useful guide.

Soldexio
11-08-2012, 02:52 PM
Works excellent thanks so much!

Garzhod
11-10-2012, 06:13 PM
So literally just download the file, stick it in DD, and your good to go?

greenevening
11-10-2012, 07:15 PM
So literally just download the file, stick it in DD, and your good to go?

Wasn't good to go for me, there must be another step, any suggestions?

CrzyRndm
11-10-2012, 07:47 PM
I can't see any reason why it shouldn't work if you put it in the correct location. You might want to run a verify (although, be warned it will reset your UDKInput.ini if you've made any changes like 'g' or drop mana so do grab a copy of that first).

Garzhod
11-10-2012, 08:10 PM
Wasn't good to go for me, there must be another step, any suggestions?

Worked perfect! Got 4 gamblers on one run yay! All less than 120^ of course.

Sniperoll
11-12-2012, 12:04 AM
When using this dll, I can't see that "custom mode, private games, show shop..." menu and can't see anything when I press middle mouse button or esc. I also can't see the bar that shows my skills, hp, mana, exp.

Moasseman
11-15-2012, 10:54 AM
Works for me from time to time.. Like every other day or so? Running w7 64 ultimate IIRC

Any idea why the hell does it work sometimes and sometimes doesn't? I'd rather take completely not working or completely working over this ;_;

Garzhod
11-16-2012, 01:34 AM
Works for me from time to time.. Like every other day or so? Running w7 64 ultimate IIRC

Any idea why the hell does it work sometimes and sometimes doesn't? I'd rather take completely not working or completely working over this ;_;

Iv used it maybe 3 times out of 20 or so. Just won't work. I deleted file, put back in, restarted DD and steam. And still doesn't work. I even chose "unblock" item under properties. Windows 7 64 bit. Very frustrating, as I'm looking to farm some seahorses.


#YOLO

Moasseman
11-20-2012, 05:19 AM
^ Even better, in the cases it DOESN'T work, it faks up my mouse sensitivity completely ;_;

zsolesz79
11-22-2012, 03:05 AM
I can't shoot with my other heroes using the left mouse button and can't move the cursor either. When I want to navigate in the menu or put some defenses I have to use the WASD keys. Any idea or solution?

Annoyed
12-05-2012, 07:36 PM
So I take it that since ppl have been writing here this is still viable, I can't get it to work tho have copied the files into the right folder and everything but nothing happens when I press any of the F buttons.

mayhem_zero
12-05-2012, 08:17 PM
So I take it that since ppl have been writing here this is still viable, I can't get it to work tho have copied the files into the right folder and everything but nothing happens when I press any of the F buttons.
Are you pressing "O" after pressing F2/3/4? Are you starting fullscreen?

Gutu
12-08-2012, 06:57 AM
Ok i bet i'm not the only one who had the problem, that it only worked sometimes...
well i found out what was the problem, i was playing in window mode, if you also play in window mode it will only work a few times.

so start the game on full screen by going config instead of starting the game and put fullscreen, save and all ****, then launch the game, once you launched, you can either play fullscreen or if like me you need to use windowed mode, just on options unseleck(diseleck) i dunno not good at english, just click on the circle before the fullscreen to discable fullscreen press OK, and then you're on fullscreen and have it working :)

sorry for bad english

BULLSEYE
12-08-2012, 07:17 AM
Ok i bet i'm not the only one who had the problem, that it only worked sometimes...
well i found out what was the problem, i was playing in window mode, if you also play in window mode it will only work a few times.

so start the game on full screen by going config instead of starting the game and put fullscreen, save and all ****, then launch the game, once you launched, you can either play fullscreen or if like me you need to use windowed mode, just on options unseleck(diseleck) i dunno not good at english, just click on the circle before the fullscreen to discable fullscreen press OK, and then you're on fullscreen and have it working :)

sorry for bad english
Thanks, you can easily change between full screen and window mode by pressing F11.

Qtoza
12-09-2012, 11:28 AM
I downloaded the file, and dropped it into the respective folder. Then went to try it and nothing happened. I feel I am missing a few steps, if someone could clear this up it would be most appreciated.

Draco18s
12-09-2012, 12:14 PM
I downloaded the file, and dropped it into the respective folder. Then went to try it and nothing happened. I feel I am missing a few steps, if someone could clear this up it would be most appreciated.

There's two files needed IRC. A dll file and an ini file, both of which go into \Steam\steamapps\common\dungeon defenders\Binaries\Win32

Try this (http://www.mediafire.com/?l08j08swlpy80l7) which is what I use and is known to work. It is set up for two extra controllers, one on the numpad (num0 is start) and one on KL:O (Home key is start).

The controls are laid out in a fairly reasonable fashion and should have nearly every button mapped (dpad is not, but the wheel menu is accessible; (num9 and P, respectively). Open up the ini file to view/edit the mapping.

Qtoza
12-09-2012, 12:20 PM
thanks you Draco18s, I'll give that one a try

Draco18s
12-09-2012, 01:53 PM
Took me and a friend a good hour+ finding it one night.

I've actually been running with a Logitech joystick since then, but I only brought it home because I couldn't find a working emulator dll prior (and keep using it because it's slightly easier to use, even if my muscles aren't accustomed to a three axis stick).

Once he found that though, it worked for him, and I tried it just to see if it worked for me (it did), so it should work.

:)

Beorn424
12-12-2012, 06:24 PM
I just downloaded the files you suggested Draco and it's working great for the number pad controller. I'm not worried about the second controller as I am playing with a laptop and the screen is small enough with 2. This will be very useful when doing some xp grinding.

Draco18s
12-12-2012, 11:38 PM
Great to hear :)

The third one is from waaaaay back, about a year ago and I wanted two alts for power-leveling.

Haven't used it since either :P

Anomoly0187
12-14-2012, 05:04 AM
ok so i finally got this working on my laptop.. standard KB no number pad.. i get the >Home< as start button set up.. How do I change Characters on that 1?

Draco18s
12-14-2012, 09:59 AM
ok so i finally got this working on my laptop.. standard KB no number pad.. i get the >Home< as start button set up.. How do I change Characters on that 1?

The x360kb.ini has the details.

[PAD2]
A=Comma
B=Period
X=Slash
Y=Apostrophe
Left Shoulder=U
Right Shoulder=P
Right Analog Up=O
Right Analog Down=L
Right Analog Left=K
Right Analog Right=Semicolon
Start=Home
Left Analog Up=Equals
Left Analog Down=Right Bracket
Left Analog Left=Left Bracket
Left Analog Right=Backslash

Annoyed
12-14-2012, 02:23 PM
Are you pressing "O" after pressing F2/3/4? Are you starting fullscreen?

Yep I did, must have done something wrong or missed something.
What are the exact files I need to get this to work, just the one on the first page?
And what are the other steps?

Draco18s
12-14-2012, 04:32 PM
Yep I did, must have done something wrong or missed something.
What are the exact files I need to get this to work, just the one on the first page?
And what are the other steps?

Try these files (http://www.mediafire.com/?l08j08swlpy80l7) instead. I know that that emulation works, although it doesn't offer the awesome functionality that the F1/2/3/4 emulator does.

Annoyed
12-15-2012, 12:50 PM
Try these files (http://www.mediafire.com/?l08j08swlpy80l7) instead. I know that that emulation works, although it doesn't offer the awesome functionality that the F1/2/3/4 emulator does.

Well I already have a emulator that enables me to log in up to 3 additional characters but can't move them and can't press g with that one, I don't need to be logged in with more then one to build just want to be able to powerlevel chars with it and therefore being able to place them safely and being able to press g with them. Can you do that with this emulator?

Draco18s
12-15-2012, 05:21 PM
Well I already have a emulator that enables me to log in up to 3 additional characters but can't move them and can't press g with that one, I don't need to be logged in with more then one to build just want to be able to powerlevel chars with it and therefore being able to place them safely and being able to press g with them. Can you do that with this emulator?

The setup I have in that zip is for two toons, not three, but they do all have movement and camera controls. I didn't map the D-pad, but the wheel menu is available.

In order to "G" you would either need to walk them up to the crystal, or tweak the UDKInput.ini file in \UDKGame\Config\ to remap one of the xbox controller inputs to be Command="ActivateCrystal"

LeftThumbstick and RightThumbstick are good choices (they're the XBox push-to-talk and show-map binds respectively) although you'd have to add those inputs to the x360kb.ini file yourself.

I believe it'd be "Left Thumb=[KEY]"

ZivKaDs
12-22-2012, 01:22 PM
Does someone know for sure if it's legal in ranked?

CrzyRndm
12-22-2012, 03:12 PM
Does someone know for sure if it's legal in ranked?
Yes. Emulators won't get you banned

Draco18s
12-22-2012, 06:31 PM
Yes. Emulators won't get you banned

This. I've posted multiple screenshots of having split-screened on a PC. There are also dozens of threads about emulators.

Pretty sure if it was going to get you banned, Trendy would have shut us down by now.

iviv
12-23-2012, 04:45 AM
I've just started using this, and while it is extremely useful, I'm having a couple of small issues, primary of which is the mouse sensitivity issue. Its fine for player 1, but switching to any of the other players and it slows right down for them, while player 1s camera still moves at the same time and normal speed. Not a huge issue though.

But is there any way that I can use player 1 on the keyboard, player 2 using a physical 360 pad, and then players 3 and 4 by using F3 and F4 to switch to them using the keyboard emulation thingy?

Ragefull
12-24-2012, 05:02 PM
It's not working at all... i'm pressing the buttons but nothing

veriality
12-25-2012, 02:46 PM
has anyone ever had an issue where, when 2nd player comes into the game, they can no longer see the popup menus etc?

whenever i have a 2nd player in i can't see

forge menu
escape menu
minion/defence hp or upgrades etc etc.

makes it kind of hard to fight the akatiki boss LOL

Draco18s
12-26-2012, 10:18 AM
It's not working at all... i'm pressing the buttons but nothing

---->


Try these files (http://www.mediafire.com/?l08j08swlpy80l7) instead. I know that that emulation works, although it doesn't offer the awesome functionality that the F1/2/3/4 emulator does.

Laxaria
12-27-2012, 11:16 AM
Please don't shoot me (hell I expect it to happen anyway).

Is there a means to get controller emulation on OS X's version of Dungeon Defenders?

Draco18s
12-27-2012, 12:18 PM
Is there a means to get controller emulation on OS X's version of Dungeon Defenders?

Probably. However, I'm not technically knowledgeable enough to know how.

Sirius
12-28-2012, 11:47 AM
So Im trying to use this to quad screen. I all ready have an xbox controller which i use to split screen but I wanna milk this for all I can.
I used the emulator, but now I can only tri screen. My 360 controller doesnt work in DD anymore, only the emulator does. Any idea as to why that happened and/or if it can be fixed to quad screen?

lordrahl
12-28-2012, 11:51 AM
So Im trying to use this to quad screen. I all ready have an xbox controller which i use to split screen but I wanna milk this for all I can.
I used the emulator, but now I can only tri screen. My 360 controller doesnt work in DD anymore, only the emulator does. Any idea as to why that happened and/or if it can be fixed to quad screen?
You can't use a controller with this emulator, which is exactly why I don't use it.

Sirius
12-28-2012, 12:14 PM
ughhh, well Ill take the emulator. it may not be 4 screens, but 3 are still better than two

King_Pancake
12-28-2012, 01:42 PM
Based on how the x360kb is written, if you just want to run 3 additional afk toons, would something like this work?

[Options]
UseInitBeep=1
Log=0
BackgroundMode=0
PadCount=3


[PAD1]

Start=num0

[PAD2]
Start=Home

[PAD3]
Start=End

then add the additional keys as you see fit for each pad entry?

KAELY33
01-01-2013, 05:24 AM
Ah, that's an interesting approach, have you got the mouse and controller working with direct input? I didn't look much into this, since it functions decently well for me. The hooks are just a callback that keeps getting called in order to read some input from the mouse or keyboard. Surely this code could be improved, but neither me nor Mikee are experts with WinAPI. :)





I did actually do this, and here is the dll: http://www.mediafire.com/?bu8sj8fh93ft3sz

And the modifications to the UDKInput.ini file:

Bindings=(Name="XboxTypeS_B", Command="DropAllMana")
Bindings=(Name="XboxTypeS_Back", Command="ActivateCrystal")



Hmm, to be honest, I didn't mind the movement of player 1's mouse, since it didn't harm me much. And since I don't play this game much anymore, it's not much concern to me right now. I will look into using DirectInput though, since that seems like an interesting approach to make this more efficient since the hooks aren't the best way to do this by far.

Seems to new some new issues i have using this updated one.
AS i F2 -4 for new character , when i switch bck to F1, sometimes it disfunction every button on my keyboard, i cant run or use any short cut keys with it, only mouse do ok.

PipGuts
01-01-2013, 08:18 PM
I'm trying to use the emulator however I install it and copy and paste to the right folder but then nothing happens when I press F2 or F3 or F4 etc in the champ screen. I just stay stuck on 1 player.

adriftt
01-02-2013, 05:57 PM
Draco thanks a ton for the files I have used them with great success.

However, I recently purchased a 360 controller and would like to use it in conjunction with the two simulated keyboard controllers for a total of 4 screens. I have tried altering the files myself with no luck.. does anyone know what I need to do to get this to work? Surely it has to be possible if set up the correct way.

To clarify I want this setup:
Player 1: Mouse/Keyboard
Player 2: Wired 360 Controller
Player 3: Keyboard Emulated Controller #1
Player 4: Keyboard Emulated Controller #2

I know there are problems having an actual controller detect while using the emulated ones but I feel like there has to be some kind of work around. I have tried using xbox360ce to make a controller file and adding that to the keyboard file as gamepad3 but no luck.. if anyone could help me with this I would greatly appreciate it.

Draco18s
01-03-2013, 10:26 AM
However, I recently purchased a 360 controller and would like to use it in conjunction with the two simulated keyboard controllers for a total of 4 screens. I have tried altering the files myself with no luck.. does anyone know what I need to do to get this to work? Surely it has to be possible if set up the correct way.

Ditto.
I haven't gotten it to work that way either with my joystick (not that I poked at it very much).

LostSoul
01-03-2013, 12:56 PM
As far as I know, without someone specifically writing a new .dll file and a wrapper to incorporate both functionalities, it's not possible to combine them. All of the fancy splitscreen toys use their own customized version of the (now I'm drawing a blank on the file name) .dll that DD uses to read 360 controller inputs, and these files are mutually exclusive of one another.

Sadly, I don't know why the x360ce program doesn't already have a keyboard input preset, or at least give us the option to map gamepad buttons to keyboard keys instead. I've got this handy little nostromo that would dearly love to take over control of putting my clones to work. At least...as far as shooting at stuff goes and let the auto-target functions deal with the rest of the pesky "what are you shooting at?" details.

iVeBenche
01-03-2013, 10:25 PM
So does anybody have a link for latest .dll with fixed mouse sensitivity on f2 f3 f4? Was reading trough the thread found people mettioning of fixing it but cant find download of it. Also great stuff guys, that have been working on this. really helps out all PC DD community ;]

zephery
01-04-2013, 12:33 PM
Is this legit , or can people get ban cuz of using this?
And btw how is the controlls for this ? i mean selecting a character and then stop splitscreening?

helpmeasap
01-06-2013, 12:29 PM
There's two files needed IRC. A dll file and an ini file, both of which go into \Steam\steamapps\common\dungeon defenders\Binaries\Win32

Try this (http://www.mediafire.com/?l08j08swlpy80l7) which is what I use and is known to work. It is set up for two extra controllers, one on the numpad (num0 is start) and one on KL:O (Home key is start).

The controls are laid out in a fairly reasonable fashion and should have nearly every button mapped (dpad is not, but the wheel menu is accessible; (num9 and P, respectively). Open up the ini file to view/edit the mapping.

Hey draco, I downloaded those two files and put them into the file you said, but it doesn't do anything when I hit hit 0 on the dpad or the home key. Is there something else I'm supposed to do besides just downloading and moving them to the proper folder?

Sio
01-13-2013, 12:25 PM
There's two files needed IRC. A dll file and an ini file, both of which go into \Steam\steamapps\common\dungeon defenders\Binaries\Win32

Try this (http://www.mediafire.com/?l08j08swlpy80l7) which is what I use and is known to work. It is set up for two extra controllers, one on the numpad (num0 is start) and one on KL:O (Home key is start).

The controls are laid out in a fairly reasonable fashion and should have nearly every button mapped (dpad is not, but the wheel menu is accessible; (num9 and P, respectively). Open up the ini file to view/edit the mapping.

I've tried those files but it doesn't work for me, nothing happens. :/ Any suggestions?

Draco18s
01-13-2013, 01:27 PM
I've tried those files but it doesn't work for me, nothing happens. :/ Any suggestions?

Given that it's what I use, I strongly suspect you aren't putting the files in the right place.

Sio
01-14-2013, 01:27 AM
Given that it's what I use, I strongly suspect you aren't putting the files in the right place.
I am putting them in the right place. "D:\SteamLibrary\SteamApps\common\Dungeon Defenders\Binaries\Win32"
(Installed my game on the D drive) When I start up my game, I can hear a bleep sound but nothing happens when I press 0 on the numpad or home key.

Draco18s
01-14-2013, 10:12 AM
I am putting them in the right place. "D:\SteamLibrary\SteamApps\common\Dungeon Defenders\Binaries\Win32"
(Installed my game on the D drive) When I start up my game, I can hear a bleep sound but nothing happens when I press 0 on the numpad or home key.

Open the ini file and change log from 0 to 1. That'll make it output a logfile (I think it ends up inside a folder it'll create). That might give some insight into what it is (or isn't) doing.

Sio
01-15-2013, 01:24 AM
Open the ini file and change log from 0 to 1. That'll make it output a logfile (I think it ends up inside a folder it'll create). That might give some insight into what it is (or isn't) doing.
This is what I got from the log file, it was spammed like 20 of the same lines:
2013/01/15 07:20:48:: Init started...
2013/01/15 07:20:48:: Failed to acquire device, HR = DIERR_HANDLEEXISTS
2013/01/15 07:20:48:: Failed to get device state, HR = DIERR_NOTACQUIRED

Uchihia
01-16-2013, 11:22 AM
i placed both files in the correct place , however when i load the game and enter character selection screen i am able to select 1 character with my keyboard and anther emulated toon by pressing only the button '0'.... i cant seem to log more toons in ....any idea what happening? or what i am doing wrong ? :)

Draco18s
01-16-2013, 07:49 PM
This is what I got from the log file, it was spammed like 20 of the same lines:
2013/01/15 07:20:48:: Init started...
2013/01/15 07:20:48:: Failed to acquire device, HR = DIERR_HANDLEEXISTS
2013/01/15 07:20:48:: Failed to get device state, HR = DIERR_NOTACQUIRED

No idea. Huh.


i placed both files in the correct place , however when i load the game and enter character selection screen i am able to select 1 character with my keyboard and anther emulated toon by pressing only the button '0'.... i cant seem to log more toons in ....any idea what happening? or what i am doing wrong ? :)

Emulator in the original post DOES NOT WORK. Please read the last two pages of the thread before commenting.

draemn
01-16-2013, 09:18 PM
Also, the emulator does not work every time you load the game. When you load the game, check to see if it is working as intended or else restart the game. Some days I need 3-4 restarts until it works properly.

Uchihia
01-17-2013, 10:48 PM
Also, the emulator does not work every time you load the game. When you load the game, check to see if it is working as intended or else restart the game. Some days I need 3-4 restarts until it works properly.

you where correct , it needs a few restarting before it works properly, i can only log on two extra toons with this emulator , first one by pressing the number 0 key and the second by pressing the 'home' key.... just curious is it possible to log in a fourth ? or is that not programmed ? :p