设为首页收藏本站同能贴吧 切换语言 繁体中文
开启辅助访问 切换到窄版
返回列表
+ 发新帖
查看: 244|回复: 0

[转载发布] Consistent Audio Plugin

[复制链接]
累计送礼:
0 个
累计收礼:
1 个
  • TA的每日心情
    开心
    昨天 03:27
  • 签到天数: 222 天

    连续签到: 1 天

    [LV.7]常住居民III

    9102

    主题

    893

    回帖

    7万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    VIP
    7
    卡币
    64916
    OK点
    16
    推广点
    0
    同能卷
    50
    积分
    74941

    灌水之王

    发表于 2026-7-26 09:27:57 | 显示全部楼层 |阅读模式
    Consistent Audio (CA) v1.01
    Author:
    Michael Morris @Blue Booth Studios


    Introduction
    Hailed by some as "the most useful plugin of all time," Consistent Audio (CA) is one of two planned plugins for consistent map state between map transitions, saves, and loads (the second being Consistent Weather (CW)).  In est, CA automatically ensures that the BGM and BGS you last have playing on a map will always play for that map.  If the BGM or BGS changes, it will become the new "last BGM/BGS" for that map.  If you transition to another map, and then back to the first map, BGM/BGS will be lost without the use of parallel events.  Not anymore!  Likewise, loading a saved game can often result in different BGM/BGS without use of the same events.  This is also no longer a problem.  BGM/BGS Fadein and Fadeout?  Automated for you.  BGM/BGS will fade out and then in when changing maps.  Fadein is also automatically called whenever a new BGM/BGS plays.  Tracking any custom volumes, pitch, and pan for both BGM/BGS are also automated.

    To be blunt, the value of this plugin does not lay in its ability to do something that could not be done without events, but rather, to simplify development and testing.  With CA, having the BGM/BGS you expect to have playing, playing, is a much simpler task; in fact, no audio parallel events, switches, or variables are necessary!

    The only commands you need to make to BGM/BGS are the play and fadeout commands.  This logic can be as complicated or simple as you need.  Once the BGM/BGS starts playing, everything else is taken care of for you.

    Features
    - Uses triage to determine what BGM/BGS to play; if CA has a BGM/BGS stored for the target map already, it will play that BGM/BGS.  If no BGM/BGS is already stored, it will attempt to play the Map BGM/BGS (defined in Map Properties).  If neither of the two are set, CA will play nothing.  If and when an event on the target map later plays a BGM/BGS, CA will store that BGM/BGS.

    - CA saves an array of all map audio settings into player save files, when the player elects to save the game.  This reduces the change for inconsistencies arising from resetting the game after a BGM/BGS change takes effect, and allows for saving more than one map audio state (very important when returning to other maps).  The downside to this is that it will increase the size of player save files, but given that the save data is in text format, save files are not expected to bloat to unreasonable levels.

    - BGM/BGS are remembered for every single map in your project.  In comparison, the "Save BGM/BGS" and "Replay BGM/BGS" commands in RMMV will only remember the current map's audio.

    - BGM/BGS are remembered across save, loads, and program exits.  In comparison, the "Save BGM/BGS" and "Replay BGM/BGS" commands in RMMV will not remember across any of these scenarios.

    - Apart from merely playing BGM/BGS, changes to volume, pitch, pan are also stored and remembered.

    - Automatically fades out BGM/BGS, and fades in new BGM/BGS during map transitions.

    - Autoplay BGM/BGS (Map settings) are now also set to (automatically) fade-in when loading from a save file.

    - Sets all audio fades to one universal fade-in duration of your choice.

    - Compatible with projects that already use parallel events, switches, or variables to track audio state.

    - Storage settings can be overwritten.  Using the "ConsistentAudio IgnoreNext," "ConsistentAudio IgnoreNextBGM," and
    "ConsistentAudio IgnoreNextBGS") commands will instruct CA not to store the next BGM/BGS change (IgnoreNextBGM and IgnoreNextBGS provide greater granularity over this override).  After the next change is ignored, CA will resume storing changes.

    - Fast.  No perceptible performance drop was noted during tests.


    How to Use
    - Copy script into your game js/plugins directory.
    - Import and configure plugin.

    Requirements
    This script has no external requirements.

    Screenshots
    N/A


    Demo
    See attachments.
    To run the demo, create a new project in RPGMaker MV, and extract the provided
    archive to the root folder of the new project.  If prompted to overwrite any files, select yes.

    Script
    Spoiler                Code:       






    Change Log
    1.01

      - Plugin finished.


    Known Bugs / TODO
    Suggestions, bug reports, and feature requests are welcomed!


    Compatibility Issues
    None known.


    Credit and Thanks
    - Micheal Morris @Blue Booth Studios


    Author's Notes
    Free for non-commercial as long as credit is given.
    Please contact me regarding commercial usage.

    No extra JSON file necessary.


    本贴来自国际rpgmaker官方论坛作者:bluebooth处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/consistent-audio-plugin.77448/

    本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有账号?立即注册

    x

    帖子地址: 

    天天去同能,天天有童年!
    回复 送礼论坛版权

    使用道具 举报

    文明发言,和谐互动
    文明发言,和谐互动
    高级模式
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    简体中文
    繁體中文
    English(英语)
    日本語(日语)
    Deutsch(德语)
    Русский язык(俄语)
    بالعربية(阿拉伯语)
    Türkçe(土耳其语)
    Português(葡萄牙语)
    ภาษาไทย(泰国语)
    한어(朝鲜语/韩语)
    Français(法语)
    关闭

    幸运抽奖

    社区每日抽奖来袭,快来试试你是欧皇还是非酋~

    立即查看

    聊天机器人
    Loading...

    QQ|Archiver|手机版|小黑屋|同能RPG制作大师 ( 沪ICP备12027754号-3 )

    GMT+8, 2026-10-22 12:48 , Processed in 0.086174 second(s), 55 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

    快速回复 返回顶部 返回列表