Page MenuHomeSchine - Phabricator

Starmade | Main menu unusable
Closed, RejectedPublic

Description

The game loads, sets the desktop resolution to 1920x1080, and briefly displays the starmade window at 1280x720. The game loads normally. Then the main menu is displayed, however the mouse cursor is locked to that original 1280x720 rectangle, and all user interface clicks are scaled into that region. So nothing that is displayed can be used by clicking on it where it is on the screen.

I tried changing the resolution, but only just managed to select the "Graphics" panel, and could not click on the toggle fullscreen button.

Details

Task Type
Bug
Testing Results
Affected Gamemode(s)
Single and Multi
Reproducible
Yes
Last tested (version)
0.199.234
Category
none/unspecified
Hardware/Software/System
OS-Specific
No
Hardware-Specific
No
Video Card Vendor
NVIDIA
Video Card Model
980M
Steps to reproduce

Load game. Click the "Launch" button.

Detected video (Graphicsinfo.txt)

What graphicsinfo.txt file? Where is it located? It is not in the game directory.

SMC-Report

And where is this tool?

Serverconfig (server.cfg)
<replace this line with the file content>
Clientconfig (settings.cfg)
<replace this line with the file content>

Event Timeline

AramDol created this task.Oct 7 2016, 1:23 AM

v0.19584 has the same behaviour in fullscreen mode, even though the game starts windowed.

AndyP added a subscriber: AndyP.Oct 7 2016, 3:41 PM

this is most likely a support case.

Please delete your
windowPositionAndSizeConfig.tag
in the starmade directory while the game is not running.

It should fix the positions on next start then.

AndyP shifted this object from the S1 Public space to the S3 Starmade space.
AndyP changed the visibility from "Custom Policy" to "Public (No Login Required)".
AndyP changed the edit policy from "Task Author" to "Starmade (Project)".
AndyP claimed this task.

That stopped it from briefly displaying the StarMade window at 1280x720 on boot, but it did not fix the mouse issue.

"Game doesn't work" sounds more like a game breaking bug than a support issue to me.

That stopped it from briefly displaying the StarMade window at 1280x720 on boot, but it did not fix the mouse issue.
"Game doesn't work" sounds more like a game breaking bug than a support issue to me.

Upload your settings.cfg (located in ./Starmade), do the same for logstarmade.0.log (./Starmade/logs) and graphcisinfo.txt (./Starmade/logs)
Drag and drop the files in the comment section to upload them, don't paste their content in here.

I assume the native resolution your laptop is set to is 1920 x 1080 and not 1280 x 720?

I assume the native resolution your laptop is set to is 1920 x 1080 and not 1280 x 720?

3840x2160

If I delete settings.cfg, the game loads at 1380x768.
I click Options->Graphics and set Resolution to 1920x1080, check Fullscreen, and click apply, and then OK. It changes the resolution to 1920x1080, but the mouse is stuck in the 1380x768 range, and I can't click on anything. I hit Alt-F4 to get out, rather than waiting for the count down.

I load the game again, it briefly displays the screen at 1380x768 (I'm guessing), before displaying the fullscreen 1920x1080. The mouse is still stuck. Attached is the files resulting from that process.

- settings.cfg
- logs/graphicsinfo.txt
- logs/logstarmade.0.log

uh .. this is old :/

so you are running the game at an 4K screen and scale it to that screen by setting it to HD ?
just for a test could you try to set the game to 4 K and see if the mouse then operates correctly ?
the settings do show 1920x1080 at fullscreen being selected and the logfile claims to have found that capability on the display device.
And it is also using the laptops proper GPU .
looks all good so far in these log and setting files.

4K (3820x2180) works correctly, although the UI is unusably small.

Setting it to HD? I don't follow.
In Windows 10 display settings, the setting "Change the size of text, apps,
and other items: 150% (Recommended)".

For starmade-launcher.exe, in the compatibility tab, setting "Disable
display scaling on high DPI settings" makes Starmade behave correctly at
1980x1024. Which implies that SetProcessDpiAwareness() (in shcore.dll) is
being called.

AndyP changed the task status from Open to Feedback.Feb 21 2017, 8:53 PM
Restricted Application added a project: Waiting on Author. · View Herald TranscriptFeb 21 2017, 8:53 PM

Ah, yeah, well the windows built in scaling options do not play well with most games.

They cause many side effects, and would need windows specific code, as they seem to handle it without telling the application about the difference properly.
While UI scaling is a planned feature for the future.

Restricted Application edited projects, added Customer responded; removed Waiting on Author. · View Herald TranscriptFeb 24 2017, 12:45 PM
Restricted Application changed the task status from Feedback to Open. · View Herald Transcript
AndyP closed this task as Rejected.

Will reject the report for now, as its more a windows behaviour problem, than actually a fault on the starmade side.

We can reopen it after a future update of our libraries and reaching the polishing phase.

That "Compatibility Mode" alleviates the issue proves that this is not a fault with Windows, rather that Starmade (or one of it's libraries) is telling Windows that it understands and will handle DPI itself, and then failing to handle it correctly.

"Compatibility Mode" tells Windows to ignore all calls to SetProcessDpiAwareness(), and forces GetDpiForMonitor() to always return 96 (a scaling value of 1.0). So yes, this is actually a fault on the application side. Be it a 3rd party library you're using, or a piece of code somewhere.

AndyP added a comment.Feb 24 2017, 9:48 PM

Yeah, exactly its the LWJGL causing it, that part is out of our code range to my knowledge.
So we can look into it again after updating our LWJGL.

AndyP moved this task from Unclassed to Archived on the Starmade board.Mar 29 2017, 1:26 PM