From 1e9960803567b603d7a110d1840ed6b1b9a6a7a6 Mon Sep 17 00:00:00 2001 From: drojf Date: Mon, 22 Mar 2021 16:37:07 +1100 Subject: [PATCH] Use script-defined audio sets and in-built setup menu --- Update/flow.txt | 3 +++ Update/init.txt | 51 +++++++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 52 insertions(+), 2 deletions(-) diff --git a/Update/flow.txt b/Update/flow.txt index 742b823..12b0ec9 100644 --- a/Update/flow.txt +++ b/Update/flow.txt @@ -2,6 +2,9 @@ void main() { SetValidityOfSaving( FALSE ); + + ModGenericCall("ShowSetupMenuIfRequired", ""); + CallSection("BrandLogo"); JumpSection("Title"); } diff --git a/Update/init.txt b/Update/init.txt index e9c3a5c..3ba9b2f 100644 --- a/Update/init.txt +++ b/Update/init.txt @@ -3,8 +3,8 @@ void main() // Max Number for Global Flags hotkey SetGlobalFlag(GCensorMaxNum , 5); SetGlobalFlag(GEffectExtendMaxNum , 0); - SetGlobalFlag(GAltBGMflowMaxNum , 0); - SetGlobalFlag(GAltSEflowMaxNum , 0); + SetGlobalFlag(GAltBGMflowMaxNum , 1); + SetGlobalFlag(GAltSEflowMaxNum , 1); // restore default ADV-MODE setting if(GetGlobalFlag(GMOD_SETTING_LOADER) == 0) { @@ -130,5 +130,52 @@ void main() ModAddArtset("Remake", "リメーク", "CGAlt:CG"); ModAddArtset("Original", "オリジナル", "OGBackgrounds:OGSprites:CG"); + // GAltBGM controls which of these are selected + ModAddBGMset("New BGM", "Placeholder", "BGM"); + ModAddBGMset("Original BGM", "Placeholder", "OGBGM:BGM"); + ModAddBGMset("Italo BGM", "Placeholder", "ItaloBGM:OGBGM:BGM"); + + // GAltSE controls which of these are selected + ModAddSEset("New SE", "Placeholder", "SE"); + ModAddSEset("Original SE", "Placeholder", "OGSE:SE"); + + // Audio presets the user can select, consisting of a combination of the BGM and SE flags + ModAddAudioset( + "New BGM/SE", + "Use the new BGM/SE introduced by MangaGamer in the April 2019 update, played with the Console timings.", + "JP: New BGM/SE", + "JP: Use the new BGM/SE introduced by MangaGamer in the April 2019 update, played with the Console timings.", + 0, // GAltBGM + 0, // GAltBGMFlow + 0, // GAltSE + 0 // GAltSEFlow + ); + + ModAddAudioset( + "Original BGM/SE", + "Use the original BGM/SE from the Japanese version of the game, with the original game's timings. This option was previously known as 'BGM/SE fix'. + + Note that this not only changes which audio files are played, but also when BGM starts to play/stops playing, in certain cases.", + "JP: Original BGM/SE", + "JP: Use the original BGM/SE from the Japanese version of the game, with the original game's timings. This option was previously known as 'BGM/SE fix'. + + Note that this not only changes which audio files are played, but also when BGM starts to play/stops playing, in certain cases.", + 1, // GAltBGM + 1, // GAltBGMFlow + 1, // GAltSE + 1 // GAltSEFlow + ); + + ModAddAudioset( + "OST Remake", + "Handmade remakes of several music tracks from the original release (pre-2019), using the Console timings", + "JP: OST Remake", + "JP: Handmade remakes of several music tracks from the original release (pre-2019), using the Console timings", + 2, // GAltBGM + 0, // GAltBGMFlow + 0, // GAltSE + 0 // GAltSEFlow + ); + CallScript( "flow" ); }