Skip to content

Stardew Valley has nondeterministic save times #719

@coolkirby2000

Description

@coolkirby2000

Hi Clément, thanks for fixing my previous issue.

Stardew Valley (GOG version) runs from the binary outside of libTAS 1.4.7. However, it gives an X Error in libTAS terminal, fails to create the window and crashes.

Using Xubuntu 24.04 amd64, libTAS 1.4.7, Stardew 1.6.15.24357.8705766150 GOG.com version.

  • Repro
  1. Download Stardew's 1.6.15.24357.8705766150 installer .sh from GOG.com
  2. Make the script executable (chmod +x)
  3. Run with Terminal (I did this so it didn't try to open in a text editor)
  4. Install to default path, accepting EULA, then close the Terminal
  5. Open libTAS 1.4.7, set clock_gettime() monotonic in its Runtime options, and use:
    /home/[user]/GOG Games/Stardew Valley/game/Stardew Valley
    as the Game executable, substituting your user for [user]
  6. Click Start

With libTAS' standard video options, I get this:
Attempt 1: Connected.
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 12 (X_ConfigureWindow)
Value in failed request: 0x0
Serial number of failed request: 138
Current serial number in output stream: 139
No movie recording was selected. A backup movie was saved to /home/xubuntu/.local/share/libTAS/movie/backup.ltm

And by setting Video>Screen resolution to any Common value (e.g. 1280x720), I get slightly different values:
Attempt 1: Connected.
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 12 (X_ConfigureWindow)
Value in failed request: 0x0
Serial number of failed request: 126
Current serial number in output stream: 127
No movie recording was selected. A backup movie was saved to /home/xubuntu/.local/share/libTAS/movie/backup.ltm

Using "Start with GDB" with Stardew seems to softlock libTAS. After 10 "Couldn't connect to socket" messages, it dumps a movie file, then the Start, Start GDB, and Stop buttons remain greyed out until you close the program.

I only have one 1366x768 monitor, and have verified that echo $DISPLAY returns :0 for me. I can launch xeyes (X server is working), glxgears (OpenGL is working), and the game itself continues to launch from the executable path outside of libTAS.

The integer parameters out of range may be the window size or position too low or high, but nothing I changed in /home/[user]/.config/StardewValley/startup_preferences fixed it, like skipWindowPreparation, windowMode, displayIndex, vsyncEnabled, fullscreen, or any of the four resolution values.

I would appreciate any help getting this running.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions