• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
RetroPie forum home
  • Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

Jump to saved state

Scheduled Pinned Locked Moved Help and Support
runcommandemustationretroarch
8 Posts 4 Posters 1.0k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R
    RetroPieRoss
    last edited by 31 Aug 2022, 13:27

    Hey all,

    I recently visited the National Videogame Museum and they had a station where you could press a button and immediately jump to a bonus or special stage in a game. More details here.

    I'd like to replicate this at home and am looking for some help achieving this. The button stuff I'm not too worried about as I'm using a Pi, but I'm unsure how to jump straight to a saved state. I'm guessing it's a runcommand of sorts, but not sure where to start.

    Any help is greatly appreciated.

    H 1 Reply Last reply 2 Sept 2022, 09:16 Reply Quote 0
    • H
      hawkes_84 @RetroPieRoss
      last edited by 2 Sept 2022, 09:16

      @RetroPieRoss hi, when mapping your buttons on your controller the hotkey + certain buttons will do certain functions such as Save Game, Load Game and change save slot
      Here is which do what
      Hot Key + Right Shoulder Button = Save Game
      Hot Key + Left Shoulder Button = Load Game
      Hot Key + left or right on D-Pad = swapping between Save slots (as you may want different save games)
      Hope this makes sense. Let me know if not

      S 1 Reply Last reply 2 Sept 2022, 09:27 Reply Quote 0
      • S
        sirhenrythe5th @hawkes_84
        last edited by 2 Sept 2022, 09:27

        just brainstorming: could you possibly write a syntax like "sudo run pacman.zip %lr-fbneo% +load save_state=2" (just guessing, i know this is not a real runable syntax / the right commands!) and name that "Pacman -> final Level" to have an entry in the ES-Gamelist where you in fact jump to the final level by starting this one?

        -- Retro-Achievements Username: SirALX --
        RetroRatio: 1.88
        Started Games beaten: 2,47%
        Site Rank: 4382/93743 ranked users (TOP 4.76%)
        Last seen in [The Legend of Zelda: Lost in Time (HACK) [N64], exploring Hyrule at Night]

        1 Reply Last reply Reply Quote 1
        • S
          sleve_mcdichael
          last edited by sleve_mcdichael 9 Feb 2022, 18:27 2 Sept 2022, 17:26

          You mean you want it to auto-load to the saved state, without activating a "load state" hotkey, right? I guess probably this, then:

          # Automatically saves a savestate at the end of RetroArch's lifetime.
          # The path is $SRAM_PATH.auto.
          # RetroArch will automatically load any savestate with this path on startup if savestate_auto_load is set.
          # savestate_auto_save = false
          # savestate_auto_load = true

          You'll need to ensure that savestate_auto_load is set "true" and that the .auto file exists (it's not entirely clear from the comment, but I would try something like ~/RetroPie/roms/snes/Super Mario World (USA).srm.auto and see if that works.

          S R 2 Replies Last reply 2 Sept 2022, 18:59 Reply Quote 0
          • S
            sirhenrythe5th @sleve_mcdichael
            last edited by sirhenrythe5th 9 Feb 2022, 19:59 2 Sept 2022, 18:59

            @sleve_mcdichael in this great Museum you have the choice of several points to jump in.
            The latest savepoint is just one.
            So how can we get to the point of choosing between multiple savepoints to jump in without using hotkeys?
            I would try to write commandlines as stated above and add them to the gamelist.

            -- Retro-Achievements Username: SirALX --
            RetroRatio: 1.88
            Started Games beaten: 2,47%
            Site Rank: 4382/93743 ranked users (TOP 4.76%)
            Last seen in [The Legend of Zelda: Lost in Time (HACK) [N64], exploring Hyrule at Night]

            R S 2 Replies Last reply 2 Sept 2022, 22:10 Reply Quote 0
            • R
              RetroPieRoss @sleve_mcdichael
              last edited by 2 Sept 2022, 22:03

              @sleve_mcdichael This is the solution, I think. But it needs to be mapped to (initially a keyboard key, ideally), an input linked to hotkey & B which I believe would then set it back to the save state?

              How would the keyboard mapping work per ROM?

              1 Reply Last reply Reply Quote 0
              • R
                RetroPieRoss @sirhenrythe5th
                last edited by 2 Sept 2022, 22:10

                @sirhenrythe5th Good point. I couldn't remember if you could jump to different points per system, or whether you had to move to a different system? But yeah, you're probably right regarding commandline usage. That would be ideal.

                1 Reply Last reply Reply Quote 0
                • S
                  sleve_mcdichael @sirhenrythe5th
                  last edited by 2 Sept 2022, 22:24

                  @sirhenrythe5th said in Jump to saved state:

                  @sleve_mcdichael in this great Museum you have the choice of several points to jump in.
                  The latest savepoint is just one.
                  So how can we get to the point of choosing between multiple savepoints to jump in without using hotkeys?
                  I would try to write commandlines as stated above and add them to the gamelist.

                  You could use a bash script to copy the desired save state file to the required $SRAM_PATH.auto filename before launching with the savestate_auto_load setting enabled.

                  1 Reply Last reply Reply Quote 1
                  8 out of 8
                  • First post
                    8/8
                    Last post

                  Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                  Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.

                    This community forum collects and processes your personal information.
                    consent.not_received