Lemma Soft Forums

Supporting creators of visual novels and story-based games since 2003.


Visit our new games list, blog aggregator, IRC, and wiki.
Activation problem? Email [email protected]
It is currently Sat May 18, 2013 1:17 pm

All times are UTC - 5 hours [ DST ]


Forum rules


Ask questions about one topic per thread, and use a descriptive subject. "NotImplemented error in script.rpy" is a good subject, "Tom's problems" is not. Remember to include all of traceback.txt or error.txt when reporting a problem, as well as the relevant lines of script. Use the [code] tag to format scripts.



Post new topic Reply to topic  [ 21 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Sun Jul 15, 2012 2:12 am 
Regular

Joined: Mon Mar 08, 2010 11:16 pm
Posts: 32
Completed: Wolfram's Birthday Present
Projects: BL Academy
I was reading the cookbook but couldn't really understand how to create a separate window for my character names. I don't think any instructions were given...just that it was recommended. I don't know if I posted in the right place, but please help! :(
And thanks in advance! A picture has been attached to clear up what I want. (SOLVED but NEW PROBLEM DOWN BELOW!)


Attachments:
name - Copy.png
name - Copy.png [ 27.66 KiB | Viewed 1142 times ]


Last edited by serene-artist on Sun Jul 15, 2012 3:10 am, edited 2 times in total.
Top
 Profile Send private message  
 
PostPosted: Sun Jul 15, 2012 2:18 am 
Miko-Class Veteran

Joined: Tue Jun 22, 2010 12:54 am
Posts: 572
Location: Zion Island, Solario
Completed: Christmas
Projects: [R-R]Christmas, (Un-named VN), I'M NOT A KILLER
You have to put "show_two_window = True" when you define the character

Code:
e = Character('Eileen'), show_two_window=True)

_________________
"You can't wait for inspiration. You have to go after it with a club." --Jack London
“One must be careful with words. Words turn probabilities into facts and by sheer force of definition translate tendencies into habits.” ― Fay Weldon
"A writer who waits for ideal conditions under which to work will die without putting a word on paper." -- E.B. WHITE
"I love writing but hate starting. The page is awfully white and it says, "You may have fooled some of the people some of the time but those days are over, giftless. I'm not your agent and I'm not your mommy. I'm a white piece of paper, you wanna dance with me?" And I really, really don't." -- Aaron Sorkin

My Completed Games: Christmas


Top
 Profile Send private message  
 
PostPosted: Sun Jul 15, 2012 2:37 am 
Regular

Joined: Mon Mar 08, 2010 11:16 pm
Posts: 32
Completed: Wolfram's Birthday Present
Projects: BL Academy
DragoonHP wrote:
You have to put "show_two_window = True" when you define the character

Code:
e = Character('Eileen'), show_two_window=True)


Thank you so much. No jokes, I was stuck on this for an hour (;n; )
PLEASE except my gratitude!!! Thanks for answering so fast too! You are my savior \(0u0\)


Top
 Profile Send private message  
 
PostPosted: Sun Jul 15, 2012 3:00 am 
Regular

