denbigh7 Posted June 5 Posted June 5 Many of you know that I use Sound Editor to import audio files (commentary, entrance names, etc) into WWE2K14. Once I create WEMS, importing works like a charm. The problem is, @TheVisitorX was never able to get the WEM convertor tool working inside SE for WEMS formatted specifically for 2K14. That tool works fine for newer versions of the game, but not 2K14. The workaround is that I have to manually create WEMS in an older version of WWise using specific settings. I'm able to do it and it works fine, but it's a tedious task. My thought was, surely in this day and age of AI, a batch file or something of the like could be created to help automate this process. Here's what I would like to do: have a folder of WAV files on my desktop, run a batch file/command line and have WWise automatically covert those WAV files into WEMS ready to import into 2K14 using Sound Editor. Should be possible, correct? I actually typed this into Chat GPT a few times and it seemed to give me the proper way to accomplish it, but it's a bit over my head. Can someone help me with this? I'm not exactly sure how to properly set it all up with the given information. Here's what I do know that the batch file needs to contain: Wwise v2015.1.9 build 5624 (the version of WWise that I'm using) Xbox360 (the platform for the WEM) Volume 12 Vorbis Quality High Channels: Stereo Sample Rate 32000 Seek Table 4096 These are all the settings I perform in WWise and then I hit 'convert'. I would love for this to be an automated process. Any help would be greatly appreciated and I'd happily share the batch file with everyone who still uses Sound Editor for 2K14 audio files. Below is what Chat GPT gave me when I asked it to create a batch file for me using the above settings, but I couldn't really make heads or tails of it. @echo off setlocal enabledelayedexpansion :: Configuration set "WWISE_CLI=E:\Games\WWE2k14 Mods\Audio Files\Wrestling Legends Audio\Audiokinetic (Wwise 2015 & 2016)\Wwise v2015.1.9 build 5624\Authoring\x64\Release\bin\WwiseCLI.exe" set "PROJECT_DIR=%~dp0WwiseProject" set "INPUT_DIR=%~dp0Input" set "OUTPUT_DIR=%~dp0Output" set "IMPORT_FILE=%PROJECT_DIR%\import.txt" set "CONVERSION_SETTINGS=%PROJECT_DIR%\ConversionSettings.xml" set "WWISE_PROJECT=%PROJECT_DIR%\TestProject.wproj" :: Ensure WwiseCLI exists if not exist "%WWISE_CLI%" ( echo Error: WwiseCLI.exe not found at %WWISE_CLI%. Please update the path. exit /b 1 ) :: Create directories if they don't exist if not exist "%PROJECT_DIR%" mkdir "%PROJECT_DIR%" if not exist "%INPUT_DIR%" mkdir "%INPUT_DIR%" if not exist "%OUTPUT_DIR%" mkdir "%OUTPUT_DIR%" :: Create a minimal Wwise project if it doesn't exist if not exist "%WWISE_PROJECT%" ( echo Creating new Wwise project at %WWISE_PROJECT% echo ^<?xml version="1.0" encoding="utf-8"?^> > "%WWISE_PROJECT%" echo ^<WwiseDocument Type="WorkUnit" ID="{00000000-0000-0000-0000-000000000000}" SchemaVersion="73"^> >> "%WWISE_PROJECT%" echo ^<AudioObjects^>^</AudioObjects^> >> "%WWISE_PROJECT%" echo ^<WorkUnit Name="Default Work Unit" ID="{00000000-0000-0000-0000-000000000001}" PersistMode="Standalone"/^> >> "%WWISE_PROJECT%" echo ^</WwiseDocument^> >> "%WWISE_PROJECT%" ) :: Create Conversion Settings XML file echo Creating Conversion Settings at %CONVERSION_SETTINGS% ( echo ^<?xml version="1.0" encoding="UTF-8"?^> echo ^<ConversionSettings^> echo ^<Platform Name="Xbox 360"^> echo ^<Conversion^> echo ^<Format^> echo ^<Property Name="Format" Value="Vorbis Quality High"/^> echo ^<Property Name="SampleRate" Value="32000"/^> echo ^<Property Name="BitRate" Value="76000"/^> echo ^</Format^> echo ^</Conversion^> echo ^</Platform^> echo ^</ConversionSettings^> ) > "%CONVERSION_SETTINGS%" :: Create import file for WAV files echo Creating import file at %IMPORT_FILE% echo Audio File Audio Source Path Audio Object Path Audio Object Type > "%IMPORT_FILE%" for %%F in ("%INPUT_DIR%\*.wav") do ( echo %%~nxF %%~fF \Actor-Mixer Hierarchy\Default Work Unit\%%~nF Sound >> "%IMPORT_FILE%" ) :: Run WwiseCLI to import and convert echo Running WwiseCLI to import and convert WAV files... "%WWISE_CLI%" "%WWISE_PROJECT%" -Import "%IMPORT_FILE%" -Convert "%CONVERSION_SETTINGS%" -Save -GenerateSoundBanks -Platform Windows -Output "%OUTPUT_DIR%" if %ERRORLEVEL% equ 0 ( echo Conversion completed successfully. WEM files are in %OUTPUT_DIR%. ) else ( echo Error: WwiseCLI failed with error code %ERRORLEVEL%. exit /b %ERRORLEVEL% ) endlocal Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.