Other resolution

02/16/2011 03:25 *M*#1
Is anyone sick of the default 1024x768 res?

Hackin around at the moment and I think i've found the the way to intercept resolution change to a custom one

Anyone interested in this?
02/16/2011 03:31 Ian*#2
Sounds pretty interesting, wish I knew how to do this back when I still played. People with widescreen monitors get black bars across the sides when they play on fullscreen (depending on gfx card etc..) so I think that would help solve that problem for a lot of them, plus it's convenient.
02/16/2011 04:05 *M*#3
Its still fun to mess with :>, anyway I made some progress, however as you can see the graphics don't scale well so some more digging is needed.

For those that would like to mess with this them selves, look here:

Code:
CPU Disasm
Address   Hex dump          Command                                                                   Comments
005ABDBD  |.  FF35 48E18B00 PUSH DWORD PTR DS:[8BE148]                                                ; Resolution Y
005ABDC3  |.  A1 44E18B00   MOV EAX,DWORD PTR DS:[8BE144]                                             ; Resolution X
005ABDC8  |.  50            PUSH EAX                                                                  ; ?
005ABDC9      FF15 B89B7D00 CALL DWORD PTR DS:[<&graphic.?GameCameraBuild@CMyBitmap@@SAXUCMySize@@@Z> ; Call Function
Setting a BP @ will let you catch the 1024x768 window change, then you can change the values @ 8BE148 & 8BE144 (Y/X)

0058BEED is the changer for 800x600, same process.
02/16/2011 04:08 *M*#4
Update: Okay, sorted out the scaling issue, running conquer in 1440x900 Widescreen!, however the GUI doesn't scale properly this time, anyone have experience in moving GUI elements?


Here is the code update this time, which also depreciates the code I posted above as this will set the above X/Y values

EDIT: This doesn't depreciate the first mod I posted above, they need to both be applied

Code:
CPU Disasm
Address   Hex dump          Command                                                  Comments
005AB8EC  |.  C785 54FEFFFF MOV DWORD PTR SS:[EBP-1AC],5A0                           ; X Resolution 5A0=1440
005AB8F6  |.  C785 58FEFFFF MOV DWORD PTR SS:[EBP-1A8],384                           ; Y Resolution 384=900
005AB900  |.  FF15 AC9A7D00 CALL DWORD PTR DS:[<&USER32.ChangeDisplaySettingsA>]     ; Call Function
Ok so here we have the X/Y setting for 1024x768 window mode, modified slightly. I changed 400(1024) to 5A0 to give 1440, and 300 to 384(768) to get 900.
Use any hex>dec converter to choose your own res
02/16/2011 07:13 Huseby#5
Now thats quite answome 0.o, 1024*768, is old, its less res then the 15 inch laptop i had back in 2002.

and those things that looks shorta messed up there, is easy to change.

Indeed some great work ^^
02/16/2011 09:21 Korvacs#6
I think you can probably move the GUI around using reshacker. :)
02/16/2011 12:40 DragonHeart#7
That's looking quite interesting! Nais work.
02/16/2011 22:12 *M*#8
Quote:
Originally Posted by Korvacs View Post
I think you can probably move the GUI around using reshacker. :)
I was thinking that might be an option, the reshacker won't draw the things I need to move as they're an external file, but the placement info should be there, ill try it when I get home.
:mofo:
02/17/2011 04:26 *M*#9
Moar news...

As Korvacs suggested I used resource hacker, this can't move things around in the GUI, however it does give you the name of the resource which you can find in ini/GUI.ini (cheers Synsia for the tip)

The only thing left to do now is move all the buttons that are in the way, im thinking bottom right corner.

Does anyone know what the image file is for that little Conquer 2.0 Legends return logo? I'd like to extend it as it'll look a little hoary if I just dump the buttons in the corner.
02/17/2011 08:19 Opale#10
It's complicated, cause that logo is divided in three different .dds :
Co/data/main : DialogTalk3 , DialogTalk4 & Main Dialog2

I don't know if that's what you're looking for tho.
02/17/2011 09:53 Korvacs#11
Like Opale said its split into 3 parts so thats going to be abit difficult to get looking right. I seem to remember the cordinates of the gui being accessible through reshacker so assumed you could just move them by changing that, ah well.

Looks great are you going to make a tool around this to chance resolution? 1920x1080 Conquer would be a welcome addition lol.
02/17/2011 10:32 *M*#12
Quote:
Originally Posted by Korvacs View Post
Like Opale said its split into 3 parts so thats going to be abit difficult to get looking right. I seem to remember the cordinates of the gui being accessible through reshacker so assumed you could just move them by changing that, ah well.

Looks great are you going to make a tool around this to chance resolution? 1920x1080 Conquer would be a welcome addition lol.
Indeed, but if you've used a zoom hack before, you'll notice once you reach a certain scale the map starts to go glitchy at the edges. Same thing happens with this as the camera is bigger obviously, its not so bad at 1440x900 so I chose that. + my own screen is 1680x1050.

Maybe I can hack the camera in someway to expand the map a little further, I'll see.

As for the release format, probably just a modified exe to change the resolution, and a modified ini for 1440x900. I'll prob do a guide for those that want to do their own res so I don't have to maintain it haha.

Heres a screenie to show where im at:
You can see why I would wan't to extend the bar, I am aware of two separate objects that make up that as I had to line them up when moving the chat box back in place, not sure what the third is.
02/17/2011 14:25 Korvacs#13
Well its looking great so far, keep up the good work mate :D
02/17/2011 22:11 phize#14
Looking good!
02/17/2011 23:10 *M*#15
Released, just needs approval.