Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2

Author Topic: [0.9.1a] Autosave v1.1b (released 2020-08-28)  (Read 77352 times)

LazyWizard

  • Global Moderator
  • Admiral
  • *****
  • Posts: 1321
    • View Profile
    • GitHub Profile
[0.9.1a] Autosave v1.1b (released 2020-08-28)
« on: November 19, 2015, 03:23:51 PM »

Autosave
... because sometimes F5 is too hard to remember ...
Download version 1.1b (mirror) (requires LazyLib)
View source code and progress
Supports Version Checker

Please note: autosaving is disabled by default because save times can become extremely long with many mods enabled. Instead, the mod simply warns you when you haven't saved in a while. If you want to enable autosaving, edit autosave_settings.json.data in the saves/common folder and set "enableAutosaves" to true (this file will only exist after you have launched the game with Autosave enabled at least once).

You can set forced autosaves to happen after enough time has passed since the last save, after market transactions, after fighting a battle, or any combination of the three.

The autosave portion of this mod works by simulating keypresses. If for some reason F5 isn't the button you use to quicksave, you'll have to edit the settings file to point it at the right key. Please note that the key IDs in this file are not the LWJGL constants used by every other mod, but the Java KeyEvent constants instead.

Changelog:
Spoiler
Quote
1.1 (November 16, 2018)
=========================
Updated to be compatible with Starsector 0.9a
This mod now requires LazyLib 2.4b or later
Settings are now stored in saves/common/autosave_settings.json.data
 - This file will only exist after launching the mod at least once

 1.0f (April 21, 2017)
=======================
Updated to be compatible with Starsector 0.8a

 1.0e (March 16, 2017)
=======================
Switched version file hosting to Bitbucket

 1.0d (November 19, 2015)
==========================
Fixed issue where simulated quicksave key presses weren't always registering

 1.0c (November 19, 2015)
==========================
Updated to be compatible with Starsector 0.7a

 1.0b (December 08, 2014)
==========================
Added "minutesBetweenSubsequentWarnings" setting to autosave_settings.json
Fixed bug where the mod started spamming sector messages after a failed autosave

 1.0 (December 08, 2014)
=========================
Initial release:
 - By default, warns when you haven't saved in a while, and tells you how many
   battles and market transactions have occurred since the last save
 - Player can enable autosaves in autosave_settings.json, can autosave if enough
   time has passed since the last save, or set it to force a save after every
   battle or market transaction
[close]
« Last Edit: August 28, 2020, 09:16:19 PM by LazyWizard »
Logged

LazyWizard

  • Global Moderator
  • Admiral
  • *****
  • Posts: 1321
    • View Profile
    • GitHub Profile
Re: [0.7a] Autosave v1.0d (released 2015-11-19)
« Reply #1 on: November 19, 2015, 04:22:41 PM »

I uploaded a quick hotfix, get it here (mirror).

This fixes an issue where the autosaver didn't "release" the quicksave key. This didn't affect manual saves in any way, but it prevented subsequent autosaves from working until you pressed F5 yourself to "unstick" it.
Logged

Hopelessnoob

  • Captain
  • ****
  • Posts: 354
    • View Profile
Re: [0.7a] Autosave v1.0d (released 2015-11-19)
« Reply #2 on: November 20, 2015, 10:58:53 PM »

Wish I had downloaded this when I played this morning.
Logged

LazyWizard

  • Global Moderator
  • Admiral
  • *****
  • Posts: 1321
    • View Profile
    • GitHub Profile
Re: [0.7.2a] Autosave v1.0e (released 2017-03-16)
« Reply #3 on: March 16, 2017, 09:18:18 PM »

Version 1.0e is up, get it here (mirror).

This update adds no new features and only fixes the version file hosting. If you don't use Version Checker you don't need to download this.
Logged

LazyWizard

  • Global Moderator
  • Admiral
  • *****
  • Posts: 1321
    • View Profile
    • GitHub Profile
Re: [0.8a] Autosave v1.0f (released 2017-04-21)
« Reply #4 on: April 21, 2017, 11:18:42 AM »

Version 1.0f is up, get it here (mirror).

No new features, just a recompile to make it compatible with Starsector 0.8a.
Logged

LazyWizard

  • Global Moderator
  • Admiral
  • *****
  • Posts: 1321
    • View Profile
    • GitHub Profile
Re: [0.9a] Autosave v1.1 (released 2018-11-16)
« Reply #5 on: November 16, 2018, 09:07:13 PM »

Version 1.1 is up, get it here (mirror). This mod requires LazyLib 2.4b or higher!

Changelog:
Quote
1.1 (November 16, 2018)
=========================
Updated to be compatible with Starsector 0.9a
This mod now requires LazyLib 2.4b or later
Settings are now stored in saves/common/autosave_settings.json.data
 - This file will only exist after launching the mod at least once
Logged

