From b6dcd38f65ad4f8b76821cb3ce795e1904a261dd Mon Sep 17 00:00:00 2001 From: HypoxiE Date: Sat, 12 Jul 2025 13:22:55 +0300 Subject: [PATCH] Implementation of the main functionality of the mod --- Defs/SongDefs/Songs_Gameplay.xml | 26 +++++++++++++------------- README.md | 2 +- add_my_music.bat | 23 +++++++++++++++++++++++ 3 files changed, 37 insertions(+), 14 deletions(-) create mode 100644 add_my_music.bat diff --git a/Defs/SongDefs/Songs_Gameplay.xml b/Defs/SongDefs/Songs_Gameplay.xml index 6059ffa..c88c40a 100644 --- a/Defs/SongDefs/Songs_Gameplay.xml +++ b/Defs/SongDefs/Songs_Gameplay.xml @@ -1,13 +1,13 @@ - - - - Gameplay/Kafka Theme Music EXTENDED - A Dramatic Irony (tnbee mix).Honkai_ Star Rail - 1 - true - - - Gameplay/Wildfire (Cocolia Boss Theme).Honkai_ Star Rail - 1 - true - - \ No newline at end of file + + + + Gameplay/Kafka Theme Music EXTENDED - A Dramatic Irony (tnbee mix).Honkai_ Star Rail + 1 + false + + + Gameplay/Wildfire (Cocolia Boss Theme).Honkai_ Star Rail + 1 + false + + diff --git a/README.md b/README.md index f07fdfb..fcee7a1 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -"# rimworld-ammp" +# Add my music, please! mod for rimworld \ No newline at end of file diff --git a/add_my_music.bat b/add_my_music.bat new file mode 100644 index 0000000..74ff045 --- /dev/null +++ b/add_my_music.bat @@ -0,0 +1,23 @@ +@echo off +echo This command will completely overwrite the Songs_Gameplay.xml file of this modification. If you agree, press Enter, and if not, close this window. +pause + +setlocal enabledelayedexpansion +chcp 65001 +echo ^ > Defs\SongDefs\Songs_Gameplay.xml +echo ^ >> Defs\SongDefs\Songs_Gameplay.xml + +for %%f in (Sounds\Gameplay\*) do ( + set sound_name=%%~nf + + echo ^ >> Defs\SongDefs\Songs_Gameplay.xml + echo ^Gameplay/!sound_name!^ >> Defs\SongDefs\Songs_Gameplay.xml + echo ^1^ >> Defs\SongDefs\Songs_Gameplay.xml + echo ^false^ >> Defs\SongDefs\Songs_Gameplay.xml + echo ^ >> Defs\SongDefs\Songs_Gameplay.xml +) + +echo ^ >> Defs\SongDefs\Songs_Gameplay.xml + +echo Songs_Gameplay.xml overwritten. After restarting the game, music will be added. +pause \ No newline at end of file