-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NFS: Porsche Unleashed crashes on race load #15
Comments
Tried installing |
Also tired
|
Here is the latest debug file. Go ahead and try this one, attaching the logs. |
Tried to keep the test cases as minimal as possible: fanatec_dinput.log - Steering on the Fanatec wheel was mapped prior to this run, while the other Xbox bindings remained. Game is launched, race is started. Crashes on completion of load. Didn't see anything obvious in the logs, except that the fanatec case had a couple of cases of two threads writing log lines at the same time, messing up line feeds, but doubt that's related to crashes. Hope the logs shed more light for you. thanks! |
Thanks for the help here. Am I correct in saying that the Xbox controller works fine? I can see that Fanatec wheel calls the I created an update with more logging here. Can you test this one and upload the logs: dinput.zip |
Yes, when just using the Xbox controller everything works. And it does look like the Fanatec controller is failing on Not sure if this is helpful or related, but in case |
It looks like it is sending 0x80070057 which means a parameter is incorrect. I created an update to fix some of the parameter issues. Can you test this one and upload the logs: dinput.zip |
Took a little longer to crash. Usually it crashes as soon as it the loading bar gets to the end. This time it just hung there, making me think it had locked up. But a couple of seconds later it did crash. I see more debug information on the Really appreciating you working on this, btw. Pretty awesome that a game from 2000 can still be tweaked independently of the original developer. |
There is still a bad parameter, but I don't know which one. I added more logging and tried a slightly different way of creating the effect. Here is one more try: dinput.zip |
Alright this is fantastic. Does not crash, mapping works, and it works in race. That solves the main problem. I did come across two other issues:
|
It looks like the crash was coming from the failed
For this update I hard coded some of the parameters based on Microsoft's SDK. This will help isolate the issue: dinput.zip |
Back to crashing. Hope there's enough info in this one |
@sdether, thanks for your continued help here! I have no other way to test this. It looks like the issue with the parameters may be caused by a previous call to Here is another test build: dinput.zip |
This one works again. Input in configuration screen still super laggy and still no forcefeedback in-race, but otherwise the controls work as they should. And I should be the one thanking you. I'm the one with the odd combination of old game and new hardware that's crashing after all. Gladly provide all the debugging support I can since my C++ is atrocious. I've sworn off all languages that require manual memory management, since the only thing I ever effectively managed to create was memory leaks and crashes :) |
This could just because the wrapper is running in debug mode. Here is a release build to test with to see if it is still slow with the release build: dinput.zip
There are no errors and the functions seem to be passing, so I am not sure what is happening here. I added logs when the game tries to start the force feedback to see if it is getting any errors.
I would like to fix this if possible, since I have had reports of similar issues and I think they are related.
I am afraid the maker of this game maybe should have done the same thing. The game fails to check the Effect interface address and uses it blindly, thus the crash. I fixed this by creating the interface with no parameters and then adding the parameters later. This way when the game uses the interface it does not crash. Here is another debug test build. It just has additional logs: dinput.zip |
That fixed it. Makes sense.
Here's the latest debug output. Hope it sheds more light on things: |
It is possible some other functions may be causing the failure in Can you try this update: dinput.zip |
Crashes on race start. Log attached. Not seeing anything obvious. |
Ok, looks like I had a bug in my code. This one should no longer crash, but it still does not get us closer to solving the force feedback issue. New update: dinput.zip I did see one entry in the log:
But this may be normal for the game and it shouldn't have any impact on the force feedback issue. |
Alright. No crashes and this one looks like it's got some useful info. Plenty of failures around
etc. |
Hello, I have similiar issue with crashing in the end of race oad when I use Logitech Driving Force GT or Logitech Formula Force EX. |
Can you try with the attached update? I made a few changes that might solve the issue and enabled full logging. Here is the update: dinput.zip |
Thank you very much, loading works and I can drive, but just like above case, Force Feedback is not working. |
Attached is another debug log. This probably won't solve the issue, but will give me a bit more debug info. Since I don't have the correct hardware I need to get some logs from you. Here is the new update: dinput.zip |
Ok, nothing changed in gameplay. Here is log: |
Hi. I had exact same problem with a Logitech G27 and was ready to give up trying to play this old game but in last moment found this thread. |
wow this thread saves me...I have an old wheel Logitech Winman Forumla Force, and after a long tedious process it finally works in windows 10 but NFS Prosche just keep getting other USB device even I changed the controller to the wheel. |
Jan 4 build also works with Logitech G923 (without force feedback). The only issue I have is the inability to adjust how heavy the steering is. Logitech G Hub has a separate setting for non force feedback games where I can make steering easier, but it doesn't apply in NFS Porsche probably because it is still counted as a force feedback game. Is there some setting I'm missing here? |
I also am experiencing the same issues with my Logitech G25. I spent hours getting everything working today on my old-school CRT TV, and this is the last hurdle. I hope this can get fully fixed. As the original poster said, Force Feedback was working with devreorder without dinputto8, but the analog controls did nothing. The latest released version of dinputto8 crashes the game. The January version in this thread breaks force feedback and fixes the analog controls. This is my favorite NFS game, so I hope this can be worked on again. Thanks for all of your efforts. |
Ok, sort of good news! I got my Logitech G25 to work with Force Feedback. It is not ideal, but it works. The trick is to completely not use devreorder or dinputto8 (get rid of those files) and to remove all the other devices including USB hubs. I unplugged anything and everything USB except the keyboard and mouse dongle and the USB wheel. Then I went into the Device Manager in Windows and Showed Hidden Devices, just for good measure, and I removed everything under Human Interface Devices except the Logitech G25 items and the keyboard/mouse dongle. It is unknown which one of these is the keyboard and mouse dongle, so when I figured out which one, I had to unplug and reinsert the USB dongle and I think I scanned for new devices and deleted everything again (this may not be necessary). Then inside the game, the Logitech was showing up as the default controller and the extra devices were gone. It still didn't work right, so when I started the race, while it was loading, I unplugged the keyboard and mouse dongle. Then the wheel worked with force feedback. Then I plugged the keyboard and mouse dongle back in and the wheel stayed in first place and worked together with the keyboard and mouse. The only issue I still have is I can physically turn the wheel past the 200 degrees points, and I haven't figured out how to get the Logitech software to stop that from happening yet. You can see the behavior of everything in the Deadzone section in the game. Edit: I fixed this by reducing the centering spring strength to around 50% or slightly higher in the Logitech app. At 100%, you can't feel the edge very well. Here are my current in game settings: And in the Logitech app: |
I'm in the same boat as BloodDeath. Only Force Feedback is not working. |
I wish the force feedback would work... everything else works fine with Logitech G29+Thrustmaster th8a shifter. |
If you read up a few posts, I posted that I got it working by removing all
the USB devices and only plugging in the wheel, then plugging in the
keyboard/mouse dongle after starting the race. Part of this was deleting
the devices from the device manager also. It is hard to know which USB
devices are the mouse and keyboard so when you delete it, you can no longer
control anything. I think unplugging and replugging in the mouse dongle
makes it work again. I think I had to start the game, remove the dongle,
start the race, and then put the mouse dongle back in. It is a total pain,
but I got it working. This is without using dinputto8 at all. I think
once you get it working, it will continue to work until the next time you
want to play again. Hope this helps.
…On Mon, Sep 12, 2022 at 3:26 PM amagony98 ***@***.***> wrote:
I wish the force feedback would work... everything else works fine with
Logitech G29+Thrustmaster th8a shifter.
—
Reply to this email directly, view it on GitHub
<#15 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMVRPLXTQNDWOZO3OBMVC53V56UY3ANCNFSM4VQZ5IPQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Yeah, I read that, but I have so many virtual devices from various softwares that this is just not an option for me. :( And doing this every single time I launch the game is just too much. Years ago, I was using a Logitech Momo wheel. With that everything worked perfectly. Although, I think that was with Windows 7, and not with dinput8. |
I can't physically unplug everything either as I only have access to a laptop at the moment :/ |
Another option may be to install Windows 7 on a separate hard drive or
partition (if it will even install), and only use it for this and other
older games that have problems. I thought about trying this, but haven't
yet.
…On Tue, Sep 13, 2022 at 5:22 PM hjalmberi ***@***.***> wrote:
I can't physically unplug everything either as I only have access to a
laptop at the moment :/
—
Reply to this email directly, view it on GitHub
<#15 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMVRPLQRJVQWUTLS4WY2PMDV6ELEPANCNFSM4VQZ5IPQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Anything on the horizon with force feedback? |
Currently, I have put this on hold since I don't have the means to troubleshoot this remotely and I don't have a way, at this time, to reproduce this. The issue is that the Input Effect fails on creation. I'm not quite sure why it fails or what changes would be needed for it to succeed. |
I was excited to see a new release but the game still crashes on load (no log created). I'm back to this version:
which works except for the force feedback, as also noted above. |
OMG this makes it work! https://cookieplmonster.github.io/2023/09/24/silentpatch-need-for-speed-classics/ Just remove dinputtto8 and i had instant force feedback it's amazing! just be sure to tweak the ff settings or you steering wheel will rumble everyhting of your desk LOL |
It doesn't work for me unfortunately - the game crashes at the end of the loading screen. |
Bummer. I am using a version from the RRP Discord with Veroks Patch running opengl. Maybe try a clean install? |
@TheRealDadbeard, can you see if this update works? I changed one of the parameters to see if that helps: dinput.zip |
For me it doesn't work. the game still crashes after the loading screen. |
I think you tagged the wrong one as for me it just works with only silent patch and without dinputto8 |
Release v1.0.75.0 fixed the crash after the loading screen for me, thank you! Still no force feedback, though. |
Yes, I put in a fix to return an effect interface even if CreateEffect() failed. This should prevent crashing in games that are not coded correctly. But it does not solve the core issue of why CreateEffect() failed in the first place. So the effect (in this case force feedback) doesn't work. |
Ok, just for a test can you try this build: dinput.zip |
With this version the game again crashes after the loading screen. |
Ok, that is what I thought. The game just ignores the return code and value. Thanks for testing! I will look into the force feedback issue when I have the right setup. |
Following instructions from PCGamingWiki I installed
dinputto8
v1.0.39.0 anddevreorder
to try to add support for my Fanatec CSL Elite Wheel.However this combination crashes the game once you try to start a race. I did some experimentation to try to narrow down what causes this:
dinputto8
anddevreorder
devreorder
is supposed to fix)devreorder
inputto8
dinputto8
anddevreorder
My guess is that there's something in the way the Fanatec uses Direct Input that is not compatible with the API mapping that
dinputto8
does. If there is anything I can do on my end to provide a more useful bug report or diagnostic data, please let me know.The text was updated successfully, but these errors were encountered: