Hi!
I have re-launched a slightly old (6 months) project after having not opened it for a while and it wont play. Im getting 2 red errors:
Error removing component when merging prefab changes: Can't remove AudioSource because Sound (Script) depends on it
and
NullReferenceException: Object reference not set to an instance of an object
AC.MainCamera.SetFirstPerson () (at Assets/AdventureCreator/Scripts/Camera/MainCamera.cs:327)
AC.PlayerStart.SetPlayerStart () (at Assets/AdventureCreator/Scripts/Navigation/PlayerStart.cs:71)
AC.SceneSettings.FindPlayerStart () (at Assets/AdventureCreator/Scripts/Game engine/SceneSettings.cs:133)
AC.SceneSettings.OnStart () (at Assets/AdventureCreator/Scripts/Game engine/SceneSettings.cs:96)
AC.MultiSceneChecker.Start () (at Assets/AdventureCreator/Scripts/Game engine/MultiSceneChecker.cs:48)
Can you please be of assistance?
Im on Unity 5.3.5f1
and Adventure creator 1.51g
MArk
Comments
The line references don't match up wth AC v1.51g so far as I can tell - have you edited the MainCamera script?
It sounds like it can't find a Player prefab in your scene when the game runs, or at least not one with a First Person Camera component on it. Have you got your prefab correctly assigned in the Settings Manager?
I can't say much about the first error, I haven't heard of it before. It sounds like it could be to do with updating the original Sound prefab by accident. Try re-importing AC again.
As I am in the process of re-building all my players (its possible to swap players in this game) so maybe I sort out the problem. But that first one, I have just re-imported AC. I did so before posting the above message. I had the same error before, and after update it still appeared.
1) Copy the very top Audio Source component (the cog icon on the right)
2) Click "Revert"
3) Overwrite the now-only Audio Source Component's values by pasting over it (the cog icon again)
4) Make sure the Sound component is as it should be (Sound type = SFX etc)