• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Support v
« Previous 1 ... 658 659 660 661 662 ... 1175 Next »

Dolphin 3.0 ~ Main Window Position (Fix) / Taskbar Fullscreen Mode (Fix) [UNOFFICIAL]
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Dolphin 3.0 ~ Main Window Position (Fix) / Taskbar Fullscreen Mode (Fix) [UNOFFICIAL]
11-08-2012, 12:44 PM (This post was last modified: 11-08-2012, 10:08 PM by neobrain.)
#1
codemonkey1980
Unregistered
 

Dolphin 3.0 (x86/x64)
Main Window Position (Fix) / Taskbar Fullscreen Mode (Fix)


***

Following is a guide created to address two minor issues that I encountered while running Dolphin 3.0 (x86/x64), and is intended for users running Windows 7 with a DPI setting of 150% or higher.

***

I recently came across Dolphin while setting up a number of emulators for my new PC build and decided to try out the (stable) v3.0 x64 release. While playing about and configuring the emulator, I discovered that all of a sudden the main window would not display onscreen when starting up Dolphin (requiring the Win+Up Arrow key shortcut available in Windows 7 to maximize the active window). On searching the Dolphin forums / Google for information on a fix, I discovered that this is a known bug (occurring in both x86 and x64 versions), and is a result of the MainWindowPosX / MainWindowPosY variables in the Dolphin.ini configuration file, being overwritten with random values (commonly -32000).

There seems to be no definitive explanation for the cause of the problem, and the only solutions I can find online are: to either simply use the Windows key shortcut to maximize the window each time the application is run, or to manually open the configuration file and reset the window position variables to zero whenever they get overwritten (the default setting is X = 100 / Y = 100). I have also come across suggestions to delete the configuration file (or even perform a clean install of Dolphin!) however this will not eliminate the bug, and therefore is not recommended!

I can confirm this problem will affect users running Windows 7 x64 with high DPI settings, however I do not know for certain if the glitch occurs in other Windows versions / when DPI is set lower than 150%). I currently use a 40" LCD TV as my monitor with a desktop resolution of 1920x1080p / 60Hz with DPI set at 150%, and I believe this to be the main cause of the problem. I (briefly) tested running Dolphin with DPI 125% which seemed to fix the issue (unable to replicate bug), however at this setting, system text is too small to read comfortably, and would therefore not be a practical solution for people running at DPI 150% on large monitors.

After testing both x86/x64 versions of v3.0 over a couple of days, I have discovered that the glitch reoccurs randomly after completing certain events. I have sometimes noticed it happen after editing the 'Emulation State' textbox for a game (properties), or after a crash caused by trying to open a WiiWare save folder, however recreating the steps does not always invoke the bug.

To provide a permanent solution for this issue, I have created a script (Dolphin 3.0 Launcher) that resets the configuration Window Position values to zero and launches Dolphin maximized with focus. After running the script once (and therefore resetting the window position), Dolphin can then be launched from the main executable until the glitch reoccurs. However, in addition to preventing the window from opening off-screen, the script provides the added bonus of opening Dolphin maximized, and can be used as the standard launcher if preferred. I have provided a direct download link to the script, and also included the code at the end of the post for anyone wishing to compile this themselves.

Dolphin 3.0 Launcher.vbs

*The script must be placed in the main (root) Dolphin install directory for it to be able to locate the configuration file / main executable!

It should be noted that this bug has been addressed in recent WIP builds, and therefore the fix is specifically designed for Dolphin 3.0, although it will work with any other affected versions that retains the same directory structure / configuration variables of v3.0.

***

Although this guide has predominately focused on the Main Window Position bug, as this issue appears to be unique to users running Windows 7 at 150% DPI, I am also going to cover another problem that will be encountered by anyone running x64 builds of Dolphin with high DPI settings.

On setting up my copy of Windows 7 for the first time, I quickly discovered that after changing my DPI (to 150%), certain applications would not display video correctly in fullscreen mode (i.e. PC games, YouTube videos etc.), allowing the desktop taskbar to remain visible at the bottom of the screen. In general, the solution to this problem is to open the application’s properties window, and select 'Disable display scaling on high DPI settings' from the compatibility tab. However, this option is only available for x86 applications and will be greyed out on the compatibility tab for x64 apps. Due to this, users who wish to run the x64 version of Dolphin 3.0 (at 150% DPI) will not be able to select the option to disable display scaling and will have the taskbar issue when running games fullscreen. To solve this problem, it is actually possible to disable display scaling by manually entering the setting direct to the registry.

Start the Windows Registry Editor (Start Menu/Run…/regedit), and navigate to the following location (the Layers folder stores the compatibility settings for applications that are applied to all users):

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers

Right-Click the Layers folder from the tree and create a new string value. The name field of the string should be set to the full pathname of the Dolphin executable (i.e. C:\Program Files\Dolphin\Dolphin.exe). Once this is set, Right-Click the string and select the modify option. You can now manually set whatever compatibility options you require by entering the appropriate keyword for the value data (the option to disable display scaling is set by using HIGHDPIAWARE).

***

If you found this guide useful, could you please confirm in the comments your OS / Dolphin build and DPI setting to help establish the conditions required for the Main Window Position bug to invoke.

***

'****************************************************************************
'DOLPHIN 3.0 LAUNCHER ~ CODEMONKEY1980
'****************************************************************************

Set objShell = WScript.CreateObject("WScript.Shell")
Set objFSO = CreateObject("Scripting.FileSystemObject")


