Patch: Allowing windowed-mode resolution to be specified externally

Enhance your gameplay with these tools. This category is also the right place for tools useful for modders.
Mod databases, calculators, cheatsheets, multiplayer, scripts, libs and other useful stuff that is not strictly in-game mods.
User avatar
Dev-iL
Filter Inserter
Filter Inserter
Posts: 304
Joined: Thu Jul 02, 2015 2:48 pm
Contact:

Patch: Allowing windowed-mode resolution to be specified externally

Post by Dev-iL »

This topic was splitted into two parts: The suggestion-part and the patch.part. The origin is here:

viewtopic.php?f=6&t=45948

-- ßilk





As a temporary solution, I've patched the .exe file using x64dbg to start with the desired resolution.

Here's the part of the file that needed to be modified (open image location for a larger version):
Image

Here's the tool I used to convert the desired resolution to hex values.
Attachments
Factorio_0.15.1_w64_Resolution_Patch_to_1680x1050.txt
Patch file. Rename ".txt" to ".1337".
(113 Bytes) Downloaded 315 times
Leading Hebrew translator of Factorio.
User avatar
Dev-iL
Filter Inserter
Filter Inserter
Posts: 304
Joined: Thu Jul 02, 2015 2:48 pm
Contact:

Re: Allowing windowed-mode resolution to be specified externally

Post by Dev-iL »

Adding patch for 0.15.2.
Attachments
Factorio_0.15.2_w64_Resolution_Patch_to_1680x1050.txt
Rename .txt to .1337 and apply using x64dbg.
(113 Bytes) Downloaded 324 times
Leading Hebrew translator of Factorio.
User avatar
Dev-iL
Filter Inserter
Filter Inserter
Posts: 304
Joined: Thu Jul 02, 2015 2:48 pm
Contact:

Re: Allowing windowed-mode resolution to be specified externally

Post by Dev-iL »

BTW, as the addresses change with every new version, one should start at the location of the following function in the hex dump (I believe a symbols file is required for this to be available),

Code: Select all

GlobalContext::loadAllegro
and scroll a bit until the declaration of the constants having the comments

Code: Select all

globalcontext.cpp:718
globalcontext.cpp:719
Attachments
Factorio_0.15.3_w64_Resolution_Patch_to_1680x1050.txt
Fix for 0.15.3.
(113 Bytes) Downloaded 261 times
Leading Hebrew translator of Factorio.
User avatar
Dev-iL
Filter Inserter
Filter Inserter
Posts: 304
Joined: Thu Jul 02, 2015 2:48 pm
Contact:

Re: Allowing windowed-mode resolution to be specified externally

Post by Dev-iL »

Uploading fix for 0.15.4.
Attachments
Factorio_0.15.4_w64_Resolution_Patch_to_1680x1050.txt
(113 Bytes) Downloaded 306 times
Leading Hebrew translator of Factorio.
User avatar
Dev-iL
Filter Inserter
Filter Inserter
Posts: 304
Joined: Thu Jul 02, 2015 2:48 pm
Contact:

Re: Allowing windowed-mode resolution to be specified externally

Post by Dev-iL »

Uploading fix for 0.15.5.
Attachments
Factorio_0.15.5_w64_Resolution_Patch_to_1680x1050.txt
(113 Bytes) Downloaded 313 times
Leading Hebrew translator of Factorio.
User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12889
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: Allowing windowed-mode resolution to be specified externally

Post by ssilk »

Hm, this turned out to be a patch-thread, instead of a suggestion thread. :)

I need to split this thread into two parts, and moved this patch-part to Tools board.
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...
User avatar
Dev-iL
Filter Inserter
Filter Inserter
Posts: 304
Joined: Thu Jul 02, 2015 2:48 pm
Contact:

Re: Patch: Allowing windowed-mode resolution to be specified externally

Post by Dev-iL »

Uploading fix for 0.15.6.
Attachments
Factorio_0.15.6_w64_Resolution_Patch_to_1680x1050.txt
(113 Bytes) Downloaded 247 times
Leading Hebrew translator of Factorio.
User avatar
Dev-iL
Filter Inserter
Filter Inserter
Posts: 304
Joined: Thu Jul 02, 2015 2:48 pm
Contact:

Re: Patch: Allowing windowed-mode resolution to be specified externally

Post by Dev-iL »

Uploading fix for 0.15.9.
Attachments
Factorio_0.15.9_w64_Resolution_Patch_to_1680x1050.txt
(113 Bytes) Downloaded 320 times
Leading Hebrew translator of Factorio.
User avatar
Dev-iL
Filter Inserter
Filter Inserter
Posts: 304
Joined: Thu Jul 02, 2015 2:48 pm
Contact:

Re: Patch: Allowing windowed-mode resolution to be specified externally

Post by Dev-iL »

Uploading fix for 0.15.10.

I'd love to hear if anybody finds this helpful :)
Attachments
Factorio_0.15.10_w64_Resolution_Patch_to_1680x1050.txt
(113 Bytes) Downloaded 309 times
Leading Hebrew translator of Factorio.
User avatar
Dev-iL
Filter Inserter
Filter Inserter
Posts: 304
Joined: Thu Jul 02, 2015 2:48 pm
Contact:

Re: Patch: Allowing windowed-mode resolution to be specified externally

