Forum rules - please read before posting.

Implementing journal

Hi! Sorry for the un-specific title, but I'm having many issues. I've been trying to set up a journal much like the one in NitW or Omori, which are mainly drawings, adding some text by myself on the same texture.

First: The page snapping displaying multiple pages
The first thing I tried to do was to have two pages, getting into the problem of the last even-numbered page displaying weirdly at the end, which other people have talked about in the forum, being directed to this script (https://adventure-creator.fandom.com/wiki/Journal_page_snapping) for journal page snapping, however, when I implemented it for some reason there are no longer buttons to change pages and also the cross button I had in the corner to close the menu stopped working, looking like this. Is there something I'm doing wrong? (I'm sure I am, but don't know what). These are my settings with the script.

Second: close menu button
In the same journal menu I've set up a button to close the menu, which until yesterday worked hahaha, I had it with click type "Turn Off Menu", when It stopped working I changed it to "Run ActionList" triggering a small action that changed the menu state, which also didn't work. Any idea why?. When I click on the button it acts as if I had clicked on the ShiftRight button until I reach the last page.

Third: Cycling Pages
The first time I open the journal in gameplay (without the script) I can manage to switch the pages until the repeated page 4 and if I try to keep moving forward the menu closes (that's the only way to close since the close button won't work anymore), but when I open it up again, it displays the repeated 4th page, entering a weird loop in which page 3 now displays page 2, page 4 displays page 3, etc, until I reach page four again and it closes. I tried fixing it with a Menu: Set Journal page ActionList which plays when the journal turns on. But it did not work, I tried both with Page set here and with First page

Fourth: Displaying images/textures
Since the first idea didn't work I thought, maybe I can just draw/ write on both pages and have it look like two pages, but in reality it's just one page and texture. But I haven't been able to add a texture to the page in the menu, it just displays an empty page.

Any idea what I could do? Maybe there's another way I haven't been able to find.
What I want is:
-Being able to put pictures/textures on the pages
-Being able to close the menu by clicking the mouse on a button
-Being able to turn pages by clicking on arrows on the sides
-For the journal to open on the last new page

Thank you and sorry for the long one :)

«1

Comments

  • Small update, I managed to get the close button to work :)

  • There's a fair few things going on here, so I think it best to deal with the main issue and go from there.

    It looks like you have three Journal elements. The main Journal element should be "PageLeft", i.e. the text that occupies the left page. It looks like you have this already with "PageContent" - deleting your exisiting PageLeft element and renaming "PageContent" to "PageLeft", and making sure "PageRight" references "PageLeft" should improve things.

    But I haven't been able to add a texture to the page in the menu, it just displays an empty page.

    You can assign textures in your Journal element, but in-game it will only display text. To display the texture, you'll need to use a separate Graphic element, set to "Page Texture", and have it reference the Journal element you wish to show.

  • Thank you! That worked on fixing the turning pages and getting the snap page script working.
    On the displaying texture I'm still having some trouble, your answer managed to add the texture, in this case I added a graphic element named "page2Graphic" referencing the PageRight element, but, since it doesn't have a fixed page to appear (I can't find that option), now every page on the right has the texture. How do I add a different graphic to each page? I thought maybe I had to add a Journal element for each page, referencing the first one ("PageLeft"), having the "offset" get bigger, but that didn't work. How can I manage to have each page with a different texture? And on that note, how could I have the player add pages as they advance in the game? I can manage to add pages with just text, but not with texture.
    Thank you again and sorry if it's too obvious

  • How can I manage to have each page with a different texture?

    The Graphic element, once linked to the Journal, should display the texture for the currently-open page. Could you share the properties of the page2Graphic element, as well as PageRight?

    how could I have the player add pages as they advance in the game?

    The Menu: Change state Action's "Add Journal Page" currently only lets you add new page text, not textures, as this would otherwise cause complications with the way such data is saved. I will give some thought to how this might be changed.

  • This are my PageRight properties and this are page2graphic.

    Is there maybe a way making all the pages but limiting how many pages the player can see until they get to a certain point? I was thinking in a similar way to the JournalSnapPage script making some sort of script maybe attached to a global variable where each meaningful interaction updates the value and said value could affect how many pages you see before the ShiftRight value disappears. (I don't know much about scripting, so I don't know if that is at all possible)
    Thank you!

  • This are my PageRight properties and this are page2graphic.

    page2Graphic will need to reference PageRight. You may encounter an issue with this, however - I am looking into this scenario and will include any necessary fix in v1.82.

    Is there maybe a way making all the pages but limiting how many pages the player can see until they get to a certain point?

    You could feasibly control the visibility of your Button that change the pages rightward, but I am looking to add the ability to supply textures to runtime-created pages in v1.82.

  • edited November 2024

    Yeah, it still displays the texture in every page right. Still, thank you for the response! I'll wait for the update :)

  • Hey! I was wondering if the new update now allows the ability to supply textures to runtime-created pages? Thank you.

  • Sorry if it's too obvious, but I don't seem to be getting it to work. I've set up so that at the end of an interaction with an NPC a new page of the journal would be added with a texture and no page is getting added. Here's what I've got.

  • The name of your Journal element is "PageLeft".

  • Sorry about that, that works, It adds the new page, but It doesn't add the texture.

  • Is the Journal closed and re-opened before checking the new texture?

  • Do you mean like if the journal is closed when the add page behaviour is activated? yes, I've tested adding text and it works, but the new page texture won't

  • Your Menu doesn't look like it has a Graphic element to display the texture.

    The background texture in your Menu is a static image, and the Journal elements (PageLeft/PageRight) are text-only.

    To display the Journal's page texture, you need to create a Graphic element and set its type to Page Texture.

  • Thank you, that worked! I also had to add some type of text in order for it to show the texture, otherwise it wouldn't add a page. I don't know if there is a way to only add the texture and no text (if no I can still work around it, but just wondering)

  • Hey again! Quick question, my game uses only direct input, without mouse clicks, and I've been trying to link an Input Action to shifting pages left or right on the journal. I've created a new action on the Input controls named "ShiftPageRight", linked to the right arrow, and on the Journal Menu Manager I've written "ShiftPageRight" as the Alternative input button to the "shift right button" I had created, which offset the journal. But that doesn't work. And I've attempted creating an ActionList when trigger on the Active Inputs window linked to the "ShiftPageRight" action, using a Menu: Set Journal page action, but since I'm not trying to set a specific element I don't have much to do there. Any idea how that could be achieved?

  • Assigning the input to the "Alternative input button" is the right way to go.

    Are you using Input System or Input Manager? If the former, does the latter work? Check the Console for related messages.

    The Active Input approach could work, though you'd need to enable/disable it with Input: Toggle active when the Menu turns on and off. When the Active Input is run, use the Menu: Select element Action to select the right arrow element, and check Simulate click?.

  • I'm using the Input System. The Input Manager did work, by writing down "Horizontal" as Alternative input button (Input Manager still confuses me a little), however, that makes the journal ShiftRight wether I press a,d,left or right, and it never ShiftsLeft, how does that work?

  • "Horizontal" is an Axis input type - wheras a Button input type is required.

    Create a new input named e.g. "ShiftRight", and map it to the right arrow key explicitly (similar to the "Down" input used by your QTE), and reference that in the Button's properties instead.

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.