Closed jamesard closed 3 years ago
The integration packages integrate Dissonance with third party assets. For example the WebRTC Network Integration integrates Dissonance with the WebRTC Video Chat asset (just using it for networking).
It sounds like you haven't installed the other asset, and so the scripts which use it can't compile.
Ah, that would explain WebRTC. Thank for for the quick reply!
To confirm, does HLAPI have an asset prereq?
Because if I import Dissonance for HLAPI, I get:
Assets/Dissonance/Integrations/UNet_HLAPI/HlapiClient.cs(67,59): error CS0246: The type or namespace name 'NetworkMessage' could not be found (are you missing a using directive or an assembly reference?)
and a handful of related "network" namespace errors. I'm assuming this is an oddity, only because the Unity Asset Store page for HLAPI doesn't mention a requirement other than Dissonance.
Thanks for help !
In Unity 2019.4 I think HLAPI is not longer included by default as is instead in a package that you have to install from the Unity package manager (this one).
It used to be included within Unity, so there was no extra requirement. I guess I should update that store page now!
Ah! That did it!
Thanks captain!
and.. what about :
using Byn.Awrtc;
using Byn.Awrtc.Unity;
The type or namespace name 'Byn' could not be found. How does it fix?
Do you have the WebRTC Video Chat package installed?
No, I have not. I bought a pack of audio chat and want to get it. I don't need a Video chat..
Dissonance works by using the networking backend from other systems (or a custom networking system, it's up to you). To help with this we publish all the free "network integration packages" which send Dissonance traffic through other network services (e.g. Mirror or Photon).
The error you're getting here is because you've downloaded the integration package for Dissonance and WebRTC Video Chat (Dissonance just uses the networking component of that asset, not the video chat part). So if you want to use that network backend you'd need to install that other asset too.
That's probably not what you want though! If your application is already using networking for other things, you should probably integrate Dissoance with that. If you aren't using any other networking systems yet we've got a page on the documentation which should help you choose which to use. There are plenty of free choices besides the expensive WebRTC integration!
Hi good folks. I seem to have an issue (seemingly immediately after importing) that I can't quite figure out on my own.
Starting with a blank project, I import Dissonance, then import an integration... After importing my integration, the console pops up with a dozen compiler errors. Here's the most common one:
Assets/Dissonance/Integrations/PureP2P/PureP2PServer.cs(4,7): error CS0246: The type or namespace name 'Byn' could not be found (are you missing a using directive or an assembly reference?)
This is true for both the "UNet High Level API (HLAPI)" & "PureP2P WebRTC Network".
I don't believe I'm missing anything from the tutorials found on the https://dissonance.readthedocs.io page.
Is there something obvious I'm missing?
I'm using Unity 2019.4.1f1, on MacOS.
Thanks in advance for any insight!