Narration and dialog text not lining up correctly. [SOLVED]

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
User avatar
sheetcakeghost
Veteran
Posts: 382
Joined: Sat Sep 19, 2009 9:19 pm
Contact:

Narration and dialog text not lining up correctly. [SOLVED]

#1 Post by sheetcakeghost » Wed Jan 20, 2016 11:15 pm

So here's my trouble.

Image
Image

SOLUTION: Turns out it was due to my recent addition of the DSE framework. In the events.rpy it defined this character
"$ narrator = Character(' ')". Removing that fixes the issue.

They're using the same padding (style.window.top_margin = 17) and changing that number moves both of those lines.

Now, as far as I can tell, I have nothing else in my code that changes how those texts are lined up. Though I have recently added in the DSE framework to the VN, and before this the GUI was perfect. (Granted I accidentally overwrote my options.rpy with the ones from DSE forcing me to gut the day out of date backup and essentially start all over again with the GUI.)

You can read my option.rpy code below, but be warned that it's a big fat mess of hashtags.

Code: Select all

UPDATE: The code wasn't relevant in the slightest so I've removed it for the sake of the sanity of future troubleshooters.
Last edited by sheetcakeghost on Thu Jan 21, 2016 1:53 pm, edited 2 times in total.

philat
Eileen-Class Veteran
Posts: 1853
Joined: Wed Dec 04, 2013 12:33 pm
Contact:

Re: Narration text and dialog text not lining up correctly.

#2 Post by philat » Thu Jan 21, 2016 4:13 am

1. It would've been more helpful to copy/paste the relevant parts -- it's almost impossible to read through the wall of code, most of which is commented out or irrelevant.

2. You have several properties defined twice (such as style.window.background), which should probably be fixed.

3. Margin and padding are not the same thing.

4. Whatever the source of the problem, it's not in the code you posted. Something is pushing the text down for narrations, but not when there is a named speaker. It might be in the say screen.

User avatar
mobychan
Veteran
Posts: 275
Joined: Fri Apr 24, 2015 6:31 am
Projects: The Chosen - Sakura Pink & Gentian Blue
Organization: Foresoft
Location: Germany
Contact:

Re: Narration text and dialog text not lining up correctly.

#3 Post by mobychan » Thu Jan 21, 2016 4:38 am

Just a simple guess, the textbox including the namebox is one image you give to the character you create?
if one of those images is bigger and they use the same style it's only natural for the text to be "misplaced"

User avatar
sheetcakeghost
Veteran
Posts: 382
Joined: Sat Sep 19, 2009 9:19 pm
Contact:

Re: Narration text and dialog text not lining up correctly.

#4 Post by sheetcakeghost » Thu Jan 21, 2016 1:29 pm

Thanks for the replies so far! I know my post is frustrating, I was very frustrated when I posted it. I'd lost an entire day's work and was ripping my hair out trying to figure this problem out. I could have been way less rude in it, so I apologize.


@philat
I'm glad to know it's not in the options.rpy so I'll look in screens next. I was driving myself nuts trying to see if I could find the problem in options just assuming it had to be in it seeing as that was the only file overwritten.

@mobychan
Just one of the images? Hmm, well all of the side images are the same size and I define the name box with show_two_window=True. So I'm not sure that's it either. (Unless you meant something else?)


Well, thanks again for the help, I honestly do feel loads better knowing I'm not just crazy and missing something obvious. I'll probably fix the issue by starting a new file and selectively copy/pasting the code in until I find the culprit. If I do I'll post it here so anyone with the same problem can find a solution.

UPDATE: FOUND IT! It was this single line of code "$ narrator = Character(' ')" in the events.rpy from the DSE framework.

Good GOD that was frustrating and simple. I feel dumb for not thinking to check it before.

Post Reply

Who is online

Users browsing this forum: Google [Bot], zyric