• Do not use Discord to host any images you post, these links expire quickly! You can learn how to add images to your posts here.
Resource icon

Resource Auto Multi Save 1.3

http404error

Discord: http404error#4585
Member
Joined
Aug 25, 2022
Posts
65
http404error submitted a new resource:

Auto Multi Save - Adds auto-saving and multiple save slots.

Description:
  • Adds multiple save slots and the abliity to auto-save.
  • On the Load screen you can use the left and right buttons while "Continue" is selected to cycle through files.
  • When saving, you can quickly save to the same slot you loaded from, or pick another slot.
  • Included is code to autosave every 30 overworld steps. Feel free to edit or delete it (it's right at the top).
  • Battle Challenges are NOT supported.
Customization:...

Read more about this resource...
 

http404error

Discord: http404error#4585
Member
Joined
Aug 25, 2022
Posts
65
http404error updated Auto Multi Save with a new update entry:

Updated for Essentials v20.1

Boundless thanks to thatonekriegerwriter, who did most of the conversion work for v20 less than 12 hours after the initial release.
  • Requires Hotfixes 1.0.5 to fix New Game autosave bug.
  • Tweaks the save file corruption handling to make more sense... though it's very unlikely to ever occur in the specific manner to trigger this code.
  • The v19 version of the script will still be supported.

Read the rest of this update entry...
 

Black24

Pokemon Fellowship in Kanto
Member
Joined
Jul 29, 2022
Posts
70
Greetings and thanks for the much needed script, on clean essential it is working perfect
however in my game I am getting this error the second time once I made a new save

[2022-10-21 23:00:31 +0300]
[Pokémon Essentials version 20.1]
[v20.1 Hotfixes 1.0.6]

Exception: Errno::ENOENT
Message: File No such file or directory @ rb_sysopen - C:\Users\LENOVO\AppData\Roaming\Pokémon Essentials v20.1\/Game.rxdata not found.

Backtrace:
024:SaveData:27:in `initialize'
024:SaveData:27:in `open'
024:SaveData:27:in `get_data_from_file'
024:SaveData:45:in `read_from_file'
[Multiple Protagonists] script.rb:692:in `gsubPN'
091:Messages:265:in `pbGetMapNameFromId'
291:UI_Load:85:in `refresh'
291:UI_Load:26:in `initialize'
291:UI_Load:109:in `new'
291:UI_Load:109:in `block in pbStartScene'

I am using the Multiple Protagonists script and i think it conflict with this one, I am not sure..
other scripts I am using Voltseon's Pause Menu , Pokémon Selection - by FL and Speed Up 2.0
 

Rhatios16

Novice
Member
Joined
Aug 31, 2019
Posts
10
I found a slight bug, when going back to the title screen, if you start a new save, your previous character gets teleported to the intro map and doesnt trigger the intro.
 

http404error

Discord: http404error#4585
Member
Joined
Aug 25, 2022
Posts
65
http404error updated Auto Multi Save with a new update entry:

Update to Pause Menu advice

Previously, the description gave some incomplete advice on how to modify your pause menu to go back to the main menu (load screen). It didn't work correctly on my game. I have now updated it to add the bold section:
  • I recommend altering your pause menu to quit to the title screen or load screen instead of exiting entirely.
    • For instance, you can change the menu text to "Quit to Title" and change $scene = nil to $scene = pbCallTitle, and add a...

Read the rest of this update entry...
 

http404error

Discord: http404error#4585
Member
Joined
Aug 25, 2022
Posts
65
http404error updated Auto Multi Save with a new update entry:

Version 1.2 - Better Pause Menu support

PokemonSaveScreen::pbSaveScreen now accepts an optional argument which you can set to true when calling the save screen from the pause menu exit function. This changes the "Cancel" text to "Quit without saving", and causes a confirmation to be given when cancelling out of the Save Slot Select menu (since this would otherwise also quit without saving).

Read the rest of this update entry...
 

Atlat

Novice
Member
Joined
Jan 8, 2023
Posts
21
Greetings and thanks for the much needed script, on clean essential it is working perfect
however in my game I am getting this error the second time once I made a new save

[2022-10-21 23:00:31 +0300]
[Pokémon Essentials version 20.1]
[v20.1 Hotfixes 1.0.6]

Exception: Errno::ENOENT
Message: File No such file or directory @ rb_sysopen - C:\Users\LENOVO\AppData\Roaming\Pokémon Essentials v20.1\/Game.rxdata not found.

Backtrace:
024:SaveData:27:in `initialize'
024:SaveData:27:in `open'
024:SaveData:27:in `get_data_from_file'
024:SaveData:45:in `read_from_file'
[Multiple Protagonists] script.rb:692:in `gsubPN'
091:Messages:265:in `pbGetMapNameFromId'
291:UI_Load:85:in `refresh'
291:UI_Load:26:in `initialize'
291:UI_Load:109:in `new'
291:UI_Load:109:in `block in pbStartScene'

I am using the Multiple Protagonists script and i think it conflict with this one, I am not sure..
other scripts I am using Voltseon's Pause Menu , Pokémon Selection - by FL and Speed Up 2.0
Okay, so here's what I've noticed in regards to this error. The line that is causing this issue is the gsubPN line added in the pbGetMapNameFromId function. My guess is that since the files that are loaded can be on a map modified to be any of the players' names, that instance if gsubPN is called before this plugin is ever called. Hence why it is still looking for the "Game" file that was already replaced. It works fine the first time since there isn't any file to load, but subsequential startups won't work.

Now, I could be entirely wrong with this theory. However, I am right in that removing that one line fixes things. You're probably just unable to do certain things involving map names with the players' and the like. However, that doesn't matter to me personally, so I'm not bothering with trying to find a solution to that.
 

http404error

Discord: http404error#4585
Member
Joined
Aug 25, 2022
Posts
65
Are there any plans to add a toggle switch for the automatic save?
No plans, but you can add your own. In the event handler, you just want to add next if $game_switches[150] or something like that (where 150 is the number of the game switch you want to use).
 

Black24

Pokemon Fellowship in Kanto
Member
Joined
Jul 29, 2022
Posts
70
Okay, so here's what I've noticed in regards to this error. The line that is causing this issue is the gsubPN line added in the pbGetMapNameFromId function. My guess is that since the files that are loaded can be on a map modified to be any of the players' names, that instance if gsubPN is called before this plugin is ever called. Hence why it is still looking for the "Game" file that was already replaced. It works fine the first time since there isn't any file to load, but subsequential startups won't work.

Now, I could be entirely wrong with this theory. However, I am right in that removing that one line fixes things. You're probably just unable to do certain things involving map names with the players' and the like. However, that doesn't matter to me personally, so I'm not bothering with trying to find a solution to that.
thanks it solved the problem like you siad.
 

http404error

Discord: http404error#4585
Member
Joined
Aug 25, 2022
Posts
65
http404error updated Auto Multi Save with a new update entry:

Fixed Ice Sliding Bug

Fixed an issue reported by BlurzyBord where saving and reloading while sliding on ice would break your game.
The fix is just that the step counter auto-save will avoid ticking up or auto saving whenever the player is sliding on ice. This means you might not get a lot of autosaves from step count in very ice-heavy areas, unless you move the step counter before the check. Also, you still need to be careful to avoid calling Game.auto_save while the player is sliding on ice.

I also started working on Essentials v21 compatibility, but it's not ready yet.

Read the rest of this update entry...
 

ClessioTV

Elite Trainer
Member
Joined
Sep 24, 2022
Posts
270
[Pokémon Essentials version 20.1]
[v20.1 Hotfixes 1.0.7]

Exception: ArgumentError
Message: comparison of Integer with nil failed

Backtrace:
[Auto Multi Save] Auto Multi Save.rb:545:in `set_up_system'
397:Main:31:in `mainFunctionDebug'
397:Main:18:in `block in mainFunction'
014:Errors:80:in `pbCriticalCode'
397:Main:18:in `mainFunction'
397:Main:45:in `block in <main>'
397:Main:44:in `loop'
397:Main:44:in `<main>'
-e:in `eval'


Hello! I have a small request regarding a launch bug, and I don't know why it happens when I remove the saves from the folder. (How do I reset the game without removing them?)
 

LinKazamine

Champion
Member
Joined
May 24, 2023
Posts
674
I think you can't without editing the script. I have been getting this same error from my plugins and I think is because of some variables added to the game through them.
 

LinKazamine

Champion
Member
Joined
May 24, 2023
Posts
674
Don't know if this page allows for double posts or not, so sorry in advance if not.

I have found that the alias method solves the problem that comes with adding variables on existing classes of Pokemon Essentials. Works like that:
1690093896597.png

The thing is, while I can find some instances of attr_accessor, I don't seem to be able to find any def initialize in this plugin. So, this is more for http404error to know a possible way to solve the problem.
 

http404error

Discord: http404error#4585
Member
Joined
Aug 25, 2022
Posts
65
@ClessioTV I can't get this to happen. Does this occur when other plugins are also included? What does "remove the saves from the folder" mean? I deleted/renamed them myself and am not seeing any problems. Is that also what you're doing, @LinKazamine? I don't understand what your proposed solution is supposed to solve.
 

LinKazamine

Champion
Member
Joined
May 24, 2023
Posts
674
I don't know if the issue that Clessio says is with your plugin at all or not, since I don't have your plugin installed. But I got a similar error when trying to test my game with my plugins installed. The problem, it seems, is that I was overriding the initialize in the pokemon system class and a lot of variables initialized there weren't initializing without a save file (I don't think the save file initialized them, but the game detected they were). The alias solved the problem but I don't know if it would solve Clessio's problem since I couldn't find any variable being initialized in your plugin.

Edit: Ok, I just tested my game with your plugin installed and no save file and I didn't get any error either. It seems that the problem comes from another plugin that alters the loading screen in some way and could be conflicting with this one.
 
Last edited:

http404error

Discord: http404error#4585
Member
Joined
Aug 25, 2022
Posts
65
It seems that the problem comes from another plugin that alters the loading screen in some way and could be conflicting with this one.
It's not the only possibility, but it's a good guess! Thanks for going above and beyond by double-checking.
 
Back
Top