Table of Contents

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.
Message
Author
Nadare Aikami
Newbie
Posts: 10
Joined: Mon May 06, 2019 8:35 am
Contact:

Table of Contents

#1 Post by Nadare Aikami » Mon May 06, 2019 8:42 am

Hey everyone, so I was wondering something...how do I create an unlockable Table of Contents in my visual novel? Like I have it organized in terms of Chapters. I want to make it to where every time you complete a certain Chapter for a route, that Chapter will be unlocked in the Table of Contents in the Main Menu (where you can choose to load your game or start a new game).

Is this even possible to accomplish in Ren'Py?

User avatar
Saa
Regular
Posts: 32
Joined: Tue Aug 20, 2013 7:11 pm
Tumblr: nipahgirl
Contact:

Re: Table of Contents

#2 Post by Saa » Mon May 06, 2019 9:36 am

Does this work?

Nadare Aikami
Newbie
Posts: 10
Joined: Mon May 06, 2019 8:35 am
Contact:

Re: Table of Contents

#3 Post by Nadare Aikami » Mon May 06, 2019 10:40 am

Saa wrote:
Mon May 06, 2019 9:36 am
Does this work?
hey so im working on trying this method out that you showed me in the hyperlink. how do i make imagemap png?
like what do you think is the best method to make the ground, hover, and idle png? for showing the text (Each Chapter in the Table of Contents).

I provided an attachment of what im referring to.
Capture.JPG

User avatar
Saa
Regular
Posts: 32
Joined: Tue Aug 20, 2013 7:11 pm
Tumblr: nipahgirl
Contact:

Re: Table of Contents

#4 Post by Saa » Mon May 06, 2019 10:51 am

I'm not sure what you mean, but I'd use Photoshop to make the ground image, save it for web as ground.png, use layer styles to change the text in the still-open image, save it for web as hover.png, then change the layer styles to make the idle image and save it for web as idle.png.

It should be possible to make buttons instead of an imagemap, but it'd be harder to make fancy effects like in the images.

Nadare Aikami
Newbie
Posts: 10
Joined: Mon May 06, 2019 8:35 am
Contact:

Re: Table of Contents

#5 Post by Nadare Aikami » Mon May 06, 2019 10:59 am

Saa wrote:
Mon May 06, 2019 10:51 am
I'm not sure what you mean, but I'd use Photoshop to make the ground image, save it for web as ground.png, use layer styles to change the text in the still-open image, save it for web as hover.png, then change the layer styles to make the idle image and save it for web as idle.png.

It should be possible to make buttons instead of an imagemap, but it'd be harder to make fancy effects like in the images.
I'm sorry, but i'm completely a noob at knowing how to use layer styles. My apologies, but would you mind teaching me or showing me a tutorial or something? :oops:

User avatar
Saa
Regular
Posts: 32
Joined: Tue Aug 20, 2013 7:11 pm
Tumblr: nipahgirl
Contact:

Re: Table of Contents

#6 Post by Saa » Mon May 06, 2019 11:17 am

Sure! I hope this one is good enough? In the imagemap from your screenshot, it looks like Drop Shadow and Outer Glow were used. The default Photoshop values should be good enough.

Nadare Aikami
Newbie
Posts: 10
Joined: Mon May 06, 2019 8:35 am
Contact:

Re: Table of Contents

#7 Post by Nadare Aikami » Mon May 06, 2019 11:59 am

Saa wrote:
Mon May 06, 2019 11:17 am
Sure! I hope this one is good enough? In the imagemap from your screenshot, it looks like Drop Shadow and Outer Glow were used. The default Photoshop values should be good enough.
Oh yeah, I remember learning that in my Digital Art class in college. The fx, drop shadow, outerglow, and opacity.

So when I make the PNG, would it be best to just draw the words "Chapter 1" or find a pic on google that says it? What do you recommend? Because I think I have enough art skill to draw words in Photoshop :lol:

User avatar
Saa
Regular
Posts: 32
Joined: Tue Aug 20, 2013 7:11 pm
Tumblr: nipahgirl
Contact:

Re: Table of Contents

#8 Post by Saa » Mon May 06, 2019 2:21 pm

You could always use the text tool to write in a nice font, but if you think it'd be prettier if you drew it, that would be very cool to see!

Nadare Aikami
Newbie
Posts: 10
Joined: Mon May 06, 2019 8:35 am
Contact:

Re: Table of Contents

#9 Post by Nadare Aikami » Mon May 06, 2019 3:58 pm

Saa wrote:
Mon May 06, 2019 2:21 pm
You could always use the text tool to write in a nice font, but if you think it'd be prettier if you drew it, that would be very cool to see!
Yeah, my hand drawing isn't exactly pretty, but it's not sloppy either. :sweat_smile: So is the text tool in Photoshop?

