Adding Dialogue History to old project?

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
Blake337
Newbie
Posts: 24
Joined: Fri Sep 25, 2015 6:37 am
Skype: blake_mj
Contact:

Adding Dialogue History to old project?

#1 Post by Blake337 »

Hi all,

I'm currently adding the finishing touches to a game I started in 2015. I wanted to add a Text History function and disable the rollback (I don't like the player being able to go back in time, so to say.)

At first I found a cookbook recipe that I pasted into the project but as we all know that breaks the NVL parts. Then I noticed the newest Renpy version already comes with a really cool history function. How would I go around adding that to my old project? I'd rather not replace the whole "screens.rpy" file.

On a side note, I also noticed my project has no "gui.rpy" file at all. I don't remember having deleted it, is it a file that was added after my project was created, or was it always an optional file?

I tried to only copy paste the history window into my screens.rpy file I get all kinds of errors, since the files are probably wildly different.

Any help on this is appreciated.

User avatar
Andredron
Miko-Class Veteran
Posts: 718
Joined: Thu Dec 28, 2017 2:37 pm
Location: Russia
Contact:

Re: Adding Dialogue History to old project?

#2 Post by Andredron »

1)history old renpy
https://www.renpy.org/wiki/renpy/doc/co ... xt_History

2) rollback close

menu:
.... "1variant":
........$ renpy.fix_rollback()
.... "2 variant":
........$ renpy.fix_rollback()

Blake337
Newbie
Posts: 24
Joined: Fri Sep 25, 2015 6:37 am
Skype: blake_mj
Contact:

Re: Adding Dialogue History to old project?

#3 Post by Blake337 »

Andredron wrote: Sun Feb 16, 2020 2:57 am 1)history old renpy
https://www.renpy.org/wiki/renpy/doc/co ... xt_History

2) rollback close

menu:
.... "1variant":
........$ renpy.fix_rollback()
.... "2 variant":
........$ renpy.fix_rollback()
Thanks for replying.

Unfortunately I have already tried that, and it works, but it breaks NVL. With that file in the project, NVL messages appear one at a time instead of until it reaches NVL clear. I don't know whether there's a workaround for that.

Not sure what you mean with the second part (rollback close)

User avatar
Andredron
Miko-Class Veteran
Posts: 718
Joined: Thu Dec 28, 2017 2:37 pm
Location: Russia
Contact:

Re: Adding Dialogue History to old project?

#4 Post by Andredron »

2 answer to this sentence:

.... disable the rollback (I don't like the player being able to go back in time, so to say


In the visual novel "myth" is written in old renpу. Copy the history code from there

Post Reply

Who is online

Users browsing this forum: piinkpuddiin