RenPy alarm(?)

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
User avatar
isobellesophia
Miko-Class Veteran
Posts: 979
Joined: Mon Jan 07, 2019 2:55 am
Completed: None
Projects: Maddox and Friends! (AI Teacher friend), Friendly Universities! (Soon)
Organization: Friendly Teachers series
Deviantart: SophBelle
itch: Child Creation
Location: Philippines, Mindanao
Contact:

RenPy alarm(?)

#1 Post by isobellesophia »

Hello

I hope this will get answered, so i was planning on making a alarm in my game project, like a clock alarm, this is what i wanted.

When the real time is on exact 8 am or 9 am, the game itself will open (dunno if there is a code like that)
and it will greeted up a character that it is time to wake up, eat, blah blah.

Any help will be appriciated.
I am a friendly user, please respect and have a good day.


Image

Image


rayminator
Miko-Class Veteran
Posts: 793
Joined: Fri Feb 09, 2018 12:05 am
Location: Canada
Contact:

Re: RenPy alarm(?)

#2 Post by rayminator »

you try this out

Tutorial & Code: Analog/Digital Clock as User Defined Display

look at number 4 there is something it in that has alarm for it
viewtopic.php?t=21978

User avatar
xavimat
Eileen-Class Veteran
Posts: 1461
Joined: Sat Feb 25, 2012 8:45 pm
Completed: Yeshua, Jesus Life, Cops&Robbers
Projects: Fear&Love
Organization: Pilgrim Creations
Github: xavi-mat
itch: pilgrimcreations
Location: Spain
Discord: xavimat
Contact:

Re: RenPy alarm(?)

#3 Post by xavimat »

isobellesophia wrote: Sun Oct 06, 2019 10:45 pm...the game itself will open...
Do you mean that the game was closed before?
That is not possible. Computers don't open programs on their own (yet), thanks God. You'd need another hidden program running that executes your game in a given time.
Comunidad Ren'Py en español: ¡Únete a nuestro Discord!
Rhaier Kingdom A Ren'Py Multiplayer Adventure Visual Novel.
Cops&Robbers A two-player experiment | Fear&Love Why can't we say I love you?
Honest Critique (Avatar made with Chibi Maker by ~gen8)

User avatar
isobellesophia
Miko-Class Veteran
Posts: 979
Joined: Mon Jan 07, 2019 2:55 am
Completed: None
Projects: Maddox and Friends! (AI Teacher friend), Friendly Universities! (Soon)
Organization: Friendly Teachers series
Deviantart: SophBelle
itch: Child Creation
Location: Philippines, Mindanao
Contact:

Re: RenPy alarm(?)

#4 Post by isobellesophia »

xavimat wrote: Mon Oct 07, 2019 7:06 am
isobellesophia wrote: Sun Oct 06, 2019 10:45 pm...the game itself will open...
Do you mean that the game was closed before?
That is not possible. Computers don't open programs on their own (yet), thanks God. You'd need another hidden program running that executes your game in a given time.
Umm. yeah like that, like a $ renpy.quit format and it will set up an persistent of relaunching and opens up the game, (which is i did).


@rayminator Thanks for this, i had a long time to read this as the code was very very long.
I am a friendly user, please respect and have a good day.


Image

Image


drKlauz
Veteran
Posts: 239
Joined: Mon Oct 12, 2015 3:04 pm
Contact:

Re: RenPy alarm(?)

#5 Post by drKlauz »

On Windows you can use Task Scheduler system.
On Linux you can use cron.
Another option would be having another program running on background and checking if trigger conditions are met and main app is not running.
I may be available for hire, check my thread: viewtopic.php?f=66&t=51350

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3794
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: RenPy alarm(?)

#6 Post by Imperf3kt »

drKlauz wrote: Mon Oct 07, 2019 7:38 am On Windows you can use Task Scheduler system.
On Linux you can use cron.
Another option would be having another program running on background and checking if trigger conditions are met and main app is not running.
I think its required by law to inform the user that these tasks are running in the background though, and Windows actually forces the user to accept or decline. Probably less than secret, like OP wants.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

drKlauz
Veteran
Posts: 239
Joined: Mon Oct 12, 2015 3:04 pm
Contact:

Re: RenPy alarm(?)

#7 Post by drKlauz »

I have strong feeling this is private pet project what will be shared with close friends only.
Just mentioned solutions, ability to implement them is another question :D
Last edited by drKlauz on Mon Oct 07, 2019 12:23 pm, edited 1 time in total.
I may be available for hire, check my thread: viewtopic.php?f=66&t=51350

User avatar
Andredron
Miko-Class Veteran
Posts: 719
Joined: Thu Dec 28, 2017 2:37 pm
Location: Russia
Contact:

Re: RenPy alarm(?)

#8 Post by Andredron »

Android

viewtopic.php?f=51&t=46091

Or as an option add plagin kivi in renpy.

Windows and Linuks.... Anti-Virus will beat hands.

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3794
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: RenPy alarm(?)

#9 Post by Imperf3kt »

drKlauz wrote: Mon Oct 07, 2019 9:05 am I have strong feeling this is private pet project what will be shared with close friends only.
Just mentioned solutions, ability to implement them is another question :D
Yes I do too.
In a way, I'm curious what is planned but in another way I feel sorry for this friend.

I fear they will play only a tiny bit before it overwhelms them.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot]