Forum rules - please read before posting.

Save Load system can't work.

Hello. I made adventure game almost completely. Then I pushed 'Auto-add Save components to GameObjects' button. I played game, soon I saved game. And I got knife, knife added to Inventory. Then I load game. But knife is still disappeared on the scene. Knife is also disappeared in Inventory. Please tell me what should I do.

I use Adventure Creator v1.73.8, Unity 2020.3.12f1.

Comments

  • When you pick up the knife, how are you making it disappear from the scene so that it cannot be picked up again?

    This will affect which Remember components need to be added to it. For example, if you're teleporting it out of the way, you will need to attach the "Remember Transform" component to have its position stored in save-game files.

    The "Auto-add" button is a convenience tool that will try to guess what components need adding based on your Actions, but there are times when it cannot know your intent. Which Remember components have been added to the knife in your scene? If in doubt, share screenshots of everything.

    See the Manual's "Saving scene objects" chapter for an overview of AC's save system.

  • Thanks. It's resolved. When player get knife, I removed knife object by action. So knife never appeard, when load game. I use invisible and disabe Hotspot, then knife works normally, when load game. :wink:

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.