IridiumIO / CompactGUI

Transparently compress active games and programs using Windows 10/11 APIs
GNU General Public License v3.0
4.71k stars 223 forks source link

Windows bugged and now I can't resize it. #374

Closed ArleneExcalibur closed 5 months ago

ArleneExcalibur commented 6 months ago

I don't know what happened but the windows bugged and now I can't use the program or resize it. Video

HarikalarKutusu commented 6 months ago

Let me guess: You tried the new GUI scaling functionality like I did.

To reset it, I did this:

Scary :)

Iridium-IO commented 6 months ago

How on earth did that happen? @HarikalarKutusu @ArleneExcalibur is there something in particular that causes that to occur, or is it when you try any change to scaling?

rufusw commented 6 months ago

The same thing happened to me - I clicked on the change folder button and the window disappeared, I think it crashed. When I reopened it is a tiny bar. @HarikalarKutusu I tried your instructions but they didn't work. I didn't touch the GUI scaling in the first place.

rufusw commented 6 months ago

I found a way to restore it to full size. First load up a previous version of CompactGUI (I used Version 3.0 beta 1) - that should show the whole window. If you then close that and load the latest version it should also be restored to full size.

HarikalarKutusu commented 6 months ago

How on earth did that happen? @HarikalarKutusu @ArleneExcalibur is there something in particular that causes that to occur, or is it when you try any change to scaling?

Mine happened while testing the scaling. Right in the options pop-up stuff got lost :)

I searched the registry to find any related settings, none found. So I tried the method above, until I get it right...

Iridium-IO commented 6 months ago

Configuration settings are stored in %IridiumIO/CompactGUI/settings.json to avoid using the registry.

I figured out what happened. After I rigorously tested the scaling option, I accidentally rolled back the changes before committing it to git -.-

I've technically fixed it now, so the options window should scale properly again. Not sure how it relates to the window being a tiny bar though

ArleneExcalibur commented 6 months ago

How on earth did that happen? @HarikalarKutusu @ArleneExcalibur is there something in particular that causes that to occur, or is it when you try any change to scaling?

Mine happened on it's own. I opened the app, it was minimized in tray, and it showed up like that.

Ner-Kun commented 5 months ago

Hi. In version 3.0.2 it says that the bug is fixed, however I have it right now.

Everything was working fine until I rebooted the pc.

UPD: Fixed - Just deleted "IridiumIO" folder in "AppData\Local"

Iridium-IO commented 5 months ago

Hi. In version 3.0.2 it says that the bug is fixed, however I have it right now.

Everything was working fine until I rebooted the pc.

UPD: Fixed - Just deleted "IridiumIO" folder in "AppData\Local"

If it happens again, can you please upload settings.json from the folder before deleting it so I can track down what's going wrong :)

MickgClone commented 5 months ago

So, I was having this issue also. Though, I don't know when this started happening but I just opened the GUI and realized everything was squished up to the bar.

So, I decided to just Delete(Recycle bin) just the settings and everything worked great. Though, you'll probably lose your "skipped file list" this way so instead of that, changing "WindowWidth" to 500 and "WindowHeight" to 800 will fix the issue. You'll then be able to resize it more in the GUI.

Don't use Github a lot so I'm not sure how to correctly upload this file but it does just look like the Width and Height got changed somehow and then stayed that way. settings.json

MickgClone commented 5 months ago

So, after a bit of days, it came back.

I don't really know if this is a issue with my computer or if the window sizes keeps resetting for some reason. To be honest, I could see the issue being my PC since I have a modified version of Windows and have a bunch of programs. Though, I haven't seen this with any other program unless they bugged out. I do reset the settings but it just results in the same thing.

Honestly, I don't really use this program too much because you have to be careful using Windows "compress" on some games. So, it doesn't bother me too much but I felt like I had to add something after seeing the window size reset.

ninekaw9 commented 5 months ago

instead of deleting settings.json

delete field "WindowScalingFactor", "WindowWidth", "WindowHeight" also works.

previously, whole JSON was

{"SettingsVersion":1.2,"ResultsDBLastUpdated":"2024-01-26T11:01:25.1220143+07:00","SkipNonCompressable":false,"SkipUserNonCompressable":false,"WatchFolderForChanges":true,"NonCompressableList":[".dl_",".gif",".jpg",".jpeg",".png",".wmf",".mkv",".mp4",".wmv",".avi",".bik",".bk2",".flv",".ogg",".mpg",".m2v",".m4v",".vob",".mp3",".aac",".wma",".flac",".zip",".xap",".rar",".7z",".cab",".lzx",".docx",".xlsx",".pptx",".vssx",".vstx",".onepkg"],"IsContextIntegrated":true,"IsStartMenuEnabled":false,"SkipUserFileTypesLevel":0,"ShowNotifications":true,"WindowScalingFactor":1.25,"WindowWidth":158,"WindowHeight":26}