Programmer needed

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
Lucky Duck
Regular
Posts: 32
Joined: Fri Dec 15, 2017 5:08 am
Deviantart: AdamAnimationz
Skype: theluckiestofpone@gmail.com
Contact:

Programmer needed

#1 Post by Lucky Duck »

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 ^^''

User avatar
RyuKing
Newbie
Posts: 4
Joined: Mon Oct 23, 2017 12:21 am
Organization: Team7
Contact:

Re: Programmer needed

#2 Post by RyuKing »

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.

User avatar
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

#3 Post by MilywayObree »

Well, you can delete files by

Code: Select all

python:
    import os
    os.remove("path")
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
Just Monika.

User avatar
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

#4 Post by MilywayObree »

Well, you can delete files by

Code: Select all

python:
    import os
    os.remove("path")
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
Just Monika.

User avatar
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

#5 Post by Taleweaver »

Moved to Ren'Py Questions.
Scriptwriter and producer of Metropolitan Blues
Creator of The Loyal Kinsman
Scriptwriter and director of Daemonophilia
Scriptwriter and director of The Dreaming
Scriptwriter of Zenith Chronicles
Scriptwriter and director of The Thirteenth Year
Scriptwriter and director of Romance is Dead
Scriptwriter and producer of Adrift
More about me in my blog
"Adrift - Like Ever17, but without the Deus Ex Machina" - HigurashiKira


AIL
Newbie
Posts: 4
Joined: Sat Feb 24, 2018 12:03 pm
Deviantart: xilmi
Github: Xilmi
Skype: nskail
Soundcloud: Stumpp
Contact:

Re: Programmer needed

#7 Post by AIL »

$ 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?"

Post Reply

Who is online

Users browsing this forum: No registered users