I need help with the script

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
SuzuAyaGT
Newbie
Posts: 9
Joined: Fri Jun 22, 2018 4:30 am
Contact:

I need help with the script

#1 Post by SuzuAyaGT »

Umm... first i want to apologize for my bad English.
I want to ask a few questions about the script.
1) I want to know how do we make the game auto-save. And when we quit the game then re-open it, it will skip the game menu part and go straight into that auto-save file.
2) In the project tutorial of Renpy, it opens a menu of tutorial. I want to make the same menu but i can't figure it out how it worked.
For example (In the picture):
-Renpy script-
https://imgur.com/8D5wlii
https://imgur.com/pickPv7

- My script -
https://imgur.com/z7CbMsK
https://imgur.com/Gzi0MQ1

Yep, some how all the letter turned black right after i save the script into the "game" folder.
And I'm trying to make a board of what topic to talk about. But the same things happened
]https://imgur.com/AB3xoih
I created a new tab
https://imgur.com/Y7MSjzL
And then save into the "game" folder, and somehow the words turn black again!!
https://imgur.com/0HU6Iba
____
If you want a version more easily to read, it's here: https://docs.google.com/document/d/1aKp ... sp=sharing

User avatar
XxrenxX
Veteran
Posts: 267
Joined: Tue Oct 02, 2012 2:40 am
Projects: Chasing
Deviantart: bara-ettie
Location: Canada
Contact:

Re: I need help with the script

#2 Post by XxrenxX »

Idk if this helps but a quick search came up with the following code for quicksaves here.

Code: Select all

# The number of autosave slots we have.
autosave_slots = 10

# How often do we autosave. (Number of interactions, sort of.)
autosave_frequency = int(os.environ.get("RENPY_AUTOSAVE_FREQUENCY", "200"))
I'm not aware how recent this code is but I believe this would be posted under the options.rpy. Someone correct me if I'm wrong.

I am also unaware if there is a way to skip the main menu and go straight to the most recent save but frankly I would advise not doing that from my personal preference of wanting to be able to pick my own save files.

User avatar
Remix
Eileen-Class Veteran
Posts: 1628
Joined: Tue May 30, 2017 6:10 am
Completed: None... yet (as I'm still looking for an artist)
Projects: An un-named anime based trainer game
Contact:

Re: I need help with the script

#3 Post by Remix »

From __future__ import guesswork ... (pythonic humour, oops)

It does look like RenpyTom is working on adding this sort of facility into the engine within the nightly builds.
So, hopefully there will soon be a backbone system that handles this type of requirement.

https://github.com/renpy/renpy/commit/4 ... 94e2680572

Seems to imply there will be a config.quit_slot setting along with the others noted by XXxrenxX above. Was only added to the repository a few hours ago though, so do not expect the new features in stable builds any time super soon.
Frameworks & Scriptlets:

rames44
Veteran
Posts: 233
Joined: Sun May 29, 2016 4:38 pm
Contact:

Re: I need help with the script

#4 Post by rames44 »

You can see how to implement a “Continue” button that loads the most recent save here
viewtopic.php?f=8&t=50032&p=486679&hili ... e”#p486679

Post Reply

Who is online

Users browsing this forum: No registered users