Dating Sim Engine (DSE) 4.1! Day Planner and Event Manager

A place for Ren'Py tutorials and reusable Ren'Py code.
Forum rules
Do not post questions here!

This forum is for example code you want to show other people. Ren'Py questions should be asked in the Ren'Py Questions and Announcements forum.
Post Reply
Message
Author
User avatar
qirien
Miko-Class Veteran
Posts: 542
Joined: Thu Jul 31, 2003 10:06 pm
Organization: Metasepia Games
Deviantart: qirien
Github: qirien
itch: qirien
Location: New Mexico, USA
Discord: qirien
Contact:

Re: Dating Sim Engine (DSE) 4.1! Day Planner and Event Manager

#196 Post by qirien »

Sure, I would personally implement that by keeping the day variable how it is, and using that to calculate the Month/Day/Year for display. This is done in dse-day_planner.rpy
So if you start on March 25, you would have something like:

Code: Select all

$ day_display = day + 24
$ month_display = March
if (day > 7):
    $ month_display = "April"
    $ day_display = day - 7
And then have it show month_display and day_display in the day planner.
Finished games:
Image
Image
Image

dj_ashley
Newbie
Posts: 1
Joined: Tue Jun 25, 2024 6:19 pm
Contact:

Re: Dating Sim Engine (DSE) 4.1! Day Planner and Event Manager

#197 Post by dj_ashley »

hi! i was wondering, im trying to make a sort of school sim where the player chooses the activities for the week and then gets the stats for those. how could i do it for a kinda calendar? ive been trying myself but haven't been able to get it to work.
mostly i need help on how i could make the choices come from like a dropdown for the morning/afternoon/night for each day?


nvm, i got some help coding a custom one!!! :DD

User avatar
Hikari_Kaitou
Newbie
Posts: 17
Joined: Mon Sep 18, 2023 9:14 pm
Tumblr: hikari-kaitou
Contact:

Re: Dating Sim Engine (DSE) 4.1! Day Planner and Event Manager

#198 Post by Hikari_Kaitou »

Thank you very much for building this, it looks so useful!

Unfortunately when I try to use it, I get this error:
```
I'm sorry, but an uncaught exception occurred.

While running game code:
File "game/script.rpy", line 19, in script
$ event("class", "act == 'class'", event.only(), priority=200)
File "game/script.rpy", line 19, in <module>
$ event("class", "act == 'class'", event.only(), priority=200)
^^^^^
NameError: name 'event' is not defined

-- Full Traceback ------------------------------------------------------------

Traceback (most recent call last):
File "game/script.rpy", line 19, in script
$ event("class", "act == 'class'", event.only(), priority=200)
File "renpy/ast.py", line 1223, in execute
renpy.python.py_exec_bytecode(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
self.code.bytecode,
^^^^^^^^^^^^^^^^^^^
self.hide,
^^^^^^^^^^
store=self.store)
^^^^^^^^^^^^^^^^^
File "renpy/python.py", line 1277, in py_exec_bytecode
exec(bytecode, globals, locals)
~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "game/script.rpy", line 19, in <module>
$ event("class", "act == 'class'", event.only(), priority=200)
^^^^^
NameError: name 'event' is not defined

Windows-11-10.0.26100-SP0 AMD64
Ren'Py 8.4.0.25050801+nightly
event manager 1.0
Fri May 9 13:22:54 2025
```

Can anyone tell me what I need to fix? Or is this just a matter of the code being too outdated to be used with the current version of Ren'Py?

User avatar
jeffster
Eileen-Class Veteran
Posts: 1221
Joined: Wed Feb 03, 2021 9:55 pm
Contact:

Re: Dating Sim Engine (DSE) 4.1! Day Planner and Event Manager

#199 Post by jeffster »

Hikari_Kaitou wrote: Fri May 09, 2025 2:26 pm what I need to fix? Or is this just a matter of the code being too outdated
The code is a bit outdated, e.g. instead of

Code: Select all

init:
    $ t = Character('Teacher')
    $ gg = Character('Glasses Girl', color=(192, 255, 192, 255))
    $ sg = Character('Sporty Girl', color=(255, 255, 192, 255))
    $ bg = Character('Both Girls')
    $ narrator = Character(' ')
we do nowadays

Code: Select all

define t = Character('Teacher')
define gg = Character('Glasses Girl', color=(192, 255, 192, 255))
define sg = Character('Sporty Girl', color=(255, 255, 192, 255))
define bg = Character('Both Girls')
And yet it should work with the latest Ren'Py. In particular, event is defined in file
dse-event_dispatcher.rpy

If you are using the latest release and all the files are there, then it should work. Probably.
If the problem is solved, please edit the original post and add [SOLVED] to the title. 8)
All my tutorials, code samples etc. are Public Domain: use them with no restrictions.

User avatar
Hikari_Kaitou
Newbie
Posts: 17
Joined: Mon Sep 18, 2023 9:14 pm
Tumblr: hikari-kaitou
Contact:

Re: Dating Sim Engine (DSE) 4.1! Day Planner and Event Manager

#200 Post by Hikari_Kaitou »

jeffster wrote: Sat May 10, 2025 5:12 am
If you are using the latest release and all the files are there, then it should work. Probably.
Aaaaand that worked! Thank you so much for your help :)

Post Reply