Mod Archive Forums Mod Archive Forums
Advanced search  

News:

Please note: Your main modarchive.org account will not work here, you must create a forum account to post on the forums.

Pages: [1]   Go Down

Author Topic: Online player not working  (Read 3247 times)

0 Members and 1 Guest are viewing this topic.

Bryd0

  • Guest
Online player not working
« 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.
Logged

Saga Musix

  • TMA Moderator
  • Too much pie
  • *****
  • Offline Offline
  • Posts: 2149
  • I love OpenMPT! And Modules! And TMA! And Pie! :>
    • View Profile
    • Saga Musix - free module music and more!
Re: Online player not working
« Reply #1 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.
Logged
» My TMA artist profile
» Visit my music site: https://sagamusix.de/ [de, en]
» Visit my programming website: https://sagagames.de/ [de]
» Open ModPlug Tracker

Bryd0

  • Guest
Re: Online player not working
« Reply #2 on: August 29, 2016, 07:32:46 »

Yes, I did see what was going on. Despite that, I hope it gets fixed soon.
Logged

Bryd0

  • Guest
Re: Online player not working
« Reply #3 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? :\
Logged

McFloy

  • Tasted the Pie
  • Offline Offline
  • Posts: 1
    • View Profile
Re: Online player not working
« Reply #4 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;
};
« Last Edit: September 16, 2016, 08:42:07 by McFloy »
Logged

Bryd0

  • Guest
Re: Online player not working
« Reply #5 on: September 18, 2016, 11:54:25 »

I've done the latter, and it works like a charm. Thanks so much :)
« Last Edit: September 18, 2016, 16:03:53 by Bryd0 »
Logged

Saga Musix

  • TMA Moderator
  • Too much pie
  • *****
  • Offline Offline
  • Posts: 2149
  • I love OpenMPT! And Modules! And TMA! And Pie! :>
    • View Profile
    • Saga Musix - free module music and more!
Re: Online player not working
« Reply #6 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!
Logged
» My TMA artist profile
» Visit my music site: https://sagamusix.de/ [de, en]
» Visit my programming website: https://sagagames.de/ [de]
» Open ModPlug Tracker

Bryd0

  • Guest
Re: Online player not working
« Reply #7 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
Logged
Pages: [1]   Go Up