コミュニティQ&A

Audiokineticのコミュニティ主導のQ&Aフォーラムへようこそ。ここはWwiseとStrataのユーザのみなさまがお互いに協力し合う場です。弊社チームによる直接のサポートをご希望の場合はサポートチケットページをご利用ください。バグを報告するには、Audiokinetic LauncherのBug Reportオプションをご利用ください。(Q&AフォーラムではBug Reportを受け付けておりませんのでご注意ください。専用のBug Reportシステムをご利用いただくことで、バグの報告が適切な担当部門に届き、修正される可能性が高まります。)

最適な回答を迅速に得られるよう、ご質問を投稿される際は以下のヒントをご参考ください。

  • 具体的に示す:何を達成したいのか、またはどんな問題に直面しているのかを具体的に示してください。
  • 重要な詳細情報を含める:Wwiseとゲームエンジンのバージョンやご利用のOSなど詳細情報を記載してください。
  • 試したことを説明する:すでに試してみたトラブルシューティングの手順を教えてください。
  • 事実に焦点を当てる:問題の技術的な事実を記載してください。問題に焦点を当てることで、ほかのユーザのみなさまが解決策を迅速に見つけやすくなります。

0 支持

I'm having an issue where Wwise's post build step is failing to find a target that I think shouldn't exist when making my cooked Client and Server builds. WWise is being used as a project plugin btw.

My cook command is

call RunUAT ^
-ScriptsForProject=%BLAH%/Blah.uproject ^
BuildCookRun ^
-project=%BLAH%/Blah.uproject ^
-noP4 ^
-clientconfig=Development ^
-serverconfig=Development ^
-utf8output ^
-platform=Win64 ^
-client ^
-build ^
-cook ^
-map=BlahA+BlahB+MainMenu ^
-unversionedcookedcontent ^
-compressed ^
-stage ^
-package ^
-stagingdirectory=%STAGING_BUILD_DIR% ^
-compile ^
-SkipCookingEditorContent ^
-server ^
-serverplatform=Linux ^
-pak ^
-unversioned ^
-unattended

This generates

LogAkPluginActivator: Error: Could not read file: ../../../Blah/Binaries/Win64/Blah.target

I have BlahClient.target and BlahServer.target, but not 'Blah.target'. Is this a WWise bug?

 

Erik L. (120 ポイント) General Discussion
This continue to be a problem in the UE4.25 integration. When building a cooked/packaged WindowsClient it looks for Game.target instead of GameClient.target.

回答 2

0 支持

I had a similar problem with that log:
"LogAkPluginActivator: Display: AkPluginActivator parameters: Client -run=AkPluginActivator -platform=Win64 -configuration=Profile -targetconfig=Development
LogAkPluginActivator: Display: Plug-ins required for <Windows> platform are: AkRoomVerb
LogAkPluginActivator: Error: Could not read file: C:/build/Binaries/Win64/NewProject.target"

Problem was with PlatformArchitecture. Plugin thought that I was using PlatformArchitecture = "vc140", but I used Visual Studio 2019 / 2017
So I add hardcode to AkWindowsInitializationSettings.cpp use "vc150"
In FillInitializationStructure methode

void UAkWindowsInitializationSettings::FillInitializationStructure(FAkInitializationStructure& InitializationStructure) const
{
#if PLATFORM_64BITS
       #define AK_WINDOWS_ARCHITECTURE "x64_"
#else
       #define AK_WINDOWS_ARCHITECTURE "Win32_"
#endif
       constexpr auto PlatformArchitecture = AK_WINDOWS_ARCHITECTURE "vc150";

#undef AK_WINDOWS_ARCHITECTURE

       InitializationStructure.SetPluginDllPath(PlatformArchitecture);
       InitializationStructure.SetupLLMAllocFunctions();

       CommonSettings.FillInitializationStructure(InitializationStructure);
       CommunicationSettings.FillInitializationStructure(InitializationStructure);
       AdvancedSettings.FillInitializationStructure(InitializationStructure);

#if PLATFORM_WINDOWS
       InitializationStructure.PlatformInitSettings.uSampleRate = CommonSettings.SampleRate;
#endif
}

Artem M. (160 ポイント)
I appreciate the response but this does not address the problem I have.
This is still a problem in UE 4.25 and the latest WWise. I'm having to reapply my fix for it each update which is irritating. I'm hearing from other people they have similar problems with wwise. We'll likely ditch it in favor of the built in audio tools if this persists.
+1 支持

I solved this problem by adding some codes to AkPluginActivatorCommandlet.cpp

 

int32 UAkPluginActivatorCommandlet::Main(const FString& Params)

{

    // @todo: Determine whether files should be written here at all. It is possible to create these files right after successful bank generation.

 

#if !WITH_EDITOR

    return -1;

#else

    if (!FApp::HasProjectName())

    {

        UE_LOG(LogAkPluginActivator, Display, TEXT("Project name could not be determined."));

        return 0;

    }

 

    const FString TargetName = FApp::GetProjectName(); // Here:  Only use the project name ,not concern the target. 

    FString TargetName = FApp::GetProjectName();  

    if (Params.StartsWith(TEXT(" Server")))

    {

        TargetName.Append(TEXT("Server"));

    }

    else if (Params.StartsWith(TEXT(" Client")))

    {

        TargetName.Append(TEXT("Client"));

    }

    if (TargetName.IsEmpty() || TargetName.Compare("UE4Game") == 0 || TargetName.Compare("UE4Editor") == 0)

    {

        UE_LOG(LogAkPluginActivator, Display, TEXT("No files will be modified when building the UE4 Wwise engine plug-in."));

        return 0;

     }

Terry W. (160 ポイント)
...