User avatar
Saa
Regular
Posts: 32
Joined: Tue Aug 20, 2013 7:11 pm
Tumblr: nipahgirl
Contact:

Re: Table of Contents

#10 Post by Saa » Mon May 06, 2019 5:22 pm

Yeah, it's the T button in the left column, just click it and then click the image to write in it.

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3636
Joined: Mon Dec 14, 2015 5:05 am
Location: Your monitor
Contact:

Re: Table of Contents

#11 Post by Imperf3kt » Mon May 06, 2019 6:24 pm

Be sure to check the license of a font before you use it.
https://en.wikipedia.org/wiki/Intellect ... _typefaces

You wouldn't want a nasty Cease and Desist notice over something as simple as a font.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor
Free Android GUI - Updated occasionally
Twitter
Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py

Nadare Aikami
Newbie
Posts: 10
Joined: Mon May 06, 2019 8:35 am
Contact:

Re: Table of Contents

#12 Post by Nadare Aikami » Wed May 08, 2019 1:05 pm

Also, according to the Page on how I add the text in the Table of Contents, how do I know what the coordinates are?

Nadare Aikami
Newbie
Posts: 10
Joined: Mon May 06, 2019 8:35 am
Contact:

Re: Table of Contents

#13 Post by Nadare Aikami » Thu May 09, 2019 10:26 am

allow me to rephrase what im asking. I need to know what to make as hotspots for each chapter. How do I know what their hotspots are?

User avatar
Saa
Regular
Posts: 32
Joined: Tue Aug 20, 2013 7:11 pm
Tumblr: nipahgirl
Contact:

Re: Table of Contents

#14 Post by Saa » Thu May 09, 2019 10:35 am


Nadare Aikami
Newbie
Posts: 10
Joined: Mon May 06, 2019 8:35 am
Contact:

Re: Table of Contents

#15 Post by Nadare Aikami » Thu May 09, 2019 12:08 pm

Saa wrote:
Thu May 09, 2019 10:35 am
Hope this helps!
I appreciate the help! it really did help me out! but one issue I'm having is getting the textbutton to open the Table of Contents. I click on the textbutton in the main menu, but it shows this error message:

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "renpy/common/00start.rpy", line 264, in script
    python:
  File "renpy/common/00start.rpy", line 268, in <module>
    renpy.call_in_new_context("_main_menu")
  File "game/screens.rpy", line 305, in execute
    screen chapter_list:
  File "game/screens.rpy", line 305, in execute
    screen chapter_list:
  File "game/screens.rpy", line 313, in execute
    imagemap:
  File "game/screens.rpy", line 318, in execute
    if ch01:
NameError: name 'ch01' is not defined
But this is what it looks like in my Screens for what I made for the Table of Contents:

Code: Select all

screen chapter_list:
    tag menu 
    
    add "Logo background.jpg" 

    # I'd rather not bother making navigation buttons again, so I called the navigation buttons I already had. 
    use navigation  

    imagemap:
        ground "ui/LDC ground text.png"
        idle "ui/LDC idle text.png"
        hover "ui/LDC hover text.png"
        
        if ch01:
            hotspot (53, 65, 513, 175) action ShowMenu("chapter1") activate_sound "sfx/click.wav"
        if ch02:
            hotspot (30, 218, 544, 153) action ShowMenu("chapter2") activate_sound "sfx/click.wav"
        if ch03:
            hotspot (38, 360, 539, 125) action ShowMenu("chapter3") activate_sound "sfx/click.wav"    
        if ch04:
            hotspot (37, 475, 534, 117) action ShowMenu("chapter4") activate_sound "sfx/click.wav"
        if ch05:
            hotspot (38, 592, 516, 128) action ShowMenu("chapter5") activate_sound "sfx/click.wav"
        if ch06:
            hotspot (643, 72, 560, 170) action ShowMenu("chapter6") activate_sound "sfx/click.wav"
        if ch07:
            hotspot (645, 244, 572, 140) action ShowMenu("chapter7") activate_sound "sfx/click.wav"
        if ch08:
            hotspot (644, 389, 588, 119) action ShowMenu("chapter8") activate_sound "sfx/click.wav"
        if ch09:
            hotspot (663, 507, 526, 117) action ShowMenu("chapter9") activate_sound "sfx/click.wav"
        if ch10:
            hotspot (680, 617, 566, 103) action ShowMenu("chapter10") activate_sound "sfx/click.wav"

Post Reply

Who is online

Users browsing this forum: Bing [Bot]