Page 12 of 13

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

Posted: Thu Apr 11, 2019 10:44 am
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.

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

Posted: Thu Apr 11, 2019 12:02 pm
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.

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

Posted: Thu Apr 11, 2019 12:54 pm
by ThePyromancer23
oops

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

Posted: Thu Apr 11, 2019 12:57 pm
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?

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

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

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

Posted: Mon Apr 15, 2019 6:15 pm
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...

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

Posted: Tue Apr 23, 2019 3:15 am
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.

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

Posted: Wed Apr 24, 2019 11:51 am
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?

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

Posted: Sat Jun 15, 2019 11:45 am
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.

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

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

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

Posted: Wed Oct 09, 2019 11:15 pm
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?

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

Posted: Wed Oct 23, 2019 3:04 pm
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.

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

Posted: Wed Oct 30, 2019 1:01 pm
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 !

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

Posted: Wed Nov 06, 2019 2:25 pm
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!

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

Posted: Sun Nov 10, 2019 7:48 am
by Ayael
It does, thank you very much !