Skip to content
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

Freezes at start #314

Closed
dpiller opened this issue Sep 15, 2021 · 9 comments
Closed

Freezes at start #314

dpiller opened this issue Sep 15, 2021 · 9 comments
Assignees
Labels
investigating Issue is under investigation

Comments

@dpiller
Copy link

dpiller commented Sep 15, 2021

On Win10, notebook, Version 0.6

  • it does not start with the batch file (window mode) "Failed to init graphics mode"
  • it starts with the .exe, the game display shifts to up - right corner (see screenshot)
  • mouse disappers, unable to select anything

and thats is...

If you need any more information - and I am quite sure, like system logs, etc - let me now

image

@stefanhendriks
Copy link
Owner

Thx for letting me know.

Change game.ini file - to change resolution. Ie, change it to width 800 and height 600. Then try again?

Also:

d2tm.exe -debug

should produce more verbose logs, so if you could provide one here I would be happy.

Thanks!

@stefanhendriks
Copy link
Owner

@stefanhendriks
Copy link
Owner

And another thing you could try is to comment out the screenWidth and screenHeight, it will try to do an auto detect for resolution then. (in the game.ini file you have to prepend lines with a #).

@stefanhendriks stefanhendriks added the investigating Issue is under investigation label Sep 15, 2021
@stefanhendriks stefanhendriks self-assigned this Sep 15, 2021
@stefanhendriks
Copy link
Owner

So i did some testing and found a bug where auto-detecting screen resolutions only works for 16 bits bit-depth. Which makes no sense as it also runs under 32 bits bit-depth.

So, I changed it and noticed that I had the same kind of issue like you have. Only at resolution: 2048x1536.

I don't know why it happens, but my guess is that it has something to do with DPI. On the other hand, if I use 1080p resolution in the game.ini file it works just fine.

@dpiller
Copy link
Author

dpiller commented Sep 15, 2021

Thanks. Where shall 1080p in game.ini added?

@stefanhendriks
Copy link
Owner

1080p is basically what D2TM is shipped with (1920x1080).

BUT, I found the culprit. I can reproduce this bug and I can also fix it (atleast at my end).

I noticed when I set my "scaling" (in Windows settings) to 100% will make the app boot (and unstuck).

How I got there was opening Start menu, then type "DPI". You get the option to "change the size of text, apps and other items". Select that.

Then, I went to this dropdown at the screen:
image

As you can see my default is 175%, when using that it does not work. When setting to 100% it worked for me.

Does this help you? (although I wonder if you would have to use scaling at your resolution)

@dpiller
Copy link
Author

dpiller commented Sep 16, 2021

Indeed, changing to 100% fixed it - game was able to start. At me the windows recommended setting is 125%
But: the general look&feel is much better with 800x600 screen resolution.
In higher resolution, game is centered on screen in middle of black screen (so there is no scaling)

@stefanhendriks
Copy link
Owner

yes, I usually test with 800x600 (as it is the smallest size it should still work... initially (before 0.5.0) it was even 640x480, but not anymore).

You can play with the resolutions if you want.

I don't think I can do much about the scaling though. I'll attach this with the upgrade/migrate Allegro (#57 ) ticket and close this then.

@stefanhendriks
Copy link
Owner

Just learned you can get around this by:

Open executable properties, then Compatibility => Change high DPI settings => Override high DPI scaling behavior - and just check it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigating Issue is under investigation
Projects
Status: Version 0.7.0 (Released)
Development

No branches or pull requests

2 participants