Coder Social home page Coder Social logo

Not Loading a Game about webretro HOT 10 OPEN

EntitledParent avatar EntitledParent commented on June 4, 2024
Not Loading a Game

from webretro.

Comments (10)

BinBashBanana avatar BinBashBanana commented on June 4, 2024

Try the same rom on a personal computer, and check the devtools console output.

from webretro.

EntitledParent avatar EntitledParent commented on June 4, 2024

I used same website, same file, worked on a personal computer but still not the school computer. What do you mean by devtools console output, like the thing in inspect element?

from webretro.

BinBashBanana avatar BinBashBanana commented on June 4, 2024

Yes. Chances are the school computer ran out of memory.

from webretro.

EntitledParent avatar EntitledParent commented on June 4, 2024

I'm not 100% sure that's the case because the same emulator, on the official website, that is the one in the description, was working perfectly fine. I tried it like a week ago, and it worked. There was no like computer update that could have changed anything.

from webretro.

nenge123 avatar nenge123 commented on June 4, 2024

Yes. Chances are the school computer ran out of memory.

this error is the RA (sound) stop! RA.context.state != "running"
The current fix is:

function _RWebAudioStart() {}

change

function _RWebAudioStart() {
Module.pauseMainLoop();
if(RA.context && RA.context.state != "running") return mobileAudioRun(RA);
}
var ElmRA;
function mobileAudioRun(RA){
if(!ElmRA){
ElmRA = document.createElement('div');
ElmRA.style.cssText = `
    position: fixed;
    left: 0px;
    right: 0px;
    top: 0px;
    bottom: 0px;
`;
ElmRA.innerHTML = `<h1 style="position: absolute;margin:auto;width:200px;60px">click run</h1>`;
ElmRA.addEventListener('pointerdown',e=>{
ElmRA.hidden = true;    
    if (RA.context) RA.context.resume();
        if (!RA.context || RA.context.state != 'running') {
            RA.bufIndex = 0;
            RA.bufOffset = 0
            var ac = window["AudioContext"] || window["webkitAudioContext"];
            if (RA.context) {
                RA.context.close();
                delete RA.context;
            }
            RA.context = new ac;
            RA.numBuffers = M.latency * RA.context.sampleRate / (1e3 * RA.BUFFER_SIZE) | 0;
            if (RA.numBuffers < 2) RA.numBuffers = 2;
            for (var i = 0; i < RA.numBuffers; i++) {
                RA.buffers[i] = RA.context.createBuffer(2, RA.BUFFER_SIZE, RA.context.sampleRate);
                RA.buffers[i].endTime = 0
            }
            RA.nonblock = false;
            RA.startTime = 0;
            RA.context.createGain();
            RA.setStartTime();
            RA.context.resume();
        }
        Module.resumeMainLoop();
})
}
ElmRA.hidden = false;
}

from webretro.

RottenEggNog avatar RottenEggNog commented on June 4, 2024

How you be able to fix this in a chromebook?

from webretro.

RuralAnemone avatar RuralAnemone commented on June 4, 2024

probably the easiest way is:

  • make your own fork
  • fix it there
  • deploy that version to your own github page

from webretro.

foxsouns avatar foxsouns commented on June 4, 2024

i explained how to here #75 (comment)

from webretro.

RuralAnemone avatar RuralAnemone commented on June 4, 2024

^

from webretro.

RottenEggNog avatar RottenEggNog commented on June 4, 2024

i explained how to here #75 (comment)

This worked. Thanks

from webretro.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.