Page 3 of 8

Re: Someone Test StarCraft 2 5760 x 1080 Support and Post Here!

Posted: 17 Aug 2010, 16:36
by De La NoChe
Has anyone heard of anyone getting banned for using this in Multi player? Just curious. I am all about online play, but i dont want to get banned for using eyefinity. I just cant play any game on one monitor anymore... i feel like a horse with blinders on if i play with just one monitor :)

Re: Someone Test StarCraft 2 5760 x 1080 Support and Post Here!

Posted: 18 Aug 2010, 04:45
by Siberian_Khatru
Hi Hayden,

Unfortunately, I cnnot get this to work with Nvidia surround. I am seeing this -SC2 process found! Can't find resolution . I would really appreciate any help from anyone! Thank you very much. I have followed all of the instructions listed above and installed .net etc.

Thank you.

Re: Someone Test StarCraft 2 5760 x 1080 Support and Post Here!

Posted: 18 Aug 2010, 06:35
by travin
Can't seem to get this solution to work. :(

It detects the SC2 Process but will not recognize any of the resolutions I set the game to (including the default 1024x768). The provided error message is "Cant Find Resolution".

Any assistance is appreciated...

ATI 5870 - 4320x900

Re: Someone Test StarCraft 2 5760 x 1080 Support and Post Here!

Posted: 18 Aug 2010, 08:39
by travin
Ok, I tried the manual way myself. I attempted to locate the values within memory and while located (I believe) there are quite a few temporary values and none of them appear to modify the resolution.

I also attempted to use your provided program and it just registers as "Resolution not found." Maybe they adjusted the memory addresses to account for this hack?

Can you quickly tell me what memory address you located?

Re: Someone Test StarCraft 2 5760 x 1080 Support and Post Here!

Posted: 18 Aug 2010, 11:25
by HaYDeN

Code: Select all

Dim ResolutionPointerOffsets() As IntPtr = {&H8C}

   Dim ResolutionPointer As IntPtr = &HECB4B0

For anyone that cares, first four bytes (int) = horizontal res, next four bytes (int) = vertical res.


as above re:addresses, I just tried it now and it seems to work just as it always has... it downloaded a update before it launched, have seen it download a few prior too, doesnt seem like they've changed anything, got .net framework 4?

Re: Someone Test StarCraft 2 5760 x 1080 Support and Post Here!

Posted: 18 Aug 2010, 15:35
by travin
I'm pretty sure I have that version of .NET, I'll try again later this evening.

Re: Someone Test StarCraft 2 5760 x 1080 Support and Post Here!

Posted: 18 Aug 2010, 17:32
by sn0w
new patch came out today and the app res app has stopped working :(

anyone else had any luck with it?

Re: Someone Test StarCraft 2 5760 x 1080 Support and Post Here!

Posted: 18 Aug 2010, 17:35
by Siberian_Khatru
I can't get it to work either. I sure wish I could figure it out. I spent 3 hours yesterdat working on it. I really want to play this game in Surround.

Re: Someone Test StarCraft 2 5760 x 1080 Support and Post Here!

Posted: 18 Aug 2010, 17:37
by sn0w
it was working perfectly for me up until i downloaded the latest patch from blizz..

it was AWESOME in surround!

i hope mr aweseom hayden can work around this patch :(

Re: Someone Test StarCraft 2 5760 x 1080 Support and Post Here!

Posted: 19 Aug 2010, 16:02
by sn0w
so.. anyone else having the same problem as me since the new patch?

Re: Someone Test StarCraft 2 5760 x 1080 Support and Post Here!

Posted: 19 Aug 2010, 16:28
by HaYDeN

Code: Select all



   Imports System.Diagnostics
   Imports System.Runtime.InteropServices
   Imports Microsoft.Win32
   
   Public Class Form1
       Dim Processes() As System.Diagnostics.Process
       Dim baseAddress As IntPtr
       Dim ResolutionPointerOffsets() As IntPtr = {&H8C}
       Dim ResolutionPointer As IntPtr = &HECC4B0
   
       Private Declare Function ReadProcessMemory Lib "kernel32" Alias "ReadProcessMemory" (ByVal hProcess As IntPtr, ByVal lpBaseAddress As IntPtr, ByVal lpBuffer() As Byte, ByVal nSize As Integer, ByRef lpNumberOfBytesWritten As Integer) As IntPtr
       Private Declare Function ReadIntegerMemory Lib "kernel32" Alias "ReadProcessMemory" (ByVal hProcess As Integer, ByVal lpBaseAddress As Integer, ByRef lpBuffer As Integer, ByVal nSize As Integer, ByRef lpNumberOfBytesWritten As Integer) As Integer
       Private Declare Function WriteIntegerMemory Lib "kernel32" Alias "WriteProcessMemory" (ByVal hProcess As Integer, ByVal lpBaseAddress As Integer, ByRef lpBuffer As Integer, ByVal nSize As Integer, ByRef lpNumberOfBytesWritten As Integer) As Integer
   
       Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
           Processes = System.Diagnostics.Process.GetProcessesByName("sc2")
       End Sub
   
       Public Function FollowPointer(ByVal BaseAddress As IntPtr, ByVal StartAddrress As IntPtr, ByVal offsets() As IntPtr) As IntPtr
           If Processes.Length > 0 Then
               If Processes(0).HasExited = False Then
                   Dim NextAddress As IntPtr = -1
                   Dim i As Integer
                   For i = 0 To UBound(offsets)
                       Dim output(3) As Byte
                       If NextAddress = -1 Then
                           ReadProcessMemory(Processes(0).Handle, (BaseAddress + StartAddrress), output, 4, 0)
                       ElseIf NextAddress = 0 Then
                       Else
                           ReadProcessMemory(Processes(0).Handle, (NextAddress), output, 4, 0)
                       End If
                       NextAddress = BitConverter.ToInt32(output, 0) + offsets(i)
                   Next
                   FollowPointer = NextAddress
               Else
               End If
           End If
       End Function
   
       Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
           If Processes.Length = 0 Then
               Processes = System.Diagnostics.Process.GetProcessesByName("sc2")
               Label5.Text = "Searching for SC2 Process!"
           ElseIf Processes.Length > 0 Then
               If Processes(0).HasExited = True Then
                   Array.Resize(Processes, 0)
               Else
                   Label5.Text = "SC2 Process Found!"
                   baseAddress = Processes(0).MainModule.BaseAddress
                   Dim targetAddress As IntPtr = FollowPointer(baseAddress, ResolutionPointer, ResolutionPointerOffsets)
                   Dim tHor, tVer As Integer
                   ReadIntegerMemory(Processes(0).Handle, targetAddress, tHor, 4, 4)
                   ReadIntegerMemory(Processes(0).Handle, targetAddress + 4, tVer, 4, 4)
                   If tHor = TextBox1.Text And tVer = TextBox2.Text Then
                       Label6.Text = "Found Resolution, Rewriting"
                       tHor = TextBox3.Text
                       tVer = TextBox4.Text
                       WriteIntegerMemory(Processes(0).Handle, targetAddress, tHor, 4, 4)
                       WriteIntegerMemory(Processes(0).Handle, targetAddress + 4, tVer, 4, 4)
                   ElseIf tHor = TextBox3.Text And tVer = TextBox4.Text Then
                       Label6.Text = "Rewrite Successful"
                   Else
                       Label6.Text = "Cant Find Resolution"
                   End If
               End If
           End If
       End Sub
   End Class
   


modified the address to support new patch - http://theinterwebs.doesntexist.org/CustomRes.exe

Re: Someone Test StarCraft 2 5760 x 1080 Support and Post Here!

Posted: 19 Aug 2010, 16:50
by sn0w
works a treat.

hayden you are simply awesome mate :)

if you ever come to the uk, i owe you a beer :)


