Patch: Allowing windowed-mode resolution to be specified externally

Enhance Your Overall Game-Play.
Mod-Database, Calculators, Cheatsheets, Multiplayer, Scripts, Libs and Other Useful Stuff.
Post Reply
User avatar
Dev-iL
Fast Inserter
Fast Inserter
Posts: 209
Joined: Thu Jul 02, 2015 2:48 pm
Contact:

Patch: Allowing windowed-mode resolution to be specified externally

Post by Dev-iL » Tue Apr 25, 2017 2:18 pm

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 70 times
Leading Hebrew translator of Factorio.

User avatar
Dev-iL
Fast Inserter
Fast Inserter
Posts: 209
Joined: Thu Jul 02, 2015 2:48 pm
Contact:

Re: Allowing windowed-mode resolution to be specified externally

Post by Dev-iL » Wed Apr 26, 2017 7:47 pm

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 56 times
Leading Hebrew translator of Factorio.

User avatar
Dev-iL
Fast Inserter
Fast Inserter
Posts: 209
Joined: Thu Jul 02, 2015 2:48 pm
Contact:

Re: Allowing windowed-mode resolution to be specified externally

Post by Dev-iL » Fri Apr 28, 2017 10:25 pm

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 65 times
Leading Hebrew translator of Factorio.

User avatar
Dev-iL
Fast Inserter
Fast Inserter
Posts: 209
Joined: Thu Jul 02, 2015 2:48 pm
Contact:

Re: Allowing windowed-mode resolution to be specified externally

Post by Dev-iL » Sat Apr 29, 2017 7:09 pm

Uploading fix for 0.15.4.
Attachments
Factorio_0.15.4_w64_Resolution_Patch_to_1680x1050.txt
(113 Bytes) Downloaded 58 times
Leading Hebrew translator of Factorio.

User avatar
Dev-iL
Fast Inserter
Fast Inserter
Posts: 209
Joined: Thu Jul 02, 2015 2:48 pm
Contact:

Re: Allowing windowed-mode resolution to be specified externally

Post by Dev-iL » Sun Apr 30, 2017 7:03 pm

Uploading fix for 0.15.5.
Attachments
Factorio_0.15.5_w64_Resolution_Patch_to_1680x1050.txt
(113 Bytes) Downloaded 59 times
Leading Hebrew translator of Factorio.

User avatar
ssilk
Global Moderator
Global Moderator
Posts: 10430
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: Allowing windowed-mode resolution to be specified externally

Post by ssilk » Mon May 01, 2017 7:46 pm

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
Fast Inserter
Fast Inserter
Posts: 209
Joined: Thu Jul 02, 2015 2:48 pm
Contact:

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

Post by Dev-iL » Tue May 02, 2017 3:15 pm

Uploading fix for 0.15.6.
Attachments
Factorio_0.15.6_w64_Resolution_Patch_to_1680x1050.txt
(113 Bytes) Downloaded 48 times
Leading Hebrew translator of Factorio.

User avatar
Dev-iL
Fast Inserter
Fast Inserter
Posts: 209
Joined: Thu Jul 02, 2015 2:48 pm
Contact:

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

Post by Dev-iL » Tue May 09, 2017 8:22 pm

Uploading fix for 0.15.9.
Attachments
Factorio_0.15.9_w64_Resolution_Patch_to_1680x1050.txt
(113 Bytes) Downloaded 59 times
Leading Hebrew translator of Factorio.

User avatar
Dev-iL
Fast Inserter
Fast Inserter
Posts: 209
Joined: Thu Jul 02, 2015 2:48 pm
Contact:

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

Post by Dev-iL » Wed May 10, 2017 7:23 pm

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 49 times
Leading Hebrew translator of Factorio.

User avatar
Dev-iL
Fast Inserter
Fast Inserter
Posts: 209
Joined: Thu Jul 02, 2015 2:48 pm
Contact:

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

Post by Dev-iL » Tue May 16, 2017 6:45 pm

Fix for 0.15.11.
Attachments
Factorio_0.15.11_w64_Resolution_Patch_to_1680x1050.txt
(113 Bytes) Downloaded 55 times
Leading Hebrew translator of Factorio.

User avatar
Dev-iL
Fast Inserter
Fast Inserter
Posts: 209
Joined: Thu Jul 02, 2015 2:48 pm
Contact:

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