Joined: Mon Mar 08, 2010 11:16 pm
Posts: 32
Completed: Wolfram's Birthday Present
Projects: BL Academy
A new problem has arrived :(
Sorry, does anyone know how to CENTER the name?
I tried using
style.say_who_window.xalign = 0.10 under options.rpy but it only moved the namebox rather than the font inside!!

Please and thanks in advance again!


Top
 Profile Send private message  
 
PostPosted: Sun Jul 15, 2012 4:32 am 
Miko-Class Veteran

Joined: Tue Jun 22, 2010 12:54 am
Posts: 572
Location: Zion Island, Solario
Completed: Christmas
Projects: [R-R]Christmas, (Un-named VN), I'M NOT A KILLER
Change
Code:
id "who"

to
Code:
id "who" xalign .5

in the else block in screen.rpy under screen say.

_________________
"You can't wait for inspiration. You have to go after it with a club." --Jack London
“One must be careful with words. Words turn probabilities into facts and by sheer force of definition translate tendencies into habits.” ― Fay Weldon
"A writer who waits for ideal conditions under which to work will die without putting a word on paper." -- E.B. WHITE
"I love writing but hate starting. The page is awfully white and it says, "You may have fooled some of the people some of the time but those days are over, giftless. I'm not your agent and I'm not your mommy. I'm a white piece of paper, you wanna dance with me?" And I really, really don't." -- Aaron Sorkin

My Completed Games: Christmas


Top
 Profile Send private message  
 
PostPosted: Sun Jul 15, 2012 3:47 pm 
Miko-Class Veteran
User avatar

Joined: Sun Mar 25, 2012 7:54 pm
Posts: 559
Projects: Club Shuffle
DragoonHP wrote:
Change
Code:
id "who"

to
Code:
id "who" xalign .5

in the else block in screen.rpy under screen say.


Huh, I tried this and it didn't change anything.

_________________
Image
Developer Blog for Club Shuffle - Follow and Share?
-Also! You can call me Crystal if you want.-


Top
 Profile Send private message  
 
PostPosted: Sun Jul 15, 2012 7:23 pm 
Miko-Class Veteran

Joined: Tue Jun 22, 2010 12:54 am
Posts: 572
Location: Zion Island, Solario
Completed: Christmas
Projects: [R-R]Christmas, (Un-named VN), I'M NOT A KILLER
I just tried it and it works for me

Code:
    else:

        # The two window variant.
        vbox:
            style "say_two_window_vbox"

            if who:           
                window:
                    style "say_who_window"

                    text who:
                        id "who" xalign .5

_________________
"You can't wait for inspiration. You have to go after it with a club." --Jack London
“One must be careful with words. Words turn probabilities into facts and by sheer force of definition translate tendencies into habits.” ― Fay Weldon
"A writer who waits for ideal conditions under which to work will die without putting a word on paper." -- E.B. WHITE
"I love writing but hate starting. The page is awfully white and it says, "You may have fooled some of the people some of the time but those days are over, giftless. I'm not your agent and I'm not your mommy. I'm a white piece of paper, you wanna dance with me?" And I really, really don't." -- Aaron Sorkin

My Completed Games: Christmas


Top
 Profile Send private message  
 
PostPosted: Sun Jul 15, 2012 10:43 pm 
Miko-Class Veteran
User avatar

Joined: Sun Mar 25, 2012 7:54 pm
Posts: 559
Projects: Club Shuffle
Image

This is what my code looks like, but it isn't working.

_________________
Image
Developer Blog for Club Shuffle - Follow and Share?
-Also! You can call me Crystal if you want.-


Top
 Profile Send private message  
 
PostPosted: Sun Jul 15, 2012 11:05 pm 
Miko-Class Veteran

Joined: Tue Jun 22, 2010 12:54 am
Posts: 572
Location: Zion Island, Solario
Completed: Christmas
Projects: [R-R]Christmas, (Un-named VN), I'M NOT A KILLER
This is how my output looks

And it might be a silly question, but you are using the show_two_window variant right?


Attachments:
Untitled.png
Untitled.png [ 52.04 KiB | Viewed 1086 times ]

_________________
"You can't wait for inspiration. You have to go after it with a club." --Jack London
“One must be careful with words. Words turn probabilities into facts and by sheer force of definition translate tendencies into habits.” ― Fay Weldon
"A writer who waits for ideal conditions under which to work will die without putting a word on paper." -- E.B. WHITE
"I love writing but hate starting. The page is awfully white and it says, "You may have fooled some of the people some of the time but those days are over, giftless. I'm not your agent and I'm not your mommy. I'm a white piece of paper, you wanna dance with me?" And I really, really don't." -- Aaron Sorkin

My Completed Games: Christmas
Top
 Profile Send private message  
 
PostPosted: Sun Jul 15, 2012 11:11 pm 
Miko-Class Veteran
User avatar

Joined: Sun Mar 25, 2012 7:54 pm
Posts: 559
Projects: Club Shuffle
Well...that just made things worse. xD

Image

_________________
Image
Developer Blog for Club Shuffle - Follow and Share?
-Also! You can call me Crystal if you want.-


Top
 Profile Send private message  
 
PostPosted: Sun Jul 15, 2012 11:17 pm 
Miko-Class Veteran

Joined: Tue Jun 22, 2010 12:54 am
Posts: 572
Location: Zion Island, Solario
Completed: Christmas
Projects: [R-R]Christmas, (Un-named VN), I'M NOT A KILLER
(you aren't using the two_windows_variant, right?)

If yes, then
Code:
background None
yoffset -10
xoffset 12
text who id "who" xalign .5

should work for you.

If it doesn't, then I have no idea where it is going wrong.

_________________
"You can't wait for inspiration. You have to go after it with a club." --Jack London
“One must be careful with words. Words turn probabilities into facts and by sheer force of definition translate tendencies into habits.” ― Fay Weldon
"A writer who waits for ideal conditions under which to work will die without putting a word on paper." -- E.B. WHITE
"I love writing but hate starting. The page is awfully white and it says, "You may have fooled some of the people some of the time but those days are over, giftless. I'm not your agent and I'm not your mommy. I'm a white piece of paper, you wanna dance with me?" And I really, really don't." -- Aaron Sorkin

My Completed Games: Christmas


Top
 Profile Send private message  
 
PostPosted: Sun Jul 15, 2012 11:23 pm 
Miko-Class Veteran
User avatar

Joined: Sun Mar 25, 2012 7:54 pm
Posts: 559
Projects: Club Shuffle
Yeah, it just made things all crazy like the screen cap above. It isn't that big of a deal, so I won't use it.

Thanks for trying.

_________________
Image
Developer Blog for Club Shuffle - Follow and Share?
-Also! You can call me Crystal if you want.-


Top
 Profile Send private message  
 
PostPosted: Mon Jul 16, 2012 12:52 am 
Miko-Class Veteran

Joined: Tue Jun 22, 2010 12:54 am
Posts: 572
Location: Zion Island, Solario
Completed: Christmas
Projects: [R-R]Christmas, (Un-named VN), I'M NOT A KILLER
Okay found out why it's not showing up correctly for you. (Because of frame; see the size of frame depends upon the space the text takes, so trying to center the text is all but futile in it.

So instead of trying to center (or reposition) the text, try to reposition the frame.

Code:
            if who:
                frame:
                    background None
                    yoffset -10
                    xoffset 12
                    xalign 0.5 ?# Change it to fit your needs
                    text who id "who"

_________________
"You can't wait for inspiration. You have to go after it with a club." --Jack London
“One must be careful with words. Words turn probabilities into facts and by sheer force of definition translate tendencies into habits.” ― Fay Weldon
"A writer who waits for ideal conditions under which to work will die without putting a word on paper." -- E.B. WHITE
"I love writing but hate starting. The page is awfully white and it says, "You may have fooled some of the people some of the time but those days are over, giftless. I'm not your agent and I'm not your mommy. I'm a white piece of paper, you wanna dance with me?" And I really, really don't." -- Aaron Sorkin

My Completed Games: Christmas


Top
 Profile Send private message  
 
PostPosted: Mon Jul 16, 2012 1:07 am 
Miko-Class Veteran
User avatar

Joined: Sun Mar 25, 2012 7:54 pm
Posts: 559
Projects: Club Shuffle
Hmm...it is making the names jump around each time the screen changes.

_________________
Image
Developer Blog for Club Shuffle - Follow and Share?
-Also! You can call me Crystal if you want.-


Top
 Profile Send private message  
 
PostPosted: Mon Jul 16, 2012 1:10 am 
Miko-Class Veteran

Joined: Tue Jun 22, 2010 12:54 am
Posts: 572
Location: Zion Island, Solario
Completed: Christmas
Projects: [R-R]Christmas, (Un-named VN), I'M NOT A KILLER
Jump around?

_________________
"You can't wait for inspiration. You have to go after it with a club." --Jack London
“One must be careful with words. Words turn probabilities into facts and by sheer force of definition translate tendencies into habits.” ― Fay Weldon
"A writer who waits for ideal conditions under which to work will die without putting a word on paper." -- E.B. WHITE
"I love writing but hate starting. The page is awfully white and it says, "You may have fooled some of the people some of the time but those days are over, giftless. I'm not your agent and I'm not your mommy. I'm a white piece of paper, you wanna dance with me?" And I really, really don't." -- Aaron Sorkin

My Completed Games: Christmas


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 21 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: Gear, RangerDanger


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Protected by Anti-Spam ACP
Powered by phpBB® Forum Software © phpBB Group