Text boxes become three characters high after an event.

Status
Not open for further replies.

CrawlinUK

Villager
Member
Joined
Feb 24, 2014
Messages
12
Reaction score
2
First Language
English
Primarily Uses
I have attached images for referance.

I am just testing this event as is, I appear in this cave when I start the game. I press F9 to set my veriable switches to 3 for 0021: MCart. and the text for the auto run event then shows as three characters hight (usually they are fout high) this is seen in the first screen shot, but the character portrait being cut short. This also affects all future text from this point on.

I can't see anything wrong, it has me thinking why a switch and a couple of sound effects would affect the text box at all.

In this room there are no other events that are running simultaneously.

Thanks for any help.
 

Attachments

  • Screenshot 2021-12-01 143946.jpg
    Screenshot 2021-12-01 143946.jpg
    118.8 KB · Views: 9
  • Screenshot 2021-12-02 133929.jpg
    Screenshot 2021-12-02 133929.jpg
    137.8 KB · Views: 9
Last edited:

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
35,798
Reaction score
9,465
First Language
German
Primarily Uses
RMMV
let me guess - you're using yanfly's message script and forgot to configure it correctly?

whenever you add a script, you have to go through its options to make sure that all variables and switches used by that script are configured to unused ones and named correctly for you to prevent using it for something else.
if you don't do that you'll end with those switches and variables having double uses.

in this case the message script has two variables configured to be used as the height and width of message boxes, and if you change their default value from 4 to something else, the script will change the message height to three lines - because you commanded it to do so by storing a 3 into that variable.

in this case it's variable 21 that is the default of the message script for line numbers...

EDIT: I suggest you go through every script you ever added and check its configuration, there are a lot of other scripts that handle variables and you might still have some additional double used variables or switches.
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
44,715
Reaction score
15,838
First Language
English
Primarily Uses
RMMV

I've moved this thread to RGSSx Script Support. Thank you.



Agree with the above - you have not reserved the variables/switches used in your added scripts, and have used one that the script uses for a different purpose.
 

CrawlinUK

Villager
Member
Joined
Feb 24, 2014
Messages
12
Reaction score
2
First Language
English
Primarily Uses
let me guess - you're using yanfly's message script and forgot to configure it correctly?

whenever you add a script, you have to go through its options to make sure that all variables and switches used by that script are configured to unused ones and named correctly for you to prevent using it for something else.
if you don't do that you'll end with those switches and variables having double uses.

in this case the message script has two variables configured to be used as the height and width of message boxes, and if you change their default value from 4 to something else, the script will change the message height to three lines - because you commanded it to do so by storing a 3 into that variable.

in this case it's variable 21 that is the default of the message script for line numbers...

EDIT: I suggest you go through every script you ever added and check its configuration, there are a lot of other scripts that handle variables and you might still have some additional double used variables or switches.
Thank a lot.
Yeah, it'll definitely be that.
It's been seven years since I added it. I'll have configured it at the time, but I've slept since then.

It makes sense, as I have had my son testing the whole thing, and sometimes the text box was only one character high. That will have been when the variable was set to 1.

I'll be double checking some scripts tomorrow.
Thanks again.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
35,798
Reaction score
9,465
First Language
German
Primarily Uses
RMMV
I'll have configured it at the time, but I've slept since then.
then you still have missed a vital part of the configuration seven years ago.

whenever you see that a script or plugin uses a variable or a switch, the next step in the configuration should be to enter the regular editor, open an event with control variable or control switch and then place a name on that variable to remember what it does in that script or plugin.

if you do that such an issue can't happen even years later because if you try to use the variable for something else you'll see that it is already named, which means you know not to use it for something else.
 

CrawlinUK

Villager
Member
Joined
Feb 24, 2014
Messages
12
Reaction score
2
First Language
English
Primarily Uses
then you still have missed a vital part of the configuration seven years ago.

Absolutely!
So I know what I had done, saw all the slash commands in the configuration, but afterwards, even though it says "message", the body of the message looks like important mechanics that I shoulden't be touching.
Now I have read them I can see that Variable 21 is allocated to text box height and Variable 22 is for the width.

I have now changed these to 98 and 99, and on top of that I have stopped using 21 and 22 (because that was the first thing I did anyway).

whenever you see that a script or plugin uses a variable or a switch, the next step in the configuration should be to enter the regular editor, open an event with control variable or control switch and then place a name on that variable to remember what it does in that script or plugin.

Yeah, I know (now)... back then I would leave many blank with the thought "I'll remember what that is for".

but thank for your help and this insight, it will help me tremendously.
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
44,715
Reaction score
15,838
First Language
English
Primarily Uses
RMMV

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

Latest Threads

Latest Profile Posts

Sniffing the enemy is important.
67lsfpj.gif
angel3.gif
Angels sprite redo came out so cute! I had to add hair so her sprite matches the new faceart :LZSexcite:
Even if you made 1% progress today in your making-game, that's 100% success!
This is Ralph from VX!
index.php

Forum statistics

Threads
121,864
Messages
1,144,757
Members
160,125
Latest member
Today
Top