DSE redone with screen language?

In this forum we discuss the future of Ren'Py, both bug fixes and longer-term development. Pre-releases are announced and discussed here.
Message
Author
User avatar
qirien
Miko-Class Veteran
Posts: 538
Joined: Thu Jul 31, 2003 10:06 pm
Organization: Metasepia Games
Deviantart: qirien
Github: qirien
itch: qirien
Location: New Mexico, USA
Discord: qirien
Contact:

DSE redone with screen language?

#1 Post by qirien » Wed Jul 02, 2014 2:30 pm

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.
Finished games:
Image
Image
Image

User avatar
runeraccoon
Veteran
Posts: 280
Joined: Sat Jul 13, 2013 5:17 pm
itch: runeraccoon
Contact:

Re: DSE redone with screen language?

#2 Post by runeraccoon » Sun Jul 06, 2014 12:22 pm

I'll be watching closely to the updated one~ :D

User avatar
PyTom
Ren'Py Creator
Posts: 15893
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: DSE redone with screen language?

#3 Post by PyTom » Sun Jul 06, 2014 12:26 pm

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.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
trooper6
Lemma-Class Veteran
Posts: 3712
Joined: Sat Jul 09, 2011 10:33 pm
Projects: A Close Shave
Location: Medford, MA
Contact:

Re: DSE redone with screen language?

#4 Post by trooper6 » Sun Jul 06, 2014 1:47 pm

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?
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?)
Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978

User avatar
PyTom
Ren'Py Creator
Posts: 15893
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: DSE redone with screen language?

#5 Post by PyTom » Sun Jul 06, 2014 1:48 pm

Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
qirien
Miko-Class Veteran
Posts: 538
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: DSE redone with screen language?

#6 Post by qirien » Fri Jul 11, 2014 10:52 pm

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!
Finished games:
Image
Image
Image

User avatar
runeraccoon
Veteran
Posts: 280
Joined: Sat Jul 13, 2013 5:17 pm
itch: runeraccoon
Contact:

Re: DSE redone with screen language?

#7 Post by runeraccoon » Mon Jul 21, 2014 8:27 am

Yay! We'll be waiting~

User avatar
sasquatchii
Miko-Class Veteran
Posts: 551
Joined: Fri Jul 04, 2014 7:48 am
Completed: A Day in the Life of a Slice of Bread
Deviantart: sasquatchix
Soundcloud: sasquatchii
itch: sasquatchii
Location: South Carolina
Contact:

Re: DSE redone with screen language?

#8 Post by sasquatchii » Tue Jul 22, 2014 12:17 am

Yes!! This would be awesome. I will be closely watching this thread for updates.
ImageImage

User avatar
qirien
Miko-Class Veteran
Posts: 538
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: DSE redone with screen language?

#9 Post by qirien » Tue Sep 16, 2014 3:57 pm

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!
Finished games:
Image
Image
Image

User avatar
Hazel-Bun
Eileen-Class Veteran
Posts: 1009
Joined: Sun Oct 28, 2012 6:03 pm
Completed: Sunrise: A Dieselpunk Fantasy & Ultramarine: A Seapunk Adventure
Organization: AURELIA LEO, LLC
Location: Louisville, Kentucky
Contact:

Re: DSE redone with screen language?

#10 Post by Hazel-Bun » Wed Sep 17, 2014 12:31 am

Thank you so much :D I'll try and test it out when I can!!

User avatar
qirien
Miko-Class Veteran
Posts: 538
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: DSE redone with screen language?

#11 Post by qirien » Mon Sep 22, 2014 2:07 pm

Thanks, I'd appreciate it! It seems to work just fine in my game so far.
Finished games:
Image
Image
Image

User avatar
noeinan
Eileen-Class Veteran
Posts: 1153
Joined: Sun Apr 04, 2010 10:10 pm
Projects: Ren'Py QuickStart, Crimson Rue
Organization: Statistically Unlikely Games
Deviantart: noeinan
Github: noeinan
Location: Washington State, USA
Contact:

Re: DSE redone with screen language?

#12 Post by noeinan » Thu Sep 25, 2014 12:03 am

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.
Image

Image
Image

User avatar
qirien
Miko-Class Veteran
Posts: 538
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: DSE redone with screen language?

#13 Post by qirien » Thu Sep 25, 2014 9:45 pm

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...
Finished games:
Image
Image
Image

User avatar
noeinan
Eileen-Class Veteran
Posts: 1153
Joined: Sun Apr 04, 2010 10:10 pm
Projects: Ren'Py QuickStart, Crimson Rue
Organization: Statistically Unlikely Games
Deviantart: noeinan
Github: noeinan
Location: Washington State, USA
Contact:

Re: DSE redone with screen language?

#14 Post by noeinan » Fri Sep 26, 2014 4:28 am

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.
Image

Image
Image

User avatar
qirien
Miko-Class Veteran
Posts: 538
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: DSE redone with screen language?

#15 Post by qirien » Tue Apr 07, 2015 11:56 pm

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 40 times
Finished games:
Image
Image
Image

Post Reply

Who is online

Users browsing this forum: No registered users