Aleworks Options Menu v2.50

Aleworks Options Menu
Created by Aleworks (vgvgf)
Version: 2.50
Last Updated: 27-12-2006(day/month/year)


Introduction
This script creates a editable Option Menu. You can add/remove or edit the options. AO has by default these options: Font, Font Size, Font Color, Font Brightness, Font Opacity, Windowskin Select, Windowskin Color , Windowskin Opacity, Brightness, Volume & Speed of Music and Sounds, Autosave, Game speed, Battle Animations and Difficulty.

Version History Spoiler
-1.00
First version
-2.00
Better code
New interface
More options
-2.10
Font changing improved
Game speed bug fixed
Autosaving bug fixed
Lag reduction
-2.50
Font changing improved
Autosaving improved
Windowskin change bug fixed
Scene_Options improved
New options: Font Color, Font Brightness, Font Opacity, Windowskin Color,
Brightness, Battle Animations, Difficulty


Screens
(The screens are in spanish but the script in english)
(The screens are of the 2.10 version, soon I will update the images)

http://img96.imageshack.us/img96/9800/ao1ch1.png[/img]
http://img96.imageshack.us/img96/3617/ao2rl8.png[/img]
http://img96.imageshack.us/img96/9742/ao3ng5.png[/img]

Instructions
In the script.

Demo
Demo AO(ENG)(v2.50 SDK).rar
Demo AO(ENG)(v2.50).rar

Script
Script AO(ENG)(v2.50 SDK).rar
Script AO(ENG)(v2.50).rar


I need help, for testing a new script for reading all the fonts of the system.
It works for me, in Windows XP, but I dont know if it works in other Windows systems.
Please, download this AO demo, and change the font in the options menu. If it works post that, and wich system you have. If it not work, post that, your system, and if you can, search in the windows registry, with the regedit, for athe registry directory, where are all the fonts listed. Post that directory here, or send me an email.
Thanks!


* Please give me credit if you use my script.
* You can edit this script, it is for that.
* You can use parts of my script, like the windowskins entries, but give me credit for that.
* Help me to continue developing this script
Send the errors that you find errors and your ideas to [email hidden]
* I'm from Argentina. English isn't my mother tongue,so sorry if I have errors.
Nifty script!
Ooooh, nice script.
Good script!

[QUOTE=vgvgf;115736Last Updated: 143-12-2006(day/month/year)[/QUOTE]

What is up with the date O_o

*is it just me or are quotes not working !?*
vgvgf;115736Last Updated: 143-12-2006(day/month/year) wrote:
Blah


You need to space it out and put a ']' after (day/month/year)
New version, see the first post.
Dude, awesome update! :thumb: I will definately use this!
I've never seen you before, but definitely a good job!
wtf does this really need to acess the registery?
Not so sure ...it is wise.
Is there a way to call this in a game, as in not from the main menu, but from an event?
* Jirbytaylor: Only if you use the font_entries method, with this method the script reads all the fonts in the system. I only tested this method in Windows XP, I dont known if it work in other systems. If you dont use this method, you can delete the Win32::Registry class.
* RPG Gamer: Yes, put this in a script command:
$scene = Scene_AOptions.new($scene)
Expand to see the code.

You can call the Options Menu from any place with this.
Nevermind, I didn't notice how old this post was, My bad.
this script is great and what I've been looking for.
Very nicely done.
But I've been only able to access 3 types of font set, Comic San MS, Times New Roman, and something else that makes the fonts disappear. How can I or anyone add more fonts to the listing?
Quote:
Nevermind, I didn't notice how old this post was, My bad.

What?

Quote:
But I've been only able to access 3 types of font set, Comic San MS, Times New Roman, and something else that makes the fonts disappear. How can I or anyone add more fonts to the listing?

Search for this(You can use CTRL+F):
@fonts = ['Comic Sans MS', 'Lucida Sans', 'Times New Roman']
Expand to see the code.

And add, change, or remove what you want.

PD: The font set that makes all disapear, is "Lucida Sans", maybe you have not that font installed on your computer.
Ok, I don't want these options:

BGM Speed
BGS Speed
Difficulty
Battle Animations
Game Speed

How do I make it so I can't change this in the options menu?
Search for:
    @options[0] = ['Visual', [ ['Font', 0],
                               ['Letters Size', 1],
                               ['Letters Color', 10],
                               ['Letters Brightness', 11],
                               ['Letters Opacity', 12],
                               ['Windowskin', 2],
                               ['Windowskin Color', 13],
                               ['Window Opacity', 3],
                               ['Brightness', 14]
                  ]          ]

    @options[1] = ['Audio',  [ ['Music volume', 4],
                               ['Sound volume', 5],
                               ['Music Speed', 6],
                               ['Sound speed', 7]
                  ]          ]

    @options[2] = ['Game',   [ ['Game speed', 9],
                               ['Autosave', 8],
                               ['Battle Animations', 15],
                               ['Difficulty', 16]
                  ]          ]
Expand to see the code.

And replace it with:
    @options[0] = ['Visual', [ ['Font', 0],
                               ['Letters Size', 1],
                               ['Letters Color', 10],
                               ['Letters Brightness', 11],
                               ['Letters Opacity', 12],
                               ['Windowskin', 2],
                               ['Windowskin Color', 13],
                               ['Window Opacity', 3],
                               ['Brightness', 14]
                  ]          ]

    @options[1] = ['Audio',  [ ['Music volume', 4],
                               ['Sound volume', 5]
                  ]          ]

    @options[2] = ['Game',   [ ['Autosave', 8]
                  ]          ]
Expand to see the code.
Your BGM Speed control.... slowed down.... .mp3 files.....

DAMN!!! I'M USING THIS feature. Maybe not as part of the option menu, but for some cutscenes or whatnot that needed a musical tweak.

Something to consider... the audio system works, but it doesn't change the volume of your Battle Animations audio. Lower the volume 50% and the animations during combat (or just called in the field menu) still retain their full volume. Look in my signature for an audio fix that you can use to change the battle animation volume.

Again... DAMN!
Edit: never mind, I figured it out.
Quote:
Something to consider... the audio system works, but it doesn't change the volume of your Battle Animations audio. Lower the volume 50% and the animations during combat (or just called in the field menu) still retain their full volume. Look in my signature for an audio fix that you can use to change the battle animation volume.

Thanks, I don't know that. In the next version, I will use your script.

Quote:
Edit: never mind, I figured it out.

Remember, after all changes in the AO class in the script, delete the Options.rxdata file.
The script works perfectly, but if you try to change your windowskin through an encrypted game it will not be able to locate it and the game will crash. Any solution for this?
Slight Problem:

I created a map with a BGM and a BGS. When I got to it however, I got an error.

http://i7.photobucket.com/albums/y262/P ... error2.jpg[/IMG]

That is the line: bgm.pitch * $ao.bgm_speed / 100)
RPG Gamer;167748 wrote:
Slight Problem:

