question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

when you download the game and launch it through the browser (either by spawning a python server or dropping it on an Apache server) the game failed to load past the main menu, and the chrome JS console goes nuts with the following error repeated infinitely.

Audio.js:140 Uncaught TypeError: panner.setVelocity is not a function
    at Object.bkcore.Audio.setListenerVelocity (Audio.js:140)
    at bkcore.hexgl.ShipControls.update (ShipControls.js:542)
    at Object.ctx.manager.add.components [as render] (Cityscape.js:484)
    at bkcore.threejs.RenderManager.renderCurrent (RenderManager.js:120)
    at bkcore.hexgl.HexGL.update (HexGL.js:137)
    at raf (HexGL.js:102)

commenting out the Audio.js in the html reduces the number of errors, however the game will still not run

THREE.WebGLRenderer 50dev
Three.dev.js:726 WebGL: INVALID_OPERATION: getAttribLocation: program not linked
init @ Three.dev.js:726
Three.dev.js:726 WebGL: INVALID_OPERATION: getAttribLocation: program not linked
init @ Three.dev.js:726
Three.dev.js:726 WebGL: INVALID_OPERATION: getUniformLocation: program not linked
init @ Three.dev.js:726
Three.dev.js:726 WebGL: INVALID_OPERATION: getUniformLocation: program not linked
init @ Three.dev.js:726
Three.dev.js:726 WebGL: INVALID_OPERATION: getUniformLocation: program not linked
init @ Three.dev.js:726
Three.dev.js:726 WebGL: INVALID_OPERATION: getUniformLocation: program not linked
init @ Three.dev.js:726
Three.dev.js:726 WebGL: INVALID_OPERATION: getUniformLocation: program not linked
init @ Three.dev.js:726
Three.dev.js:727 WebGL: INVALID_OPERATION: getUniformLocation: program not linked
init @ Three.dev.js:727
Three.dev.js:727 WebGL: INVALID_OPERATION: getUniformLocation: program not linked
init @ Three.dev.js:727
Three.dev.js:727 WebGL: INVALID_OPERATION: getUniformLocation: program not linked
init @ Three.dev.js:727
Cityscape.js:120 HIGH
Loader.js:240 Uncaught TypeError: Cannot read property 'addSound' of undefined
    at bkcore.threejs.Loader.loadSound (Loader.js:240)
    at bkcore.threejs.Loader.load (Loader.js:94)
    at Object.load (Cityscape.js:121)
    at bkcore.hexgl.HexGL.load (HexGL.js:153)
    at init (launch.js:27)
    at HTMLDivElement.$.onclick (launch.js:70)
launch.js:39 LOADED geometries : track.cityscape.scrapers1 ( 1 / 44 ).
launch.js:39 LOADED geometries : bonus.base ( 2 / 44 ).
launch.js:39 LOADED geometries : booster ( 3 / 44 ).
launch.js:39 LOADED geometries : track.cityscape.scrapers2 ( 4 / 44 ).
launch.js:39 LOADED geometries : track.cityscape.start.banner ( 5 / 44 ).
launch.js:39 LOADED geometries : track.cityscape.start ( 6 / 44 ).
launch.js:39 LOADED geometries : track.cityscape.bonus.speed ( 7 / 44 ).
launch.js:39 LOADED textures : hex ( 8 / 44 ).
launch.js:39 LOADED geometries : ship.feisar ( 9 / 44 ).
launch.js:39 LOADED geometries : track.cityscape ( 10 / 44 ).
launch.js:39 LOADED textures : spark ( 11 / 44 ).
launch.js:39 LOADED textures : cloud ( 12 / 44 ).
launch.js:39 LOADED textures : ship.feisar.diffuse ( 13 / 44 ).
launch.js:39 LOADED textures : booster.sprite ( 14 / 44 ).
launch.js:39 LOADED textures : ship.feisar.specular ( 15 / 44 ).
launch.js:39 LOADED textures : ship.feisar.normal ( 16 / 44 ).
launch.js:39 LOADED textures : track.cityscape.scrapers1.diffuse ( 17 / 44 ).
launch.js:39 LOADED textures : booster.diffuse ( 18 / 44 ).
launch.js:39 LOADED textures : track.cityscape.specular ( 19 / 44 ).
launch.js:39 LOADED textures : track.cityscape.diffuse ( 20 / 44 ).
launch.js:39 LOADED textures : track.cityscape.normal ( 21 / 44 ).
launch.js:39 LOADED textures : track.cityscape.scrapers1.specular ( 22 / 44 ).
launch.js:39 LOADED textures : track.cityscape.scrapers2.normal ( 23 / 44 ).
launch.js:39 LOADED textures : track.cityscape.start.diffuse ( 24 / 44 ).
launch.js:39 LOADED textures : track.cityscape.scrapers1.normal ( 25 / 44 ).
launch.js:39 LOADED textures : track.cityscape.scrapers2.diffuse ( 26 / 44 ).
launch.js:39 LOADED textures : track.cityscape.scrapers2.specular ( 27 / 44 ).
launch.js:39 LOADED textures : track.cityscape.start.specular ( 28 / 44 ).
launch.js:39 LOADED textures : bonus.base.normal ( 29 / 44 ).
launch.js:39 LOADED textures : track.cityscape.start.banner ( 30 / 44 ).
launch.js:39 LOADED textures : track.cityscape.start.normal ( 31 / 44 ).
launch.js:39 LOADED textures : bonus.base.diffuse ( 32 / 44 ).
launch.js:39 LOADED textures : bonus.base.specular ( 33 / 44 ).
launch.js:39 LOADED images : hud.speed ( 34 / 44 ).
launch.js:39 LOADED texturesCube : skybox.dawnclouds ( 35 / 44 ).
launch.js:39 LOADED images : hud.bg ( 36 / 44 ).
launch.js:39 LOADED analysers : track.cityscape.collision ( 37 / 44 ).
launch.js:39 LOADED analysers : track.cityscape.height ( 38 / 44 ).
launch.js:39 LOADED images : hud.shield ( 39 / 44 ).

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:3
  • Comments:5

github_iconTop GitHub Comments

4reactions
0x6373commented, Apr 24, 2019

I got it to work by commenting out line 140 in bkcore/Audio.js so it looks like this:

bkcore.Audio.setListenerVelocity = function(vec){
  if(bkcore.Audio._ctx){
    var panner = bkcore.Audio._panner;
    //panner.setVelocity(vec.x, vec.y, vec.z);
  }
};

This is no solution, just a workaround since setVelocity has been deprecated.

0reactions
ghostcommented, Jul 3, 2021

I tried it in chrome,samsung internet,opera android but it loading takes more than 1 day.I cann’t see the end f loading.

Read more comments on GitHub >

github_iconTop Results From Across the Web

This Game Is Broken
This Game is Broken is a comedy board gaming panel show with Matthew Jude, Dave Luza, Paula Deming and The Brother's Murph -...
Read more >
This Game is Broken - YouTube
Welcome to my Ghosts' Youtube channel. A home for Board, War and Tabletop games. I stream right here https://www.twitch.tv/matthewjudesghost ...
Read more >
Broken on Steam
Broken is an adventure puzzle game that will see you unravel a dark mystery. Storyline. Inspired by classic sci-fi literature, film, tv and...
Read more >
This Game Is Broken - Facebook
This Game Is Broken. 1493 likes · 34 talking about this. A board gaming panel show podcast where a bunch of idiots are...
Read more >
This Game Is Broken on Apple Podcasts
This Game is Broken is a comedy board gaming panel show with Matthew Jude, Dave Luza, Paula Deming and The Brother's Murph -...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found