Page 1 of 1

Queen's Gambit didnt work!

Posted: Mon Nov 11, 2024 12:32 am
by Intelegent
So, i found this tease:

https://milovana.com/webteases/showtease.php?id=49226

a year or two ago.

I remember playing it and liking it, but when I went back now I saw a nasty interface bug.

Sorry, i dont know how to insert screenshot here, so, if you like to help, just check tease for yourself.

Also i tried select different options in tease, different browsers and even PC, but tease still dont work correctly.
Spoiler: show
I don't speak English very well, so I'm sorry if somewhere you don't understand something, I'm trying to write differently

Re: Queen's Gambit didnt work!

Posted: Mon Nov 11, 2024 10:51 pm
by kerkersklave
Seems to be broken. Looks like some small detail about EOS changed, can be something small like some font settings.

Re: Queen's Gambit didnt work!

Posted: Wed Nov 13, 2024 2:14 pm
by FrozenWolf
Summary of the problem
It looks like fapnip is using a neat trick to render the chess board, but that trick doesn't work in the current version of the EOS.

Details of the problem
fapnip is using the CSS class '
TextBubble_continueIndicator__sXRN-
' to overlay the chess pieces over the board background. Unfortunately, that CSS class doesn't exist any more in the current version of the EOS, but there is the equivalent CSS class '
_continueIndicator_1figp_30
' that does work. I tried this on Firefox with debug panel and modified the class reference, and that fixes the problem... until you move a piece and the board is recreated by the script.

Within the script of the tease, the function
renderBoard()
contains:

    var txt =
        // '<span class=\"eosActivitySidebar\">TestBar</span>' +
        '<span class=\"TextBubble_continueIndicator__sXRN- eosContainer\" style=\"font-size:100%;text-align:left\">' +
        // Display some inivisible blocks to size the say bubble
        '<span style=\"font-size:' + bds.bfont + 'px;color:rgba(0,0,0,0)\">'
        + brs(bds.mtop) + r2.join(b) + // To size
        '</span>' +
        // Display chess board layer
        '<span class=\"eosPreloaderOverlay\" style=\"font-size:100%\">' +
        '<span class=\"eosContainer\" style=\"font-size:100%\">' +
        '<span class=\"TextBubble_continueIndicator__sXRN- eosPreloaderOverlay\" style=\"font-size:' + bds.bfont + 'px\">' +
        brs(bds.ptop) + r.join(b) +
        '</span>' +
        '</span>' +
        '</span>' +
        // Display chess piece layers, mask layer, row/column label layers, etc.
        layers.reduce(function (r, l) {
            r.push(
                '<span class=\"eosPreloaderOverlay\" style=\"font-size:100%\">' +
                '<span class=\"eosContainer\" style=\"font-size:100%\">' +
                '<span class=\"TextBubble_continueIndicator__sXRN- eosPreloaderOverlay\" style=\"font-size:' + bds.bfont + 'px\">' +
                brs(bds.ptop) + l +
                '</span>' +
                '</span>' +
                '</span>')
            return r
        }, []).join('')
    '</span>'

Solution to the problem
If all three occurrences of '
TextBubble_continueIndicator__sXRN-
' are replaced with '
_continueIndicator_1figp_30
', that should solve the problem (at least for now, unless further EOS changes modify the class name again).

Since fapnip has sadly left Milovana, he may not be available to patch the tease, so the only other option would be for another author to download the tease source, do a quick search and replace, and upload it as a new tease.

Re: Queen's Gambit didnt work!

Posted: Mon Jun 30, 2025 7:11 pm
by fapnip
Fixed. Thanks. (No, I'm not really back, just made the mistake of checking in.)

Re: Queen's Gambit didnt work!

Posted: Mon Jun 30, 2025 11:04 pm
by FrozenWolf
fapnip wrote: Mon Jun 30, 2025 7:11 pm Fixed. Thanks. (No, I'm not really back, just made the mistake of checking in.)
Great, many thanks for the update; it works fine for me now on Linux/Firefox and I expect it should be fine for others too.