[1.1] RimWorld opens a window when running in batchmode and loading a savegame

Started by Zombiefied, March 06, 2020, 07:15:21 PM

Previous topic - Next topic

Zombiefied

Circumstances:
Running RimWorld with command line arguments "-batchmode -nographics" and then loading a savegame. The given command line arguments are for running the game headless so without window and without gpu rendering.

What happened:
While in the Mainmenu RimWorld runs without a window as expected. As soon as a savegame is loaded, "-batchmode -nographics" is ignored and a window opens.

What should happen:
When a savegame is loaded, "-batchmode -nographics" should still be respected and no window should appear.

Steps you can follow to make the bug appear on your machine:
1. Start RimWorld with command line arguments "-batchmode -nographics", for example by adding these to RimWorld's Steam Launch Options, to start RimWorld in batchmode and have it idle in Mainmenu.
2. Observe that no window appears but RimWorld did start as there is a task in Windows Task Manager.
3. Start RimWorld with command line arguments "-batchmode -nographics -quicktest", for example by adding these to RimWorld's Steam Launch Options, to start RimWorld in batchmode and have it load a savegame.
4. Observe that after some time (after loading the savegame) a white window appears.

Savegame:
This issue happens with any savegame.

Log file:
You can find a log file for Step 3 in attachments.


This bug is critical for headless Server and headless Client. Thanks in advance for fixing.

Tynan

RimWorld doesn't attempt to support any kind of batch or headless mode. So this isn't a bug report, but a request for a feature that will aid mod development. I'll add it to the modders requests doc:

https://docs.google.com/document/d/1WuoJRYUTxb0hbFncG0DFRaablGUoALZu5Wr6p3t22k0/edit
Tynan Sylvester - @TynanSylvester - Tynan's Blog