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: 8
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 » 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.

User avatar
Marionette
Regular
Posts: 126
Joined: Thu Apr 21, 2011 12:04 pm
Completed: ChimeraTail
Projects: Nova, Cupid, Snowdrop
Deviantart: rexx9224
Skype: super_marionette
itch: marionette
Location: Ireland
Contact:

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

#167 Post by Marionette » 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.

ThePyromancer23
Newbie
Posts: 8
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 » Thu Apr 11, 2019 12:54 pm

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

ThePyromancer23
Newbie
Posts: 8
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 » Thu Apr 11, 2019 12:57 pm

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: 8
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 » Thu Apr 11, 2019 5:02 pm

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
Veteran
Posts: 471
Joined: Thu Jul 31, 2003 10:06 pm
Organization: Metasepia Games
Deviantart: qirien
Github: qirien
itch: qirien
Location: New Mexico, USA
Contact:

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

#171 Post by qirien » Mon Apr 15, 2019 6:15 pm

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
In progress: Our Personal Space 2: Space to Grow

User avatar
isak grozny
Regular
Posts: 44
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 » Tue Apr 23, 2019 3:15 am

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
Veteran
Posts: 471
Joined: Thu Jul 31, 2003 10:06 pm
Organization: Metasepia Games
Deviantart: qirien
Github: qirien
itch: qirien
Location: New Mexico, USA
Contact:

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

#173 Post by qirien » 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?
Finished games:
Image
Image
Image
In progress: Our Personal Space 2: Space to Grow

User avatar
parttimestorier
Veteran
Posts: 289
Joined: Thu Feb 09, 2017 10:29 pm
Completed: No Other Medicine, Well Met By Moonlight, RE:BURN
Projects: DemiDato, The Light at the End of the Ocean
itch: janetitor
Location: Canada
Contact:

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

#174 Post by parttimestorier » Sat Jun 15, 2019 11:45 am

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: 44
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 » Thu Aug 15, 2019 8:23 am

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: 44
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 » 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?

User avatar
qirien
Veteran
Posts: 471
Joined: Thu Jul 31, 2003 10:06 pm
Organization: Metasepia Games
Deviantart: qirien
Github: qirien
itch: qirien
Location: New Mexico, USA
Contact:

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

#177 Post by qirien » Wed Oct 23, 2019 3:04 pm

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
In progress: Our Personal Space 2: Space to Grow

User avatar
Ayael
Regular
Posts: 57
Joined: Fri Apr 07, 2017 2:17 pm
Projects: Anoldor, medieval fantasy otome game.
Contact:

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

#178 Post by Ayael » Wed Oct 30, 2019 1:01 pm

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 !

User avatar
qirien
Veteran
Posts: 471
Joined: Thu Jul 31, 2003 10:06 pm
Organization: Metasepia Games
Deviantart: qirien
Github: qirien
itch: qirien
Location: New Mexico, USA
Contact:

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

#179 Post by qirien » Wed Nov 06, 2019 2:25 pm

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
In progress: Our Personal Space 2: Space to Grow

User avatar
Ayael
Regular
Posts: 57
Joined: Fri Apr 07, 2017 2:17 pm
Projects: Anoldor, medieval fantasy otome game.
Contact:

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

#180 Post by Ayael » Sun Nov 10, 2019 7:48 am

It does, thank you very much !

Post Reply

Who is online

Users browsing this forum: No registered users