Comments (19)
I tried it and it appears to work!
from dualshock4-emulator.
Interesting. I did some testing with it, and these are my findings so far:
- Disabling my firewall (Comodo Firewall) does not prevent crashing.
- On my antivirus (Kaspersky Security Cloud), disabling AV using the in-all selection "Pause Protection" did not prevent crashing.
- Closing Kaspersky completely did prevent crashing.
- Also, crashing only happens when using Xbox controllers as input. Using keyboard/mouse input does not cause crashing.
Bottom line is that there might be two separate issues here. First, there's something about my AV that I have to figure out. Second, there's something about using xbox controller input that is causing an error. (I'm specifically using Xbox One controllers connnected via USB, if you're interested).
from dualshock4-emulator.
Unfortunately, I don't know why this happens, I can only suggest reinstalling the Vigem driver, installing all the libraries, trying the regular version and the x64 version.
from dualshock4-emulator.
So the exit code and dump logs didn't help? :/
from dualshock4-emulator.
Unfortunately nope
from dualshock4-emulator.
So my workaround is now not working consistently, which is weird. Just today it started crashing even while in Alt+F9 mode. I tried searching "[process exited with code 3221225477]" and it looks like a not-uncommon problem, but I don't know enough about the backend of DS4Emulator to know which fix is appropriate. Does this github thread help you at all?
from dualshock4-emulator.
And from this thread:
Try converting that number to hex. It is 0xC0000005. This is the Intel classic memory exception error. Try googling "C0000005".
Of course this doesn't actually help to locate the reason why it's occurring except to say that some process has made access to memory it does not (as far as GDTs say) "own".
I suppose it could be hinting at insufficient RAM in your PC?
So it might be something about memory access. I don't know if there's anything unorthodox with the way this emulator accesses stuff in memory. In the meantime, I'm going to see if there's a firewall or AV or something on my PC I can disable to make this issue stop...
In the thread I linked, the problem had to do with internet access. My instance of the emulator shouldn't use internet (I set [Motion] Activate=0
) but is it possible the emulator is still trying to access a network connection even though it doesn't use it? Is there a way to make an offline version of this emulator that has all networking features stripped out?
from dualshock4-emulator.
Motion - Activate = 0 completely disables network functions (support for external Android gyroscope).
https://github.com/r57zone/DualShock4-emulator/releases/tag/1.7.2
It seems this is the last version without a gyroscope, but that version also crashes for some users. I donβt know the reason.
from dualshock4-emulator.
Probably Kaspersky is blocking dynamic loading of dll libraries (I load dynamically XInput.dll), probably it will be possible to try to convert it to static loading.
from dualshock4-emulator.
I made a test version with a static library, could you check it out?
DS4Emulator.1.7.5.XInput.Static.Portable.zip
from dualshock4-emulator.
The only problem is that there is no way to track the Guide button (Xbox) in the static api. I'll probably have to support 2 versions at the same time now.
from dualshock4-emulator.
@e-t-l thanks for reporting the bug and testing!
from dualshock4-emulator.
there is no way to track the Guide button (Xbox)
You mean the static version can't detect presses on the round Xbox button? Back+RB from #29 still works to trigger the PS button, so it doesn't seem like that big of a deal if the Xbox button's functionality gets deprecated... Or is there some other purpose the Xbox button was going to serve?
from dualshock4-emulator.
Back + RB works, but the Guide button on the Xbox controller itself is no longer tracked as a PS button. It will be necessary to think more on this topic.
from dualshock4-emulator.
Last static release
DS4Emulator.1.7.5.Static.Portable.zip
from dualshock4-emulator.
@r57zone Is there a patch I could apply when building from source in VS so that I can continue to use up-to-date versions of DS4em with static libs?
from dualshock4-emulator.
It's hard for me to maintain two versions, static and dynamic load xinput, the problem with static is that it seems that we can't capture the Xbox button there.
I think this problem can be solved by sending the file to the antivirus company, with a link to the source code, maybe they will fix it, add the program to the exceptions or disable the antivirus
(they are still useless, real new viruses bypass them, and they mark new programs as viruses without understanding, what they do, but if sign the program with a paid certificate for $5,000, then the virus turns into a good program).
from dualshock4-emulator.
Sorry I think my original question was poorly worded. I am not worried about the antivirus issue. I do not want to make you do extra work by maintaining two versions, however the static version does work better for me.
I am capable of compiling DS4em myself in Visual Studio, but I would like to compile a version with static libs. Is there a patch, diff, or instructions you could provide for the building the static version? Then I could compile "DS4Emulator.2.0.1.Static.Portable.exe" and static versions of all future releases by myself, and you would not have to do any work of maintaining two versions.
from dualshock4-emulator.
Unfortunately there is no such patch, I just changed the Xbox controller state reading functions, here is an example of using XInput statics
XInput.zip
from dualshock4-emulator.
Related Issues (20)
- Gyroscope tutorial? HOT 3
- Shake button issue HOT 5
- PlayStation Plus app compatible HOT 2
- PS Remote Play always reports low controller battery HOT 5
- Support for the new PlayStation Plus app HOT 4
- Gyro orientation
- Bind multiple keyboard buttons to one controller button
- Steam Deck Neptune Controller support HOT 1
- Cant work with infamous second son HOT 2
- Seems it does not work in the latest version of remote play. HOT 30
- start button maximizing system soun volume to 100 HOT 2
- hi
- aim is laggy and not being able to move the cursor HOT 2
- Not working in PS plus at thie time HOT 10
- [BUG] not able to press the Touchpad button without right stick press at the same time HOT 15
- (Xbox Series X Controller) Not able to press touchpad at all, either using back by itself or back and right stick or other combinations I've tried HOT 7
- Issue with using Multiple Buttons while using Motion HOT 8
- Having trouble compiling HOT 2
- Mouse HOT 1
- Few questions HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dualshock4-emulator.