Mod Archive Forums

Website => Help & Support => Help Support Topics Archive => Topic started by: Bryd0 on August 27, 2016, 16:25:27

Title: Online player not working
Post by: Bryd0 on August 27, 2016, 16:25:27
Just when I'd hop in and listen to more modules, I find that the online player isn't working at all. I tried refreshing it on the same module it was to be played on more than twice and still didn't work, and the same for other modules I get working on it too. It seems that there's a problem with the JavaScript for it, and I hope I'm not the only one reporting this issue.
Title: Re: Online player not working
Post by: Saga Musix on August 28, 2016, 23:38:19
Oops, I tested the player after the latest upgrade but apparently some of the files were still cached, so it worked for me. I know what's broken but apparently I am currently not allowed to fix it (https://modarchive.org/forums/index.php?topic=3904.msg14528#msg14528).
Title: Re: Online player not working
Post by: Bryd0 on August 29, 2016, 07:32:46
Yes, I did see what was going on. Despite that, I hope it gets fixed soon.
Title: Re: Online player not working
Post by: Bryd0 on September 05, 2016, 07:22:23
It's been a week now, and it's still not fixed. How long will this go on for? And if Saga is still not permitted to fix it, who else can? :\
Title: Re: Online player not working
Post by: McFloy on September 16, 2016, 08:05:25
Magic sauce to make it work:

Right click on the window, select 'inspect element'
hit escape until the console opens
type this into the prompt:

window.libopenmpt = Module; initPlayer();

Module now plays.


Alternatively, use greasemonkey or tampermonkey with this script:
Code: [Select]
// ==UserScript==
// @name         Fix online player
// @namespace    https://modarchive.org/
// @version      0.1
// @description  try to take over the world!
// @author       You
// @match        https://modarchive.org/index.php?*
// @grant        none
// ==/UserScript==

window.onerror = function(message, source, lineno, colno, error) {
    if(source === 'https://modarchive.org/style/js/chiptune2.js' && lineno === 150) {
        window.libopenmpt = window.Module;
        console.log('player fixed, retry');
        initPlayer();
        return true;
    }
    return false;
};
Title: Re: Online player not working
Post by: Bryd0 on September 18, 2016, 11:54:25
I've done the latter, and it works like a charm. Thanks so much :)
Title: Re: Online player not working
Post by: Saga Musix on October 31, 2016, 21:52:26
Seems like my previous fix still didn't quite fix it; now it should be fully functional again!
Title: Re: Online player not working
Post by: Bryd0 on November 15, 2016, 11:06:12
It is, and now I can say that there's no need for the Greasemonkey script now. Thanks a bunch, Saga ;D