Xbox One UE4 integration , doc outdated for 4.18


(Nazhor) #1

Hello,

I’m trying to port my game to Xbox One but the documentation from https://www.fmod.com/resources/documentation-api?page=content/generated/engine_ue4/deployment_xboxone.html
is ourdated.

The lines:

Log("Copying FMOD dlls to loose directory: " + RelativeBinPath);
StagedDirectoryReference RelativeBinPathRef = new StagedDirectoryReference(RelativeBinPath);
SC.StageFiles(StagedFileType.NonUFS, FMODDLLPath, “fmod.dll”, false, null, RelativeBinPathRef, false, false);
SC.StageFiles(StagedFileType.NonUFS, FMODDLLPath, “fmodL.dll”, false, null, RelativeBinPathRef, false, false);
SC.StageFiles(StagedFileType.NonUFS, FMODDLLPath, “fmodstudio.dll”, false, null, RelativeBinPathRef, false, false);
SC.StageFiles(StagedFileType.NonUFS, FMODDLLPath, “fmodstudioL.dll”, false, null, RelativeBinPathRef, false, false);

Cause the automation tool to fail while cook the project.

Any solution for the 4.18 integration?


(Cameron Baron) #2

Thanks for the heads up, the changes will be on the website soon:

    if (FMODDLLPath != null)
    {
        Log("Copying FMOD dlls to loose directory: " + RelativeBinPath);
        StagedDirectoryReference RelativeBinPathRef = new StagedDirectoryReference(RelativeBinPath);
        StageFileIfExists(StagedFileType.NonUFS, FileReference.Combine(FMODDLLPath, "fmod.dll"), RelativeBinPathRef, SC);
        StageFileIfExists(StagedFileType.NonUFS, FileReference.Combine(FMODDLLPath, "fmodL.dll"), RelativeBinPathRef, SC);
        StageFileIfExists(StagedFileType.NonUFS, FileReference.Combine(FMODDLLPath, "fmodstudio.dll"), RelativeBinPathRef, SC);
        StageFileIfExists(StagedFileType.NonUFS, FileReference.Combine(FMODDLLPath, "fmodstudioL.dll"), RelativeBinPathRef, SC);
    }

(Nazhor) #3

It works!
Thank you!