I created a map with a BGM and a BGS. When I got to it however, I got an error.

http://i7.photobucket.com/albums/y262/P ... error2.jpg[/IMG]

That is the line: bgm.pitch * $ao.bgm_speed / 100)


Look closely at lines 936 - 937

Change This
bgm.pitch * $ao.bgm_speed / 100)
Expand to see the code.


To This
bgs.pitch * $ao.bgs_speed / 100)
Expand to see the code.


It was a small typo.
Good Job ^_^ but can you fix it ?

!
This script is very buggy, it has various errors, but I am working on version 3.0, with all know bugs fixed, better code and some new features, like sound and graphic tests. Please, wait for it.
Can't manage to download them!!!

I know this is kinda old but i'm interested in using that options...
great job vg. i always wanted a script exactly like that. :P script works very well. thanks man.
Ok, I don't want these options:

Font Color
Font Brightness
Font Opacity
Windowskin Color
Brightness
Autosave

How do I make it so I can't change this in the options menu?
Search for:
Quote:
    @options[0] = ['Visual', [ ['Font', 0],
                              ['Letters Size', 1],
                              ['Letters Color', 10],
                              ['Letters Brightness', 11],
                              ['Letters Opacity', 12],
                              ['Windowskin', 2],
                              ['Windowskin Color', 13],
                              ['Window Opacity', 3],
                              ['Brightness', 14]
                  ]          ]

    @options[1] = ['Audio',  [ ['Music volume', 4],
                              ['Sound volume', 5],
                              ['Music Speed', 6],
                              ['Sound speed', 7]
                  ]          ]

    @options[2] = ['Game',  [ ['Game speed', 9],
                              ['Autosave', 8],
                              ['Battle Animations', 15],
                              ['Difficulty', 16]
                  ]          ]

And change it for:
Quote:
    @options[0] = ['Visual', [ ['Font', 0],
                              ['Letters Size', 1],
                              ['Windowskin', 2],
                              ['Window Opacity', 3],
                  ]          ]

    @options[1] = ['Audio',  [ ['Music volume', 4],
                              ['Sound volume', 5],
                              ['Music Speed', 6],
                              ['Sound speed', 7]
                  ]          ]

    @options[2] = ['Game',  [ ['Game speed', 9],
                              ['Battle Animations', 15],
                              ['Difficulty', 16]
                  ]          ]


PD: This scripts is very buggy, it was one of my firsts scripts, it may contain lots of errors. Maybe, in some time I will remake it.
I had made how you spoken, but not worked

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=10711