Fix The 404/Game Save/Deleted Chapter Bug

Discussion in 'Suggestions' started by Nemo of Utopia, Jul 8, 2017.

  1. Nemo of Utopia

    Nemo of Utopia CHYOA Guru

    As mentioned in THIS Thread, there is a chance, though small, to cause a fatal error in Game Mode stories.

    If you delete a chapter which is the current chapter of someone's saved game, logging in to the game mode of the story causes a 404 error which sends them to the universal error page. Once this happens the only way to get back into the story is to get into the story map somehow, copy the link address from one of the still existing chapters, then paste that into the address bar of your browser and add:

    ?game=reset

    To the end of the link before you try to load the page.

    This is far from easy and I believe far harder for users than authors.

    Gen.sis has proposed that we add a bit of code to all save files somewhere, (I personally think either beginning or end makes most sense,) that as the file loads when opening the story checks for a 404 fault and, if present, resets itself to the introduction chapter as if the user pressed "reset game".

    Does anyone have refinements or suggestions?
     
    gene.sis likes this.
  2. gene.sis

    gene.sis CHYOA Guru

    The site checks for the chapter in the database. If the chapter doesn't exist, it should also check if game mode is active before causing the 404.

    Hm, maybe it could be possible to try to restore an older chapter of the save game instead of completely deleting it.