Patched client which fixes Dual Screen mode
Posted: 28 Apr 2009, 21:54
I've created a patched spring client which fixes many problems in the dual screen mode. This patched client works with normal clients.
Normally map and game viewport both took exactly half of the screen. This patch allows you to specify custom width and height for the dual screen map, which makes dual screen mode useful with two monitors with different resolutions. This works only in windowed mode. There's ready to use binary for Windows and a patch file for linux.
Instructions:
The patch adds the following variables, which you need to manually add into springsettings.cfg. The location of this file varies, but in my Windows XP SP3 computer it's located at C:\Documents and Settings\Garo\Local Settings\Application Data
Vista: C:\users\username\app data\local\springsettings.cfg
Required settings
DualScreenSplitWidth position in pixels from left side where the split between map and game viewport is located.
Optional settings
DualScreenMiniMapHeight optional height of the minimap. This is usefull if your secondary screen height is smaller than your primary screen. Default value is 0, which is same height as the spring window.
DualScreenMiniMapYOffset offset in pixels from bottom edge where map starts. Usefull if your screen bottom or top edges are at different eye level. Default value is 0.
You need to have dual screen mode enabled and you must not run in full screen. The map can be at left or right. You can set these using SpringSettings.exe
CustomFormations
CustomFormations plugin as a bug which prevents using it in dual screen mode. I've included a modified version called FixedFormations which corrects this bug.
Installation
1) Backup your spring.exe
2) Copy patched spring.exe over the original spring.exe
3) Copy lua_fixedformations.lua under LuaUI/Widgets
4) Disable CustomFormations and enable FixedFormations using F11 menu.
Configuration examples
My left screen resolution is 1200x1600 and primary screen resolution is 1920x1200. I set spring screen resolution to 3120x1200 using SpringSettings. After saving settings I edit springsettings.cfg and I add manually line DualScreenSplitWidth=1200. In practice I prefer to use slightly smaller resolution so I use 3100x1100 but keep DualScreenSplitWidth at 1200 (width of my left screen)
Known bugs
- Zooming using mouse wheel in minimap does not work correctly
Feedback
Please post all bugs and other feedback to this thread =)
Download
Download via this link: http://blog.juhonkoti.net/media/spring- ... ch-1.0.zip
EDIT: link broken. The patch file is attached into this post.
- Garo
Normally map and game viewport both took exactly half of the screen. This patch allows you to specify custom width and height for the dual screen map, which makes dual screen mode useful with two monitors with different resolutions. This works only in windowed mode. There's ready to use binary for Windows and a patch file for linux.
Instructions:
The patch adds the following variables, which you need to manually add into springsettings.cfg. The location of this file varies, but in my Windows XP SP3 computer it's located at C:\Documents and Settings\Garo\Local Settings\Application Data
Vista: C:\users\username\app data\local\springsettings.cfg
Required settings
DualScreenSplitWidth position in pixels from left side where the split between map and game viewport is located.
Optional settings
DualScreenMiniMapHeight optional height of the minimap. This is usefull if your secondary screen height is smaller than your primary screen. Default value is 0, which is same height as the spring window.
DualScreenMiniMapYOffset offset in pixels from bottom edge where map starts. Usefull if your screen bottom or top edges are at different eye level. Default value is 0.
You need to have dual screen mode enabled and you must not run in full screen. The map can be at left or right. You can set these using SpringSettings.exe
CustomFormations
CustomFormations plugin as a bug which prevents using it in dual screen mode. I've included a modified version called FixedFormations which corrects this bug.
Installation
1) Backup your spring.exe
2) Copy patched spring.exe over the original spring.exe
3) Copy lua_fixedformations.lua under LuaUI/Widgets
4) Disable CustomFormations and enable FixedFormations using F11 menu.
Configuration examples
My left screen resolution is 1200x1600 and primary screen resolution is 1920x1200. I set spring screen resolution to 3120x1200 using SpringSettings. After saving settings I edit springsettings.cfg and I add manually line DualScreenSplitWidth=1200. In practice I prefer to use slightly smaller resolution so I use 3100x1100 but keep DualScreenSplitWidth at 1200 (width of my left screen)
Known bugs
- Zooming using mouse wheel in minimap does not work correctly
Feedback
Please post all bugs and other feedback to this thread =)
Download
Download via this link: http://blog.juhonkoti.net/media/spring- ... ch-1.0.zip
EDIT: link broken. The patch file is attached into this post.
- Garo