Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blank page when loading game from different folder #126

Closed
lieuzhenghong opened this issue Feb 22, 2020 · 5 comments
Closed

Blank page when loading game from different folder #126

lieuzhenghong opened this issue Feb 22, 2020 · 5 comments

Comments

@lieuzhenghong
Copy link

Dear Stefano,

Sorry to bother but I don't have any idea how to debug this.

As you know I've taken the game folder out of the nodegame-v5.xx folder for easier version control/deployment. But this has introduced a host of new errors.

Right now, when i click Communication Game, I get taken to a blank page. I've looked at the browser console and get the following output:

Navigated to http://localhost:8080/communication-game/
ng@0.0.0 - 18:1:17:499 > warn - Socket.disconnect: socket is not connected nor connecting. Try with force parameter. nodegame-full.js:29012:21
This page uses the non standard property “zoom”. Consider using calc() in the relevant property values, or using “transform” along with “transform-origin: 0 0”. communication-game
ng@0.0.0 - 18:1:17:860 > silly - ee.game removed listener: REALLY_DONE nodegame-full.js:29012:21
ng@0.0.0 - 18:1:17:861 > silly - ee.game removed listener: STEPPING nodegame-full.js:29012:21
ng@0.0.0 - 18:1:17:861 > silly - ee.game removed listener: PLAYING nodegame-full.js:29012:21
ng@0.0.0 - 18:1:17:861 > silly - ee.game removed listener: PAUSED nodegame-full.js:29012:21
ng@0.0.0 - 18:1:17:862 > silly - ee.game removed listener: RESUMED nodegame-full.js:29012:21
ng@0.0.0 - 18:1:17:863 > silly - game.on: added: REALLY_DONE nodegame-full.js:29012:21
ng@0.0.0 - 18:1:17:863 > silly - game.on: added: STEPPING nodegame-full.js:29012:21
ng@0.0.0 - 18:1:17:864 > silly - game.on: added: PLAYING nodegame-full.js:29012:21
ng@0.0.0 - 18:1:17:864 > silly - game.on: added: PAUSED nodegame-full.js:29012:21
ng@0.0.0 - 18:1:17:864 > silly - game.on: added: RESUMED nodegame-full.js:29012:21
ng@0.0.0 - 18:1:17:865 > silly - node-window: inited. nodegame-full.js:29012:21
ng@0.0.0 - 18:1:17:866 > info - connecting to http://localhost:8080/communication-game. nodegame-full.js:29012:21
Source map error: Error: request failed with status 404
Resource URL: http://localhost:8080/stylesheets/nodegame.css
Source Map URL: nodegame.css.map

ng@0.0.0 - 18:1:27:871 > warn - connection attempt to http://localhost:8080/communication-game timed out. Disconnected.

There seems to be a Source map error (nodegame.css inaccessible). But the file is accessible, and when I click "Ultimatum game" (present in the nodegame-v5.xx folder), there is no problem loading localhost:8080/stylesheets/nodegame.css.

@shakty
Copy link
Member

shakty commented Feb 22, 2020 via email

@lieuzhenghong
Copy link
Author

lieuzhenghong commented Feb 22, 2020

Hi Stefano,

It's actually the other way round. When I type node launcher.js --default communication-game, it works. But when I do not specify a default, then it does not work.

Even after explicitly specifying node.connect('/communication-game'); in public/index.js and name: 'communication-game' in module.exports of channel.settings.js, it does not work.

In fact, if I explicitly put the /communication-game in node.connect(), and do node launcher js --default communication-game, it doesn't work either.

The only thing that works is:

  1. keep node.connect() with no parameter
  2. node launcher.js --default communication-game

@shakty
Copy link
Member

shakty commented Feb 22, 2020 via email

@shakty
Copy link
Member

shakty commented Feb 22, 2020 via email

@lieuzhenghong
Copy link
Author

Ah, thanks for the clarification. That did the trick.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants