Jump to content
Kayzee

Word Wrapping Message Boxes

Recommended Posts

Yeah, one of the reasons I made this is because I like to bump the resolution up to 640x480 and the preview becomes kinda useless... unless that is what that second arrow is for. I donno. Even so, I still maintain this is something they should have coded into the original RPG Maker VX Ace code.

Share this post


Link to post
Share on other sites

Hey there folks.

I'm new with rpg maker vx ace and it's the first time i'm trying custom scripts. I would like to try this word wraping script but when i launch my game for a test, it says :
 

Line 74: NameError occured

undefined method `process_character` for class `Window_Base`

 

I have no idea what to do could someone help me up ?

Line 74 is : 
  alias_method :process_character_kz_window_base, :process_character

Share this post


Link to post
Share on other sites

Are you sure your using RPG Maker VX ace? That is a built in method... maybe your not putting the script bellow the materials thingy in he script list?

Share this post


Link to post
Share on other sites

It doesn't seem to process the new escape characters though, is this a bug? I've put a breakpoint in your "process_escape_character" but it's never triggered. I try different escape characters, and nothing happens.

Share this post


Link to post
Share on other sites

What do you mean by breakpoint? You mean like raising an exception? Anyway, it works for me. Are you using any other scripts that add escape characters? Maybe you need to put my script under them. Also it should be noted that a rather unfortunate but kind of unavoidable side effect of how escape sequences work is that you can't follow them with any letters. So "Blah\br Blah" will work "Blah\brBlah" will not. I made the collapsing whitespace mostly to get around some of that problem.

Share this post


Link to post
Share on other sites

So I have an issue that might be due to the combination of this script and EST Notebook System, possibly with the factor of a custom font thrown in.

 

When I go through the entry in the journal that has text with lines that are automatically broken down, the lines that are broken down with actual linebreaks appear in an incorrect position, basically overlaying the text. This is what it looks like:

post-52150-0-93825100-1420301723_thumb.png

 

The text (stuff I copied from one of the tabs I had open to test) is supposed to be this:

 

 

By the end of this guide you will have a simple, working RPG with dialogue, quests, loot and fancy pictures! This is a bare bones guide, designed to give your first hands-on experience with creating just the essentials of an RPG game. The best way to learn is to DO. This guide will help you DO. You'll learn: 
 
How to create an intro screen. 
How to make a character creation screen. 
How to use the map system. 
How to make NPCs. 
How to create dialogue. 
How to create a quest. 
How to create a combat scene. 
How to create a shop.
 
YouTube Sample of this Game: http;//youtu.be/Z8Tmoo5Z3Rk

 

 

Share this post


Link to post
Share on other sites

So I have an issue that might be due to the combination of this script and EST Notebook System, possibly with the factor of a custom font thrown in.

...

 

It looks like that script uses it's own code for drawing the text that is incompatible with my word wrapping script. It draws text line by line and processes it differently so word wrapping doesn’t work.

Share this post


Link to post
Share on other sites

 

So I have an issue that might be due to the combination of this script and EST Notebook System, possibly with the factor of a custom font thrown in.

...

It looks like that script uses it's own code for drawing the text that is incompatible with my word wrapping script. It draws text line by line and processes it differently so word wrapping doesn’t work.

But it does though. I mean, WW clearly affects the text. The commands like /nw in the text file do affect the way it's displayed and if I delete WW script it's displayed differently (without automatic line breaks).

 

So is there a way to make them compatible (or I should say "can you think of a way")? I mean, I could just use /nw for the text files, but your plugin is extremely useful since manually putting linebreaks is just silly for any modern product.

Edited by Shooter__Andy

Share this post


Link to post
Share on other sites

I can't think of any way to fix it without rewriting large chunks of the notebook script, and probably dropping lots of features like alignment.

 

Edit: There may be other scripts that do something similar that may work though! I wish I could help you more in this regard.

Edited by KilloZapit

Share this post


Link to post
Share on other sites

Ok so this is kinda weird I have wordwrapper set to true and whitespace sent to true the collapse is false. When I use \br it creates a space before the next line for example:

\c[3]Dad\c[0]\br

Oh there you are \n[1].

 

Results in:

 

Dad

 Oh there you are Player1.

Share this post


Link to post
Share on other sites

That's because whitespace converts the newline you put after the /br into a space. You should set collapse to true if you want to use /br like that. Actually you pretty much have to because of how the control codes work unfortunately.

Share this post


Link to post
Share on other sites

@shooter_ andy: Since the other script is my script... I'm going to weight in...

I think you don't need /nw. You could just press enter and write it to next line in txt files. And it should write below it. Bit inconvinience but that means full compatibility with any font size / add any pictures.

And killozappit is right. I do use my own way to write the text. Which can draw escape codes + alignment (by default... if you use draw_text_ex, you cannot align the text to center but you can draw icon, etc... If you use regular draw_text you can align to center but you cannot draw icon, etc...).

Edited by estriole

Share this post


Link to post
Share on other sites

Ok I solved that little problem by setting the collapse to true and when it has processed that word then set it to default again. I have a request though. When there is too much text in a text box it will create a new message window, that means if all your text boxes has too much text in them then every second text box will be like 3 words. To solve this you might put the text into the next text box instead of creating a new one, then that text will push the message box's text out and so on and more text will hoard up, then at last when the text session is done for that face you can put the last text into new text boxes. That would be pretty awesome.

Share this post


Link to post
Share on other sites

I am not sure what you mean... you mean putting it in the next message event? Sorry I haven't been able to use RPG Maker VX Ace for a while (since my harddrive crashed and I basically had to install Linux because I use a refurbished laptop and it didn't come with a windows disc), but I thought you could mark message events as continuous and combine a bunch into one message string already. Anyway, I purposely avoid doing too much manipulation of the window or event system for compatibility reasons, I think that might be the kind of thing that is best done in another script.

Share this post


Link to post
Share on other sites

I mean that you could take the overflown text from the previous text box, then put it in the current text box instead of creating a new one for example

 

This:

<Text box 1>

Text text text text

text text text text

text text text text

 

<New Text box>

text text text

 

<Text box 2>

Text text text...

 

Becomes this:

 

<Text box 1>

Text text text text

text text text text

text text text text

 

<Text box 2>

text text text

Text text text...

Share this post


Link to post
Share on other sites

Yeah, I thought there was a way to combine consecutive message boxes already... Maybe it's a side effect of this script that I am thinking about. That script certainly relies on consecutive message boxes to do large message boxes. Anyway like I said I can't really work on it right now myself and I think that would fall outside the scope of my script.

Share this post


Link to post
Share on other sites

Thank you so much for this. Just starting out with my first project which is an interactive version of a novel so the text is heavy, and I was tearing my hair out because of those arrows which do absolutely nothing. You are amazing!

Share this post


Link to post
Share on other sites

Aww shucks... *sprinkles fairy dust on you*

 

Those arrows are actually rather loose alignment guides more then anything else, and are completely useless if you change the resolution.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×