Post by Dev-iL »

Fix for 0.15.11.
Attachments
Factorio_0.15.11_w64_Resolution_Patch_to_1680x1050.txt
(113 Bytes) Downloaded 301 times
Leading Hebrew translator of Factorio.
User avatar
Dev-iL
Filter Inserter
Filter Inserter
Posts: 304
Joined: Thu Jul 02, 2015 2:48 pm
Contact:

Re: Patch: Allowing windowed-mode resolution to be specified externally

Post by Dev-iL »

0.15.13
Attachments
Factorio_0.15.13_w64_Resolution_Patch_to_1680x1050.txt
(113 Bytes) Downloaded 303 times
Leading Hebrew translator of Factorio.
User avatar
Dev-iL
Filter Inserter
Filter Inserter
Posts: 304
Joined: Thu Jul 02, 2015 2:48 pm
Contact:

Re: Patch: Allowing windowed-mode resolution to be specified externally

Post by Dev-iL »

0.15.16.
Attachments
Factorio_0.15.16_w64_Resolution_Patch_to_1680x1050.txt
(113 Bytes) Downloaded 230 times
Leading Hebrew translator of Factorio.
User avatar
Dev-iL
Filter Inserter
Filter Inserter
Posts: 304
Joined: Thu Jul 02, 2015 2:48 pm
Contact:

Re: Patch: Allowing windowed-mode resolution to be specified externally

Post by Dev-iL »

0.15.17
Attachments
Factorio_0.15.17_w64_Resolution_Patch_to_1680x1050.txt
(113 Bytes) Downloaded 286 times
Leading Hebrew translator of Factorio.
User avatar
Dev-iL
Filter Inserter
Filter Inserter
Posts: 304
Joined: Thu Jul 02, 2015 2:48 pm
Contact:

Re: Patch: Allowing windowed-mode resolution to be specified externally

Post by Dev-iL »

0.15.18
Attachments
Factorio_0.15.18_w64_Resolution_Patch_to_1680x1050.txt
(117 Bytes) Downloaded 349 times
Leading Hebrew translator of Factorio.
User avatar
Dev-iL
Filter Inserter
Filter Inserter
Posts: 304
Joined: Thu Jul 02, 2015 2:48 pm
Contact:

Re: Patch: Allowing windowed-mode resolution to be specified externally

Post by Dev-iL »

0.15.19
Attachments
Factorio_0.15.19_w64_Resolution_Patch_to_1680x1050.txt
(117 Bytes) Downloaded 271 times
Leading Hebrew translator of Factorio.
User avatar
Dev-iL
Filter Inserter
Filter Inserter
Posts: 304
Joined: Thu Jul 02, 2015 2:48 pm
Contact:

Re: Patch: Allowing windowed-mode resolution to be specified externally

Post by Dev-iL »

0.15.20 & 0.15.21
Attachments
Factorio_0.15.21_w64_Resolution_Patch_to_1680x1050.txt
(113 Bytes) Downloaded 254 times
Factorio_0.15.20_w64_Resolution_Patch_to_1680x1050.txt
(113 Bytes) Downloaded 285 times
Leading Hebrew translator of Factorio.
User avatar
Dev-iL
Filter Inserter
Filter Inserter
Posts: 304
Joined: Thu Jul 02, 2015 2:48 pm
Contact:

Re: Patch: Allowing windowed-mode resolution to be specified externally

Post by Dev-iL »

0.15.23
Attachments
Factorio_0.15.23_w64_Resolution_Patch_to_1680x1050.txt
(113 Bytes) Downloaded 290 times
Leading Hebrew translator of Factorio.
User avatar
Dev-iL
Filter Inserter
Filter Inserter
Posts: 304
Joined: Thu Jul 02, 2015 2:48 pm
Contact:

Re: Patch: Allowing windowed-mode resolution to be specified externally

Post by Dev-iL »

0.15.24 & 0.15.25
Attachments
Factorio_0.15.25_w64_Resolution_Patch_to_1680x1050.txt
(113 Bytes) Downloaded 266 times
Factorio_0.15.24_w64_Resolution_Patch_to_1680x1050.txt
(113 Bytes) Downloaded 258 times
Leading Hebrew translator of Factorio.
User avatar
Dev-iL
Filter Inserter
Filter Inserter
Posts: 304
Joined: Thu Jul 02, 2015 2:48 pm
Contact:

Re: Patch: Allowing windowed-mode resolution to be specified externally

Post by Dev-iL »

0.15.27
Attachments
Factorio_0.15.27_w64_Resolution_Patch_to_1680x1050.txt
(As always, rename to .1337 and apply using x64dbg, or just open as text and follow instructions in your favorite hex editor)
(113 Bytes) Downloaded 273 times
Leading Hebrew translator of Factorio.
User avatar
Dev-iL
Filter Inserter
Filter Inserter
Posts: 304
Joined: Thu Jul 02, 2015 2:48 pm
Contact:

Re: Patch: Allowing windowed-mode resolution to be specified externally

Post by Dev-iL »

NO LONGER MAINTAINED AS OF 0.15.28 BECAUSE FEATURE ADDED
FactorioBot wrote:
  • Added --window-size launch option. For example --window-size=1680x1050 (44775)
Leading Hebrew translator of Factorio.
Post Reply

Return to “Tools”