View Issue Details

IDProjectCategoryLast Update
0001053AI War 1 / ClassicGUIJan 3, 2011 11:45 am
ReporterAndrew Savinykh Assigned ToChris_McElligottPark  
Status closedResolutionnot fixable 
Product Version4.024 
Summary0001053: In windowed mode if the window is minimized before initialization finishes ui scaled wrongly
DescriptionI'm running the game in the windowed mode. One thing that I noticed that was mildly annoying, is that the game starts with main window of one size and then gets resized to the right size specified in preferences. This looks a bit unsightly not a bug in it's own.

However the following is.
Steps to reproduce:
- make sure that the game is set up to run in windowed mode
- start the game and as soon as window appears click the standard "minimize" button
- wait for initialization to finish
- restore the window
Expected result:
Normal starting game screen as if windows was never minimized. The window is of the size specified in the settings.
Actual result:
The window is of a wrong size. It's of the same size it was started with and is not resized as per the settings. The graphics in the window is scaled inappropriately, so that fonts are almost impossible to read and pictures don't look good either.
Tagsdistortion, lobby
Internal Weight

Activities

Andrew Savinykh

Nov 3, 2010 9:42 pm

reporter  

AIBug00.png (727,210 bytes)

Chris_McElligottPark

Nov 3, 2010 9:45 pm

administrator   ~0002652

Unfortunately, that's a unity bug that we don't have any control over. :/

As for the starting-one-size-and-then-resizing thing, that's because Unity has a compiled-in default, and then our code takes over and tells unity what to size to based on your preferences, etc. So unfortunately that's also unavoidable.

The hazards of using someone else's engine... though there are many other benefits...

Andrew Savinykh

Nov 4, 2010 12:12 am

reporter   ~0002665

Can you elaborate on this a bit? ( I don't mind technical ) I've seen other games on unity 3D that don't have to resize on start, they are the right (configured) size from launch.

Chris_McElligottPark

Nov 4, 2010 12:15 am

administrator   ~0002666

Other unity 3D games use the unity 3d size configuration tool, which lets you select the size the game will be before it starts (but not during, or on the fly). We think that configuration tool looks horrible and isn't all that functional either (since it's only on start), so we use in-game calls to SetResolution manually. Thus on start it opens to a general default window (which is important because if it started fullscreen and the player really wanted windowed, that's really a jarring thing for a minute), and then our stuff kicks in.

Andrew Savinykh

Nov 14, 2010 6:34 am

reporter  

AIBug01.png (24,355 bytes)   
AIBug01.png (24,355 bytes)   

Andrew Savinykh

Nov 14, 2010 6:36 am

reporter   ~0003429

Thank you for the explanation.

I just uploaded another screenshot AIBug01.png. I'm getting this window sometimes when I start AI Wars. This maybe related to the discussion above.

Chris_McElligottPark

Dec 3, 2010 9:42 am

administrator   ~0005033

By the way: that window comes up when you hold down Shift while starting the game. I'll have that turned off in the future versions, though. Thanks!

Andrew Savinykh

Dec 3, 2010 2:33 pm

reporter   ~0005058

Interesting. Thank you.

Issue History

Date Modified Username Field Change
Nov 3, 2010 9:42 pm Andrew Savinykh New Issue
Nov 3, 2010 9:42 pm Andrew Savinykh File Added: AIBug00.png
Nov 3, 2010 9:43 pm Andrew Savinykh Tag Attached: distortion
Nov 3, 2010 9:43 pm Andrew Savinykh Tag Attached: lobby
Nov 3, 2010 9:45 pm Chris_McElligottPark Note Added: 0002652
Nov 3, 2010 9:45 pm Chris_McElligottPark Status new => resolved
Nov 3, 2010 9:45 pm Chris_McElligottPark Resolution open => not fixable
Nov 3, 2010 9:45 pm Chris_McElligottPark Assigned To => Chris_McElligottPark
Nov 4, 2010 12:12 am Andrew Savinykh Note Added: 0002665
Nov 4, 2010 12:15 am Chris_McElligottPark Note Added: 0002666
Nov 14, 2010 6:34 am Andrew Savinykh File Added: AIBug01.png
Nov 14, 2010 6:36 am Andrew Savinykh Note Added: 0003429
Dec 3, 2010 9:42 am Chris_McElligottPark Note Added: 0005033
Dec 3, 2010 2:33 pm Andrew Savinykh Note Added: 0005058
Jan 3, 2011 11:45 am Chris_McElligottPark Status resolved => closed
Apr 14, 2014 9:28 am Chris_McElligottPark Category Bug - UI => GUI