Alphascrub

  • Commander
  • ***
  • Posts: 149
    • View Profile
    • Email
Re: [0.9.1a] Autosave v1.1 (released 2018-11-16)
« Reply #6 on: June 27, 2019, 01:54:21 AM »

Sorry if you answered this elsewhere but is this mod safe to use in 9.1a?
Logged

SCC

  • Admiral
  • *****
  • Posts: 2021
    • View Profile
Re: [0.9.1a] Autosave v1.1 (released 2018-11-16)
« Reply #7 on: June 27, 2019, 02:15:15 AM »

Yes, it says so in the thread title.

jn_xyp

  • Ensign
  • *
  • Posts: 25
  • Ordinary Player, Java / Python Beginner.
    • View Profile
    • Jn_xyp's Blog (In Chinese)
    • Email
Re: [0.9.1a] Autosave v1.1 (released 2018-11-16)
« Reply #8 on: July 21, 2020, 12:37:02 PM »

May I repost this on fossic.org? With some strings translated.
Logged
Ordinary Player, Java / Python Beginner.
Github: https://github.com/jnxyp/

LazyWizard

  • Global Moderator
  • Admiral
  • *****
  • Posts: 1321
    • View Profile
    • GitHub Profile
Re: [0.9.1a] Autosave v1.1b (released 2020-08-28)
« Reply #9 on: August 28, 2020, 09:21:25 PM »

Version 1.1b is up, get it here. This mod requires LazyLib.

This update adds no new features, and only moves the mod's version files from Bitbucket (which can no longer be connected to with the outdated JRE that Starsector ships with) to GitHub. If you don't use the Version Checker mod you don't need to download this update.


May I repost this on fossic.org? With some strings translated.

Of course, and sorry for the extremely late response.
Logged

Aeios

  • Ensign
  • *
  • Posts: 3
    • View Profile
    • Email
Re: [0.9.1a] Autosave v1.1b (released 2020-08-28)
« Reply #10 on: September 14, 2020, 04:32:32 AM »

The forced autosave function doesn't seem to be working. I have it enabled in the config file, however it doesn't have any effect.
Logged

LazyWizard

  • Global Moderator
  • Admiral
  • *****
  • Posts: 1321
    • View Profile
    • GitHub Profile
Re: [0.9.1a] Autosave v1.1b (released 2020-08-28)
« Reply #11 on: September 14, 2020, 04:43:28 AM »

I just tested it, and all three autosave types (timed, post-battle, and post-market) worked on my machine. Could you post the contents of your lw_autosave_settings.json.data file?

Did the game have focus when it tried to save? The mod works by simulating a press of the F5 key, so anything that would prevent that from registering would also block autosaving from working.
Logged

Aeios

  • Ensign
  • *
  • Posts: 3
    • View Profile
    • Email
Re: [0.9.1a] Autosave v1.1b (released 2020-08-28)
« Reply #12 on: September 14, 2020, 11:00:54 AM »

I can't find that file anywhere in the mod folder. I edited the autosave_settings.json.default.
{
    # How long since the last save before the mod prompts you to save again
    "minutesWithoutSaveBeforeWarning":15,
    "minutesBetweenSubsequentWarnings":5,

    #####################
    # AUTOSAVE SETTINGS #
    #####################

    # Set to true to enable the rest of this file's options
    "enableAutosaves":true,

    # REQUIRED - must be the same key you press to save the game manually!
    # Key IDs are integers and can be found in the Java documentation here:
    # https://docs.oracle.com/javase/7/docs/api/constant-values.html#java.awt.event.KeyEvent.VK_0
    "saveKey":116, # Default: 116 (F5)

    # How long after the last save before an autosave will be forced
    "minutesBeforeForcedAutosave":15,

    # Enable to autosave after the player performs any market actions
    "forceSaveAfterMarketTransactions":false,

    # Enable to autosave after the player is in a battle
    "forceSaveAfterPlayerBattles":false
}

Not sure about the focus thing, but I am certain I don't have any apps or anything that may interfere with my keyboard.
Logged

LazyWizard

  • Global Moderator
  • Admiral
  • *****
  • Posts: 1321
    • View Profile
    • GitHub Profile
Re: [0.9.1a] Autosave v1.1b (released 2020-08-28)
« Reply #13 on: September 14, 2020, 11:07:12 AM »

Ah, you're editing the wrong file. You need to edit saves/common/config/lw_autosave_settings.json.data. The saves folder is in the game's installation directory, not the mods folder.
Logged

Aeios

  • Ensign
  • *
  • Posts: 3
    • View Profile
    • Email
Re: [0.9.1a] Autosave v1.1b (released 2020-08-28)
« Reply #14 on: September 14, 2020, 11:09:18 AM »

My bad, should have read the mod text again. Sorry for the false flag, and thanks  ;D
Logged
Pages: [1] 2