:cheers

Re: Someone Test StarCraft 2 5760 x 1080 Support and Post Here!

Posted: 21 Aug 2010, 14:44
by Oddball
The link is not working for me. Can you repost it please?

Re: Someone Test StarCraft 2 5760 x 1080 Support and Post Here!

Posted: 21 Aug 2010, 17:34
by wisby
yep the link is down can you fix it please :)

Re: Someone Test StarCraft 2 5760 x 1080 Support and Post Here!

Posted: 22 Aug 2010, 18:26
by skipclarke
Can someone reupload the file please, my mobo died so I lost all my files and had to reinstall OS,
and the link doesn't work any more.

Re: Someone Test StarCraft 2 5760 x 1080 Support and Post Here!

Posted: 23 Aug 2010, 03:45
by HaYDeN
Sorry its pointing at my apache server and I've had to change gateway a few times recently which doesnt have the port forwarding.

Put it on mediafire - http://www.mediafire.com/?egmlh8xevsh2ri6

Re: Someone Test StarCraft 2 5760 x 1080 Support and Post Here!

Posted: 23 Aug 2010, 10:42
by azzurri
First of all i really want to thank mister Hayden for his work and mostly for sharing it with us. I used it and it works great. Maybe blizzard should hire u to fix there games :).

I m a bit worried though blizzard might consider it cheating. But hey everyone decide for himself. Thanks again to mister hayden for his work.

Re: Someone Test StarCraft 2 5760 x 1080 Support and Post Here!

Posted: 24 Aug 2010, 00:33
by skipclarke
nvm just downloaded some .NET 4.0 thingie from Microsoft and it works again! Hayden FTW :rockout

Re: Someone Test StarCraft 2 5760 x 1080 Support and Post Here!

Posted: 24 Aug 2010, 13:30
by Abram
Well damn ,I cannot get Haydens' fix to work. The fix just says "Can't find resolution".

Launch game, set resolution to 1920x1200, exit. Run fix, set current and desired resolutions, start game and... i get 3x individual 1920x1200 screens. Win7-64, .NET 4.0, everything up-to-date. I thought perhaps it was the Bezel Comp I'm using, so i also tried the fix without and BC and still a no-go.

Re: Someone Test StarCraft 2 5760 x 1080 Support and Post Here!

Posted: 24 Aug 2010, 23:33
by Tucson
Hi I had trouble understanding the procedure you used. On mine, first set SC2 to 10x7 in fullscreen, then close the program. Start CustomRes, enter 1024x768 in the first field, and your desired res in the second, and then start SC2.

The "cannot find resolution" was happening to be after the patch with the old utility. Is your CustomRes updated?

Sorry if is already what you are doing. Hayden seemed to indicate the using a resolution the utility can recognize is important. Make sure the initial setting one of those recognized by the program.

Let us know what works for you in the end.