steam-audio icon indicating copy to clipboard operation
steam-audio copied to clipboard

UE5 Please

Open whostea opened this issue 3 years ago • 2 comments

Please, build plugin for ue5.0 and later

whostea avatar Jul 23 '22 01:07 whostea

I've been looking into what's holding it back and there are two things I can see right now.

One is SteamAudioSDK.Build.cs has a reference to the Win32 target platform. This entire block can be removed (I think).

The second is two vector conversions throwing errors in lines 107 and 291 of SteamAudioScene.cpp

I'm far from an expert but I'm going to see if I can get the plugin to compile after resolving those issues. There's a good chance I'll hit more snags but if I have luck, I'll report back. :)

ShaneTim avatar Aug 12 '22 06:08 ShaneTim

I got it to compile with these changes: https://github.com/devhyper/steam-audio/commit/77d58a76a83e00418e3ccb31fee69a48997612cf

devhyper avatar Aug 29 '22 07:08 devhyper

I got it to compile with these changes: devhyper@77d58a7

I could get the plugin to compile but the "Steam Audio" Mode doesn't show up (therefore cannot export the scene nor bake reverbs). Did you find a way to make it work in your fork?

aptrn avatar Nov 18 '22 14:11 aptrn

I could get the plugin to compile but the "Steam Audio" Mode doesn't show up (therefore cannot export the scene nor bake reverbs). Did you find a way to make it work in your fork?

The steam audio mode shows up for me. 51531

devhyper avatar Nov 19 '22 02:11 devhyper

Hey @devhyper that's really great news for me, I was going to use the 2.1.1 version since I couldn't make it work but this really gives me hope!

Sad news is that I tried again and again and I still cannot get the Steam Audio Mode to show up 😭

What I'm doing atm is:

  • Clone your fork

  • Add shutil.copy("steamaudio/lib/windows-x64/phonon.lib", "src/SteamAudioUnreal/Plugins/SteamAudio/Source/SteamAudioSDK/lib/windows-x64") to line 50 of setup.py (without this one the build fails while looking for "phonon.lib", I guess this is the problematic bit!)

  • Run setup.py

  • cd build and mkdir windows-vs2019-x64 and cmake-gui ../..

  • Configured like this image

  • Double click on Phonon.sln and build solution

Build doesnt finish for phonon_unreal_fmod and phonon_unreal_fmod_setup reporting error below, but I guess that should not matter since I won't use Fmod Studio (not sure if that's needed anyway, also not sure of what's breaking the copy process).

Error copying directory from "C:/sa/steam-audio/unreal/src/SteamAudioUnreal/Plugins/FMODStudio" to "C:/sa/steam-audio/unreal/build/windows-vs2019-x64/src/HostProjectFMOD/Plugins/FMODStudio".

Then build finishes for phonon_unreal_win64 and therefore I can open up unreal\build\windows-vs2019-x64\src\HostProject\HostProject.uproject 🙏

When opened I can select Steam Audio as spatialization plugin in the project settings,

image

add Steam Audio components to actors ,

image

but cannot select the Steam Audio Mode in the dropdown! 😭😭😭

image

If you have time could you please help me finding what's wrong on my side? And eventually, if that's doable to you, share the working compiled plugin?

Thank you anyway, your screenshot will make me push this until I get it to work anyway

aptrn avatar Nov 20 '22 14:11 aptrn

Here is the compiled plugin: https://github.com/devhyper/steam-audio/releases/download/v4.1.1/steam-audio-package.zip

As for the build, I used the build.py script after running setup.py:

  1. Open steam-audio/unreal/build/FindUnreal.cmake and replace ${UNREAL_EXECUTABLE_DIR} with the path to unrealbuildtool (ENGINEDIR/Engine/Binaries/DotNET/AutomationTool)
  2. Open build.py and find -DSTEAMAUDIOUNREAL_BUILD_DOCS=TRUE, change it to false
  3. Open a command prompt in that directory and run python build.py -o install it will error out, should be fine.
  4. Go to steam-audio/unreal/bin/unreal and copy SteamAudio directory to replace ENGINEDIR/Engine/Plugins/Runtime/Steam/SteamAudio

