Scrolling Item Names

Scrolling Item Names v1.04
Created by Roninator2​

Introduction
A discovery upon assisting with a project involving item affixes, it was seen that the item names were compressed when the name was longer than the text box it would normally be in is.
These sets of scripts corrects this by making the text become a new bitmap on a new viewport to a new plane.
Technical I know but just to also say, if there are any issues, I may not be able to help as each project would be unique.
So some ruby knowledge would be an asset to allow you to fine tune the code.

Features
- Scrolls the item name left to right and back

How to Use
Put below Materials and Above Main

Requires
TsukiHime's Instance Items
Intended for use with Item Affixes or Random Affixes scripts
You are free to alter it to make it work without, but the alterations cannot be sold according to RPG Maker Source terms of use.

Images
Spoiler: Images
1696626492419.png

1696626521767.png

1696626557336.png

1696626586755.png

1694976420204.png
1694976480003.png

1694976759421.png

Scripts

Credit and Thanks
- RPG Maker Source - for original idea and some code copy
- Roninator2

Terms of use
Follow RPG Maker Source's terms of use for Scrolling Help Descriptions script
Free for use in RPG Maker except nudity
I can't believe it. I actually needed this because some items/skills in my game has very dumb long names. Never though of finding a solution via a script.
I can't believe it. I actually needed this because some items/skills in my game has very dumb long names. Never though of finding a solution via a script.
Literally just updated because it was noted that all the text scrolling at once was annoying + found a few graphical glitches.
Updated 1.01
Scripts updated.
Fixed problems reported and made the scrolling text support long item lists.

*Updated X2
Fixed a crash bug in Equip Scene and cleaned up the code a bit.
Fixed display to reset names at appropriate times.
Scripts updated V1.03
Fixed bugs with selling and refreshing window when cancelling
Hey there! So I discovered a small bug for the Item Window Name Scroll Text script. Figured I'd mention it. It seems when this script is installed, holding up and down to scroll the item inventory causes some lag. It's only a minimal drop in frames but I think the more items you have, the bigger the impact. Accidentally discovered this with an accurate fps script. This goes for both the on-field item inventory and the battle item inventory. I replicated the bug on a fresh map - results below.

Here's without the script.

without.gif


Here's with the script.

1713343525387.gif


I'm mostly holding the up and down button here. Pressing the buttons has a different behavior but pressing them quickly will also cause some slowdown. It's basically imperceptible and a none issue in most cases. When using animated battlers, the frame drops are more noticeable though. Here's a worst case scenario with my project lol

1713344687938.gif


The player will never have this many items but even with just eight, I was getting some odd slow down. Seems the slow down is most prevalent in the battle item menu when using animated battlers. Anyway, I understand the script is very techinical so these issues are probably related to the new bitmaps. Thought I'd report the issue just in case. Thanks for this and your other scripts!
I discovered a small bug for the Item Window Name Scroll Text script
I do not believe this can be fixed. Due to the nature of the script the window is refreshed if there are no items with long names every frame. Since you do not have any long names in your items, it will constantly refresh. This is due to the script needing to do checks if a scrolling name is present on the screen. If the data is empty, check again. Without this it would not do the scrolling when you do have a long name on the screen.

The default FPS check only shows a 1 fps drop when moving.

As for the slow down with animated battles, that is simply due to the processing of the engine. there is too much for it to do each frame so it slows down.
Your image shows it goes down to 3 fps, this is caused from the amount of processing that happens. As I said it will constantly refresh.

As you are showing that you do not have any long names in your demonstration, I would suggest you to not use these scripts.

Also using that script I do not see that much of a drop, even in the item menu. So a word of caution, the more scripts you have the more processing the engine has to do and the more likely things will slow down.
I do not believe this can be fixed. Due to the nature of the script the window is refreshed if there are no items with long names every frame. Since you do not have any long names in your items, it will constantly refresh. This is due to the script needing to do checks if a scrolling name is present on the screen. If the data is empty, check again. Without this it would not do the scrolling when you do have a long name on the screen.
Thanks for the response! I figured it wasn't going to be simple. It's something I can work around though. I'm still currently wip so there's a lot of items yet to be named. I do want to have a few longer names to add some variety to the item list.

From what I understand, the default f2 fps checker isn't very accurate. That's why I'm using dekita's accurate fps script.

Anyway, thank you for the advice. This wouldn't be the first time I have a script that lags the item menu - I had an indent choice script that did something similar. I probably do have some unused scripts I can remove to increase performance. I'm unsure why I get such severe frame rate drops in this case though. I'll keep working and figure it out. Cheers!
I'm unsure why I get such severe frame rate drops in this case though.
Well I tried to explain, it's how the script is designed. It does checks for the items listed on the screen and if there is nothing that is a long name then do a refresh since maybe it needs to find some. So it's refreshing every frame.
I will try to figure out a way to do this better, but as it is right now, it would work better if most of your items had long names.
Plus it goes really slow in battle as your using animated battlers. so it is refreshing the battlers and the items every frame. that will slow it down.
And I did say I used the Accurate FPS script as well.
I'll try to work on this in the future.

*tested with @heyguy Removed one line that was refreshing unnecessarily from item script

Original thread: https://forums.rpgmakerweb.com/threads/scrolling-item-names.161254/