Forum rules - please read before posting.

RememberSound and RememberMaterial scripts causing console Warnings upon loading

edited September 30 in Technical Q&A

Unity 6000.0.25f1
AC v1.84.3

I have 2 weird warnings that are spammed about 15 times everytime I load a save. These disappear if I disable all the RememberSound and RememberMaterial components in my scene. I have tried -

  • Creating new empty scenes and adding these components to gameobjects
  • Deleting Library and temp folders
  • Updating and reimporting AC
  • Rolling back to a previous branch in version control
  • Checking all my gameobjects, assets and prefabs for any missing components.

I only noticed these warnings recently since I started working on adding save functionality to the game, but they may have existed from before. I also tried adding a custom Remember script to my game and saved it in the AdventureCreator/Scripts/Save system/ folder, then moved it out of the folder to a different one and saved the script, which recreated a copy in the AC folder again which I then deleted. I don't know if that's related to this issue and the issue might have existed before that without me noticing it. I then completely deleted the custom script and removed it from the scene (and then rolled back to a changeset before it had been created)

Error 1 -

The referenced script (Unknown) on this Behaviour is missing!
UnityEngine.Resources:LoadAll (string,System.Type)
AC.AssetLoader:RetrieveAssetFiles<UnityEngine.AudioClip> (UnityEngine.Object[]&,string) (at Assets/AdventureCreator/Scripts/Static/AssetLoader.cs:233)
AC.AssetLoader:RetrieveAudioClip (string) (at Assets/AdventureCreator/Scripts/Static/AssetLoader.cs:156)
AC.AssetLoader:RetrieveAsset<UnityEngine.AudioClip> (UnityEngine.AudioClip,string,bool) (at Assets/AdventureCreator/Scripts/Static/AssetLoader.cs:101)
AC.RememberSound/<LoadDataCo>d__3:MoveNext () (at Assets/AdventureCreator/Scripts/Save system/RememberSound.cs:96)
AC.LevelStorage/<UnloadScriptData>d__31:MoveNext () (at Assets/AdventureCreator/Scripts/Save system/LevelStorage.cs:860)
AC.LevelStorage/<LoadSceneData>d__19:MoveNext () (at Assets/AdventureCreator/Scripts/Save system/LevelStorage.cs:449)
AC.LevelStorage/<ReturnCurrentLevelData>d__7:MoveNext () (at Assets/AdventureCreator/Scripts/Save system/LevelStorage.cs:165)
AC.SaveSystem/<InitAfterLoadCo>d__52:MoveNext () (at Assets/AdventureCreator/Scripts/Save system/SaveSystem.cs:838)
UnityEngine.MonoBehaviour:StartCoroutine (System.Collections.IEnumerator)
AC.SaveSystem:InitAfterLoad (int) (at Assets/AdventureCreator/Scripts/Save system/SaveSystem.cs:791)
AC.SaveSystem/<ReceiveDataToLoadCo>d__49:MoveNext () (at Assets/AdventureCreator/Scripts/Save system/SaveSystem.cs:716)
UnityEngine.MonoBehaviour:StartCoroutine (System.Collections.IEnumerator)
AC.SaveSystem:ReceiveDataToLoad (AC.SaveFile,string) (at Assets/AdventureCreator/Scripts/Save system/SaveSystem.cs:612)
AC.SaveFileHandler_SystemFile:Load (AC.SaveFile,bool,System.Action`2<AC.SaveFile, string>) (at Assets/AdventureCreator/Scripts/Save system/FileHandling/SaveFileHandler_SystemFile.cs:123)
AC.SaveSystem:LoadSaveGame (AC.SaveFile) (at Assets/AdventureCreator/Scripts/Save system/SaveSystem.cs:509)
AC.SaveSystem:LoadGame (int,int,bool) (at Assets/AdventureCreator/Scripts/Save system/SaveSystem.cs:422)
AC.MenuSavesList:ProcessClick (AC.Menu,int,AC.MouseState) (at Assets/AdventureCreator/Scripts/Menu/Menu classes/MenuSavesList.cs:898)
AC.MenuElement:ProcessClickUI (AC.Menu,int,AC.MouseState) (at Assets/AdventureCreator/Scripts/Menu/Menu classes/MenuElement.cs:312)
AC.MenuSavesList/<>c__DisplayClass32_1:<LoadUnityUI>b__0 () (at Assets/AdventureCreator/Scripts/Menu/Menu classes/MenuSavesList.cs:203)
UnityEngine.EventSystems.EventSystem:Update ()

Error 2 - The referenced script (Unknown) on this Behaviour is missing!
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

In case this is a complex issue to fix, would it be safe to ignore these warnings?

Thanks!

Comments

  • Fixed it - It was an unrelated asset (in a Resources folder) that had a broken component for some unknown reason.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.