devhyper avatar Nov 20 '22 20:11 devhyper

First of all, thank you a lot for your immediate response, that's very kind of you!

Sad thing is that basically I've been doing same steps you wrote down and the build that come out of that still didn't t show the Steam Audio Mode. So I tried your compiled plugin package and it does behave the same, no Steam Audio Mode available!

I'm not sure what's the error at this point. I repaired my 5.0.3 installation and also tried with 5.1 but that the mode just never appears in the editor 🤔 😭

aptrn avatar Nov 21 '22 09:11 aptrn

Continuing with strange behaviours, I noticed that if I go in the Tools dropdown menu with a Level opened up nothing shows up

2022-11-21 12_07_36-Test_CompileSA - Unreal Editor

But then, if I move to the Plugins tab and check the Tools dropdown again, a "Bake Indirect Sound" options appears

2022-11-21 12_07_52-Test_CompileSA - Unreal Editor

🤔

aptrn avatar Nov 21 '22 11:11 aptrn

So turns out I was using the 2.0 version of the plugin. When I put my build in I wasn't able to see the Steam Audio Mode either. I did find the issue though. https://github.com/devhyper/steam-audio/commit/2ee6775131b0343cf6d1001da3165e522a78331e The mode is now a toolbar button: steamaudio

@aptrn

devhyper avatar Nov 23 '22 22:11 devhyper

Ohhh, that's SO great! Compiled off your fork, usual two fixes to make it compile and now IT WORKZ 🎉 Thank you a lot for your work, my winter is now unlocked 🤯 🎇

aptrn avatar Nov 24 '22 10:11 aptrn

hi, can you give a build for ue5.1?

So turns out I was using the 2.0 version of the plugin. When I put my build in I wasn't able to see the Steam Audio Mode either. I did find the issue though. devhyper@2ee6775 The mode is now a toolbar button: steamaudio

@aptrn

whostea avatar Dec 09 '22 19:12 whostea

@whostea https://github.com/devhyper/steam-audio/releases/tag/v4.1.2

devhyper avatar Dec 10 '22 01:12 devhyper

How about the SteamAudioFMODStudio integration plugin? SteamAudio plugin for unreal works good for me, what is giving me an issue is the integration plugin, and I don't have any idea on how to fix that. I'm trying to use FMOD in UE 5.1 and using the steam audio too as stated in the documentation.

MikeGO2611 avatar Dec 17 '22 04:12 MikeGO2611

Nevermind, I decided to go back to UE5.0.3, using @devhyper fork, and it works flawlessly now. Thank you!!!

MikeGO2611 avatar Dec 19 '22 20:12 MikeGO2611

@whostea https://github.com/devhyper/steam-audio/releases/tag/v4.1.2

Doesn't work on my end, it says it was compiled for 5.0.0

googleooer avatar Dec 23 '22 03:12 googleooer

@googleooer Edit the .uplugin file and change 5.0.0 to 5.1.0

devhyper avatar Dec 23 '22 07:12 devhyper

@devhyper After trying to use your prebuild version and following your instructions to compile the plugin, I receive this error no matter what I try. Screenshot 2022-12-24 023548

Do you have any suggestions?

RYRY1002 avatar Dec 23 '22 15:12 RYRY1002

@RYRY1002 I had the same issue. Which version of UE5 are u using? Did you try compiling in Visual Code? If so, what errors did it returned?

MikeGO2611 avatar Dec 23 '22 15:12 MikeGO2611

@googleooer Edit the .uplugin file and change 5.0.0 to 5.1.0

Yeah I tried that, but I get the errors above

googleooer avatar Dec 23 '22 15:12 googleooer

@RYRY1002 I had the same issue. Which version of UE5 are u using? Did you try compiling in Visual Code? If so, what errors did it returned?

I used 5.1. Compiled with the build.py script only.

RYRY1002 avatar Dec 23 '22 16:12 RYRY1002

@RYRY1002 I had the same issue. Which version of UE5 are u using? Did you try compiling in Visual Code? If so, what errors did it returned?

I used 5.1. Compiled with the build.py script only.

