Jump to content


Photo

CSCA AutoSave Plus

csca autosave

  • Please log in to reply
21 replies to this topic

#1 casper667

casper667

    Advanced Member

  • Member
  • 548 posts
  • RM Skill - Jack of All Trades

Posted 13 August 2012 - 04:27 PM

CSCA AutoSave Plus! v1.1
By: Casper Gaming (Casper667)
Last Update: August 20th, 2012

Introduction
This script introduces an autosave feature, where the game will automatically save if the player: transfers map, finishes a battle, gains gold/armor/item/weapons(event command only), all options are toggleable. Does not overwrite standard save files.

Features
-Saves the game automatically under a few conditions set by you
-Can load autosave file from title, scene end, or gameover
-Can change gameover music/image ingame with a variable

Updates
Version 1.1:
-Autosaving text now pop up on map after autosave.
- Autosave now possible after a set amount of steps.

How to Use
Place in your materials section. Further setup required, instructions included in script.
NOT compatible with CSCA Gameover Options(This script retains all functionality of that script though).

Script
Text file is found here(copy and paste everything into your script editor in the materials section): LINK

FAQ
None yet.

Credit
Casper Gaming

Terms
http://www.caspergam...rms_of_use.html

Edited by casper667, 07 September 2012 - 01:37 PM.


#2 DarthVollis

DarthVollis

    Moogle Master

  • + Sponsor
  • 445 posts
  • LocationSivart's Casino
  • RM Skill - Pixel Artist

Posted 13 August 2012 - 06:34 PM

Works very nicely, but can you add a feature to allow it to save every certain number of steps with a message like Autosaving.

MoogleFantasy_zpse4aab1d3.gif


#3 casper667

casper667

    Advanced Member

  • Member
  • 548 posts
  • RM Skill - Jack of All Trades

Posted 20 August 2012 - 07:06 AM

features added. :)

UPDATE

Version 1.1:
-Autosaving text now pop up on map after autosave.
- Autosave now possible after a set amount of steps.

#4 Healey1991

Healey1991

    Newbie

  • Member
  • 3 posts

Posted 21 January 2013 - 07:17 PM

Is this compatible with Yanfly's save engine?



#5 Galv

Galv

    Forum Defender

  • Staff Manager/Global Mod
  • 5609 posts
  • LocationAustralia
  • RM Skill - Jack of All Trades

Awards Bar:

Users Awards

Posted 21 January 2013 - 07:34 PM

This is something you can test out for yourself :)

gs-banner_zpsfc59b073.pngp7GQmH4.png 2hjKrWv.png


#6 alvinofelix

alvinofelix

    Newbie

  • Member
  • 4 posts
  • LocationBojonegoro Jawatimur Indonesia
  • RM Skill - Jack of All Trades

Posted 22 May 2013 - 12:00 PM

Excuse me, I want to ask you something, I've tried many times using your script but could not get it to load Autosave :( , But When I Walking ETC There Pop up Some Text "Autosaving. . . ." But When I Return At Title, The Menu Load Autosave always Can't process, In Another Words I Can't Load My Autosaves, Thanks And Sorry If I Bad In English  :P  And Thanks Caspers  B)



#7 casper667

casper667

    Advanced Member

  • Member
  • 548 posts
  • RM Skill - Jack of All Trades

Posted 22 May 2013 - 01:59 PM

This script is not compatible with Khas Light Effects. The issue you're having sounds like you're using that script.



#8 alvinofelix

alvinofelix

    Newbie

  • Member
  • 4 posts
  • LocationBojonegoro Jawatimur Indonesia
  • RM Skill - Jack of All Trades

Posted 22 May 2013 - 05:43 PM

This script is not compatible with Khas Light Effects. The issue you're having sounds like you're using that script.

Thanks Again For Solving My Problem  :D



#9 Besus

Besus

    Advanced Member

  • Member
  • 54 posts
  • LocationWisconsin
  • RM Skill - Jack of All Trades

Posted 23 May 2013 - 08:16 AM

First, awesome script Casper. I love this!

 

Second,

@alvinofelix:

 

Not sure why it didn't work for you alongside Khas Awesome Lighting Effects. I've tried recreating this incompatibility crash in my game (which also uses Khas Awesome Lighting) and have had no issues saving and/or loading AutoSaves (be it via script calls or automatically). What specifically were you saving after that it couldn't load the AutoSave for?

 

The only "issue" I encountered was using my on-map encounters. If set to save after a battle, upon loading the save I am thrown back in to the battle, but right after the encounter sound effect, it throw me to a Game Over screen. Not an issue to me as I hadn't planned on using the AutoSave after a battle anyway.  :)


Twitter: @StudioBesus || Development Blog: http://www.StudioBesus.com
My games on: IndieDB || GameJolt || itch.io

#10 pxlgraphic

pxlgraphic

    you're friend

  • Member
  • 379 posts
  • LocationGallifrey
  • RM Skill - Designer

Posted 25 June 2013 - 05:26 PM

