Save window geometry upon exit / Remember window positions / Store window size/location between games

Post your ideas and suggestions how to improve the game.

Moderator: ickputzdirwech

User avatar
jodokus31
Smart Inserter
Smart Inserter
Posts: 1622
Joined: Sun Feb 26, 2017 4:13 pm
Contact:

Re: Save window geometry upon exit / Remember window positions / Store window size/location between games

Post by jodokus31 »

Hornwitser wrote: Mon May 08, 2023 12:06 pm
JohnWittle wrote: Sat May 06, 2023 6:58 am This is a bug that needs to be fixed, period. Calling it a suggestion is obvious nonsense. Windows exposes a window manager API for exactly this reason and failing to use it is not a lifestyle choice, it's a mistake. If there is a place where users can tell Factorio how large they would like the Factorio game window to be (and I suspect there is, since each of us sufferers always get the same resolution on startup), it needs to be documented, ...
If I add --window-size 1080x1080 to the launch options Factorio opens at 1080x1080 on my system. And it keeps that resolution after apply changes to the mod list. I'm unable to reproduce the bug you are referring to.
I can second this.
@John: If you think there's a bug, then go ahead and report it.

Otherwise, I would love that factorio remembers the position.

I have a startup script under Linux (X11, XFCE4), which moves Factorio window to the top left corner after 1 sec.

Code: Select all

    
    gamemoderun ./$1/bin/x64/factorio --window-size "3000x2050" &

    sleep 1
    
    for fac in `wmctrl -l | grep -G "Factorio [0-9]\.[0-9]\.[0-9][0-9]"| sed 's/ .*//' | sed 's/\n/ /g'`; do
        wmctrl -i -r $fac -e "0,0,0,-1,-1"
    done
Koub
Global Moderator
Global Moderator
Posts: 7787
Joined: Fri May 30, 2014 8:54 am
Contact:

Re: Save window geometry upon exit / Remember window positions / Store window size/location between games

Post by Koub »

JohnWittle wrote: Sat May 06, 2023 6:58 am It's kind of infuriating that the people merging this "idea and suggestion" don't notice that there are two completely different problems being complained about
[...]
Seeing moderators confuse these two issues, and merge threads talking about completely different things, makes me think the devs aren't even aware that people are having trouble with this.
[...]
Does that make the problem clear? We're not talking about in-game windows, we're talking about the factorio window itself.
I'd like to stress that we're several moderators around here, and I think I understand very well the difference between the Factorio window geometry that's not saved between sessions on the one hand, and the Windows within Factorio GUI that are also not saved within the same Factorio session.
I, too, would rather have seen them stay on two separate threads, but It's too late now, so be it.
JohnWittle wrote: Sat May 06, 2023 6:58 am This is a bug that needs to be fixed, period. Calling it a suggestion is obvious nonsense. Windows exposes a window manager API for exactly this reason and failing to use it is not a lifestyle choice, it's a mistake.
Unfortunately, when things work as designed by the devs, it's never a bug. Even if the design is objectively bad, it's still not a bug. That's why we had to resort to make a suggestion.
Koub - Please consider English is not my native language.
JohnWittle
Burner Inserter
Burner Inserter
Posts: 5
Joined: Thu Aug 04, 2016 9:09 pm
Contact:

Re: Save window geometry upon exit / Remember window positions / Store window size/location between games

Post by JohnWittle »

Sorry about that earlier post, I was very frustrated and regret the accusatory tone I used. :'(
Hornwitser wrote: Mon May 08, 2023 12:06 pm If I add --window-size 1080x1080 to the launch options Factorio opens at 1080x1080 on my system. And it keeps that resolution after apply changes to the mod list. I'm unable to reproduce the bug you are referring to.
Interesting! This means that what I'm experiencing actually probably isn't intended behavior...

The other problem I've been having is that my button toolbar, that is, the toolbar which contains 'copy' and 'paste' and 'toggle personal roboport' to the right of the hotkey bar, also doesn't seem to be saved between sessions. I have a bunch of mods installed which add buttons to this toolbar, and every time I load a save, I have to go through and uncheck each of the tickboxes for the buttons I don't want to enable.

I only realized today, these two problems are probably related: two things I would definitely expect to be stored between sessions instead getting reverted to some previous value, a value which doesn't even seem like a default.

I now suspect that there's some permissions issue with my own setup, and possibly other users' setups, which prevents factorio from writing to a settings file or environmental variable or wherever these values get stored. I just wish I knew where that settings file was.

In any case, I'm now satisfied this is user error, sorry for my earlier behavior.
Jap2.0
Smart Inserter
Smart Inserter
Posts: 2381
Joined: Tue Jun 20, 2017 12:02 am
Contact:

Re: Save window geometry upon exit / Remember window positions / Store window size/location between games

Post by Jap2.0 »

JohnWittle wrote: Fri May 19, 2023 9:31 am I just wish I knew where that settings file was.
If I had to wager a guess, %appdata%/Factorio
There are 10 types of people: those who get this joke and those who don't.
nj0y
Manual Inserter
Manual Inserter
Posts: 2
Joined: Thu Sep 08, 2022 5:37 am
Contact:

Feature Request: Remember Window Size and Position for Multi-Monitor Setup

Post by nj0y »

I have a 32:9 monitor with a resolution of 5120 x 1440 pixels, scaled at 125% on Windows. To optimize my workflow, I use Windows' snapping features and PowerToys to quickly arrange windows as needed. The monitor is recognized as two separate displays in Windows, connected via two cables, which allows applications to maximize on only one half of the screen.

When playing Factorio, I use windowed mode and manually resize the window after each launch so it spans from the top left to the bottom right, covering both virtual displays. It would be extremely helpful if this window size and position could be remembered. After accounting for the taskbar, the usable space is 5120 x 1380 pixels. Unfortunately, adjusting the window to this size manually is somewhat cumbersome. I have to first shrink the window vertically to fit within 1380 pixels (I suspect the initial size fits the taskbar at 100% scaling, though I haven’t tested this), then move it to the top left, and finally resize it to the bottom right. Often, a pixel or two remains, which disrupts the seamless look.

Therefore, the ability to save the last window position or an option to maximize across all monitors without the taskbar would be a valuable improvement.
Koub
Global Moderator
Global Moderator
Posts: 7787
Joined: Fri May 30, 2014 8:54 am
Contact:

Re: Save window geometry upon exit / Remember window positions / Store window size/location between games

Post by Koub »

[Koub] Merged into an older thread with the same suggestion.
Koub - Please consider English is not my native language.
Post Reply

Return to “Ideas and Suggestions”