Post by Dev-iL » Wed May 24, 2017 11:20 am

0.15.13
Attachments
Factorio_0.15.13_w64_Resolution_Patch_to_1680x1050.txt
(113 Bytes) Downloaded 56 times
Leading Hebrew translator of Factorio.

User avatar
Dev-iL
Fast Inserter
Fast Inserter
Posts: 209
Joined: Thu Jul 02, 2015 2:48 pm
Contact:

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

Post by Dev-iL » Sun May 28, 2017 12:53 pm

0.15.16.
Attachments
Factorio_0.15.16_w64_Resolution_Patch_to_1680x1050.txt
(113 Bytes) Downloaded 54 times
Leading Hebrew translator of Factorio.

User avatar
Dev-iL
Fast Inserter
Fast Inserter
Posts: 209
Joined: Thu Jul 02, 2015 2:48 pm
Contact:

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

Post by Dev-iL » Thu Jun 01, 2017 6:35 pm

0.15.17
Attachments
Factorio_0.15.17_w64_Resolution_Patch_to_1680x1050.txt
(113 Bytes) Downloaded 48 times
Leading Hebrew translator of Factorio.

User avatar
Dev-iL
Fast Inserter
Fast Inserter
Posts: 209
Joined: Thu Jul 02, 2015 2:48 pm
Contact:

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

Post by Dev-iL » Sun Jun 04, 2017 7:40 pm

0.15.18
Attachments
Factorio_0.15.18_w64_Resolution_Patch_to_1680x1050.txt
(117 Bytes) Downloaded 50 times
Leading Hebrew translator of Factorio.

User avatar
Dev-iL
Fast Inserter
Fast Inserter
Posts: 209
Joined: Thu Jul 02, 2015 2:48 pm
Contact:

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

Post by Dev-iL » Thu Jun 08, 2017 8:35 pm

0.15.19
Attachments
Factorio_0.15.19_w64_Resolution_Patch_to_1680x1050.txt
(117 Bytes) Downloaded 55 times
Leading Hebrew translator of Factorio.

User avatar
Dev-iL
Fast Inserter
Fast Inserter
Posts: 209
Joined: Thu Jul 02, 2015 2:48 pm
Contact:

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

Post by Dev-iL » Thu Jun 15, 2017 8:36 pm

0.15.20 & 0.15.21
Attachments
Factorio_0.15.21_w64_Resolution_Patch_to_1680x1050.txt
(113 Bytes) Downloaded 46 times
Factorio_0.15.20_w64_Resolution_Patch_to_1680x1050.txt
(113 Bytes) Downloaded 48 times
Leading Hebrew translator of Factorio.

User avatar
Dev-iL
Fast Inserter
Fast Inserter
Posts: 209
Joined: Thu Jul 02, 2015 2:48 pm
Contact:

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

Post by Dev-iL » Thu Jun 22, 2017 6:26 pm

0.15.23
Attachments
Factorio_0.15.23_w64_Resolution_Patch_to_1680x1050.txt
(113 Bytes) Downloaded 58 times
Leading Hebrew translator of Factorio.

User avatar
Dev-iL
Fast Inserter
Fast Inserter
Posts: 209
Joined: Thu Jul 02, 2015 2:48 pm
Contact:

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

Post by Dev-iL » Fri Jun 30, 2017 5:48 am

0.15.24 & 0.15.25
Attachments
Factorio_0.15.25_w64_Resolution_Patch_to_1680x1050.txt
(113 Bytes) Downloaded 48 times
Factorio_0.15.24_w64_Resolution_Patch_to_1680x1050.txt
(113 Bytes) Downloaded 42 times
Leading Hebrew translator of Factorio.

User avatar
Dev-iL
Fast Inserter
Fast Inserter
Posts: 209
Joined: Thu Jul 02, 2015 2:48 pm
Contact:

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

Post by Dev-iL » Mon Jul 03, 2017 9:56 pm

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 56 times
Leading Hebrew translator of Factorio.

User avatar
Dev-iL
Fast Inserter
Fast Inserter
Posts: 209
Joined: Thu Jul 02, 2015 2:48 pm
Contact:

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

Post by Dev-iL » Fri Jul 07, 2017 5:29 am

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”

Who is online

Users browsing this forum: No registered users and 0 guests