'Set path of root directory

strFile = WScript.ScriptFullName
Set objFile = objFSO.GetFile(strFile)
strPath = objFSO.GetParentFolderName(objFile)


'Open Dolphin configuration file (Read I/O)

If Not objFSO.FileExists(strPath & "\User\Config\Dolphin.ini") Then
MsgBox "Dolphin.ini configuration file not found!",vbOkOnly,"Dolphin 3.0 Launcher"
WScript.Quit
Else
Set objFile = objFSO.OpenTextFile(strPath & "\User\Config\Dolphin.ini",1)
End If

'Read each line and replace MainWindowPosX/Y

Do While Not objFile.AtEndOfStream

strTemp = objFile.ReadLine

If InStr(strTemp,"MainWindowPosX") > 0 Then
strTemp = "MainWindowPosX = 0"
ElseIf InStr(strTemp,"MainWindowPosY") > 0 Then
strTemp = "MainWindowPosY = 0"
End If

'Append current line to strConfig variable

strConfig = strConfig & vbNewLine & strTemp

Loop

objFile.Close


'Open Dolphin configuration file (Write I/O)

Set objFile = objFSO.OpenTextFile(strPath & "\User\Config\Dolphin.ini",2)

'Rewrite file with modified configuration data

objFile.WriteLine strConfig
objFile.Close
Set objFSO = Nothing


'Launch Dolphin (Maximized/Focus)

strDolphin = """" & strPath & "\Dolphin.exe" & """"
objShell.Run strDolphin, 3
Set objShell = Nothing

'****************************************************************************

Reply
11-08-2012, 06:36 PM
#2
neobrain Offline
"Wow, I made my code 1000x faster! That means I can make it 2048x slower now!"
**********
Developers (Some Administrators and Super Moderators)
Posts: 3,209
Threads: 50
Joined: Jun 2009
- Marked unofficial
- Please fix your custom font. Custom fonts are generally a bad idea on forums because they're kinda annyoing to read and just confuse people.
My blog
Me on Twitter
My wishlist on Amazon.de
Find
Reply
11-08-2012, 07:47 PM (This post was last modified: 11-08-2012, 07:49 PM by HAR65.)
#3
HAR65 Offline
53 yeas old, gamer until the end
***
Posts: 167
Threads: 7
Joined: Mar 2011
I dont use 3.0 "official" often anymore, cause nearly every game im interested in, runs better with one of the newer Gits. But I had the "taskbar problem" too and was only able to get rid of it by using a tool called "taskbar eleminator".
I have the same problem with "PCSX2" by the way. With your explanation it should be possible to get rid of the taskbar there too.

Thank you again
My current desktop-system:

OS: Win8.1x64
CPU: i5 2500k @ 4,2 GHz
GPU: nVidia 560 Ti
Find
Reply
11-08-2012, 09:03 PM
#4
admin89 Offline
Overclocker™ ✓ᵛᵉʳᶦᶠᶦᵉᵈ
*******
Posts: 6,890
Threads: 127
Joined: Nov 2009
I don't have "taskbar problem" no matter what dolphin version i use
Maybe it's just me Undecided
Laptop: (Show Spoiler)
Clevo W230SS : 3200x1800 IPS | i7 4700MQ @ 3.6GHz (Intel XTU + Triple fan mod) | GTX 860M GDDR5 | 128GB Toshiba CFD SSD | 16GB DDR3L 1600MHz
Acer v5-573G : 1080p LED |  i5 4200U @ 2.3GHz | Nvidia GT 750M 4GB | 128GB Toshiba SSD  | 12GB DDR3 1600MHz 
Mini PC :: (Show Spoiler)
G3258 @ 4.6GHz | ELSA GTX 750 | Asrock Z87E ITX | 600W SFX 80+ Gold Silverstone + SG06-LITE | Corsair Vengeance 8GB 2000MHz | Scythe Kozuti + Ao Kaze | 25TB 2.5" Ex HDD (in total) , Zelda Gold Wiimote , LE Wii Classic Controller , Gold LE PS3 DualShock , BlackWidow Chroma ,
Now Playing : Xenoblade Definitive Edition on Yuzu - Switch Emu 

 
Find
Reply
11-08-2012, 09:56 PM
#5
LordVador Offline
Christmas Vader
*******
Posts: 8,852
Threads: 1,908
Joined: Mar 2011
(11-08-2012, 09:03 PM)admin89 Wrote: I don't have "taskbar problem" no matter what dolphin version i use
Maybe it's just me Undecided

Same here. Never had this problem
[color=#ff0000][color=#006600]i5 3570K @ 4.5GHz/GTX 660 Ti/RAM 4GB/Win7 x64[/color][/color]
Find
Reply
11-08-2012, 10:05 PM
#6
neobrain Offline
"Wow, I made my code 1000x faster! That means I can make it 2048x slower now!"
**********
Developers (Some Administrators and Super Moderators)
Posts: 3,209
Threads: 50
Joined: Jun 2009
You likely aren't using a high DPI, either Wink
My blog
Me on Twitter
My wishlist on Amazon.de
Find
Reply
11-08-2012, 10:08 PM
#7
DefenderX Offline
The comedy never ends.
*******
Posts: 4,617
Threads: 186
Joined: Dec 2011
I use Windows with a dpi settings of 125%. 100% is not very good if you use a 2880x1800 resolution Big Grin (loupe needed xD)
[Image: IEZtsj]
[Image: 8fhx2zum.gif]
Website Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode