Hello everybody,
and first of all a very big Thank You to Chris. This is a wonderful Asset, I have waited for a long time.
Now my problems:
1) I made Save-Game inside my game without problems. But after loading this save I get this error:
IndexOutOfRangeException: Array index is out of range.
SaveSystem.AssignMenuElementVisibility (System.Collections.Generic.List`1 menus, System.String menuElementVisibilityData) (at Assets/AdventureCreator/Scripts/Save system/SaveSystem.cs:1274)
SaveSystem.ReturnMainData () (at Assets/AdventureCreator/Scripts/Save system/SaveSystem.cs:913)
SaveSystem.OnLevelWasLoaded () (at Assets/AdventureCreator/Scripts/Save system/SaveSystem.cs:241)
SaveSystem.LoadSaveGame (Int32 slot) (at Assets/AdventureCreator/Scripts/Save system/SaveSystem.cs:170)
SaveSystem.LoadGame (Int32 slot) (at Assets/AdventureCreator/Scripts/Save system/SaveSystem.cs:75)
AC.PlayerMenus.CheckClick (AC.Menu _menu, AC.MenuElement _element, Int32 _slot, Int32 _buttonPressed) (at Assets/AdventureCreator/Scripts/Controls/PlayerMenus.cs:775)
AC.PlayerMenus.OnGUI () (at Assets/AdventureCreator/Scripts/Controls/PlayerMenus.cs:350)
I am not very firm with scripting. Maybe someone can give me an advice where to search for the problem?
2) When I load a savegame, while a cutscene is running, the save is loaded, but the game is still in pause-mode.
Cursor is still disabled.
Thanks for any advice!
Comments
Did you change your Menu Manager or alter the Menus / Elements inside after saving and before loading? The error message sounds like it's looking for elements that no longer exist.
I do not change anything. I save the game, stop it and restart. Then I load the save and the error appears.
I search for the reason since hours. Maybe it is a problem with one of my menues. I will try to deactivate one after the other.
And sorry for the bad english sometimes. Is not my native language.
I have 2 menues with no menu-elements inside. They have a menu-name of just a line ("-----------") for separate various menu-types. After I created a label-element inside both of them, the saves work great! Also problem number 2) is solved now.
Thanks for your time Chris and for AC. It is a wonderful tool!
Just one more question. Is it possible to have a "wait-action"? To make a action-list to stop for some time without pause the complete game? It would be great for show a menu like "Get new Item" for some seconds in background, without stop the game.
Maybe I just do not find a possibility, that already exists. Any advice?
Thank you for your help!