Raymai97 / noborder

Run windowed-mode game in Borderless Fullscreen mode. Ideal for Touhou series games.
MIT License
14 stars 1 forks source link

Is it possible to improve DWM using with mouse? #2

Open Dragodraki opened 2 years ago

Dragodraki commented 2 years ago

I read the instruction and that playing with mouse isn't possible when activating DWM formula. But often this DWM is the only settings the game is able to be scaled with. So it's not an issue directly... but would it be possible to add mouse function to DWM in a special fix (even if noborder wasn't updated since several years)? Other apps won't do the job because they haven't DWM formula in the first place.

Raymai97 commented 2 years ago

Hi @Dragodraki ,

The mouse support was not there due to technical reason. Could you share the game you're having issue with, I see if I can come up any alternative hack for it?

Dragodraki commented 2 years ago

Thanks for your reply.

it happens on almost every old game which uses Macromedia/skeleton projector (e.g. all kids games from Tivola/Terzio/Oetinger/etc.), but it occurs also for any window like the Windows-Explorer (a specific game wouldn't help because I plan to use it on all of them). Despite windowed in normal mode there don't happen anything. First when DWM formula activated the fullscreen take effect. And you have to watch out - the otherwise helpful compatibility mode "High DPI Scaling aware" has to be turned off with DWM to avoid upscaling the frame out of your screen (game would be outside the monitors area then). And no matter which setting is set: mouse function isn't there in general.

Maybe you can fix these two errors: Very important for me is that mouse function will be added in DWM mode. Get the picture centered to work with High-DPI-Scaling-Aware enabled would be an (nice) extra function on top.

Raymai97 commented 2 years ago

Hi @Dragodraki

Regarding DPI scale bug, before your reporting, I also noticed a similar issue and applied some fix, but not released yet. The bug will occur when noborder and target app have different DPI awareness setting.

As for the mouse support, I'm working on it but it will take more times before it is OK enough to be released (technical challenge + busy life). Today I managed a milestone where it's possible to play Bejeweled 1 with DWM formula with mouse.

In the meantime. please share with me a few of your "kids games" to my email so I have more testing samples.

Raymai97 commented 2 years ago

Undo mistakenly "close issue"

Dragodraki commented 2 years ago

Hi @Raymai97,

thank you for further investigating into this topic. I'm not very much of a programmer, beside of scripting. Of course such development will take its time - I appreciate your help for improvements. The games, I talked about, are oldies from past and most of them in German: For example "Wickie und die starken Männer", "Löwenzahn [1 and 2]", "Pettersson und Findus", "Die Olchis - Schleime-Schlamm-und-Käsefuß", "Autos bauen mit Willy Werkel". I'm afraid, most of them need the original CD-ROM to be present in disc drive for running, you probably not have.

This is a freetime project of mine: Make it possible to run EVERY old pc game with 32bit-executable on newer windows OS up to Windows 11 (and future ones) - with fullscreen and kept aspect ratio preferred. It's not easy, and I need lots of tools like yours one to get it done, but it's possible. I began with the very old games from my children days out of nostalgic reasons and since they don't need too much disc space. If I get it to work perfectly with these, it will go along with all other ones too.

Like I said, very important for me is that mouse function would be added in DWM mode, and centered to work with "High-DPI-Scaling-Aware" enabled were great too (since all such old games need this compatibility setting urgently; without it many show unexpected malfunctions).

Dragodraki commented 2 years ago

Please leave a message when you get it to work in a stable release.

Raymai97 commented 2 years ago

Hi @Dragodraki,

I tried out "Löwenzahn 2" but the game itself is already fullscreen (testing in XP VM). image

Could you elaborate how did you use my program on top of this game?

Dragodraki commented 2 years ago

Then you might have noticed that without special GPU drivers the screen in VM will get very small - on physical computers this effect will come with black bars on all sides. Copy the game files into a Windows Vista/7/8/10/11 machine and you'll see what I mean. Thats's why I plan to force them to windowed first and then use your tool. Many of these programs need some parameters in INI file to show in windowed mode. E.g. for "Wickie und die starken Männer" (also powered by Macromedia) it worked fine with INI file. BTW: This "Löwenzahn 2" looks like the newer redesigned version like it was published a few years later - in the original version, Peter Lustig's presence is far more blurry because of low resolution. Maybe the did something to fullscreenize it, but like I said, it could also be the GPU that virtualize it. As I said, I am trying to make this possible as an alternative to GPU scaling.

Dragodraki commented 2 years ago

Today I faced an error on a brand new game that fits to the same problem: "Life is Strange Remastered" from Steam seems to have a bug for 4k resolutions where the game is beyond the monitor screen. It's not an graphic card issue, since all other apps working fine. Your app could fix this too, but unfortunately so far with no mouse support...

Raymai97 commented 2 years ago

Hi @Dragodraki ,

Sorry for late response, lately I have other stuff to take care of.

Regarding "Life is Strange Remastered", I think the issue was caused by DPI scaling, try changing related settings in EXE properties: image It is not meant to be handled by "noborder" which is designed to turn a small windowed game to borderless fullscreen.

As for the "Löwenzahn 2", I am not able to "force them to windowed first", cannot find any INI file in that program. Please note that I do not understand German (I install and test game by guessing) so maybe I missed something. image

BTW here is a non-official test release for you to try out the latest "mouse support" feature. It should work fine with simple game like "Bejeweled 1" (you can find demo version online for free). 2022-02-13 (1.6 BETA 1).zip You will see 2 mouse cursors on the screen. One is real, one is "scaled". You will soon notice why when you try the feature out.

Dragodraki commented 2 years ago
                        .fr-emoticon.fr-emoticon-img {
                            background-repeat: no-repeat !important;
                            font-size: inherit;
                            height: 1em;
                            width: 1em;
                            min-height: 20px;
                            min-width: 20px;
                            display: inline-block;
                            margin: -0.1em 0.1em 0.1em;
                            line-height: 1;
                            vertical-align: middle;
                        }
                        .fr-emoticon {
                            font-weight: normal;
                            font-family: "Apple Color Emoji","Segoe UI Emoji","NotoColorEmoji","Segoe UI Symbol","Android Emoji","EmojiSymbols";
                            display: inline;
                            line-height: 0;
                        }
                    Hello Raymai97,

the INI file for skeleton/macromedia varies from game to game.The command parameter you asked for has to be in [Settings] and named "FullScreen=x" where x is 1 or 0. The INI file need to have the same name like the EXE. If the game won't care about the parameter, you have to choose another game (maybe "Löwenzahn 2" is too old, "Wickie und die starken Männer" should work definitely with that parameter).To LIS: DPI scaling isn't the issue here, or at least cannot be changed as the game compatibility is limited and greyed out. It's about keeping aspect ratio instead of maximizing, which many (and many latest) games seems to have problems with.Thanks for your demo - I'll test it when I have time. With kind regards. Dragodraki

-----ursprüngliche Nachricht----- Von: @. @." target="_blank) Gesendet: 13.02.2022 05:03 Uhr An: @. @." target="_blank) Kopie: @. @." target="_blank), @. @." target="_blank) Betreff: Re: [Raymai97/noborder] Is it possible to improve DWM using with mouse? (Issue #2)

Hi @Dragodraki (https://github.com/Dragodraki" target="_blank) ,Sorry for late response, lately I have other stuff to take care of.Regarding "Life is Strange Remastered", I think the issue was caused by DPI scaling, try changing related settings in EXE properties: image (https://user-images.githubusercontent.com/3296077/153737221-4da92b19-188f-44aa-b98f-3b50c45c00fe.png" rel="noopener noreferrer" target="_blank) It is not meant to be handled by "noborder" which is designed to turn a small windowed game to borderless fullscreen.As for the "Löwenzahn 2", I am not able to "force them to windowed first", cannot find any INI file in that program. Please note that I do not understand German (I install and test game by guessing) so maybe I missed something. image (https://user-images.githubusercontent.com/3296077/153738051-bc910aff-d38c-45d3-8987-4d4e5bf47bf2.png" rel="noopener noreferrer" target="_blank)BTW here is a non-official test release for you to try out the latest "mouse support" feature. It should work fine with simple game like "Bejeweled 1" (you can find demo version online for free). 2022-02-13 (1.6 BETA 1).zip (https://github.com/Raymai97/noborder/files/8054920/2022-02-13.1.6.BETA.1.zip" target="_blank) You will see 2 mouse cursors on the screen. One is real, one is "scaled". You will soon notice why when you try the feature out.— Reply to this email directly, view it on GitHub (https://github.com/Raymai97/noborder/issues/2#issuecomment-1037744145" target="_blank), or unsubscribe (https://github.com/notifications/unsubscribe-auth/ASJ246O7KDRKWJ3PSWRSI3TU24USPANCNFSM5KY6P43A" target="_blank). Triage notifications on the go with GitHub Mobile for iOS (https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675" target="_blank) or Android (https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign=notification-email&utm_medium=email&utm_source=github" target="_blank). You are receiving this because you were mentioned.Message ID: @.***> -----ursprüngliche Nachricht Ende-----