Game freezes when trying to close event

● ARCHIVED · READ-ONLY
Started by Koi 8 posts View original ↗
  1. After hours and hours and hours of trying to get this darn book paging event to work, it works perfectly except that when the entire event is over and it gets to either "erase event," "exit event processing" or "jump to label: close book", the entire game completely freezes.

    The "close book" label works perfectly at all times EXCEPT for the very end.

    So here's how the event starts out

    6Cxj7rS.png

    All of this works perfectly, tested and retested again, "jump to label: close book" always exits the event.
    Now let's skip ahead through all of these pages since the pattern is the same for every single page.

    First, at variable "Albie Notebook == 14" the conditional branch's pattern gets changed just because the event is going from journal entries to suddenly flipping through a bunch of blank pages 5 times till you get to the end of the book. Again this all works perfectly fine. BUT, when the event is finally ready to end, you find a key in the back of the book, you accept the prompt to take the key, and suddenly the "close book" label doesn't work.

    rzyiFsr.png

    I've tried not using the label jump and just putting all of those erase pictures, variable control, and exit event processing in those two places I circled, but that doesn't work either. I've tried erase event, that also doesn't work.

    I tested the game putting text boxes with numbers in them to track where the problem could be arising, and it's always at either "jump to label: close book", erase event, or exit event processing. The variable control doesn't freeze it, the erase pictures don't freeze it. Even if I took away the "Show Choices: Close book." and put a regular erase event, etc. there, it still freezes.

    The event will allow itself to be closed all except for at the very end, where it HAS to close. I'm at my wits end, there's gotta be something I'm missing.

    EDIT:

    It's not even that I'm trying to erase the event! Anything that's in last place in both of those conditional branches freezes the game!

    I tried just taking away the label jumps and just putting a text box there, in hopes that maybe it would let me click through and it would go to the close book label on it's own, but no!

    FpCBVZs.png

    The game refuses to let these conditional branches end. Whatever the branches end on will freeze it, no matter what it seems to be.
  2. maybe var56 & switch352 being used in another scripts? or maybe they actives some autorun events?
  3. I tried a rushed version doing it like this and it worked. I think the error is in the ELSE part. I don't know if you put the CE on Autorun but just in case here is how I put the event in a very simple way. More or less the first part is like you did it, except I used loops instead of choices.

    Pictures~~
    1.png
    First I make an event to open the notebook, not autorun, and it's the one I attach to the item.

    2.png
    Then I make a conditional choice for every page, label them, show the first picture and then put a loop for the key buttons.
    3.png
    Just another page to fill in the middle.

    Then the "last page" for the key.

    4.png 5.png

    The label goes before the Switch is ON/OFF condition. On the ON is the normal configuration of the page with the picture without the key on it. With the OFF I included another picture after taking the key of an "empty" page, the one you would see when you flip the notebook from that moment (like this it just last a moment because I didn't put any waiting time).

    And finally for the closing I put it inside another conditional branch for the escape button.

    None of them have the Else clicked on.
    6.png

    Like this at least on the MV version it works. Since it is based on eventing I guess it should work on ace too. It is not perfect and the pages flip too fast, but if it works for the key page you could merge it with your structure and polish it. The event can be more complicated to fix more issues but I tried to keep it simple just to see if it fixes that problem.

    I hope it helps :)
  4. Is this an event or a common event? That's some very important information that you left out. If it's a common event, is it an autorun or parallel process, or does it get called from an event or item? If it's a map event, what other event pages do you have, and do any of them get activated when this page ends?
  5. you don't jump to labels to control the program's flow
    if you need to control flow by jumping to labels, you're doing something wrong.

    logic and control structures are there for a reason.
    condition the flow to the state of the system, and use the player's input to control the state of the system.
    it can't fail that way.
  6. Isabella Ava was right there must have been something wrong with the switch, because I literally just changed that switch to 353 and it works just fine. Tested it forward and back every possible option, it works just like I want it to.

    gstv87 said:
    you don't jump to labels to control the program's flow
    if you need to control flow by jumping to labels, you're doing something wrong.

    Well I was doing something wrong, using a switch that was probably being used by a script, because now after changing that it works perfectly. I did want to previously do something where pressing left or right buttons would flip through the pages, but that just flat out wouldn't work for reasons none of us could figure out. This was the alternative I went with. Looks like I was able to use jump to labels to control the program's flow. Thanks for trying to help though.
  7. Koi said:
    I did want to previously do something where pressing left or right buttons would flip through the pages, but that just flat out wouldn't work for reasons none of us could figure out
    because, the focus would be put on a window, which may or may not be coded to read those buttons.

    anything to do with player input must be handled by the engine, not through eventing.
    if you want to create a new object "book", what you have to do is make an object "page" made to display text and read the player input (previous, next, cancel, etc), and a scene "book" that transitions between pages.
  8. gstv87 said:
    because, the focus would be put on a window, which may or may not be coded to read those buttons.

    anything to do with player input must be handled by the engine, not through eventing.
    if you want to create a new object "book", what you have to do is make an object "page" made to display text and read the player input (previous, next, cancel, etc), and a scene "book" that transitions between pages.

    I wanted each page to be a specific image that I drew, not just something that displays text but rather something I could shift around and add details to like ink blots, blood and water stains. So I know I needed to use the show/erase pictures for that. I'm not sure if what you're saying would have been compatible with that direction, but either way I fixed the problem sooo this thread can be closed.