Post Reply 
 
Thread Rating:
  • 2 Votes - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multi-monitor support.
Author Message
ISilenceI Offline
Junior Member
**

Posts: 11
Joined: Jun 2012
Post: #1
Multi-monitor support.
If anyone is having problems starting up the game with multiple monitors, let me know.
I have written some code to allow people with 2 or more monitors to load the game without crashing.

..!.. swixel
and ..!.. Timo for closing my thread while I was trying to get useful help.
and just so you know, the problem was EXACTLY what I said it was. GG
(This post was last modified: 24-06-2012 06:00 PM by ISilenceI.)
24-06-2012 05:52 PM
Find all posts by this user Quote this message in a reply
Swixel Offline
Epic Member
*******

Posts: 1,087
Joined: Sep 2011
Post: #2
RE: Multi-monitor support.
(24-06-2012 05:52 PM)ISilenceI Wrote:  If anyone is having problems starting up the game with multiple monitors, let me know.
I have written some code to allow people with 2 or more monitors to load the game without crashing.

As you haven't posted it, I'll just put this here to help anyone else having issues. (Yes, I remember, you don't want my help or my opinions, but as you're proposing a 'fix' and not giving it, I'm supplying mine here.)

'const' stores variables used by the engine to initialise things. Provided your DirectX context is playing nice (which beyond a single monitor is driver territory), you can setup something like this:

Code:
const.ResolutionMinWidth = 3240
const.ResolutionMinHeight = 1920

This will get replaced later, which is potentially a problem. To fix this, you can open Game.hpk and copy out config.lua from 'Game/core/GameConst.lua'. Make a 'Game' folder, and inside it 'core'. Copy the original GameConst.lua there as _GameConst.lua. Create a 'GameConst.lua' file which contains:

Code:
dofile("Game/core/_GameConst.lua")

-- Restore our 'safemode' values
const.ResolutionMinWidth = 3240
const.ResolutionMinHeight = 1920

Now safemode loads at that resolution.

The catch with this method is that you need to copy out new GameConst files after an update (if they have changed).

You could, of course, do this with Game/config/config.lua, set up a proxy table on const, and watch for changes, but I haven't tried this (it wasn't required in my case).

EDIT: Fixed a couple of mistakes from when I changed from config.lua 'detouring' to GameConst.lua.

(24-06-2012 05:52 PM)ISilenceI Wrote:  ..!.. swixel
and ..!.. Timo for closing my thread while I was trying to get useful help.
and just so you know, the problem was EXACTLY what I said it was. GG

Until I see evidence of this I'm going to assume it's not as described, given ATI issues with unpatched Win7 installs.

EDIT: Added quoted segments and sentence before this.

"I am not ashamed to confess I am ignorant of what I do not know" ― Cicero.

"You had to hand it to the Patrician, he admitted grudgingly. If you didn't, he sent men to come and take it away." ― Terry Pratchett (Guards! Guards!)
(This post was last modified: 25-06-2012 04:19 AM by Swixel.)
24-06-2012 09:13 PM
Find all posts by this user Quote this message in a reply
ISilenceI Offline
Junior Member
**

Posts: 11
Joined: Jun 2012
Post: #3
RE: Multi-monitor support.
Youre so easy.
25-06-2012 12:59 AM
Find all posts by this user Quote this message in a reply
Swixel Offline
Epic Member
*******

Posts: 1,087
Joined: Sep 2011
Post: #4
RE: Multi-monitor support.
(25-06-2012 12:59 AM)ISilenceI Wrote:  Youre so easy.

Well my assumption was that you did not have a solution and refused to admit it, so I thought I would do the right thing and supply it anyway; mostly because others will assume there is actually one here, and I'd rather not disappoint.

That said, my solution only works if DirectX and the Windows core system is up to date, so you will still need Windows 7 Service Pack 1, and up-to-date drivers.

"I am not ashamed to confess I am ignorant of what I do not know" ― Cicero.

"You had to hand it to the Patrician, he admitted grudgingly. If you didn't, he sent men to come and take it away." ― Terry Pratchett (Guards! Guards!)
25-06-2012 01:04 AM
Find all posts by this user Quote this message in a reply
Simanos Offline
Member
***

Posts: 80
Joined: May 2012
Post: #5
RE: Multi-monitor support.
Awesome thread!
Made me LOL, so surreal.
29-06-2012 09:31 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us | kalypso media :: website | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication