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.
Message
Author
ThePyromancer23
Newbie
Posts: 10
Joined: Thu Apr 11, 2019 10:42 am
Projects: GFHS
Contact:

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

#166 Post by ThePyromancer23 »

Highly doubt this is still supported, but I was wondering how I'd be able to run the event system without using the day planner.

User avatar
Marionette
Regular
Posts: 128
Joined: Thu Apr 21, 2011 12:04 pm
Completed: https://marionette.itch.io/
Projects: Get Meowt of Here
Deviantart: rexx9224
itch: marionette
Location: Ireland
Discord: Marionette#2995
Contact:

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

#167 Post by Marionette »

ThePyromancer23 wrote: Thu Apr 11, 2019 10:44 am Highly doubt this is still supported, but I was wondering how I'd be able to run the event system without using the day planner.
I did precisely this for my nanoreno game last month, so its definitely possible.
If all you need are the events, just include the dse-event_dispatcher.rpy and use your own version of the dse-events.rpy file.

Then you can just call this anytime you want to check and run an event:

Code: Select all

 call events_run_period
The main caveat i found was not being able to use the event.depends function, and instead i think i had to use event.happened for any events that required other events to take place before they could.

ThePyromancer23
Newbie
Posts: 10
Joined: Thu Apr 11, 2019 10:42 am
Projects: GFHS
Contact:

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

#168 Post by ThePyromancer23 »

oops
Last edited by ThePyromancer23 on Thu Apr 11, 2019 12:57 pm, edited 1 time in total.

ThePyromancer23
Newbie
Posts: 10
Joined: Thu Apr 11, 2019 10:42 am
Projects: GFHS
Contact:

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

#169 Post by ThePyromancer23 »

Marionette wrote: Thu Apr 11, 2019 12:02 pm
ThePyromancer23 wrote: Thu Apr 11, 2019 10:44 am Highly doubt this is still supported, but I was wondering how I'd be able to run the event system without using the day planner.
I did precisely this for my nanoreno game last month, so its definitely possible.
If all you need are the events, just include the dse-event_dispatcher.rpy and use your own version of the dse-events.rpy file.

Then you can just call this anytime you want to check and run an event:

Code: Select all

 call events_run_period
The main caveat i found was not being able to use the event.depends function, and instead i think i had to use event.happened for any events that required other events to take place before they could.
Ahh, thank you! Do you know if there is a way to make the 'act ==' part work too? So I can at least put things at different parts of the day? Also does the event.happened work in the same way or is there anything different I need to be wary of?

ThePyromancer23
Newbie
Posts: 10
Joined: Thu Apr 11, 2019 10:42 am
Projects: GFHS
Contact:

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

#170 Post by ThePyromancer23 »

Alright, I've done exactly what you've described, created my own events, copied the dispatch and called the events_run_period. The entire thing starts crashing.

User avatar
qirien
Miko-Class Veteran
Posts: 541
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.0! Day Planner and Event Manager

#171 Post by qirien »

Can you post some details about the crash? And/or post your code? It's easier to debug if we can download the whole thing and run it ourselves...
Finished games:
Image
Image
Image

User avatar
isak grozny
Regular
Posts: 46
Joined: Mon Apr 11, 2016 10:17 am
Projects: The Bitter Drop [Modern Fantasy][Gay Romance][BxB]
itch: grrozny
Location: Edinburgh, UK
Contact:

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

#172 Post by isak grozny »

Hey, I made some modifications to the way DSE does stats–namely, you now have the option of using "fairmath" stat progression. The higher the score, the harder it is to increase and the easier it is to damage; this is the system used by Choice of Games to great effect and I think DSE could benefit from it.

Also, I added a "type" attribute to the __Stat class, to give more control over how stats are displayed, e.g. you can easily separate skills and personality traits instead of having everything dumped in order of initialisation.

How should I present the changes for consideration? I'm not very familiar with Github.

User avatar
qirien
Miko-Class Veteran
Posts: 541
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.0! Day Planner and Event Manager

#173 Post by qirien »

That sounds cool! I can see how some people would like for that to be an option. Could you zip it up and post a link?
Finished games:
Image
Image
Image

User avatar
parttimestorier
Veteran
Posts: 429
Joined: Thu Feb 09, 2017 10:29 pm
Completed: No Other Medicine, Well Met By Moonlight, RE:BURN, The Light at the End of the Ocean, Take A Hike!, Wizard School Woes
Projects: Seeds of Dreams
itch: janetitor
Location: Canada
Contact:

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

#174 Post by parttimestorier »

I'm experimenting with this code for the first time and I seem to have added too many periods for the day planner screen to deal with - right now they're stretching off of the screen like this (there should be a Monday, Saturday, and Sunday in there, but you can't see them):
screenshot0002.png
I'm aware that I'll probably want to mess around with the code in dse-styles to make it look nicer as well, but I was wondering if anyone knew how I would go about putting a line break in the list of periods or something so that I can have two rows of them. Right now my priority is just being able to see them all on screen so I can properly select things and test that all the other changes I've made are working.

Edit: Figured it out! I just needed to add "box_wrap True" to the hbox in dse-day_planner.rpy.
ImageImageImage

User avatar
isak grozny
Regular
Posts: 46
Joined: Mon Apr 11, 2016 10:17 am
Projects: The Bitter Drop [Modern Fantasy][Gay Romance][BxB]
itch: grrozny
Location: Edinburgh, UK
Contact:

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

#175 Post by isak grozny »

qirien wrote: Wed Apr 24, 2019 11:51 am That sounds cool! I can see how some people would like for that to be an option. Could you zip it up and post a link?
Sorry for taking so long to respond, life got in the way of devwork for a while! Here's the modified dse-stats.rpy file as a gist!!

User avatar
isak grozny
Regular
Posts: 46
Joined: Mon Apr 11, 2016 10:17 am
Projects: The Bitter Drop [Modern Fantasy][Gay Romance][BxB]
itch: grrozny
Location: Edinburgh, UK
Contact:

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

#176 Post by isak grozny »

I'm not sure what exactly happened, but seems the latest Ren'Py update broke DSE: for some reason it's running

Code: Select all

normalize_stats
at start-up, before any stats have been generated.

EDIT: Aha, fixed it. Now the function checks that the given attribute exists in the first place before running. I'm going to figure out how to use github properly and maybe start implementing some of these changes I've been making?

User avatar
qirien
Miko-Class Veteran
Posts: 541
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.0! Day Planner and Event Manager

#177 Post by qirien »

Thanks for finding that! I'd be happy to help you make changes in git, or if you want to just post them here or send them to me, that would work, too.
Finished games:
Image
Image
Image

Ayael
Regular
Posts: 82
Joined: Fri Apr 07, 2017 2:17 pm
Projects: Imperial Grace (on going), Autumn Spirit, Ballads at Midnight
Contact:

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

#178 Post by Ayael »

Hello, I tried to run the game both DSE - 4.0 zip and source code.zip, and everytime, when i try to start the game, I have this crash :

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "renpy/common/00start.rpy", line 189, in script
    python:
  File "renpy/common/00start.rpy", line 189, in script
    python:
  File "game/dse-stats.rpy", line 39, in normalize_stats
    v = getattr(store, s.var)
AttributeError: 'StoreModule' object has no attribute 'strength'

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

Full traceback:
  File "D:\Programmes\renpy-7.3.0-sdk\renpy\bootstrap.py", line 316, in bootstrap
    renpy.main.main()
  File "D:\Programmes\renpy-7.3.0-sdk\renpy\main.py", line 578, in main
    run(restart)
  File "D:\Programmes\renpy-7.3.0-sdk\renpy\main.py", line 143, in run
    renpy.execution.run_context(True)
  File "D:\Programmes\renpy-7.3.0-sdk\renpy\execution.py", line 908, in run_context
    context.run()
  File "renpy/common/00start.rpy", line 189, in script
    python:
  File "renpy/common/00start.rpy", line 189, in script
    python:
  File "D:\Programmes\renpy-7.3.0-sdk\renpy\ast.py", line 919, in execute
    i()
  File "game/dse-stats.rpy", line 39, in normalize_stats
    v = getattr(store, s.var)
AttributeError: 'StoreModule' object has no attribute 'strength'

Windows-8-6.2.9200
Ren'Py 7.3.5.606
Dating Sim Engine 4.0
Wed Oct 30 17:56:45 2019
`
It was to test the feature in the first place, so I didn't touch anything, just unziped the file and put it with my other renpy game x)

But I guess it's link to this problem solved but not add to the build yet ?
isak grozny wrote: Wed Oct 09, 2019 11:15 pm I'm not sure what exactly happened, but seems the latest Ren'Py update broke DSE: for some reason it's running

Code: Select all

normalize_stats
at start-up, before any stats have been generated.

EDIT: Aha, fixed it. Now the function checks that the given attribute exists in the first place before running. I'm going to figure out how to use github properly and maybe start implementing some of these changes I've been making?


Anyway this feature looks amazing I am really curious to know more about it !
Image Image

User avatar
qirien
Miko-Class Veteran
Posts: 541
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.0! Day Planner and Event Manager

#179 Post by qirien »

Hey, I haven't done a new release yet, but you can download the latest changes here:
https://github.com/renpy/dse/archive/master.zip

That should solve your problem!
Finished games:
Image
Image
Image

Ayael
Regular
Posts: 82
Joined: Fri Apr 07, 2017 2:17 pm
Projects: Imperial Grace (on going), Autumn Spirit, Ballads at Midnight
Contact:

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

#180 Post by Ayael »

It does, thank you very much !
Image Image

Post Reply

Who is online

Users browsing this forum: No registered users