jjbones123

Veteran
Veteran
Joined
Aug 2, 2016
Messages
54
Reaction score
31
First Language
English
Primarily Uses
N/A
I tried searching the forums to see if anyone has similar problems and while I couldn't find anything, that maybe cause i'm not entirely sure how to word my question. It's also been awhile since i've posted a question on the RPG maker forums and it seems to have changed somewhat. So please forgive me if I post this somewhere I shouldn't. Anyway, here's my question:

I'm trying to make the text boxes/windows in my game resemble pieces of lined paper. But as you can see, the lines in the middle of the text box don't align with the lines at the two edges of the text box. I've tried fixing the problem myself, but I can't. I've enclosed an image which will hopefully explain what i'm trying to say better. In short: Is it possible to make the lines on the paper aligned? And if so, how??

Whilst i'm here, I would like to ask about the font as well; why is it so blurry? I use a custom script for the font in the game:
Font.default_name = ["Font here"]
Font.default_size = 20
Font.default_bold = false
Tried fixing this myself to, but I can't get it to stop looking blurry. I'm sorry for sounding so needy, but can anyone please help me?

Paper examples.png
 

Heirukichi

Veteran
Veteran
Joined
Sep 24, 2015
Messages
1,434
Reaction score
604
First Language
Italian
Primarily Uses
RMVXA
First of all it is really hard to imagine what to do if we don't know which script you are using. Try to post it so we can better understand what is causing your problem.

That said your problem should be quite easy to solve, at least without the custom script. For what I can se you should just create your custom window file using those pieces of lined paper. You can wither calculte how big the lines are and adapt your font to their size, or you can just adapt the image to your font, that is entirely up to you.

Once you do this you should also calculate how many pixels you have in the left margin. The default padding for RPG Maker VX Ace is 12 pixels so if you can adjust your image to have a left margin of 12 pixels that should probably be the easiest option. If you don't wanna do that then you can change your window margin from the code itself.

That, of course, is the way I would do it without using too many script. I cannot gurantee it works with your custom script.

EDIT:
Just to give you a fast sample of the result:
index.php
index.php

This is a sample windowskin I used to make the menu in the second picture:
index.php

If you want you are free to use it for your game. Just remember to add this in your scripts:
Code:
class Window_Base < Window
  def line_height
    return 32
  end
  def standard_padding
    return 16
  end
end
 

Attachments

  • lined_text_window.png
    lined_text_window.png
    469.6 KB · Views: 320
  • lined_text_window_2.png
    lined_text_window_2.png
    469.5 KB · Views: 324
  • Window.png
    Window.png
    2.4 KB · Views: 340
Last edited:

jjbones123

Veteran
Veteran
Joined
Aug 2, 2016
Messages
54
Reaction score
31
First Language
English
Primarily Uses
N/A
@Heirukichi Sorry for the late reply but thanks for the help. I tried using your Window.png as a point of reference and then tried see what I was doing wrong by replicating it step by step from scratch. Most of what I know about RPG maker is self taught, so thanks to you, I now understand how the text box template works...slightly better than I did before. :p

I get that it's now split into 3 different squares; one for the margin line (the red vertical line), the blue lines and the white of the paper. I managed to configure the texture to a point where the text is on top of the blue lines. Here's what the window recourse looks like now:
Window.png

However there are still a couple problems: One is even though all three lines are spaced out, there appears to be a fourth line that I can't get rid off. Here is a side by side comparison of what the texture and what it looks like in the game:
38997-2807c7c91758d1709ce44bc0e8c8ccf6.jpg


The other problem being that the lines doesn't always line up with the text. I'm starting to think that this text box design won't work and that I might have to do away with the lines entirely...
38998-ab2ed6775ef6bc39c56cbf4274513712.jpg


As for the scripts i've used, the script I referring to was a custom script that I put in the materials folder. Here is a screenshot of all my custom scripts:
My font script.png

I have since removed both the custom scripts labeled "window" and font". It hasn't seemed to make a difference though; the font is still somewhat blurry.

I really appropriate your help though; thank you! :)
 

Attachments

  • 4 lines instead of 3.png
    4 lines instead of 3.png
    52.1 KB · Views: 3
  • dunno how to line up.png
    dunno how to line up.png
    78 KB · Views: 4

Heirukichi

Veteran
Veteran
Joined
Sep 24, 2015
Messages
1,434
Reaction score
604
First Language
Italian
Primarily Uses
RMVXA
Did you add the script I attached to my previous post after removing the "Window" and "Font" scripts? Because if you did it should behave like this:
game_menu.png

And one more thing: the Window.png I sent you was configured to work with that script so changing it like removing lines from the bottom left pattern won't help. But that script is necessary to let it work due to how the engines deals with margins. You will have problems if the pattern square height cannot be divided by the value set as height for your margins. This because the pattern is repeated but the margin is not.

As you can see from the picture every word is lined up with the window skin. Even Actors' name, class and other parameters are lined up.
 
Last edited:

jjbones123

Veteran
Veteran
Joined
Aug 2, 2016
Messages
54
Reaction score
31
First Language
English
Primarily Uses
N/A
Wow, i'm such an idiot; I put your custom script in the wrong folder. It's working fine now, thank you so much!

finally underlined and working.png

I don't know how it didn't dawn on me earlier since I even took a screenshot of my custom scripts folder previously and it was that same screenshot that made me realize: "Wait...where's the new script?". Well regardless, thanks again for the help. The only problem that I still can't solve is why the text is blurry?

I removed any custom scripts that would effect the text. (Deleted the custom scripts labeled "Font" and "window") the only alteration i've made is I changed the color of the text from white to black by changing the "text_color" value to 15. What else could be causing it?
 

Heirukichi

Veteran
Veteran
Joined
Sep 24, 2015
Messages
1,434
Reaction score
604
First Language
Italian
Primarily Uses
RMVXA
Well, that is probably because you set the text outline to be the same color (black) as your text (black too). White text with black outline works much better than a black text with black outline. In general using a dark outline color with a light text color works much better than having a dark outline color with a dark text color.
 

Latest Threads

Latest Posts

Latest Profile Posts

Revisiting one of my older projects in a long time to work some more on the mechanics. I've been working on- and off-again for about a year now on recreating the Force and Mystic systems from Wild ARMs. And I think I've finally made some good breakthroughs on that!

Still, it is not perfect and I may post my thoughts at a later time to see if there are any other suggestions or alternatives I've missed.
actor name string, why you gotta be case sensitive like that?
Doing RPG Maker News for 26th October 2021

My entire world, full of monsters and treasures, will likely be done by the end of the year. After that it's all NPCs and side quests... then done. I'm never making an open world game again xD
The more I read Calvin and Hobbes as an adult, the more I deeply respect Bill Watterson. Plenty of stuff flew over my head, but now that I'm old enough to appreciate the viewpoints he shared with the fun and imagination? I am grateful that C&H was basically my early childhood.

Forum statistics

Threads
116,102
Messages
1,095,785
Members
151,490
Latest member
Davidlcf
Top