Brackeys / MultiplayerFPS-Tutorial

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

Compile errors Unity 5.5.0b3 #4

Open schovan opened 8 years ago

schovan commented 8 years ago

When I open the project in Unity Unity 5.5.0b3, I get compile errors - see attached screenshot. I don't know how to fix it, please help. errors

TheModdersDen commented 8 years ago

I appear to be having the same problem

ghost commented 8 years ago

This has something to do with thew Database Control Asset. Did you download it from the store? You can find the link to the Asset right here.

TheModdersDen commented 8 years ago

Yes. I've tried with both the one that came with this project, and the one from the asset store I believe the problem is that the project is targeting the .NET framework 4.0, and the DatabaseControl.dll asset's assembly info is having it set to target v3.5.

In essence, it's the very reason why some nugget packages fail to install... The target version for the assembly and the project after 2 different versions, and Unity (or Mono, IDK which) doesn't like that.

PrinceRising commented 7 years ago

Yeah i've got the same issue

thesteamguy8 commented 7 years ago

Hey guys, I have come up with a solution, Problem:-
The problem here is that we do not have the database control or we do not have the paid version of database control, Brackeys did all of his work perfectly, the problem here is that we have the free version and all that stuff. Solution:- Now, first of all, if you do not have Database Control, go to your imported project in unity and delete the included database control file provided with the project, after you have done that, Download DatabaseControlFree from here[thats the same file Brackey's used, but an updated version...] :- https://www.assetstore.unity3d.com/en/#!/content/41337 and you are done with the downloading part. Now in the console,double click on the first script, and it will take you to VisualStudio/MonoDevelop [Depending on what you use, in my case, MonoDevelop], once it opens, you will see the script and replace the Highlighted word [i.e. DC or DatabseControl, followed by a dot(.) and a word][replace only the DC or DatabaseControl] with 'DCF' go ahead and hit save, and you will notice that the first error will go off. Do the same to all the errors and you are done!!

:+1: If this helped you :100: , Support me on patreon : https://www.patreon.com/TheSteamGuy Subscribe me on youtube : https://www.youtube.com/channel/UC8JfEe-OZzqReISIpwX2DQw

If it did not work :-1: ,then quote this reply and let me know.....

~TheSteamGuy Developer&Hardware&Sotware Engineer

nisaldilshan commented 7 years ago

Same Problem Here

leonoe commented 7 years ago

sdd

But how can I fix this problem @thesteamguy8 ???? PLEASE HELP

thesteamguy8 commented 7 years ago

can you show me the screenshot of the code [the part where the problem occours], also, it would be great if you provide a snippet of the whole code along with the screenshot...

~TheSteamGuy

Matspyder51 commented 7 years ago

Same problem here : image

image

image

thesteamguy8 commented 7 years ago

Fix for: [Null Reference Exception: Object reference not det to an instance of an object. LoginMenu+c__Iterator1.MoveNect () (at Assets/Scripts.....]

who so ever is getting this problem, make sure that you have enabled unity services[multiplayer services], this might be a problem because in the new version of unity, you have to enable the unity multiplayer services to enable internet matchmaking features(this feature has a limit of 10 people).

By enabling unity multiplayer options(as brackeys did), you unlock the feature of online matchmaking options, in the basic version of unity, you are only allowed to invite only 10 players. In the pro version of unity, you are allowed to invite 100players.

Possibilities of this problem: 1.You have not enabled unity services 2.You are not logged in to your unity account 3.There is a bug in the installed version 4.It is not compatible with the following version

possibilites are endless

There are two solutions to this problem.

  1. Install the older version of unity, the best one is the one used by brackeys in the tutorial.
  2. Set this Project to LAN only by using unet(Offline) or photon unity(offline).

This is the best solution that I can provide with the given info.

👍 If this helped you 💯 , Support me on patreon : https://www.patreon.com/pranesharry?alert=1 Subscribe me on youtube : https://www.youtube.com/channel/UC8JfEe-OZzqReISIpwX2DQw

If it did not work 👎 ,then quote this reply and let me know.....

~TheSteamGuy

thesteamguy8 commented 7 years ago

Fix For [Null Reference Exception: Object reference not det to an instance of an object. LoginMenu.Start() (At Assets/....]

This is a simple fix, you may not have set the menu properly. For more info check the Brackey's video on menu's!

👍 If this helped you 💯 , Support me on patreon : https://www.patreon.com/pranesharry?alert=1 Subscribe me on youtube : https://www.youtube.com/channel/UC8JfEe-OZzqReISIpwX2DQw

If it did not work 👎 ,then quote this reply and let me know.....

~TheSteamGuy

burakmert61 commented 7 years ago

error

0xhex commented 6 years ago

screenshot 2017-10-29 02 51 34

any idea?login and register not working,when i try to login with lobby scene,player is on the air

Arjay01 commented 6 years ago

@thesteamguy8

https://www.assetstore.unity3d.com/en/#!/content/41337

^^^ link does not work, just says 404 content not found. Is there any other link?

KhachNazar commented 6 years ago

Had the same issues described above. The solution is very easy. The problem is that the developer changed a bunch of things and now you just have to write string returnedd = ee.Current as string; and not WWW returnedd = ee.Current as WWW; then change everywhere returnedd.text to returnedd. everything c]should work. Do it also with "returned" screenshot 47

Cyroen commented 5 years ago

i have a problem when i login/register it just infinite loads! please help!