So, I'm having the same problem as alvinofelix. I'm using Khas Light Effects with this script and the "Load Autosave" button is always grayed out. I already have all my lights in the game compatible with Khas light script so it's too late to change that, but I was wondering if there was any way you could fix the incompatibility with Khas Lighting in a new version. That would be really helpful to me and I'm sure a lot of people because Khas Light Effects is a commonly used script. Or, if you can't make another version, do you know what the reason for the incompatibility is so I might be able to see if I could fix it? I'm making a horror game and both this script and Khas Lighting are very important to it, so it would be great if I could get them to work together! ^_^


Posted Image


Posted Image

Spoiler


"The inner machinations of my mind are an enigma..." -Patrick Star


#11 casper667

casper667

    Advanced Member

  • Member
  • 548 posts
  • RM Skill - Jack of All Trades

Posted 25 June 2013 - 10:34 PM

The incompatibility seems to be a result of the engine being unable to save on the map scene while Khas' effects are part of the map.



#12 pxlgraphic

pxlgraphic

    you're friend

  • Member
  • 379 posts
  • LocationGallifrey
  • RM Skill - Designer

Posted 26 June 2013 - 02:16 PM

Hm. So hypothetically it would be possible to work if I made all light events wait 1 second then self switch to the light setting at the start of every map when it autosaves, and it would work? Unless there's a way to do that with the script, which would be more convenient.


Posted Image


Posted Image

Spoiler


"The inner machinations of my mind are an enigma..." -Patrick Star


#13 casper667

casper667

    Advanced Member

  • Member
  • 548 posts
  • RM Skill - Jack of All Trades

Posted 26 June 2013 - 11:13 PM

I never did much testing on it, but I'd assume that the lights are a part of the map to begin with, and just have their opacity changed or become apparent when the rest of the map is tinted to get the desired effect. Getting map transfers is probably the easiest option of this script to get working, as you'd likely just need to force the autosave code to run before the light effects code creates its effects on the map. However, for autosaving after step counts, item gains, or any other options would likely need a more complex patch since those happen at variable times during the map scene.

 

But, like I said I never did much testing on this issue so I may be off on a few things.

 

Alternatively, I haven't heard of much problem with other lighting effect scripts, and although more much basic, my own lighting effects script has no issues with Autosave Plus, so it may be worth looking into how these other scripts create their effects on the map in a way that allows saving and recreate those processes in Khas' script.



#14 pxlgraphic

pxlgraphic

    you're friend

  • Member
  • 379 posts
  • LocationGallifrey
  • RM Skill - Designer

Posted 29 June 2013 - 10:38 AM

So how would I force the autosave before the lights show up? I tried the script call before every transfer but it doesn't work. Probably because of the light effects on the map you're leaving. And if I do it after the transfer it also doesn't work because of the effects on the new map. I tried your lighting script too, but none of the effects showed up for some reason.


Posted Image


Posted Image

Spoiler


"The inner machinations of my mind are an enigma..." -Patrick Star


#15 casper667

casper667

    Advanced Member

  • Member
  • 548 posts
  • RM Skill - Jack of All Trades

Posted 30 June 2013 - 10:34 PM

You'd have to put the code in the script editor. It's not something you can event.



#16 pxlgraphic

pxlgraphic

    you're friend

  • Member
  • 379 posts
  • LocationGallifrey
  • RM Skill - Designer

Posted 02 July 2013 - 04:35 PM

I don't know how to do that D:

 

I'm not a coder.

 

Could you tell me what it is I would have to change?


Posted Image


Posted Image

Spoiler


"The inner machinations of my mind are an enigma..." -Patrick Star


#17 ScriptTester

ScriptTester

    Advanced Member

  • Member
  • 43 posts

Posted 02 July 2013 - 05:01 PM

casper, you never failed me!


t6xrlz.jpg


#18 casper667

casper667

    Advanced Member

  • Member
  • 548 posts
  • RM Skill - Jack of All Trades

Posted 02 July 2013 - 10:25 PM

I don't know how to do that D:

 

I'm not a coder.

 

Could you tell me what it is I would have to change?

I'm not exactly sure. You'd probably put the autosave code (DataManager.csca_autosave(:save)) in Khas' script in Game_Map#setup or wherever his effects are first created on the map.



#19 pxlgraphic

pxlgraphic

    you're friend

  • Member
  • 379 posts
  • LocationGallifrey
  • RM Skill - Designer

Posted 08 July 2013 - 05:56 PM

I put it under
class Game_Map
on Khas script but it came up with an error in the autosave script at startup saying "undefined method 'autosaving=' for nil:NilClass" on line 132.

Posted Image


Posted Image

Spoiler


"The inner machinations of my mind are an enigma..." -Patrick Star


#20 casper667

casper667

    Advanced Member

  • Member
  • 548 posts
  • RM Skill - Jack of All Trades

Posted 08 July 2013 - 08:36 PM

Wrap the autosave code in

unless SceneManager.scene_is?(Scene_Title)






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users