So, what I did was compiling the project with the plugin, not the plugin itself. To do so, you need a c++ unreal project, I would suggest creating a new project with C++ instead of blueprints just for compiling. Delete SteamAudio plugin folders from the engine installation path. On your project, copy the plugins in the folder "Plugins" (you will need to create that folder next to the .uproject). Then you should add the SteamAudio plugin from @devhyper fork, start the project and enable the plugins, close unreal. Open the .snl created and located next to the project .uproject with visual studio. In a window you will see a list with your project, right click over your project name and choose "Build".

It will try to compile. If it compiles, great, you can just copy the plugins of the project to your project. If not (the most probable one), show us what errors visual studio returns.

MikeGO2611 avatar Dec 23 '22 17:12 MikeGO2611

Replying to https://github.com/ValveSoftware/steam-audio/issues/210#issuecomment-1364141910

If it worked for you, can you share your successfuly compiled version?

googleooer avatar Dec 23 '22 21:12 googleooer

If it worked for you, can you share your successfuly compiled version?

I can, sadly I don't have access to the computer with the compile version until 9 of January. Until then, I cannot share it.

MikeGO2611 avatar Dec 24 '22 17:12 MikeGO2611

I got it to compile and load, but it's nowhere to be seen in the editor even though it's enabled

googleooer avatar Dec 24 '22 19:12 googleooer

Nevermind it worked, i was trying to compile the release instead of the source lol

googleooer avatar Dec 24 '22 19:12 googleooer

Replying to #210 (comment)

Thanks! Following this tutorial, I managed to get it to compile. Here is my compiled version (place in UE_5.1\Engine\Plugins\Runtime\Steam)

RYRY1002 avatar Dec 26 '22 02:12 RYRY1002

Replying to #210 (comment)

Thanks! Following this tutorial, I managed to get it to compile. Here is my compiled version (place in UE_5.1\Engine\Plugins\Runtime\Steam)

Does it actually work properly for you? Whenever I try to play in editor with my version and a SteamAudioSource is active it crashes with an access violation error related to SteamAudioSourceComponent's BeginPlay code.

googleooer avatar Dec 26 '22 02:12 googleooer

Replying to #210 (comment)

Thanks! Following this tutorial, I managed to get it to compile. Here is my compiled version (place in UE_5.1\Engine\Plugins\Runtime\Steam)

Does it actually work properly for you? Whenever I try to play in editor with my version and a SteamAudioSource is active it crashes with an access violation error related to SteamAudioSourceComponent's BeginPlay code.

Yes, assuming you've configured it correctly, it works just fine for me.

RYRY1002 avatar Dec 26 '22 03:12 RYRY1002

Replying to #210 (comment)

Thanks! Following this tutorial, I managed to get it to compile. Here is my compiled version (place in UE_5.1\Engine\Plugins\Runtime\Steam)

Does it actually work properly for you? Whenever I try to play in editor with my version and a SteamAudioSource is active it crashes with an access violation error related to SteamAudioSourceComponent's BeginPlay code.

Send the log and I'll take a look.

devhyper avatar Dec 26 '22 09:12 devhyper

Replying to #210 (comment)

Thanks! Following this tutorial, I managed to get it to compile. Here is my compiled version (place in UE_5.1\Engine\Plugins\Runtime\Steam)

Does it actually work properly for you? Whenever I try to play in editor with my version and a SteamAudioSource is active it crashes with an access violation error related to SteamAudioSourceComponent's BeginPlay code.

Send the log and I'll take a look.


phonon
phonon
phonon
phonon
phonon
phonon
phonon
phonon
phonon
UnrealEditor_SteamAudio!USteamAudioSourceComponent::BeginPlay() [Y:\Unreal Engine\Projects\steamaudiocompile\Plugins\SteamAudio\Source\SteamAudio\Private\SteamAudioSourceComponent.cpp:235]
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_UnrealEd
UnrealEditor_UnrealEd
UnrealEditor_UnrealEd
UnrealEditor_UnrealEd
UnrealEditor_UnrealEd
UnrealEditor_UnrealEd
UnrealEditor_UnrealEd
UnrealEditor_UnrealEd
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
kernel32
ntdll```

googleooer avatar Dec 27 '22 21:12 googleooer