Author Topic: [XP] Window Message Mod  (Read 9159 times)

Offline ThallionDarkshine

  • Ethereal Devastator
  • ****
  • Posts: 268
  • LV: 55
  • Gender: Male
    • View Profile
[XP] Window Message Mod
« on: December 14, 2012, 03:14:08 AM »
Window Message Mod
Authors: ThallionDarkshine
Version: 2.1
Type: Message Add-on
Key Term: Message Add-on

Introduction

This is a small Window_Message mod I made a while ago to allow letter-by-letter text. It now also includes a way to create text animations such as growing, shrinking, rotating, or shaking text. You can also format text with things like bold, underline, etc.

New feature! You can now create text gradients!

Text Animations:
  • Grow
  • Rotate (rock back and forth)
  • Shrink
  • Shake
  • Float
  • Hue Rotate
  • Bounce
  • Letter Grow
  • Letter Swivel
  • Letter Shrink
  • Letter Colorize
  • Letter Fade
  • Letter Bounce
  • Letter Float

Formatting Properties
  • Bold
  • Italic
  • Underline
  • Overline (pretty much useless but I made it anyways)
  • Strikethrough

Features

  • Specify how many letters are added at a time, and at what interval they are added.
  • Specify word-by-word text
  • Message shortcut to change letter-by-letter options from default.
  • Create animated text!
  • Format text, making it bold, italic, etc.

Screenshots

I'll put some up if requested, but all this does is allow letter-by-letter text.

Demo

None yet.

Script

(click to show/hide)

Instructions

You can configure default message options. Instructions on how to configure are in the script.
Instructions on the different message tags you can use are also in the script.
A dll is now required for the gradient text feature. It is found here.

Compatibility

Probably won't work with any other custom message scripts, but if you like, I'll try to tweak it to work with that specific script.

Credits and Thanks

  • ThallionDarkshine

Author's Notes

A dll is now required for the gradient text feature. It is found here.
« Last Edit: December 18, 2012, 01:24:18 AM by ThallionDarkshine »

Offline Heretic86

  • Astral Trancist
  • *****
  • Posts: 733
  • LV: 29
    • View Profile
Re: [XP] Window Message Mod
« Reply #1 on: December 14, 2012, 05:40:57 PM »
Im sure you have plans to add more to it, as most scripters do.

If I might make a humble suggestion: we've all seen many features as far as displaying text goes.  Displaying Icons, Enemy Names, Colorize, Wait Timers, etc are all things we've seen.  Personally, I'd like to see a Message Mod that does something totally new that hasn't been done before.  Well, at least as far as the scripts we have available. 

With that being said, one of the things I have not seen yet is Animated Text.  My definition of that being the characters themselves are literally moved around once they appear on screen.  For example, rapidly shaking characters can be used to imply a sense of Fear.  Or a "Floating" set of characters to put emphasis on a word, and floating just being moving the characters around to appear to "Float" like they are on water.  Maybe even possibly changing the Text Font Size where a character or a word grows slightly and shrinks back to its original size, also using for emphasis.  Or a very subtle "Wavy" warping of characters similar to the Backgrounds in RMVX.  Maybe even gradually rotate a characters color.

Try Super Mario RPG on the old school Super Nintendo I believe had text characteristics that I havent seen available for RMXP yet.  Things of that nature would make this script quite unique.  But these are all things that are really up to you if you feel like putting them in.
Current Scripts:
Heretic's Moving Platforms

Current Demos:
Collection of Art and 100% Compatible Scripts

(Script Demos are all still available in the Collection link above.  I lost some individual demos due to a server crash.)

Offline ThallionDarkshine

  • Ethereal Devastator
  • ****
  • Posts: 268
  • LV: 55
  • Gender: Male
    • View Profile
Re: [XP] Window Message Mod
« Reply #2 on: December 14, 2012, 10:47:59 PM »
I have an idea of how to do the animated text. I'll probably add in a collection of sprites to Window_Message, and have those animate in different ways. This would allow many animations, such as text size changing, hue rotating, words rocking back and forth, and so on. I may also add in the wavy characteristics of RMVX, as I have written a dll function to handle the wave distort.

Right now I'll be working on the regular formatting options, because most people like them and this script probably isn't compatible with other message scripts.

Offline Heretic86

  • Astral Trancist
  • *****
  • Posts: 733
  • LV: 29
    • View Profile
Re: [XP] Window Message Mod
« Reply #3 on: December 15, 2012, 02:56:55 AM »
This might help with "Wavy Text" also...

Quote
(click to show/hide)

Non DLL wavy goodness, but this applies to Actor Sprites.
Current Scripts:
Heretic's Moving Platforms

Current Demos:
Collection of Art and 100% Compatible Scripts

(Script Demos are all still available in the Collection link above.  I lost some individual demos due to a server crash.)

