@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 set "localappdata=%USERPROFILE%\AppData\LocalLow" set "mod_user_dir=%localappdata%\Ludeon Studios\RimWorld by Ludeon Studios\AddMyMusic_data" if not exist "%mod_user_dir%" mkdir "%mod_user_dir%" set "music_database=%mod_user_dir%\music_is_here" if not exist "%music_database%" mkdir "%music_database%" chcp 65001 echo ^ > "%mod_user_dir%\Songs_Gameplay.xml" echo ^ >> "%mod_user_dir%\Songs_Gameplay.xml" for %%f in ("%music_database%\*") do ( set sound_name=%%~nf echo ^ >> "%mod_user_dir%\Songs_Gameplay.xml" echo ^!sound_name!^ >> "%mod_user_dir%\Songs_Gameplay.xml" echo ^Gameplay/!sound_name!^ >> "%mod_user_dir%\Songs_Gameplay.xml" echo. >> "%mod_user_dir%\Songs_Gameplay.xml" echo ^<^^!--The probability of music appearing in the game--^> >> "%mod_user_dir%\Songs_Gameplay.xml" echo ^1.0^ >> "%mod_user_dir%\Songs_Gameplay.xml" echo. >> "%mod_user_dir%\Songs_Gameplay.xml" echo ^<^^!--Music volume--^> >> "%mod_user_dir%\Songs_Gameplay.xml" echo ^1.0^ >> "%mod_user_dir%\Songs_Gameplay.xml" echo. >> "%mod_user_dir%\Songs_Gameplay.xml" echo ^<^^!--If true, it only plays in a combat situation--^> >> "%mod_user_dir%\Songs_Gameplay.xml" echo ^false^ >> "%mod_user_dir%\Songs_Gameplay.xml" echo. >> "%mod_user_dir%\Songs_Gameplay.xml" echo ^<^^!--If you want to limit the time of day, delete '^<^^!- -' and '- -^>' of the desired option--^> >> "%mod_user_dir%\Songs_Gameplay.xml" echo ^<^^!--^Day^--^> >> "%mod_user_dir%\Songs_Gameplay.xml" echo ^<^^!--^Night^--^> >> "%mod_user_dir%\Songs_Gameplay.xml" echo. >> "%mod_user_dir%\Songs_Gameplay.xml" echo ^<^^!--Listing the seasons in which this song is played--^> >> "%mod_user_dir%\Songs_Gameplay.xml" echo ^ ^Winter^^Spring^^Summer^^Fall^ ^ >> "%mod_user_dir%\Songs_Gameplay.xml" echo ^ >> "%mod_user_dir%\Songs_Gameplay.xml" echo. >> "%mod_user_dir%\Songs_Gameplay.xml" ) echo ^ >> "%mod_user_dir%\Songs_Gameplay.xml" echo Songs_Gameplay.xml overwritten. After restarting the game, music will be added. pause