Thatās a good use case. Take a look in the original post for an idea of how to expose the choice of saving to the player. Just always keep in mind that itāll only save the global variables.
Hey, just discovered this and wanted to say that itās absolutely amazing, thank you!
I was digging around for options for save-systems when dashingdonās built-in plugin is no longer an option, and this is by far the simplest (cause I donāt have to do anything!)
Thank you! Iām really happy this is helpful.
Thanks for the help so far, looks like itās coming together.
Sorry for the constant questions, but I tested it today and at the save point, I got the following error:
off_season line 1077: savesys doesnāt contain label save_1
Idk if this is something Iām doing wrong, or a problem with Dashingdon, but would appreciate some assistance please.
It shouldnāt have that label indeed. Can you tell me how youāre calling the subroutine? Could you perhaps be calling as *gosub_scene savesys save_1
instead of *gosub_scene savesys save 1
?
Was saving it as:
*gosub_scene savesys save [1]
Yeah, guess that was it. Thanks.
Okay, I am having issues I donāt understand.
At the very start of chapter 12 (the first one in my game) I have this line to save:
*gosub_scene savesys save 1 "chapter12" "variables"
And in the stat screen I have the following choice:
#I would like go back to the [b]last checkpoint[/b].
*gosub_scene savesys load 1
*redirect_scene savesys_slot_1_scene savesys_slot_1_label
But when I try to use it, it says that the file doesnāt exist, even though I have passed that point.
I am using Choicescript IDE.
Also, another question. Should I list savesys in my scene_list or not? If I do, it breaks the quicktest. if I donāt, it also breaks the quicktest,
Hi @malinryden! Iām really glad to hear to youāre considering including a save system despite the extra work. I love your game .
You have to wrap the variables with curly braces, otherwise, ChoiceScript will think youāre trying to reach a scene literally named savesys_slot_1_scene
and a label literally called savesys_slot_1_label
.
Try this instead:
*redirect_scene {savesys_slot_1_scene} {savesys_slot_1_label}
I realize itās wrong in the tutorial. Iāll fix it later (Iām at work right now ). Thanks for the question, otherwise, I wouldnāt have noticed this.
About the scene_list
, thereās no right answer. Usually, you would include only mandatory scenes you want your players to reach. But it shouldnāt be a problem if you include it at the end of the list after a scene you are sure to include an *ending
command. If youāre not in the habit of using *ending
commands and just rely on the fact the game will hit the end of the scene list and thus automatically end, then I would counter-advise including those files.
In regards to failing the quicktest, I would have to take a deeper look. Unfortunately, quickest is known to be very quirky and doesnāt like fancy code. Even though Softly uses pure ChoiceScript only, it makes use of some exotic features and clever coding. Something might not be sitting right with quicktest.
But like I said, Iāll have to take a better look later.
That worked a wonder! I should have guessed the curly brackets, I did already switch *redirect to *redirect_scene (also an error in the tutorial)
I would not inflict Retribution on people without at least a limited checkpoint save system. Itās kinda massive.
EDIT: This is the error that I get when doing the quicktest:
ERROR: couldnāt open savesys.txt
EDIT: I put savesys last in the scene_list, removed the text instructions in it, and added this as the first line:
*if ((choice_quicktest) or (choice_randomtest))
*ending
Quicktest now gives the error
ERROR: couldn't open .txt
BUT randomtest works!
Progress.
Hi, Iāll take a look at this now. I had a busy week and the next one will continue the trend.
@malinryden I figured out the issue and uploaded a new version of the generator.
If you are curious, the problem was that quicktest did not like the file had ānothingā so now Iāve added a label followed by a *finish
to the top of savesys.txt
.
Hi @cup_half_empty
It works fine with the latest version of ChoiceScript.
However, quicktest still gives an error message:
QUICKTEST FAILED
ERROR: couldn't open savesys.txt
Did you generate with the new version? In the savesys file, it should display v0.0.4
as the version.
Iāve tested a couple of scenarios but the issue with quicktest doesnāt happen on my end.
I did one with the new version, worked perfectly! Thank you!