Making a higher resolution .exe

05/14/2020 17:24 Latyos#1
Just trying to make a higher resolution conquer.exe. Figured out how to change resolution and voila, I got it.

[Only registered and activated users can see links. Click Here To Register...]

You probably noticed my odd UI. Does anyone know how can I fix it? What do I need to change in the .exe? Any help is appreciated, cheers.
05/15/2020 07:30 -impulse-#2
Quote:
Originally Posted by Latyos View Post
Just trying to make a higher resolution conquer.exe. Figured out how to change resolution and voila, I got it.

[Only registered and activated users can see links. Click Here To Register...]

You probably noticed my odd UI. Does anyone know how can I fix it? What do I need to change in the .exe? Any help is appreciated, cheers.
ini/GUI.ini from what I recall.
05/15/2020 07:40 Latyos#3
Quote:
Originally Posted by -impulse- View Post
ini/GUI.ini from what I recall.
Thanks. Do you know which entry I should edit? There's a lot to trial/error
05/15/2020 09:05 teroareboss1#4
bar chat is: 0-145

Conquer use the MoveWindow from user32.dll to set all guis.

So.. you can hook MoveWindow to set position of any gui.
05/15/2020 10:09 Latyos#5
Quote:
Originally Posted by teroareboss1 View Post
bar chat is: 0-145

Conquer use the MoveWindow from user32.dll to set all guis.

So.. you can hook MoveWindow to set position of any gui.
Thanks for the answer. 0-145 works. Can you tell me how can I find entry of other elements and/or example code to how can I manipulate MoveWindow calls after I hook the method?
05/17/2020 00:14 Latyos#6
Current progress:
[Only registered and activated users can see links. Click Here To Register...]

Found out there's a command called, "/enablefocus" so that I could find GUI.ini references. Right now, everything is hard-coded. Exe is edited to have constant 1920*1080 resolution, GUI.ini is edited to fit gui elements on place. As soon as I figure out how to fix remaining issue, I will make a .dll to adjust everything so I can set it to whatever resolution I want (hopefully).


All fixed, thank you all.
05/18/2020 06:11 turk55#7
Could always just grab a source that runs on a higher patch and run TQ's GUI interface to look up the ids
05/18/2020 10:10 Latyos#8
Quote:
Originally Posted by turk55 View Post
Could always just grab a source that runs on a higher patch and run TQ's GUI interface to look up the ids
On my case, "[Only registered and activated users can see links. Click Here To Register...]", which I randomly came across, let me do the same. The biggest issue was hardcoded values, bottom panel and quiver when you equip an arrow.

Finding the bottom panel was relatively easy as it's height was given in GUI.ini, all I had to was search the value and find the one that involved "GetWindowRect/GetScreenHeight/GetScreenWidth". Replacing X-axis was a little tricky as there wasn't enough space to do so. I just eliminated X-axis calculation and given it a hardcoded value.

Finding quiver was a big trouble. Because it's a graphic and there's no information on GUI.ini about it. But I was lucky to contact the right person about my question which redirect me to a person that has an actual guide on another forum about the topic. He told me what values should I look for. I found out that it was being drawn in 3 parts: Arrow text, Arrow text shadow and Quiver. Rest was as easy as replacing the hardcoded values with my own values.

Thanks for the heads up though.