Dating Sim Engine (DSE) 4.0! 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
TheChatotMaestro
Regular
Posts: 59
Joined: Mon Jul 31, 2017 8:33 am
Deviantart: LedianWithACamera
Contact:

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

#106 Post by TheChatotMaestro » Mon Sep 11, 2017 1:22 pm

Is there any fix for a problem I'm encountering where every time I use the event.choose_one, no matter how many times I go to the next day, the same event from the list always happens?

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

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

#107 Post by qirien » Mon Sep 18, 2017 1:55 pm

TheChatotMaestro, can you post the code you are using? In the sample code in dse-events.rpy, the "Cut Class" event uses this and it seems to be pretty random to me. Maybe taking a look at how it is used in there will give you some direction on how to use it in your game.
Finished games:
Image
Image
Image
In progress: Our Personal Space 2: Space to Grow

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

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

#108 Post by qirien » Mon Sep 18, 2017 1:56 pm

I just posted a new version of the DSE that uses the new GUI. I also renamed the files so it was obvious which ones you need and which ones you don't. Please try it out and let me know if you encounter any problems!

Because of this renaming, you may need to remove all the old .rpyc files or you may get an error.

https://github.com/renpy/dse/releases/tag/4.0
Finished games:
Image
Image
Image
In progress: Our Personal Space 2: Space to Grow

TheChatotMaestro
Regular
Posts: 59
Joined: Mon Jul 31, 2017 8:33 am
Deviantart: LedianWithACamera
Contact:

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

#109 Post by TheChatotMaestro » Sun Sep 24, 2017 2:36 pm

Thank you so much, that fixed everything, even a persistent problem when it would revert back to one background. This is amazing! :D

drakonrenders
Newbie
Posts: 3
Joined: Wed Jul 26, 2017 1:11 am
Deviantart: drakonrenders
Contact:

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

#110 Post by drakonrenders » Sun Oct 08, 2017 4:15 pm

Ok, I'm having what I assume is a silly easy problem to fix, but I haven't been able to figure out where I've gone wrong (I am an absolute noob to programming, so that's not helping). I've got my8 game up and running to the point that the day planner comes up and lets the user choose their activities for the day, but when you finish planning and run it I am getting an error that "__dse_stats" is not defined. I can't figure out how to define it. Here is my traceback log:

I'm sorry, but an uncaught exception occurred.

While running game code:
File "renpy/common/00start.rpy", line 176, in script call
call _start_store
File "renpy/common/00start.rpy", line 128, in script
python hide:
File "game/dse-stats.rpy", line 38, in normalize_stats
for s in _dse_stats:
NameError: global name '_dse_stats' is not defined

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

Full traceback:
File "X:\Data\Renpy Dev Kit\renpy-6.99.12.4-sdk\renpy\bootstrap.py", line 295, in bootstrap
renpy.main.main()
File "X:\Data\Renpy Dev Kit\renpy-6.99.12.4-sdk\renpy\main.py", line 487, in main
run(restart)
File "X:\Data\Renpy Dev Kit\renpy-6.99.12.4-sdk\renpy\main.py", line 147, in run
renpy.execution.run_context(True)
File "X:\Data\Renpy Dev Kit\renpy-6.99.12.4-sdk\renpy\execution.py", line 761, in run_context
context.run()
File "renpy/common/00start.rpy", line 176, in script call
call _start_store
File "renpy/common/00start.rpy", line 128, in script
python hide:
File "X:\Data\Renpy Dev Kit\renpy-6.99.12.4-sdk\renpy\ast.py", line 819, in execute
i()
File "game/dse-stats.rpy", line 38, in normalize_stats
for s in _dse_stats:
NameError: global name '_dse_stats' is not defined

Windows-8-6.2.9200
Ren'Py 6.99.12.4.2187

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

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

#111 Post by qirien » Mon Oct 09, 2017 1:51 pm

Huh, I haven't seen that error before. Do you still have this statement on line 9 of dse-stats.rpy?

Code: Select all

    __dse_stats = [ ]
Finished games:
Image
Image
Image
In progress: Our Personal Space 2: Space to Grow

drakonrenders
Newbie
Posts: 3
Joined: Wed Jul 26, 2017 1:11 am
Deviantart: drakonrenders
Contact:

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

#112 Post by drakonrenders » Fri Oct 13, 2017 1:08 am

Yep, here is line 9: __dse_stats = [ ]
I'm still new enough at this I don't even know what to show to help figure out where the problem is, I'll be happy to post anything that you think will help

TheChatotMaestro
Regular
Posts: 59
Joined: Mon Jul 31, 2017 8:33 am
Deviantart: LedianWithACamera
Contact:

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

#113 Post by TheChatotMaestro » Sat Oct 14, 2017 4:22 pm

Looks like one has two underscores and the other has one underscore, in the forum post at least. Would that mess anything up?

drakonrenders
Newbie
Posts: 3
Joined: Wed Jul 26, 2017 1:11 am
Deviantart: drakonrenders
Contact:

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

#114 Post by drakonrenders » Sat Oct 14, 2017 9:02 pm

When I take out the extra underscore, it throws a similar error, but pointing to a different name:
While running game code:
File "game/script.rpy", line 45, in script
init python:
File "game/script.rpy", line 46, in <module>
register_stat("Strength", "strength", 10, 100)
File "game/dse-stats.rpy", line 36, in register_stat
__dse_stats.append(__Stat(name, var, default, max))
NameError: global name '_m1_dse0x2dstats__dse_stats' is not defined

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

Full traceback:
File "X:\Data\Renpy Dev Kit\renpy-6.99.12.4-sdk\renpy\bootstrap.py", line 295, in bootstrap
renpy.main.main()
File "X:\Data\Renpy Dev Kit\renpy-6.99.12.4-sdk\renpy\main.py", line 419, in main
game.context().run(node)
File "game/script.rpy", line 45, in script
init python:
File "X:\Data\Renpy Dev Kit\renpy-6.99.12.4-sdk\renpy\ast.py", line 814, in execute
renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
File "X:\Data\Renpy Dev Kit\renpy-6.99.12.4-sdk\renpy\python.py", line 1719, in py_exec_bytecode
exec bytecode in globals, locals
File "game/script.rpy", line 46, in <module>
register_stat("Strength", "strength", 10, 100)
File "game/dse-stats.rpy", line 36, in register_stat
__dse_stats.append(__Stat(name, var, default, max))
NameError: global name '_m1_dse0x2dstats__dse_stats' is not defined

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

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

#115 Post by qirien » Mon Oct 16, 2017 1:20 pm

Yeah, it's not an extra underscore; there's supposed to be two of them.

If you can zip up your project files and PM me a link or something, I can take a look at it. :-)
Finished games:
Image
Image
Image
In progress: Our Personal Space 2: Space to Grow

Post Reply

Who is online

Users browsing this forum: No registered users