Question on Portraits not showing up correctly after save/load

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
hayds997
Posts: 6
Joined: Tue Sep 03, 2024 7:42 am

Question on Portraits not showing up correctly after save/load

Post by hayds997 »

Hi Tony,

I am running into an issue with portraits showing incorrectly once I save and load the game and wanted to check what I am doing wrong. When I save a game and load it shows the portrait of the person next coming in conversation and does not seem to reload on refresh.

I am saving and Loading by using the SaveSlot() and LoadFromSlot()

Here is my setup I have my Characters and each assigned a Dialogue Actor and I am using the VN Template Standard Dialogue UI for debugging to keep it simple.
Image

I believe I have setup the save system correctly:
Image

This is what my scene looks like before saving:
Image
and this is after loading the screen I just saved, it is displaying the portrait of the next character to come (next node):
Image

If you have any advice on how I can fix the portraits so it can save the current displayed ones and then reload the same ones that would be great, thank you!
User avatar
Tony Li
Posts: 23259
Joined: Thu Jul 18, 2013 1:27 pm

Re: Question on Portraits not showing up correctly after save/load

Post by Tony Li »

Hi,

What Dialogue System version are you using? (You can check it in the Welcome Window or Assets > Plugins > Pixel Crushers > Dialogue System > _README.txt.)

If you're not on the current version, can you please back up your project, update to the current version, and check again?
hayds997
Posts: 6
Joined: Tue Sep 03, 2024 7:42 am

Re: Question on Portraits not showing up correctly after save/load

Post by hayds997 »

I have updated and re-ran but I have the same issue I am now using version Version 2.2.50.1 (was using 2.2.49 before that)
Do I have to manually call a function to reset the database state/portraits that are currently visible between save and load?
User avatar
Tony Li
Posts: 23259
Joined: Thu Jul 18, 2013 1:27 pm

Re: Question on Portraits not showing up correctly after save/load

Post by Tony Li »

No; ConversationStateSaver will restore the portraits if you saved during an active conversation. If that's not what you're seeing, please send a reproduction project to tony (at) pixelcrushers.com
User avatar
Tony Li
Posts: 23259
Joined: Thu Jul 18, 2013 1:27 pm

Re: Question on Portraits not showing up correctly after save/load

Post by Tony Li »

This was a bug in ConversationStateSaver when using the same subtitle panel for multiple actors. The fix will be in 2.2.51. If anyone needs the patch before then, let me know.
Post Reply