Continuing on from the questions in this thread:
https://adventurecreator.org/forum/discussion/7972/document-menu-question#latestI'm looking to create a double-page diary that is updated with information as the player goes through the game. My plan is to create a texture on Photoshop for each page (including text) New pages picked up during the game should be added in and be readable later as well.
These pages might not be picked up in the same order every time, as that would depend on which NPC the player decides to talk to first, the order of objects observed etc.
So, talking to NPC A would cause an "entry added" to occur, adding page texture 1 to the first page. Then talking to NPC F would add page texture - say - X to page 12, for instance.
Here's some examples from Uncharted and Night in the Woods respectively:


I also intend to have "tabs" for other things like map, options, locations info etc. I've made it work so far by adding a button that launches a different document for each tab, and will be following the solution given in the link above.
As you said, the script that you provided for a single page version will have to be adapted for two pages. So:
1. How does that method work for two pages?
2. How can new pages be added through action lists - at the right spot? (add page texture X to page 12)
Thanks!
Comments
I've now added and tested a double page journal using only text and it works - without images as of now.
-I'm guessing it is also possible to have multiple journals so that I can do the "tabs" method for options, map etc as described above? I was able to make this work with multiple documents. (I'll test this out now and leave an update here soon)-
Edit: The tabs method works as expected by using a button to launch an action list to do Menu> Change State> Turn on Menu > "Journal map" which uses the same UI as before.
Waiting on your response about the updated script/ ability to add images. Thanks
Example: If this is a 5 page book and I insert a page at page 2 (index 1) making a total of 6 pages, with [left page|right page], then:
[1|inserted] ->[3|4] -> [5|6] -> [6|blank] then turning back from this page:
[5|4] -> [inserted|3] -> [1|inserted]
As you can see, repetition of page 6 at the end and the change of position and repetition of the newly inserted page shouldn't be happening. Any ideas?
Checking the .csv files, it doesn't seem to consist of any of the journal text from the menu or the action list. Anything specific I should select while doing gather text?
I've attached the script to an empty game object as described in the previous script's method, and it shows up correctly. Now I just need to know the ID from the csv file as mentioned above to attach to the page textures (once I figure out how to make it show up)
Edit: I "reset text" in order to try again, and now "gather text" gathers 0 lines - the csv is empty. All scenes have been added to the build settings. AC version is 1.65/ latest. This seems to be a completely different issue
It's also giving an error- ArgumentOutOfRangeException: Argument is out of Range
Parameter name : Index
Here's the full error -
My AC version is the latest (1.65) and Unity is 2017.2.0f3
Alright, I'll remove the documents and give it a shot. Edit: Removing the documents allowed the gather text to work correctly.
Here's a video showing my current settings and the page repetition issue. I haven't got around to linking the images with the new script yet so that doesn't work yet.
The console shows some other unrelated errors that I'll be getting to later.
https://youtu.be/ZIW7hSj0Jr8
Final issue, which I think should have a simple solution that I'm missing - On pages where there's no texture, the placeholder white texture is seen instead. I reduced the alpha in the image's color, but that obviously made the texture disappear as well.
Edit: Found a workaround - created a blank texture and set it accordingly.
Alright, ran into a new issue - The textures still have that page repetition problem. I'm guessing the snap page script would have to be updated to account for textures as well? I'm not really sure what to change there though.
This is probably because I added a page (the second one with id 144) through an action list?