DerJantob / TSW2_Controller

Control TSW2 with a joystick or other controllers
25 stars 4 forks source link

Issue with 3840x1080 resolution. #43

Closed fablam77 closed 2 years ago

fablam77 commented 2 years ago

Hi, I have an issue using the resolution 3840x1080. I'm unable to have it working in this resolution. If I set 1920x1080, I'm able to set my joystick. Also, after switching to 1920x1080, the 3840x1080 in the soft is not available anymore. I have to reinstall to see it again...

Thanks, Fabrice

DerJantob commented 2 years ago

I think you mean that you have to re-enter the resolution and not reinstall the program, right? If so, I can fix this in the new version.

fablam77 commented 2 years ago

Yes, sorry, I did not notice that I could enter my resolution... I also made some tests in 2560x1080. Working better than in 3840x1080, but throttle is slowly going down... (I made my tests with throttle setup only).

DerJantob commented 2 years ago

If the throttle is slowly going down, it means that the program could not read the current position of the controller in tsw2. You can check the readings if you activate "Debug information" and "Show screenshot".

fablam77 commented 2 years ago

Right, this is the issue. Log shows "No text for thtottle found". And the screenshots are showing an area close to the center of the screen... Actually it looks like the horizontal offset from the left of the screen is still set for a 1920 resolution and does not adapt to the 2560 or 3840 resolution...

DerJantob commented 2 years ago

Do you have a widescreen monitor?

fablam77 commented 2 years ago

Yes, 49", native resolution 3840x1080.

DerJantob commented 2 years ago

In the windows settings, is the widescreen monitor also your main screen?

grafik

fablam77 commented 2 years ago

Yes, I have one monitor only.

DerJantob commented 2 years ago

Is the program showing the right resolution on the main screen? grafik

If so, could you send me your helpfile? Maybe this can resolve the problem. Settings->Help->Create helpfile

fablam77 commented 2 years ago

Yes. capture

Here is the help file: TSW2Controller_HelpFile.zip

DerJantob commented 2 years ago

I haven't found a log file where you test the 3840x1080 resolution (probably it was deleted automatically). If you have time, maybe you could test the program again in tsw and send me the new log file. So far everything is working for me. I have set my 16/9 monitor to 3840x1080 and as it looks, it seems to work with the program.

I know these are stupid questions, but are you actually using the 3840x1080 resolution in tsw2?

fablam77 commented 2 years ago

I'm usually using 2560x1080 because of the distortion in 3840. When I tried your software, it proposed automatically 3840x1080, and as I didn't know I could add a resolution, I setup the game in 3840x1080. However, I have the issue in both 3840 and 2560 resolutions. It's only working in 1920x1080.

Deleted all logs and did a short test in 3840, here is the helpfile. TSW2Controller_HelpFile.zip

Let me know if you would like a file in 2560. Thanks.

DerJantob commented 2 years ago

But you also made sure that the HUD is active in the game, right?

If so, could you please record a video like my example? Try to find the top left corner of the screenshot the program takes. The program that shows the coordinates is this one: Program.zip I know this is kind of complicated, but a video would help me a lot.

https://user-images.githubusercontent.com/79801484/180575040-4b16f7f5-0afd-43f0-a856-6d379fa06108.mp4

fablam77 commented 2 years ago

Yes, HUD is on. I made two videos. One for 2560x1080 and one for 3840x1080. They are too big to be uploaded here, so I put them on Youtube... But for some reason, they are blurry... 2560: https://youtu.be/KxJ8dBUSbGs 3840: https://youtu.be/LfueDTHGzrw

Here are screenshots in case the quality is not good enough: image image

fablam77 commented 2 years ago

I used your tool to see the text position in game. In 2560 it's at 1920x540. In 3840, it's at 3640x356.

so in 2560, there is a vertical offset with your soft, but in 3840, it's an horizontal offset... What I find strange is that despite having the same vertical resolution, the vertical position of the text in the game is different...

DerJantob commented 2 years ago

I think I might found the problem. Please go to the TSW2_Controller.exe file and replace it with the new .exe and try it out in TSW2. (You can find your .exe file by right-clicking your shortcut on the desktop and then clicking on "open file location") TSW2_fix.zip

If it doesn't work, you can undo it with this file: Undo.zip

fablam77 commented 2 years ago

Yes! YES! it's working in both 2560 and 3840. Thank you so much. Fantastic support!

DerJantob commented 2 years ago

In 2560 it's at 1920x540. In 3840, it's at 3640x356.

I'm glad I could help, but this is still a little weird. So it is possible that it does not run perfectly yet. If you encounter any further problems, please feel free to contact me again.

fablam77 commented 2 years ago

I will. Thanks a lot.

DerJantob commented 2 years ago

No problem!