Coder Social home page Coder Social logo

Comments (13)

LukeSaward1 avatar LukeSaward1 commented on June 29, 2024

Can't reproduce, at least on noveau drivers.

Are you running it on a laptop or a PC? And what graphics driver do you have installed?

from libtas.

unsightedmetal6 avatar unsightedmetal6 commented on June 29, 2024

I have the nvidia driver. I am using a laptop that dual-boots Windows 10 and Ubuntu 22.04.1 LTS. It has both an Intel iGPU and an Nvidia dGPU.

I'll try the noveau driver.

Edit: In terminal I ran
sudo apt install xserver-xorg-video-nouveau, and it says xserver-xorg-video-nouveau is already the newest version (1:1.0.17-2build1).

I tried libTAS with FTL again, but it still crashes when I load a savestate.

Could the issue be that my laptop has two graphics cards?

from libtas.

LukeSaward1 avatar LukeSaward1 commented on June 29, 2024

image
What does it show in here (see screenshot)? If a NVIDIA driver is selected, select the Nouveau one. You may or may not have to reboot after doing this and applying changes.

from libtas.

unsightedmetal6 avatar unsightedmetal6 commented on June 29, 2024

image

I changed it to Nouveau and rebooted the computer but the same issue persists: a freeze/crash when I load a savestate.

from libtas.

clementgallet avatar clementgallet commented on June 29, 2024

Do you have Video > Force software rendering checked in libTAS main window? Also, when you were using the NVidia drivers, libTAS should have warned you about savestating not working with a popup window when starting the game. There were no such window?

In the terminal, it should print which GPU driver it is using when starting the game with libTAS.

from libtas.

unsightedmetal6 avatar unsightedmetal6 commented on June 29, 2024

Force software rendering is already enabled. I don't remember getting any pop-ups.

Here is the full console output (aside from where I started libTAS):

Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
Attempt 1: Connected.
Version: 1.6.13
Loading settings
Failed to load settings file!
Initializing Crash Catcher...
Starting up
Loading text
Initializing Video
Video: 1280x720, windowed
[libTAS f:0] Thread 4074 (main) OpenGL vendor: Mesa/X.org
[libTAS f:0] Thread 4074 (main) OpenGL renderer: llvmpipe (LLVM 13.0.1, 256 bits)
Video Initialized
Renderer: OpenGL version 4.5 (GL_VERSION: 4.5 (Compatibility Profile) Mesa 22.0.5)
Creating FBO...
SteamAPI initialized.
Starting audio library...
[libTAS f:0] Thread 4074 (main) Buffer size is too low, raising to 2048
Audio Initialized!
Resource Preload: 0.290
Initializing animations...
Animations Initialized!
Loading Ship Blueprints....
Blueprints Loaded!
Initializing Sound Data....
Generating world...
Loading achievements...
Initializing Steam achievements for app 1234
Loading score file...
Running Game!
[libTAS f:20] Thread 4074 (main) Saved state 1 of size 596369752 in 0.885165 seconds
[libTAS f:20] Thread 4074 (main) Loaded state 1 in 0.124201 seconds
recv() returns 0 -> socket closed
Got wrong message after state loading
Killed

from libtas.

clementgallet avatar clementgallet commented on June 29, 2024

I have an issue with savestating on this game, but I don't know if it is the same as yours.

Can you try saving a state three times before attempting to load the state, and tell me if it works?

from libtas.

unsightedmetal6 avatar unsightedmetal6 commented on June 29, 2024

When I load the state after saving it three times, it says
State invalid because new threads were created
in the bottom-right of the FTL window.

Edit: Made it more clear

from libtas.

unsightedmetal6 avatar unsightedmetal6 commented on June 29, 2024

Tried this again on libTAS v1.4.4.

Console output:

Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
Attempt 1: Connected.
Version: 1.6.13
Loading settings
Failed to load settings file!
Initializing Crash Catcher...
Starting up
Loading text
Initializing Video
Video: 1280x720, windowed
[libTAS f:0] Thread 6445 (main) OpenGL vendor: Mesa/X.org
[libTAS f:0] Thread 6445 (main) OpenGL renderer: llvmpipe (LLVM 13.0.1, 256 bits)
Video Initialized
Renderer: OpenGL version 4.5 (GL_VERSION: 4.5 (Compatibility Profile) Mesa 22.0.5)
Creating FBO...
SteamAPI initialized.
Starting audio library...
[libTAS f:0] Thread 6445 (main) Buffer size is too low, raising to 2048
Audio Initialized!
[libTAS f:1] Thread 6445 (main) Audio mixing will underrun, waiting for the game to send audio samples
[libTAS f:1] Thread 6445 (main)     Timeout
[libTAS f:3] Thread 6445 (main) Audio mixing will underrun, waiting for the game to send audio samples
[libTAS f:3] Thread 6445 (main)     Timeout
[libTAS f:4] Thread 6445 (main) Audio mixing will underrun, waiting for the game to send audio samples
[libTAS f:4] Thread 6445 (main)     Timeout
[libTAS f:5] Thread 6445 (main) Audio mixing will underrun, waiting for the game to send audio samples
[libTAS f:5] Thread 6445 (main)     Timeout
[libTAS f:6] Thread 6445 (main) Audio mixing will underrun, waiting for the game to send audio samples
[libTAS f:6] Thread 6445 (main)     Timeout
[libTAS f:8] Thread 6445 (main) Audio mixing will underrun, waiting for the game to send audio samples
[libTAS f:8] Thread 6445 (main)     Timeout
Resource Preload: 0.290
Initializing animations...
Animations Initialized!
Loading Ship Blueprints....
Blueprints Loaded!
Initializing Sound Data....
Generating world...
Loading achievements...
Initializing Steam achievements for app 1234
Loading score file...
Running Game!
[libTAS f:20] Thread 6445 (main) Saved state 1 of size 596365559 in 0.921907 seconds
[libTAS f:22] Thread 6445 (main) ERROR: Loading not allowed because new threads were created

In the bottom-right of the FTL window it says Loading not allowed because new threads were created, and just below that it says Loading state 1.

So loading the state still doesn't work for me.

I also tried it with Runtime -> Debug -> Keep main first thread but I still am unable to load the savestate.

from libtas.

LukeSaward1 avatar LukeSaward1 commented on June 29, 2024

Stay on the same screen (e.g. language select) and do the savestate. If you savestate at language select and then go to the screen with the ship, new threads will be created.

from libtas.

clementgallet avatar clementgallet commented on June 29, 2024

Are you sure you made three savestates on the same frame, before attempting to load the state? There is an issue with a thread scanning for controller in recent version of FTL, the thread just dies when it resumes from being suspended, and it takes a couple more savestates to save with a clean list of active threads.

from libtas.

unsightedmetal6 avatar unsightedmetal6 commented on June 29, 2024

Are you sure you made three savestates on the same frame, before attempting to load the state?

Yeah, I'm pretty sure I did. I was on the main menu, pressed Shift + F1 three times with about a second in between (each time it showed a message saying it saved the state), and tried to load it with F1 when I was in the options menu. But in libTAS v1.4.4 it doesn't crash. Instead it just fails to load the savestate.

from libtas.

clementgallet avatar clementgallet commented on June 29, 2024

Yes, I fixed it in v1.4.4 so that it does not load anymore when it would lead to a crash. When you enter the option menu, maybe it creates another thread. With the current version, it should either load correctly or show the message. You can open the input editor and it will show when savestates are obsoleted by a new thread (all previous frames become dark green).

from libtas.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.