Sleek Item Popup

desukarhu

Veteran
Veteran
Joined
Nov 1, 2013
Messages
49
Reaction score
6
Primarily Uses
Hey Vlue,

You haven't been in this thread for almost a year now, but I'm getting an error when I use this script along with Victors Control Text script. (http://victorscripts.wordpress.com/rpg-maker-vx-ace/windows-scripts/control-text/)

""Script 'ACE MESSAGE' line 440: NoMethodError occurred. undefined method `upcase' for nil:NilClass",

It points to Ace Message System, but the error only happens when I loot an item with a text tag and get a sleek item popup from it.

Would you have any idea how to fix this?

Thanks!
 

Vlue

Talent Extraordinaire
Member
Joined
Mar 13, 2012
Messages
589
Reaction score
378
First Language
English
Primarily Uses
I would need to see this Ace Message System script.
 

Vlue

Talent Extraordinaire
Member
Joined
Mar 13, 2012
Messages
589
Reaction score
378
First Language
English
Primarily Uses
Well, I'm not going to pretend what's going on in those scripts, but assuming they are being mean to each other.

Trying putting this above line 440:

return if code.nil?

And hopefully that doesn't compromise the function of either script.
 

desukarhu

Veteran
Veteran
Joined
Nov 1, 2013
Messages
49
Reaction score
6
Primarily Uses
Thanks a lot! It works perfectly now. I didn't notice it breaking anything at least.

Love your scripts mate.
 

Allerka

Veteran
Veteran
Joined
Dec 31, 2012
Messages
289
Reaction score
71
First Language
English
Primarily Uses
Hey Vlue, great work again with this! I was looking to use some kind of pop-up for items received (I definitely hate having to type out everything!), and this is a suitably flashy way to do it, especially since it works with the affixed items!

Couple issues, though, unfortunately. The big one is that the framerate drops to 1/3-1/2 the normal rate while this script is going (i.e. when there's a pop-up). This even happens on the very first popup. Is there anything that can be done to keep that from happening?

The other is with the text itself. If I have it set for single-line display, items with longer names (i.e. items that happen to have both a prefix and suffix) have their text cut off on the right if the name is too long. Like so:



If I set it for multi-line, the text auto-condenses to fit once it finishes displaying, however there's overlap with the icon and item count (i.e. the icon and item count appear below the text a little). Like so:



I'm sure both of those can be easily fixed by tweaking the window properties, but I'm not 100% sure which parts to mess with.

Game 2013-11-08 13-03-21-87.png

Game 2013-11-08 13-05-31-27.png
 
Last edited by a moderator:

Allerka

Veteran
Veteran
Joined
Dec 31, 2012
Messages
289
Reaction score
71
First Language
English
Primarily Uses
Quick update, I tested it a little more, and the slowdown seems to be significantly worse if it's an item with affixes. If it's a non-altered item, then the slowdown isn't as bad, but it's still there.
 

desukarhu

Veteran
Veteran
Joined
Nov 1, 2013
Messages
49
Reaction score
6
Primarily Uses
Quick update, I tested it a little more, and the slowdown seems to be significantly worse if it's an item with affixes. If it's a non-altered item, then the slowdown isn't as bad, but it's still there.
I've noticed this happening as well, and we both use the same scripts it seems.
 

Vlue

Talent Extraordinaire
Member
Joined
Mar 13, 2012
Messages
589
Reaction score
378
First Language
English
Primarily Uses
That's quite weird, when testing it with my affixed Super Hard Bronze Ultra Metal Hand Axe of Power and Ultimate Doom it squeezes in there fine in both single line and multi line, and I experience no noticeable lag while doing so. (I have a pretty nice PC though.)


The icon thing however I do experience! I fixed that, so grab the updated script and try it out. If the font still doesn't squish right, and there's lag then let me know and I'll look depth.
 

Allerka

Veteran
Veteran
Joined
Dec 31, 2012
Messages
289
Reaction score
71
First Language
English
Primarily Uses
Yeah, I'm thinking maybe it's being caused by another script. I've noticed a number of anomalies with text all over the place (i.e. letters tend to be ever-so-slightly cut off on the left, as well as minor spacing issues). I do have a hefty batch of scripts running, mostly Yanfly and Xail System scripts.

As far as the lag goes, I'm working on a laptop with an i7 CPU, 6 gigs of RAM, and a GT 445M video card. I would THINK that should be more than enough to run any RM products without issues, heh. But I suppose I can test out my desktop, which is significantly beefier. Again, I'm wondering if maybe it's an accumulation effect from other scripts involved. Let's test...

...

Ok, it looks like I might have had a conflict between the core XS and Ace modules that was causing the bulk of the lag. If I disable both (along with scripts that depend on them), the lag vanishes. However, unfortunately, they're needed for other scripts, argh. Looks like I can get away without the Ace core (I guess XS does a number of the same things), but the XS scripts won't work without their core. Thankfully, the text doesn't cut off any more in single-line mode, although the item count seems to get randomly cut off sometimes if it's too long. In multi-line mode, it still gets cut off slightly, but it seems to be pretty random with that, as if the window's width is being determined by how many letters are in the text, but the text doesn't quite match up (I'm using Times New Roman, for reference, and I know it's not a mono-block font, i.e. all letters are the same width). If I revert it to the default font, the issue goes away in multi-line mode, but the cut-off still happens in single-line mode.

Also, there's still some lag when it's drawing the text (albeit less than before), if I have only the XS core enabled. Not sure what can be done about that, unfortunately. Finally, I think you tweaked the Y value in the wrong direction, because now the item count's position is significantly higher than it was before (in multi-line mode it appears directly under the main line of text now). :p
 

Nicke

Fortune seeker
Veteran
Joined
Apr 4, 2012
Messages
549
Reaction score
552
First Language
Swedish
Primarily Uses
RMMV
Try using the Text Cache script found on this site. Maybe it will solve the lag!
 

Allerka

Veteran
Veteran
Joined
Dec 31, 2012
Messages
289
Reaction score
71
First Language
English
Primarily Uses
Try using the Text Cache script found on this site. Maybe it will solve the lag!
It did (there's still a very tiny amount on really long item names, but that's basically it)! It even fixed some of the minor text glitches I was having! Tack!

Oh, wait, it only worked for single-line mode. Multi-line mode still has the issue of randomly cutting off the last letter, as well as sometimes crunching the text, which triggers a huge lag-spike while it's typing the text out (once it's done typing the lag vanishes).

I think I might just stick with single-line mode, although the number still gets partly cut-off if the name of the item is fairly long. Now to just see if I can get that Y value tweaked...
 

Allerka

Veteran
Veteran
Joined
Dec 31, 2012
Messages
289
Reaction score
71
First Language
English
Primarily Uses
Hah hah, got the Y value fixed. Everything's in perfect alignment now. I even got the cut-off issue fixed in single-line mode, I just increased the width of the draw window by a few more pixels.

Ooh! I had an idea, as a feature request. Do you suppose it might be possible to have multiple sound effects, i.e. depending on whether what's found is gold, an item, a weapon, or armor (or even on a per-item or per-sound-effect basis)? I'm thinking again like Diablo where different items made different noises when you picked them up. Think that might be doable?
 

desukarhu

Veteran
Veteran
Joined
Nov 1, 2013
Messages
49
Reaction score
6
Primarily Uses
That's quite weird, when testing it with my affixed Super Hard Bronze Ultra Metal Hand Axe of Power and Ultimate Doom it squeezes in there fine in both single line and multi line, and I experience no noticeable lag while doing so. (I have a pretty nice PC though.)

The icon thing however I do experience! I fixed that, so grab the updated script and try it out. If the font still doesn't squish right, and there's lag then let me know and I'll look depth.
Try using the Text Cache script found on this site. Maybe it will solve the lag!
Hmm, I have a pretty nice PC too. But there is like a 0.1 second freeze when the first popup of the game appears. I'm using text cache too. I mean this is not game breaking, just a mild annoyance everything else works fine.

I also have one more request!  Would it be possible to increase the popups Z level or something so that it's on top of everything? (Including the menu) Like if I have an consumable item that calls a common even which adds an item to the inventory, so that would make a popup while in the item menu.
 

Vlue

Talent Extraordinaire
Member
Joined
Mar 13, 2012
Messages
589
Reaction score
378
First Language
English
Primarily Uses
Yes and yes, I'll get around to adding multiple se's and variable z levels~
 

Bluevvorld

Villager
Member
Joined
Nov 18, 2013
Messages
9
Reaction score
3
First Language
Danish
Primarily Uses
Hey just wanted to say your script are awesome and so are you! :D
 

Allerka

Veteran
Veteran
Joined
Dec 31, 2012
Messages
289
Reaction score
71
First Language
English
Primarily Uses
One more minor thing I noticed. We configure the "item received" sound effect in the script itself, meaning it's at a fixed volume. Is there any way to link it to any sort of options screen that has something like adjusting sound effect volume? I noticed that, as it is right now, if I turn down SFX in the option menu I'm using right now (Yanfly's), everything else turns down, but this one's still good and loud.
 

Vlue

Talent Extraordinaire
Member
Joined
Mar 13, 2012
Messages
589
Reaction score
378
First Language
English
Primarily Uses
I couldn't see why, if you link me the script however I can take a look.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,865
Messages
1,017,059
Members
137,575
Latest member
akekaphol101
Top