Brackeys / MultiplayerFPS-Tutorial

A video series on making a multiplayer first-person shooter in Unity.
The Unlicense
654 stars 287 forks source link

`DatabaseControl' could not be found #9

Open fengfeng521 opened 7 years ago

ASMach commented 7 years ago

I am having the same issue as well after upgrading the project to Unity 5.6.

cesarchamorro commented 6 years ago

Well, I can imagine that you don't have the "DatabaseContro.dll" this is contain in Database Control--- Scripts. If you don't have it, try to download it from the repository again. and this should fix your issue.

Let me know if my answer helped you to fix your issue.

angeldev20 commented 6 years ago

Hi, I have DatabaseControl.dll. but it's still not working. Should I fix some code or configuration?

cesarchamorro commented 6 years ago

Hey man, I'm so sorry you're having this issue, but let's try to fix it. So You said the DLL is the the right location, so what i can imagine is that you're not using the version of unity which this project was made with, so you're having this issue because of an incompatibility, if you go to "MultiplayerFPS/Assets/DatabaseControl/Scripts/" then select databasecontrol, the inspector is going to show you something like this. 36434702-4ee0bf46-1625-11e8-8bc9-b01ee80b4f71

So, now you can say: how in the hell do i fix it?. Well, first of all, make a backup of the scripts that you use from databasecontrol, now, you should download the database control from asset store and this will give you the last version compatible with your unity version. Once you have it restore the scripts that you need to use, but now is going to tell you: The name "`DC' does not exist in the current context", what you need to do is change DC to DCF and now you will have to go in unity, go to menu Windows and then in the list showed click on database control free and create and empty one, once you have it you can click on play and then you will have to register your account and then login. Hopefully is going to fix your issue.

Other way to fix it is getting the version of unity that brackeys was using to buid the game.

Let me know if this fixed your issue.