I was curious to ask if a programmer could help with some code that makes the game check if the games files have been deleted to continue the game
What I mean by this is...
...Maybe this'll help explain better: I'm sure everyone has played or at-least know of the game "doki doki literature club". Im curious to ask how they did the whole bit of where you need to delete something from the game to make the game fixed if that makes sense?
Like the script/game is constantly searching for a file in its folders but asoon as you remove it you break the game to fix the game, if that makes sense? ^^'' so basically im asking how can i replicate the script looking for a file like how they did in doki doki literature club? ^^
hopfully that made sense ^^'' I probably said it wrong ;-;
Like how Monika makes you delete her, so the game can play without her BUT it knows if you deleted her from the beginning it wont give you the good ending, but the bad one? hope this makes sense ^^''
Programmer needed
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.
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.
-
- Regular
- Posts: 32
- Joined: Fri Dec 15, 2017 5:08 am
- Deviantart: AdamAnimationz
- Skype: theluckiestofpone@gmail.com
- Contact:
Re: Programmer needed
Hi! You can check for different files on the computer system programmatically.
I guess what they basically did is look for a certain file like Monika.jpg and see if it is still in the game folder. And if she isn't, it activates a flag which gives you a different ending.
But you can also do something like make the game have parameters (variables) that can change value (ex: If ThisScene == true then _Monika = Deleted)
which also calls a function that deletes some game files and tells your game that Monika is now deleted without having to look for files in the games folder.
I haven't played Doki Doki Literature club yet but I've heard that they really do delete its character data, so ideally it's either of those two.
I guess what they basically did is look for a certain file like Monika.jpg and see if it is still in the game folder. And if she isn't, it activates a flag which gives you a different ending.
But you can also do something like make the game have parameters (variables) that can change value (ex: If ThisScene == true then _Monika = Deleted)
which also calls a function that deletes some game files and tells your game that Monika is now deleted without having to look for files in the games folder.
I haven't played Doki Doki Literature club yet but I've heard that they really do delete its character data, so ideally it's either of those two.
- MilywayObree
- Newbie
- Posts: 17
- Joined: Sun Jan 28, 2018 11:24 am
- Completed: None so far, pending to be exact
- Projects: DDLC, The notebook and other secret projects
- Organization: Vocastin/Oriaa Pro-Creations
- Deviantart: MexicoRPelino
- Github: HizashiroTakahashi
- Skype: PixelMINEGaming
- Location: Philippines
- Contact:
Re: Programmer needed
Well, you can delete files by
but i don't know how I would make the game or code manage and detect files to continue the story if they have been deleted
Code: Select all
python:
import os
os.remove("path")
Just Monika.
- MilywayObree
- Newbie
- Posts: 17
- Joined: Sun Jan 28, 2018 11:24 am
- Completed: None so far, pending to be exact
- Projects: DDLC, The notebook and other secret projects
- Organization: Vocastin/Oriaa Pro-Creations
- Deviantart: MexicoRPelino
- Github: HizashiroTakahashi
- Skype: PixelMINEGaming
- Location: Philippines
- Contact:
Re: Programmer needed
Well, you can delete files by
but i don't know how I would make the game or code manage and detect files to continue the story if they have been deleted
Code: Select all
python:
import os
os.remove("path")
Just Monika.
- Taleweaver
- Writing Maniac
- Posts: 3428
- Joined: Tue Nov 11, 2003 8:51 am
- Completed: Metropolitan Blues, The Loyal Kinsman, Daemonophilia, The Dreaming, The Thirteenth Year, Adrift, Bionic Heart 2, Secrets of the Wolf, The Photographer
- Projects: The Pilgrim's Path, Elspeth's Garden, Secret Adventure Game!
- Organization: Tall Tales Productions
- Location: Germany
- Contact:
Re: Programmer needed
Moved to Ren'Py Questions.
Scriptwriter and producer of Metropolitan Blues
Creator of The Loyal Kinsman
Scriptwriter and director of DaemonophiliaScriptwriter and director of The Dreaming
Scriptwriter of Zenith ChroniclesScriptwriter and director of The Thirteenth Year
Scriptwriter and director of Romance is DeadScriptwriter and producer of Adrift
More about me in my blog"Adrift - Like Ever17, but without the Deus Ex Machina" - HigurashiKira
-
- Regular
- Posts: 78
- Joined: Thu Feb 08, 2018 7:57 am
- Contact:
-
- Newbie
- Posts: 4
- Joined: Sat Feb 24, 2018 12:03 pm
- Deviantart: xilmi
- Github: Xilmi
- Skype: nskail
- Soundcloud: Stumpp
- Contact:
Re: Programmer needed
$ fileisthere = renpy.exists("Mokia.chr")
and then you can simply check it with
if fileisthere:
m "Did you know I am vegetarian?"
else:
m "What is happening?"
and then you can simply check it with
if fileisthere:
m "Did you know I am vegetarian?"
else:
m "What is happening?"
Who is online
Users browsing this forum: DewyNebula, Ocelot, piinkpuddiin