KrossX / Durazno

XInput wrapper that allows controller customization
MIT License
202 stars 21 forks source link

Durazno doesn't seem to hook to the game (Dark Souls 2 SotFS) #6

Closed cridus closed 9 years ago

cridus commented 9 years ago

So, I was trying to chain Durazno and x360ce by making Durazno load x360ce's dll. Once in the game, I noticed that the mapping was screwed up, so I went to remap the keys in Durazno.exe. Tried again, but the mapping was the same as before. I checked if I wrote the path to x360ce's dll correctly in Durazno.INI, and it was ok. At that point I noticed that the usual sound that x360ce makes when it hooks to the game didn't play. After looking at Durazno's source code I saw that it should display a box with an error if it fails to load the chained dll, so I wondered if Durazno's own dll even hooked itself. As you wrote in another issue, I tried to remove Durazno.exe from the game's directory but nothing changed, and then I tried removing Durazno.INI and open the game to see if the dll would create a new one, but it didn't. As a last resort, I tried using the 32bit dll, but the result was the same.

What could be the problem? Of course, x360ce's dll was either renamed or put into another directory (tried both).

KrossX commented 9 years ago

http://www.mediafire.com/download/rwz1nyypetbx2j1/xinput_magic.7z

Give it a try. =D

cridus commented 9 years ago

it workssssssssssssss!!!! without running as an admin, too!!!!!

thank you so much. can I link this page in a site in which I wrote about my problem?

p.s. odd, after I open the game (or Durazno.exe), in durazno's INI the value of "LoadDLL=" becomes blank. is it expected? did you hardcode x360ce's dll's name? (fine by me >_>)

KrossX commented 9 years ago

Well, what I did was the most lazy copy-paste work of putting Durazno's code into x360ce's code. Which is why both INI files are created and used... and both tools should work too with this dll. But, distribution goes against the GPL license... so don't distribute it! (though I already did by linking it to you)

Also, is not really a solution cuz Durazno is still incompatible in this situation... but enjoy! =D

cridus commented 9 years ago

wow, ok then. I guess it's better to not link this page then. only a few "lucky" ones will find it by looking in the closed issues >_> (not really lucky if they need it like me)

KrossX commented 9 years ago

You're a developer, go fix x360ce so that it doesn't need Durazno. =D

cridus commented 9 years ago

heh, first I would have to find the time to do it (less free time than this and I become crazy >_> I was coding all the time yesterday while we were writing here), re-learn C/C# and learn how all these things about controllers work (or at least a part)...

cridus commented 9 years ago

forgot to close >_> thanks again!

KrossX commented 9 years ago

You're welcome.