Page 1 of 2

DSE redone with screen language?

Posted: Wed Jul 02, 2014 2:30 pm
by qirien
Hey everyone! I am using the DSE (Dating Sim Engine) heavily in my visual novel, and now find it necessary to update it to use the new(ish) screen language. Before I begin, however, I wanted to ask if anyone else is already doing this, and if anyone else would be interested in it. It doesn't seem like it will be very hard to rewrite, so if others are interested, I can package it up when I'm done.

Re: DSE redone with screen language?

Posted: Sun Jul 06, 2014 12:22 pm
by runeraccoon
I'll be watching closely to the updated one~ :D

Re: DSE redone with screen language?

Posted: Sun Jul 06, 2014 12:26 pm
by PyTom
This would be a great project.

There are two parts of the DSE that can be redone. Obviously, the scheduler would be made better if it was as screen.

Also, we can probably get rid of the stats system in there. We don't need objects to represent stats anymore, as there's a new callback that's run whenever a python block executes. That could be used to ensure the stats stay in the appropriate range.

If you want to take over the DSE, you have my blessing.

Re: DSE redone with screen language?

Posted: Sun Jul 06, 2014 1:47 pm
by trooper6
PyTom wrote:We don't need objects to represent stats anymore, as there's a new callback that's run whenever a python block executes. That could be used to ensure the stats stay in the appropriate range.
PyTom, what does this mean...this callback whenever a python block executed? And is there a place with documentation on this feature so I can learn about it?

Re: DSE redone with screen language?

Posted: Sun Jul 06, 2014 1:48 pm
by PyTom

Re: DSE redone with screen language?

Posted: Fri Jul 11, 2014 10:52 pm
by qirien
OK, I will at least be updating it to use screen language, and then will see about the stats portion. Glad to hear people may find it useful!

Re: DSE redone with screen language?

Posted: Mon Jul 21, 2014 8:27 am
by runeraccoon
Yay! We'll be waiting~

Re: DSE redone with screen language?

Posted: Tue Jul 22, 2014 12:17 am
by sasquatchii
Yes!! This would be awesome. I will be closely watching this thread for updates.

Re: DSE redone with screen language?

Posted: Tue Sep 16, 2014 3:57 pm
by qirien
OK, I have an initial version of the new DSE. Everything looks pretty similar, but I think it's easier to understand and customize now.
dse3-20140916.zip
New version of DSE
(15.5 KiB) Downloaded 89 times
Changes include:
  • The statistics and the day planner are now both using screen language, and you can use them together (the default) or call them separately (nice for a custom screen).
  • All the normalize_stats calls have been removed, replaced by adding normalize_stats to the python.callbacks list like PyTom recommended.
  • The stats now use a style group like the day planner for easier customizability.
I would love for people using the DSE to try it out and make sure it works the same with what they are using it for. Also, I would love for Ren'Py experts to look over the code and make sure there's not glaring errors (I wasn't sure when to use __ and when not to, for example). The other question I have is what dp_callback is used for and how it gets called... I know it gets called somehow, but I can't see what is doing it or if it's still necessary.

I may have more ideas for changes as I integrate it with my own game, but I wanted to make sure there weren't any obvious flaws first. Thanks for the input, everyone!

Re: DSE redone with screen language?

Posted: Wed Sep 17, 2014 12:31 am
by Hazel-Bun
Thank you so much :D I'll try and test it out when I can!!

Re: DSE redone with screen language?

Posted: Mon Sep 22, 2014 2:07 pm
by qirien
Thanks, I'd appreciate it! It seems to work just fine in my game so far.

Re: DSE redone with screen language?

Posted: Thu Sep 25, 2014 12:03 am
by noeinan
I did something somewhat similar, though I haven't updated it in a while. I made an all-in-one framework, including a scheduler, inventory, calendar, "home" screen, character stats, and CG/BG gallery. (Inventory and gallery code by leon, calendar code by xelas) Eventually I was planning on making several versions geared towards different kinds of games, but for now it's default setup is more similar to a stat building, Princess Maker 2 inspired game.

http://lemmasoft.renai.us/forums/viewto ... 51&t=22393

Just tried to test out this one, but I'm getting an error message:
While parsing E:\_RenPy\RenPy WIP\DSE-ScreenLanguage/game/script.rpy.
ScriptError: Name (u'/home/tom/ab/renpy/template/game/script.rpy', 1341714480, 1) is defined twice: at english/game/script.rpy:7 and game/script.rpy:7.
Though, to be fair, I just pasted the game folder into a new project and launched it-- but it doesn't look like there is anything in the main script file so I might have to call some of those screens first to test it out.

Re: DSE redone with screen language?

Posted: Thu Sep 25, 2014 9:45 pm
by qirien
Oh, your Quickstart thing looks really handy! I might have used that instead if I had known about it... :)

As for your error... I'm not sure what's going on, because there isn't a script.rpy included in the zip file... it starts in "main.rpy". What is in your script.rpy? Would it work if you deleted it? It comes with a sample "game", so you should be able to run it...

Re: DSE redone with screen language?

Posted: Fri Sep 26, 2014 4:28 am
by noeinan
Glad you like it. :) I would have replied earlier, but I haven't been super active on lemmasoft for a few months due to personal reasons.

Hm, if there wasn't supposed to be a script file I may have accidentally merged them instead of replacing. I'll try again and see if it works.

Re: DSE redone with screen language?

Posted: Tue Apr 07, 2015 11:56 pm
by qirien
OK, here's the new DSE version 3! Improvements include:
  • Uses screen language and styles, making it easier to call and customize
  • Includes an example of using the "show" argument to conditionally show day planner options
  • Reorganized order of events to make it easier for users to understand how to add them and how to write them
PyTom, would you mind updating the Frameworks page with this new file?

Or is that obsolete, and this should now go in the Cookbook forum?
dse3-20150407.zip
Dating Sim Engine v3
(15.59 KiB) Downloaded 39 times