Unable to load correctly.

Announcements, support questions, and discussion for the Dialogue System.
fuakda
Posts: 27
Joined: Fri Sep 01, 2023 12:32 am

Unable to load correctly.

Post by fuakda »

Saved using Pixel Crushers Dialogue System Save System.
At that time, the state of "ULTIMATE INVENTORY SYSTEM" is also saved and loaded.
However, if you check "save current scene" in "savesystem" and load it, the character's inventory will be empty and settings such as weapon collider will also disappear.
The scene cannot be changed.
Is there any order or setting when loading to avoid this problem?
Sorry for the lame words.
User avatar
Tony Li
Posts: 21678
Joined: Thu Jul 18, 2013 1:27 pm

Re: Unable to load correctly.

Post by Tony Li »

Hi,

The UIS Saver component doesn't rely on "Save Current Scene". Please review the UIS integration setup instructions in case a step got missed.

If that doesn't resolve the problem, are there any errors or warnings in the Console window?
fuakda
Posts: 27
Joined: Fri Sep 01, 2023 12:32 am

Re: Unable to load correctly.

Post by fuakda »

thank you for your reply. I am very happy.
I think there are no problems integrating with UIS.
In "UIS DS Demo", "save current scene" in "savesystem" was checked and the same state was set.
When loading the state, it goes dark in the "standard scene transition manager".
I set it up in the same way, but when it loads, the player's state is strange and the object specification disappears.
It will not be the same as the demo scene, such as the inventory being empty.

>The inventory or the item slot collection for the item slot collection view is null

Saving and loading are done correctly.
I can't switch scenes.
Do you have any tips?
User avatar
Tony Li
Posts: 21678
Joined: Thu Jul 18, 2013 1:27 pm

Re: Unable to load correctly.

Post by Tony Li »

Hi,

Are there any errors or warnings in the Console window?

Did you add the destination scene to your project's Build Settings?

If other savers -- such as Position Saver, Active Saver, Dialogue System Saver, etc. -- are saving correctly, then the problem might be on the UIS side. In this case, you will need to contact the developer in the #ultimate-inventory-system channel of Opsive's Discord server.
fuakda
Posts: 27
Joined: Fri Sep 01, 2023 12:32 am

Re: Unable to load correctly.

Post by fuakda »

The problem is not "UIS".
I have a problem with scene changes.

Since the UI etc. are also lost,
It seems that the player is set before the UI is drawn.

There seems to be no problem with saving and loading.



User avatar
Tony Li
Posts: 21678
Joined: Thu Jul 18, 2013 1:27 pm

Re: Unable to load correctly.

Post by Tony Li »

I'm not sure I understand. But this might be what you are describing: How To: Manage Player Controls and Scene Changes

If not, please send a reproduction project to tony (at) pixelcrushers.com
fuakda
Posts: 27
Joined: Fri Sep 01, 2023 12:32 am

Re: Unable to load correctly.

Post by fuakda »

I'm sorry for not being able to convey it well.
Nothing could be resolved.
I'm having trouble producing it as it is.

Dialogue System Saver It's working properly
Active Saver It's working properly
Position Saver doesn't work

sorry. I would be happy if you could help me.
User avatar
Tony Li
Posts: 21678
Joined: Thu Jul 18, 2013 1:27 pm

Re: Unable to load correctly.

Post by Tony Li »

Is the Position Saver the only component that is not working?

If so, then make sure the player's Position Saver Key is correct. It should use a Key value that is different from the Key values of any other Saver components on the player GameObject.

If you are using spawnpoints, tick the Use Player Spawnpoint checkbox.

If neither of these suggestions help, maybe another component is preventing the Position Saver from moving the player. For example, maybe Character Respawn or Character Movement is keeping the player is in a specific place. I don't know these scripts, so I don't know what they do.
fuakda
Posts: 27
Joined: Fri Sep 01, 2023 12:32 am

Re: Unable to load correctly.

Post by fuakda »

When an object is loaded, it is moved to the 0, 0, 0 location, not the saved location.
Also,
"PixelCrushers.SaveSystem.LoadScene(House@point01);"
But it's only in the initial position.

Image
Attachments
スクリーンショット 2024-02-20 122056.png
スクリーンショット 2024-02-20 122056.png (17.11 KiB) Viewed 430 times
User avatar
Tony Li
Posts: 21678
Joined: Thu Jul 18, 2013 1:27 pm

Re: Unable to load correctly.

Post by Tony Li »

Hi,

UNtick Restore State On Start and UNassign Target.

Note: If you want this GameObject to appear at the position of "point01", tick Use Player Spawnpoint.
Post Reply