xan1242 / NFSU-XtendedInput

NFS Underground & Underground 2 - XInput Plugin
MIT License
90 stars 7 forks source link

Game launching 100 pixels from corner with WS fix #7

Closed xan1242 closed 2 years ago

xan1242 commented 2 years ago

Hello, I am also having an issue with the widescreen patch and XtendedInput. The game will launch around 100x100 pixels away from the corner. https://i.imgur.com/fmDHybU.png

I'm using a temporary workaround at the moment, but was wondering if you could explain on how you managed to fix it. I have checked that i'm using the correct hoodlum no cd crack.

The workaround im using is to change the scaling options in my nvidia control panel settings, or anything that causes a display refresh will cause the issue to go away.

Originally posted by @12stiggy12 in #5 (comment)

Originally posted by @12stiggy12 in https://github.com/xan1242/NFSU-XtendedInput/issues/5#issuecomment-1251507485

xan1242 commented 2 years ago

@12stiggy12 Can you confirm this happening with XtendedInput and WS fix being together? I don't think this is something caused by the input plugin, but a bug by the D3D overlay you're using (RTSS)

12stiggy12 commented 2 years ago

The overlay was not causing the issue. Im using extra options for the borderless mode. Should i use BorderlessGaming instead? Obviously running in fullscreen fixes the issue.

xan1242 commented 2 years ago

Im using extra options for the borderless mode.

There's your problem. ExOpts didn't implement this properly whatsoever. Don't use that.

You can use my windowed mode fix here: https://github.com/xan1242/NFSU_WindowedMode

I'm planning to port this code to the WS fix for native support soon so expect it there.

12stiggy12 commented 2 years ago

Thanks for the quick responses, will that work with underground 2? I should have mentioned this earlier.

xan1242 commented 2 years ago

Unfortunately it won't work, however, I'll port it to WS fix for UG2 eventually so it'll be available for UG2 that way soon.

12stiggy12 commented 2 years ago

Any ideas on what to use in the meantime? Should i just continue to use my workaround?

xan1242 commented 2 years ago

You can use your workaround or things like DXWnd to try to relocate the window. Anything is valid. 100x100 location is hardcoded in the executable for some reason so it'll always appear there.

Another idea is that you can manually set it to 0 by writing 0 to 0x1D2607 in the SPEED2.EXE (0x005D2607 in memory) to negate that window movement. You can use any hex editor to do this, such as HxD. It's a hack but it'll work out.

12stiggy12 commented 2 years ago

Changing that address in HxD (0x1D2607) causes the game to be cut off around the edges.

xan1242 commented 2 years ago

nfsu2_windowedmode.zip

Use this then, I've just quickly ported the WindowedMode for UG1 I made to UG2. It should work exactly the same.

12stiggy12 commented 2 years ago

Thanks alot. That works perfectly.

xan1242 commented 2 years ago

Closing issue as solved. (Even though it was unrelated to XtendedInput)

Nowena commented 1 year ago

Don't know where else to comment about this since you archived the repository for NFSU windowed mode but yea I read that note and I have the WS fix version from 06 Jul 2022, that's the latest one, no? Downloaded from here https://github.com/ThirteenAG/WidescreenFixesPack/releases/tag/nfsu

Must not be the one you are talking about since it's not working and I don't see an option for windowed mode in the ini file. That's why I thought of trying the plugin you archived but it isn't working either.

xan1242 commented 1 year ago

Go to website: http://thirteenag.github.io/wfp#nfs

And in the drop down menu you can get the dev build.

It's not gonna fix your issue immediately as I need to implement fixes to this plugin first. It'll be done later.

Nowena commented 1 year ago

Aight, thank you. But I like windowed mode cuz sometimes I pause the game for a bit to click on stuff outside of it, the dev build may fix the resizing issue but then the pointer cannot click outside anything from the game so there's no point in having windowed mode that way if I can't do that. I'll just wait till the pointer thing is fixed and will play the game in full screen in the meantime.

xan1242 commented 1 year ago

But the entire point is that I integrated windowed mode to WS fix! Go to the ini file to enable it.

Or did you mean the relocation? If you want it, I can add it in.

Edit: oh, sorry, yeah, the mouse thingy will get added in, no worries. Win32 cursor is coming soon: https://github.com/xan1242/NFSU-XtendedInput/issues/12

Nowena commented 1 year ago

Yes, I do understand you integrated windowed mode into WS fix but like you realised, I was saying I need to wait until the mouse cursor/pointer issue is solved. Just let me know when it's ready, thank you.