Audiokinetic's Community Q&A is the forum where users can ask and answer questions within the Wwise and Strata communities. If you would like to get an answer from Audiokinetic's Technical support team, make sure you use the Support Tickets page.

0 votes

I would like users to generate soundbanks in a local intermediate directory with a batch file.

Ideally I'd like for this process to use overridden local User Settings, however the official Wwise documentation states:

User SoundBanks Settings are normally ignored when SoundBank generation is launched from the command line. However, when using the Source Control for generated SoundBanks, the User Project Settings are loaded for the Source Control settings.

https://www.audiokinetic.com/en/library/edge/?source=SDK&id=ak_wwise_cli_generatesoundbank.html

I won't be enabling source control for this local intermediate staging process.

This is the batch file prompt that I have:

"%WwiseExeFolder%\WwiseConsole.exe" generate-soundbank "%WwiseProjectFolder%\MyProject.wproj" --root-output-path "%SoundbankOutputDirectory%" --platform "Windows" --output "Windows" "%SoundbankOutputDirectory%\Windows" --language "English(US)" --no-source-control --verbose

The result:

  • WwiseConsole.exe is correctly invoked and "--verbose" prints a list of all processed files.
  • Source control is disabled with "--no-source-control" as expected.
  • The project file "MyProject.wproj" is correctly loaded.
  • The "--root-output-path" is set correctly and ProjectInfo.xml and ProjectInfo.json files are generated at the location of "%SoundbankOutputDirectory%"
  • The commandlet runs only for the Windows platform, as expected.
  • Only the English(US) assets are processed, as expected.
  • However, no assets are output to "%SoundbankOutputDirectory%\Windows".

It appears that the command line --output isn't working as I expect: --output "Windows" "%SoundbankOutputDirectory%\Windows"

In testing this I have substituted a hard coded path, and ensured that the full directory path exists including the "Windows" directory. No files were generated in the destination folder. The documentation for --output states:

--platform PLATFORM
--platform PLATFORM1 PLATFORM2 ...
--platform PLATFORM1 --platform PLATFORM2 ...

Specifies the platforms for which SoundBanks are generated. This option must be followed by the platform identifiers.

https://www.audiokinetic.com/en/library/edge/?source=SDK&id=ak_wwise_cli_generatesoundbank.html

Does anyone know why this might be failing?

Thanks.

Gareth

in General Discussion by Gareth M. (140 points)

Please sign-in or register to answer this question.

...