Page 1 of 1

RenPy alarm(?)

Posted: Sun Oct 06, 2019 10:45 pm
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.

Re: RenPy alarm(?)

Posted: Sun Oct 06, 2019 11:38 pm
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

Re: RenPy alarm(?)

Posted: Mon Oct 07, 2019 7:06 am
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.

Re: RenPy alarm(?)

Posted: Mon Oct 07, 2019 7:10 am
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.

Re: RenPy alarm(?)

Posted: Mon Oct 07, 2019 7:38 am
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.

Re: RenPy alarm(?)

Posted: Mon Oct 07, 2019 8:29 am
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.

Re: RenPy alarm(?)

Posted: Mon Oct 07, 2019 9:05 am
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

Re: RenPy alarm(?)

Posted: Mon Oct 07, 2019 11:26 am
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.

Re: RenPy alarm(?)

Posted: Mon Oct 07, 2019 2:48 pm
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.