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: 664
Joined: Mon Jan 07, 2019 2:55 am
Projects: Maddox's Everyday Talk! (13+ Unreal version), Maddox Everyday Talk! (3+ Real-Friendly version)(Upcoming 2020)
Organization: Friendly Teachers series
itch: .......
Location: Philippines, Mindanao
Contact:

RenPy alarm(?)

#1 Post by isobellesophia » Sun Oct 06, 2019 10:45 pm

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..


Working on a talking simulation game for everyone, except children.

Maddox Everyday Talk!
Is my very very main project, not contain 13 below.

Main project here viewtopic.php?f=43&t=56564
Image

User avatar
rayminator
Veteran
Posts: 261
Joined: Fri Feb 09, 2018 12:05 am
Projects: Redoing games to fix spelling mistakes other companys that don't care
Location: Canada
Contact:

Re: RenPy alarm(?)

#2 Post by rayminator » Sun Oct 06, 2019 11:38 pm

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: 1433
Joined: Sat Feb 25, 2012 8:45 pm
Completed: Yeshua, Jesus Life, Cops&Robbers
Projects: Fear&Love, unknown
Organization: Pilgrim Creations
Github: xavi-mat
itch: xavimat
Location: Italy
Contact:

Re: RenPy alarm(?)

#3 Post by xavimat » 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.
Comunidad Ren'Py en español: ¡Únete a nuestro Discord!
Cops&Robbers A two-player experiment
Fear&Love Why can’t we simply express our feelings? Why am I afraid to say ‘I love you’?
Honest Critique (Avatar made with Chibi Maker by ~gen8)

User avatar
isobellesophia
Miko-Class Veteran
Posts: 664
Joined: Mon Jan 07, 2019 2:55 am
Projects: Maddox's Everyday Talk! (13+ Unreal version), Maddox Everyday Talk! (3+ Real-Friendly version)(Upcoming 2020)
Organization: Friendly Teachers series
itch: .......
Location: Philippines, Mindanao
Contact:

Re: RenPy alarm(?)

#4 Post by isobellesophia » Mon Oct 07, 2019 7:10 am

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..


Working on a talking simulation game for everyone, except children.

Maddox Everyday Talk!
Is my very very main project, not contain 13 below.

Main project here viewtopic.php?f=43&t=56564
Image

drKlauz
Regular
Posts: 166
Joined: Mon Oct 12, 2015 3:04 pm
Contact:

Re: RenPy alarm(?)

#5 Post by drKlauz » 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.

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

Re: RenPy alarm(?)

#6 Post by Imperf3kt » Mon Oct 07, 2019 8:29 am

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.

Todo list:
Actually finish a project

drKlauz
Regular
Posts: 166
Joined: Mon Oct 12, 2015 3:04 pm
Contact:

Re: RenPy alarm(?)

#7 Post by drKlauz » 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
Last edited by drKlauz on Mon Oct 07, 2019 12:23 pm, edited 1 time in total.

User avatar
Andredron
Veteran
Posts: 339
Joined: Thu Dec 28, 2017 2:37 pm
Location: Russia
Contact:

Re: RenPy alarm(?)

#8 Post by Andredron » Mon Oct 07, 2019 11:26 am

Android

viewtopic.php?f=51&t=46091

Or as an option add plagin kivi in renpy.

Windows and Linuks.... Anti-Virus will beat hands.
I know, I'm writing terribly in English.

I'm writing a Renpy textbook (in Russian). https://yadi.sk/d/ZX_DonP63USRru Update 22.06.18

Honest Critique

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

Re: RenPy alarm(?)

#9 Post by Imperf3kt » Mon Oct 07, 2019 2:48 pm

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.

Todo list:
Actually finish a project

Post Reply

Who is online

Users browsing this forum: Google [Bot], Panchoman777