Cycling74 / rnbo.unity.audioplugin

RNBO Adapter for Unity's Native Audio Plugin
MIT License
40 stars 8 forks source link

Unity Build with custom plugins not working on other computers #50

Open JimPapanick opened 6 days ago

JimPapanick commented 6 days ago

in unity i've made a game that uses custom audio plugins from max msp's rnbo. i built it on a regular laptop windows 11 home. is there any obvious reason why the plugins in other laptops don't work? I attach my game below so you can look for yourself at the build. https://error-occurred.itch.io/the-room-puzzle

For me it seems that other laptops are missing some libraries but isn't everything inside the exported plugin?

I'm not a programmer or a pro at maxmsp, so please lemme know if it's something that can or can't be fixed

jinpavg commented 5 days ago

Hi Jim, very cool idea for a game! Unfortunately (or fortunately?) I think that the game is working for me, so I'm not getting any errors.

I can start the game, I can start to play with my voice, I can tell the ali baba door "open sesame," etc. I hear music playing in the background (very quiet, but I hear it).

Can you share some of the errors you are getting on other machines?

JimPapanick commented 5 days ago

Should've specified. Those levels don't use any rnbo plugins so far. That starts after level 4 when you have to dim up the lights. The dimmer should be moving along with your voice but it doesn't. Also next level where you have to lift the crates , they also should be moving but aren't. To quickly go to those rooms just say "skip" or "skip this level" . All the solutions and cheatcodes are in the Walkthrough.txt

JimPapanick commented 2 days ago

Has anyone looked into this? Anyone else have a similar problem? It's like anything that includes the exported dll's isn't being initialized on other computers. I've checked for OS (they have the same if not very close versions) I've checked for .NET Framework versions (Also same between pcs) I've checked audio input/output general settings (same) I've checked if the .dll's are in the downloaded build folder and they seem ok

It just seems like the game is working on the pc that it was built on but on others, ONLY the exported custom rnbo plugins aren't working.

jinpavg commented 2 days ago

Hi Jim -- skipping the levels with "skip" gets me to the high/low note sections, and while I'm not sure if they are functional, I also don't see any errors. Are you getting any errors that you could copy and share here in text form?

If you build your RNBO plugin for Windows, and then build your game from Unity for Windows with the plugin included in your build, you should be able to hear your RNBO-generated audio on other Windows machines.

Here's a question -- if you build your Windows game from Unity, can you quit the Unity editor and successfully run the game (RoomPuzzle.exe) with RNBO-generated audio on that computer? Or are you only hearing audio in the editor?

If you can only hear audio in the editor, you may need to make sure your game has some logic that actually spawns the audio source or listener in the scene, as you might be hearing the audio of the Audio Mixer in-editor but not actually have a component that generates this audio in your game.

Thank you for your patience -- as this is an experimental "use at your own risk" repository, we do endeavor to support you here, but the support might take a little bit of time.

JimPapanick commented 1 day ago

Thanks for all the troubleshooting, it's due to november so if it seems I'm rushing , it's cause i'm anxious haha

1: The game is always played from the build folder' .exe with the Unity editor and Hub closed. 2: The game never fails to work in the pc it was built on. 3: Other pc's get stuck at the dimmer where you light up the room with your voice. 4: In levels 5 and 6 your voice should go through an fzero~ based plugin with NO OUTPUT so you should NOT hear your voice. I've noticed that I do hear my voice on those levels on other computers (not the one it was built on). The fact that you can hear your voice in those levels indicates that both the attenuation and my custom plugins aren't working (pic attached) 5: I'm getting no errors or warnings when playing through the editor. image

jinpavg commented 1 day ago

Thank you... it sounds like the RNBO plugin dll is probably not being included in your build, or something like that. Can you also share a screenshot of your build settings in the Unity editor, your package settings in the package manager, anything that we could look at to see how you have the project set up?