Offline ThallionDarkshine

  • Ethereal Devastator
  • ****
  • Posts: 268
  • LV: 55
  • Gender: Male
    • View Profile
Re: [XP] Window Message Mod
« Reply #4 on: December 15, 2012, 07:11:04 PM »
That script is actually really interesting. Supposedly VX only divides sprites into lines with a height of 8 to decrease lag. That would actually really speed up my dll! Anyways, I have added many animation options such as:
  • Color Rotate
  • Grow/Shrink
  • Rotate (rock back and forth)
  • Bounce
  • Float
  • Shake

I'll update the main post with the new script after putting documentation on different message codes and such in the script.

Offline LiTTleDRAgo

  • Astral Trancist
  • *****
  • Posts: 837
  • LV: 514
  • Gender: Male
    • View Profile
    • ~
Re: [XP] Window Message Mod
« Reply #5 on: December 15, 2012, 07:29:37 PM »
can you make gradient text or glowing text?

This might help with "Wavy Text" also...

(click to show/hide)

Non DLL wavy goodness, but this applies to Actor Sprites.

fixed

Offline ThallionDarkshine

  • Ethereal Devastator
  • ****
  • Posts: 268
  • LV: 55
  • Gender: Male
    • View Profile
Re: [XP] Window Message Mod
« Reply #6 on: December 15, 2012, 07:33:24 PM »
I'm not quite sure on the gradient text thing, but I'll work on it. And with the glowing text, do you mean like a glow that fades as you get farther from the text. If so, then I'll try to do it, but I can't give you any promises.

Offline Heretic86

  • Astral Trancist
  • *****
  • Posts: 733
  • LV: 29
    • View Profile
Re: [XP] Window Message Mod
« Reply #7 on: December 15, 2012, 09:26:28 PM »
Another one that might help with Gradient Lettering...

(click to show/hide)

I know it is for drawing lines, but someone smart might be able to do somethign useful with this as far as drawing letters.  I think that there might need to be some bitmap caching involved for performance.

Now, let me go check this thing out!

++Level Up!


---

Suggestions:

Allow us to use "\a" to close the last Animation instead of "\a[0]".  This is to save space because the Message Text Box auto inserts \n characters, and even one or two characters creates limitations to text display usefulness.

Don't require Animation Tags to be closed.  Right now, the text does not appear to function unless the animation tags close.  That is to say "This is \a[4]Text." would animate the same as "This is \a[4]Text\a[0].", and just auto close on the last letter.  The period "." character would also be included in the animation effect.

Question:  The Text Effects only appear to start animating once the message is completely displayed.  Other than that, this script is truly AWESOME!

---

Legal:

Would you have any objections to allowing portions of your code being used to modify other Message Systems?  I'd like to include these animation effects with my Timed User Inputs, Scripts, and Windows. May I have permission to do so, provided credit to you for the Animation Effects is provided?
« Last Edit: December 15, 2012, 09:47:55 PM by Heretic86 »
Current Scripts:
Heretic's Moving Platforms

Current Demos:
Collection of Art and 100% Compatible Scripts

(Script Demos are all still available in the Collection link above.  I lost some individual demos due to a server crash.)

Offline ThallionDarkshine

  • Ethereal Devastator
  • ****
  • Posts: 268
  • LV: 55
  • Gender: Male
    • View Profile
Re: [XP] Window Message Mod
« Reply #8 on: December 15, 2012, 10:23:03 PM »
I have come up with a method for gradient lettering, and will probably include it in the next update, once I figure out a good way for users to specify the endpoints' color.
You can use any parts of my script in other message systems, as long as you credit me.
I'll try to stop requiring animation tags to be closed.
I would like to make the text effects start before the text has completed displaying, but it would be pretty hard to determine which animations had already been created. I will try to figure out a way to do that though.

Anyways, I finished the next part of the whole formatting section, fixed a large problem with letter by letter text and animation used together, and fixed the bounce animation so that it starts at the same position as it would normally be drawn. I'll edit the main post with the new script in a few minutes after I finish the documentation.

Edit:
I finished the new features that you requested.
Now ending animation tags are not needed. \a does the same thing now as \a[0]. Creating gradient text is now possible. Main post will be updated momentarily with the new script.
« Last Edit: December 16, 2012, 12:19:49 AM by ThallionDarkshine »

Offline Heretic86

  • Astral Trancist
  • *****
  • Posts: 733
  • LV: 29
    • View Profile
Re: [XP] Window Message Mod
« Reply #9 on: December 16, 2012, 12:55:38 AM »
It crashes on me even with the DLL in the same folder as game.exe

Quote
Script 'New Msg' line 321: RuntimeError occurred.
LoadLibrary: overlay_grad
Current Scripts:
Heretic's Moving Platforms

Current Demos:
Collection of Art and 100% Compatible Scripts

(Script Demos are all still available in the Collection link above.  I lost some individual demos due to a server crash.)

Offline ThallionDarkshine

  • Ethereal Devastator
  • ****
  • Posts: 268
  • LV: 55
  • Gender: Male
    • View Profile
Re: [XP] Window Message Mod
« Reply #10 on: December 16, 2012, 01:24:38 AM »
I updated the script in the main post. I think it might have been something because I didn't put the '.dll' in the filename. It was working fine for me, but that might have been the problem.

Offline Heretic86

  • Astral Trancist
  • *****
  • Posts: 733
  • LV: 29
    • View Profile
Re: [XP] Window Message Mod
« Reply #11 on: December 16, 2012, 01:48:32 AM »
Still no luck.  Same error as above.
Current Scripts:
Heretic's Moving Platforms

Current Demos:
Collection of Art and 100% Compatible Scripts

(Script Demos are all still available in the Collection link above.  I lost some individual demos due to a server crash.)

Offline ThallionDarkshine

  • Ethereal Devastator
  • ****
  • Posts: 268
  • LV: 55
  • Gender: Male
    • View Profile
Re: [XP] Window Message Mod
« Reply #12 on: December 16, 2012, 02:58:37 AM »
What OS are you running?

And can you post your project? I can't reproduce the error on my computer.

Offline LiTTleDRAgo

  • Astral Trancist
  • *****
  • Posts: 837
  • LV: 514
  • Gender: Male
    • View Profile
    • ~
Re: [XP] Window Message Mod
« Reply #13 on: December 16, 2012, 03:57:56 AM »
I'm not quite sure on the gradient text thing, but I'll work on it. And with the glowing text, do you mean like a glow that fades as you get farther from the text. If so, then I'll try to do it, but I can't give you any promises.

glowing like this

http://i.imgur.com/PhAgO.png
http://i.imgur.com/DfpEK.png
http://i.imgur.com/aXPqh.png

Offline ThallionDarkshine

  • Ethereal Devastator
  • ****
  • Posts: 268
  • LV: 55
  • Gender: Male
    • View Profile
Re: [XP] Window Message Mod
« Reply #14 on: December 16, 2012, 04:37:40 AM »
Sorry, but I can't do anything like that. I wish there was a way, and I'll keep experimenting, but I don't know of any way to do that.

Offline Heretic86

  • Astral Trancist
  • *****
  • Posts: 733
  • LV: 29
    • View Profile
Re: [XP] Window Message Mod
« Reply #15 on: December 16, 2012, 09:23:27 AM »
What OS are you running?

And can you post your project? I can't reproduce the error on my computer.

http://www.775.net/~heretic/downloads/rmxp/WindowMessageMod.exe
Current Scripts:
Heretic's Moving Platforms

Current Demos:
Collection of Art and 100% Compatible Scripts

(Script Demos are all still available in the Collection link above.  I lost some individual demos due to a server crash.)

Offline ThallionDarkshine

  • Ethereal Devastator
  • ****
  • Posts: 268
  • LV: 55
  • Gender: Male
    • View Profile
Re: [XP] Window Message Mod
« Reply #16 on: December 16, 2012, 03:29:38 PM »
Sorry, but I tried that and it doesn't give me any errors no matter which version of the script in your project I use.

What operating system do you have?

Edit:
Maybe you could just try renaming the dll to something else and then changing it in the script. Maybe it just doesn't like my name for the dll.
« Last Edit: December 16, 2012, 03:30:43 PM by ThallionDarkshine »

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6585
  • LV: 407
  • Gender: Male
    • View Profile
Re: [XP] Window Message Mod
« Reply #17 on: December 16, 2012, 05:02:45 PM »
Just verifying that it works perfectly fine for me as well.

Offline ThallionDarkshine

  • Ethereal Devastator
  • ****
  • Posts: 268
  • LV: 55
  • Gender: Male
    • View Profile
Re: [XP] Window Message Mod
« Reply #18 on: December 16, 2012, 05:06:35 PM »
Huh, that's really weird then. Why does it work for everyone (me and g_g) except Heretic?

And now that someone has confirmed that there is no massive bug with loading dlls, I don't feel like I have to fix something before releasing v1.1.
This version fixes an error with multi-line animations, allows users to specify gradient colors in rgb, and fixes a bug with gradients inside of one another.
« Last Edit: December 16, 2012, 05:12:30 PM by ThallionDarkshine »

Offline Heretic86

  • Astral Trancist
  • *****
  • Posts: 733
  • LV: 29
    • View Profile
Re: [XP] Window Message Mod
« Reply #19 on: December 16, 2012, 06:49:16 PM »
XP 32bit, and yes, Admin privies.  Dunno.
Current Scripts:
Heretic's Moving Platforms

Current Demos:
Collection of Art and 100% Compatible Scripts

(Script Demos are all still available in the Collection link above.  I lost some individual demos due to a server crash.)