-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to build Project Acoustics sample project in UE4.22 + Wwise 2019.1.2 #36
Comments
@tonetechnician Thanks for trying out Project Acoustics. It looks like an error may have occurred when running PatchWwise.bat, or there could be an incompatibility with Wwise 2019.1.2. Could you share your copy of AkAudioDevice.h? That should give us some clues. |
Thanks so much @kegodin for getting back to me. Yes, super excited to try out Project Acoustics, seems like it's going to be a bit of game changer for me on an upcoming project. My AkAudioDevice.h is as follows:
Thanks again! |
Thanks @tonetechnician. It's looks like you've run PatchWwise more than once; at the bottom of the file I see 4 copies of the Project Acoustics modifications added by PatchWwise.bat. To fix this, you can go to Wwise, redeploy Wwise to your project, then run PatchWwise once more. After that, you might find there are still build errors. After refreshing your project's Wwise bits and running PatchWwise, please share any remaining build errors here. Thanks! |
In addition to cleaning up AkAudioDevice.h, don't forget to check AkAudioDevice.cpp and AkAudio.Build.cs as well for duplicate entries. |
Thanks for your fast response and apologies for my slow response, was late in my country. Your suggestion definitely helped get me past those initial errors. I wonder if there's a way to make the PatchWwise.bat account for duplicates from reruns. Anywho, here is my log file now, seems an issue of functions not being members of AkAudioDevice and there are some dlls that are coming up as not existing:
Looking online, the .dlls missing could be to do with something on my setup. Not sure if it's applicable to Acoustics. |
Hi @tonetechnician , sorry if this feels like going in circles but these errors are consistent with not having applied PatchWwise.bat after re-installing the Wwise plugin to your Unreal project. PatchWwise.bat adds these methods to FAkAudioDevice so that the Project Acoustics code can derive from them. Could you open up your copy of AkAudioDevice.h and verify that at the very end of the file you have the following? ` AKRESULT SendPluginCustomGameData(AkUniqueID in_busID, AkGameObjectID in_busObjectID, AkPluginType in_eType, AkUInt32 in_uCompanyID, AkUInt32 in_uPluginID, const void *in_pData, AkUInt32 in_uSizeInBytes); @MikeChemi Do you know of any PA incompatibility with Wwise 2019 that @tonetechnician may need to address here? |
Thanks @kegodin, apologies for the slow reply! Didn't get a notification you had replied. I've just checked and this doesn't seem to be there. I have a feeling that the .bat isn't running properly. It seems to create the copies, but then shortly exits afterwards. I'm assuming I can just take from all the .patch files and copy the code there into the corresponding files? I have a feeling my permissions may have been causing that .bat to not complete correctly. I tried running as administrator but still no cigar, so not quite sure what the solution is there. I don't mind this method as work around for now! Will try that ASAP. Are there any further steps after making those edits specified in .patch files to patch Wwise correctly? |
The .bat file will exit after it has completed patching the Ak files. If it is not working for you, it should be simple enough to manually perform the patches done by the .bat file. There's not much magic going on with the .bat file other than copying code into stock Ak files. |
@NoelCross Yes, I understand it would exit. It's more that it exits before I can see if it was successful or not. I actually just recorded a gif of what happens and managed to see the frame. This is what the .bat is reporting - so it can't seem to find the file for likely a permissions reason. Not sure how to go about fixing this as I'm already running as an administrator. This is how fast that error happens and exits. I have tried to apply the patch changes, but not exactly sure where they must go. The .bat gives some indication but I'm afraid my .bat skills are a bit sub par. Is there any walkthrough about what the .bat script does somewhere? |
Thanks @NoelCross. This is exactly what I've been clicking on. I've integrated the project correctly and can see the folder that it's trying to patch. My folder structure for the Plugins directory is the following: -- AcousticsGame If possible, could someone just send me their AkAudioDevice.cpp and AkAudioDevice.h and any other patched files, that'd be awesome! |
Here's a couple of files that represent the patches to the Wwise 2019.2 files (AkAudioDevice.cpp and AkAudioDevice.h) Let me know if these help. |
Thanks @NoelCross! I tried swapping out those files but still ran into issues. I think I've noobed out somewhere along the way though. I started from scratch one more time and got it to work :) I think my issue actually came from running the PatchWwise.bat as an administrator initially. The patch never seemed to complete. I think in my earlier attempts I swapped between the two ways of running the .bat a few times and that caused the project to become all wacky and unopenable. With the fresh download, I ran the PatchWwise.bat once (not as an administrator) and all is well. Very happy! Thanks so much for your patience and assistance through all of this @NoelCross @kegodin Really look forward to the upcoming updates to support. I saw that the 2019.2 has 5th order Ambisonics support. Think all of these features combined are gonna make for something really powerful! |
Hey there!
I'm hoping someone can help. I've been following the steps in the online quickstart and am having no luck being able to open the UE4 project.
I'm using UE4.22.3 and Wwise 2019.1.2.7018 with the required platforms.
I've run the PatchWise.bat, and I've also made the edit to the VSVersion to use VC150 because I'm using VS2019.
I've followed all the steps in the quickstart, but am left with this "OtherCompilationError" when UE tries to rebuild the modules. It seems there are a bunch of files that come up as not existing and then a bunch of declaration errors.
Any help with this would be greatly appreciated!
Thanks!
The text was updated successfully, but these errors were encountered: