Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

[WARNING] DO NOT click outside the Autoload dialog—it will ERASE your TypeHelp save! (+ Fix)

Hi ,William,

I'm writing to report a bug I encountered in TypeHelp, along with a code fix I've implemented.

The Issue:

When returning to the game after a previous session, the "Autoload" prompt correctly appears, asking the user whether to load their auto-save or start from scratch. However, if the user accidentally clicks or taps on the background outside of the prompt dialog, the game defaults to starting from scratch. This completely erases the user's existing save data without their explicit confirmation.

The Fix:

I have modified the logic to prevent the background click from dismissing the prompt and wiping the save. Here is the updated code:

/* Manage the dialog overlay behavior to prevent accidental closing of Autoload prompt */

$(document).on(':dialogopened', function (ev) {

    var $overlay = $('#ui-overlay');

    if ($('#ui-dialog-body').hasClass('autoload')) {

        /* Autoload: prevent closing by clicking the overlay */

        $overlay.removeClass('ui-close');

    } else {

        /* Other dialogs: ensure the overlay can close the dialog (idempotent) */

        $overlay.addClass('ui-close');

    }

});

I have already deployed and tested this fix on my end. You can see it running live here:

https://www.qidiantu.com/type-help.html

I hope this helps improve the game! Please let me know if you need any further details.

Best regards,

Qidiantu.com