Implementation of the main functionality of the mod

This commit is contained in:
2025-07-12 13:22:55 +03:00
parent 836b80a79c
commit b6dcd38f65
3 changed files with 37 additions and 14 deletions

View File

@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="utf-8" ?>
<Defs>
<SongDef>
<clipPath>Gameplay/Kafka Theme Music EXTENDED - A Dramatic Irony (tnbee mix).Honkai_ Star Rail</clipPath>
<volume>1</volume>
<tense>true</tense>
</SongDef>
<SongDef>
<clipPath>Gameplay/Wildfire (Cocolia Boss Theme).Honkai_ Star Rail</clipPath>
<volume>1</volume>
<tense>true</tense>
</SongDef>
</Defs>
<?xml version="1.0" encoding="utf-8" ?>
<Defs>
<SongDef>
<clipPath>Gameplay/Kafka Theme Music EXTENDED - A Dramatic Irony (tnbee mix).Honkai_ Star Rail</clipPath>
<volume>1</volume>
<tense>false</tense>
</SongDef>
<SongDef>
<clipPath>Gameplay/Wildfire (Cocolia Boss Theme).Honkai_ Star Rail</clipPath>
<volume>1</volume>
<tense>false</tense>
</SongDef>
</Defs>

View File

@@ -1 +1 @@
"# rimworld-ammp"
# Add my music, please! mod for rimworld

23
add_my_music.bat Normal file
View File

@@ -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 ^<?xml version="1.0" encoding="utf-8" ?^> > Defs\SongDefs\Songs_Gameplay.xml
echo ^<Defs^> >> Defs\SongDefs\Songs_Gameplay.xml
for %%f in (Sounds\Gameplay\*) do (
set sound_name=%%~nf
echo ^<SongDef^> >> Defs\SongDefs\Songs_Gameplay.xml
echo ^<clipPath^>Gameplay/!sound_name!^</clipPath^> >> Defs\SongDefs\Songs_Gameplay.xml
echo ^<volume^>1^</volume^> >> Defs\SongDefs\Songs_Gameplay.xml
echo ^<tense^>false^</tense^> >> Defs\SongDefs\Songs_Gameplay.xml
echo ^</SongDef^> >> Defs\SongDefs\Songs_Gameplay.xml
)
echo ^</Defs^> >> Defs\SongDefs\Songs_Gameplay.xml
echo Songs_Gameplay.xml overwritten. After restarting the game, music will be added.
pause