Hey Chris!
![:) :)](https://www.adventurecreator.org/forum/resources/emoji/smile.png)
What's the right way to re-import the GameEngine, as suggested by 1.51's release notes?
Hoping to fix the issue with "Gather text" resetting all audio, I'm upgrading from 1.50i to the current 1.52 (and I did upgrade to Unity 5.3.5f1 before doing so, per the release notes).
Now that I'm there, I have various weirdness (loading puts me in a different camera than I saved in with the lighting broken, alignment in menus is off, timestamps in saves have disappeared), and I'm guessing this may be because I haven't yet re-imported the GameEngine, per the release notes.
My best guess at how to re-import is to delete the GameEngine object in the scene, then click "With folders" under the scene manager (
http://www.adventurecreator.org/tutorials/setting-bare-bones-scene seems to suggest this). However, when I do so, the UnityVersionHandler chokes. Looking at the stacktrace, it appears to choke, because it's trying to add the BackgroundCamera to a folder, but the BackgroundCamera already exists:
NullReferenceException: Object reference not set to an instance of an object
AC.UnityVersionHandler.PutInFolder (UnityEngine.GameObject ob, System.String folderName) (at Assets/AdventureCreator/Scripts/Static/UnityVersionHandler.cs:321)
AC.SceneManager.PutInFolder (UnityEngine.GameObject ob, System.String folderName) (at Assets/AdventureCreator/Scripts/Managers/SceneManager.cs:676)
AC.SceneManager.InitialiseObjects (Boolean createFolders) (at Assets/AdventureCreator/Scripts/Managers/SceneManager.cs:485)
AC.SceneManager.ShowGUI () (at Assets/AdventureCreator/Scripts/Managers/SceneManager.cs:70)
This makes me think I'm re-importing wrong. Is there a way to do it that doesn't make AC try to reorganize my scene? How should I be re-importing?
Thanks so much!!
Comments
Second: know that the GameEngine in your scene should already be linked to the prefab located in Assets/AdventureCreator/Prefabs/Automatic. You can tell if the GameEngine is listed blue in the scene's Hierarchy window. So importing the new GameEngine prefab should also update any necessary changes to the one in your scene.
Don't remove the GameEngine in your scene - that contains things like your scene settings, local variables etc, that are necessary for your scene to work properly.
Also know that a full import of AC will change your loaded Managers - the Demo game's Managers will become loaded into your AC Game Editor window, which means you'll have to re-assign your own Managers back in. You can do this in one go by double-clicking the ManagerPackage asset file that is in your game's subfolder, created when you used the New Game Wizard to create your Managers in the first place. This is covered in more detail in Section 1.6 of the Manual.
Thank you for any advice!