How to autosave?

Matt Mats

Villager
Member
Joined
Apr 4, 2015
Messages
29
Reaction score
19
First Language
German
Primarily Uses
Hi there O/


I've got a little question again^^


Which scriptcall can I use to save the game in a specific data automatically?


For example, the players walks a path, passes a certain event and this event saves the game in the background, the moment when the player stepped on it, and the player doesn't have to confirm anything.


Does somebody know how to do this?


Thank you very much
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,671
Reaction score
2,993
First Language
Tagalog
Primarily Uses
You need a script to do that.. Search for autosave in the forums and you will probably see some of those


Or you can get my Quick Save/Load script then call this line of code using the script event command to force a quick save 

Code:
SceneManager.scene.quicksave
 
Last edited by a moderator:

Matt Mats

Villager
Member
Joined
Apr 4, 2015
Messages
29
Reaction score
19
First Language
German
Primarily Uses
Thx Adikt,


I dont want to let the player control where to save, just when triggered by an event.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
29,492
Reaction score
6,858
First Language
German
Primarily Uses
RMMV
@Matt Mats then you don't need any script - that is basic eventing.


There is an event command to disable the save access - use that in an autorun on the first map to switch off saving, then in every event where you want the player to save, open the save screen by event command (there is another event command for exactly that.


Search the forum for "save crystal" or something similiar - there should be tutorials for that around.
 

Matt Mats

Villager
Member
Joined
Apr 4, 2015
Messages
29
Reaction score
19
First Language
German
Primarily Uses
Hi Andar,


no the player shouldnt control anything, it should save in the background, with just a little notification on the side that the game was auto saved.
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,671
Reaction score
2,993
First Language
Tagalog
Primarily Uses
Thx Adikt,


I dont want to let the player control where to save, just when triggered by an event.


You can try setting the key bindings to nil or a nonexistent symbol in my script so that no player input will trigger the quick save.. Anyway, there are lots of autosave scripts out there, I just linked mine as a choice.
 
Last edited by a moderator:

Matt Mats

Villager
Member
Joined
Apr 4, 2015
Messages
29
Reaction score
19
First Language
German
Primarily Uses
Thx I will try it out :)
 

Matt Mats

Villager
Member
Joined
Apr 4, 2015
Messages
29
Reaction score
19
First Language
German
Primarily Uses
@Engr. Adiktuzmiko


I  got a problem with Yanfly Safe Engine which Im using along.


It says:


line 616: NoMethodError occurred.


undefined method `height' for nil:NilClass


Can you help me with that?


Or do you know a script that allows the player to delete save files?
 
Last edited by a moderator:

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,671
Reaction score
2,993
First Language
Tagalog
Primarily Uses
What are you doing when it happened? Do you have my script in that project too? Also please link to the script and also, open your script editor after that error is shown and take a screenshot of the script editor so that we can see what those lines are (just in case there are some differences between the lines in the original yanfly script and the one in your project)
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
29,492
Reaction score
6,858
First Language
German
Primarily Uses
RMMV
I suggest you follow the link "how to use a script" in my signature - it also includes bughunting tips for scripts.


It would be especially helpfull to see the backtracer output of your error messages as it looks like several scripts are involved, and in that case we need a list of every script in that error message /which is what the backtracer gives you)
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts


Spending the day reworking my maps, especially the first "biome". This time it's not even in the dark. :LZSwink:
Activity on the forums has increased lately, probably because of people staying home. The amount of work for moderators has increased lol.
At this point I've gotten so tired of April Fools on the internet that last year I just refused to even post anything on the RMW Social Media on April Fools in protest. Considering doing it again.
I posted a funny gag reel of Drifty's video's here, but realized it was probably too riskay, so I deleted it, oops, lol.
Another room (actually other half of previous room)

Forum statistics

Threads
95,519
Messages
929,759
Members
125,783
Latest member
vashx
Top