Hi there,
I made a diary system following the diary tutorial for Adventure Creator. It worked fine in scene one. It works fine in scene two. Pages are added when the player clicks a hotspot that adds a new page. Pages appear in their proper order and say what they should in the individual scenes and always work properly in scene one. The problem arises if you play all the way through scene one, walk through the trigger that loads scene two and then try to play through scene two. Scene two will only display the last diary page read in scene one, no matter what hotspot you click on in scene two. However, if you don't click on any diary hotspots in scene one, walk through the trigger that loads scene two, all the diary pages for scene two display properly. I'm using version 1.71.4. I made the diary in a version prior to that, not sure if it was one or two versions back. I am building the project in Unity version 2018.4.23f1 Has anyone else run into this kind of issue, or does anyone have a suggestion as to how I might resolve it?
Also would like to say that I love this awesome tool. Thank you for all the work you do on Adventure Creator.
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Welcome to the community, @naram. You're referring to this tutorial?
I'm not quite clear on the issue - are you looking to have pages appear in the same order in the journal, regardless of the order in which their associated Hotspot were clicked?
Unless you set an index value in the Menu: Change state Action, pages will be added to the end of a journal - so the order in which such Actions are run will affect the order that pages appear in.
As this is a visual problem, it's best described with screenshots. Can you share some images (via e.g. imgur.com) that show the issue vs the expected result? Details of the Actions being run as well will be appreciated.
It is more an issue of the pages in the new scene don't get added. If I play through scene one, any diary page hotspot I click will display the page the cutscene adds and it will not add a duplicate of the page. But when I walk through the trigger in scene one and it loads scene two, the next hotspot I click will only show me the last diary page I added from scene one. Any diary page hotspot in scene two will only show the last page from scene one.
WrongPage
If I uncheck don't add if already there, I can see the proper page load into scene two (I just figured that out today).
CorrectPage
But then players can add multiple copies of the same page to the diary, so that is not a good fix.
I didn't focus on that until I was trying to figure out how to explain this to you. When I realized it was an adding problem, I unchecked the box in the cutscene script that said "don't add if already there." That did fix the problem of no pages being added, but creates the new one that players can add multiple copies of the same page to the diary.
Sample page-add cutscenes:
SceneOneFirstPage
SceneTwoFirstPage
TriggerToSwitchScenes
If I play scene two without loading any diary pages in scene one, the scene two cutscenes display and load the proper page.
What I need to do is have the scene-two pages appear and load but not if they have been added. The pages from scene two are being treated as if they have been added when they have not and I can't figure out what is causing that.
And yes, the tutorial you linked is the one I used.
Thanks for the details.
That's the clue we needed. Each Journal page has an ID number, and it's this number that is used to work out if a particular page has been added or not.
The two Actions in your first and second screenshots both show page IDs of 109. As they both share the same ID, they'll be considered to be the "same page", and so one won't get added to the journal if the other is already there.
How is it that you came to create the second of the two ActionLists you made? Did you copy the first scene and modify the first ActionList to make the second?
It should be the case that ID numbers are unique, but re-gathering your text in the Speech Manager should address this. Take a backup, click "Gather text" the Speech Manager, and both Actions should then have different IDs. You should then find that the issue is gone.
That worked! I had 3 different diary pages in each scene, an entry from each of three main characters and I had copied the entry made in scene one and then renamed the file and cut the text that was old, pasting in the new entry. I don't recall making a completely new cutscene for each character in scene one but I must have because the diary IDs are different for each entry in scene one but in scene two, the diary ID for each character matched the one from scene one, as you saw in the bunny's entry. We only had fifteen days to build a demo of 9 mins working gameplay for a competition we submitted to and most of those fifteen days are a sleep-deprived blur. I will say that it would not even have been possible to entertain trying to submit with so little time if it were not for Adventure Creator. Thanks for making that possible for us.