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,670
Reaction score
2,992
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,230
Reaction score
6,776
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,670
Reaction score
2,992
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,670
Reaction score
2,992
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,230
Reaction score
6,776
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

palatkorn wrote on Kes's profile.
Hello i have a question Regarding the topic of games in my development, is there anything that I can't post yet?

"Your service has been identified as part of an outage. This is expected to be restored by 7pm IN SEVEN DAYS!!!" Guess I won't be around as much over the next week :(
Ami
tethering is my lifesaver,especially when computer or laptop doesn't support internet connection.
convention concluded, i'm glad the books well received and sold out
not every content is decent, but i'll be better for the next work.

now back to game developing
I hope to be able to post my vxace resource edits this Wednesday.
Not sure if I'll get to the library though.

Forum statistics

Threads
94,464
Messages
921,114
Members
124,293
Latest member
ravichah
Top