Replacing all the timer.random(2000) with timer.random(2000,3000), and fixing the
errorManager in index.js, seemed to do something. But still getting the cannot read properties of 'destroy' error, and the game is trying to step before it should be.
Instead of the game showing
"Initializing game step, will be ready soon..." and getting stuck there, it now shows the error (when debugging verbosity is set to 100):
""
This message will not be shown in production mode.
""
Here is the browser console log now:
auto...@0.0.0 - 14:42:34:765 > game started.
auto...@0.0.0 - 14:42:34:765 > silly - Next step ---> 1.1.1
auto...@0.0.0 - 14:42:34:766 > info - S: 2023-10-02T18:42:34.766Z,
290006,
3007012219951817,
say,
PLAYER_UPDATE,
371716387723979,
ROOM,
"stage",
"[object O...",
0.0.0,
1,
0
auto...@1.1.1 - 14:42:34:768 > info - R: 2023-10-02T18:42:34.768Z,
277519,
3007012219951817,
say,
GAMECOMMAND,
Personalized_Phishing_Training_CogEV_v1,
371716387723979,
"pause",
""Fetching...",
0.0.0,
1,
1
auto...@1.1.1 - 14:42:34:769 > game paused.
auto...@1.1.1 - 14:42:35:297 > info - R: 2023-10-02T18:42:35.297Z,
922979,
3007012219951817,
say,
GAMECOMMAND,
Personalized_Phishing_Training_CogEV_v1,
371716387723979,
"resume",
"[object O...",
0.0.0,
1,
1
auto...@1.1.1 - 14:42:35:298 > game resumed.
auto...@1.1.1 - 14:42:35:301 > info - R: 2023-10-02T18:42:35.301Z,
274282,
3007012219951817,
say,
DATA,
Personalized_Phishing_Training_CogEV_v1,
371716387723979,
"phasedata",
"Phase 2,1",
0.0.0,
1,
0
auto...@1.1.1 - 14:42:35:302 > silly - B: 2023-10-02T18:42:35.301Z,
274282,
3007012219951817,
say,
DATA,
Personalized_Phishing_Training_CogEV_v1,
371716387723979,
"phasedata",
"Phase 2,1",
0.0.0,
1,
0
auto...@1.1.1 - 14:42:35:302 > info - R: 2023-10-02T18:42:35.302Z,
818638,
3007012219951817,
say,
DATA,
Personalized_Phishing_Training_CogEV_v1,
371716387723979,
"email",
"[object O...",
0.0.0,
1,
0
auto...@1.1.1 - 14:42:35:302 > silly - B: 2023-10-02T18:42:35.302Z,
818638,
3007012219951817,
say,
DATA,
Personalized_Phishing_Training_CogEV_v1,
371716387723979,
"email",
"[object O...",
0.0.0,
1,
0
auto...@1.1.1 - 14:42:35:302 > info - R: 2023-10-02T18:42:35.302Z,
187976,
3007012219951817,
say,
DATA,
Personalized_Phishing_Training_CogEV_v1,
371716387723979,
"averages",
"HAM,0.53,...",
0.0.0,
1,
0
auto...@1.1.1 - 14:42:35:302 > silly - B: 2023-10-02T18:42:35.302Z,
187976,
3007012219951817,
say,
DATA,
Personalized_Phishing_Training_CogEV_v1,
371716387723979,
"averages",
"HAM,0.53,...",
0.0.0,
1,
0
auto...@1.1.1 - 14:42:35:549 > silly - Next step ---> 1.2.1
auto...@1.1.1 - 14:42:35:550 > error - 1.1.1@14:42:35> http://localhost:8080/javascripts/nodegame-full.min.js 1,247575: Uncaught TypeError: Cannot read properties of undefined (reading 'destroy')
auto...@1.1.1 - 14:42:35:550 > info - S: 2023-10-02T18:42:35.550Z, 318862, 3007012219951817, say, LOG, 371716387723979, SERVER, "error", "1.1.1@14:...", 1.1.1, 1, 0
auto...@1.1.1 - 14:42:35:551 > silly - ee.game removed listener: REALLY_DONE
auto...@1.1.1 - 14:42:35:551 > silly - ee.game removed listener: STEPPING
auto...@1.1.1 - 14:42:35:551 > silly - ee.game removed listener: PLAYING
auto...@1.1.1 - 14:42:35:551 > silly - ee.game removed listener: PAUSED
auto...@1.1.1 - 14:42:35:551 > silly - ee.game removed listener: RESUMED
auto...@1.1.1 - 14:42:35:551 > silly - game.on: added: REALLY_DONE
auto...@1.1.1 - 14:42:35:551 > silly - game.on: added: STEPPING
auto...@1.1.1 - 14:42:35:551 > silly - game.on: added: PLAYING
auto...@1.1.1 - 14:42:35:551 > silly - game.on: added: PAUSED
auto...@1.1.1 - 14:42:35:551 > silly - game.on: added: RESUMED
auto...@1.1.1 - 14:42:35:554 > silly - node-window: inited.
Uncaught TypeError: Cannot read properties of undefined (reading 'destroy')
at Game.widgetExit (nodegame-full.min.js:1:247575)
at Game.gotoStep (nodegame-full.min.js:1:242213)
at Game.step (nodegame-full.min.js:1:240452)
at nodegame-full.min.js:1:313194
auto...@1.1.1 - 14:42:35:556 > info - creating widget ChoiceManager v.1.4.1
auto...@1.1.1 - 14:42:35:556 > info - creating widget ChoiceTable v.1.8.1
auto...@1.1.1 - 14:42:35:557 > silly - step.on: added: INPUT_DISABLE
auto...@1.1.1 - 14:42:35:557 > silly - step.on: added: INPUT_ENABLE
auto...@1.1.1 - 14:42:35:557 > info - creating widget Slider v.0.4.0
auto...@1.1.1 - 14:42:35:557 > silly - step.on: added: INPUT_DISABLE
auto...@1.1.1 - 14:42:35:557 > silly - step.on: added: INPUT_ENABLE
auto...@1.1.1 - 14:42:35:558 > silly - step.on: added: in.say.DATA
auto...@1.1.1 - 14:42:35:558 > silly - step.on: added: in.set.DATA
auto...@1.1.1 - 14:42:35:558 > silly - step.on: added: in.say.DATA
auto...@1.1.1 - 14:42:35:558 > silly - step.on: added: in.set.DATA
And here is what it looks like for a player that runs successfully:
auto...@0.0.0 - 14:42:34:755 > silly - Next step ---> 1.1.1
auto...@0.0.0 - 14:42:34:756 > info - S: 2023-10-02T18:42:34.756Z, 744000, 3007012219951817, say, PLAYER_UPDATE, 376971928752698, ROOM, "stage", "[object O...", 0.0.0, 1, 0
auto...@1.1.1 - 14:42:34:763 > info - R: 2023-10-02T18:42:34.763Z, 277519, 3007012219951817, say, GAMECOMMAND, Personalized_Phishing_Training_CogEV_v1, 376971928752698, "pause", ""Fetching...", 0.0.0, 1, 1
auto...@1.1.1 - 14:42:34:763 > game paused.
auto...@1.1.1 - 14:42:35:296 > info - R: 2023-10-02T18:42:35.295Z, 922979, 3007012219951817, say, GAMECOMMAND, Personalized_Phishing_Training_CogEV_v1, 376971928752698, "resume", "[object O...", 0.0.0, 1, 1
auto...@1.1.1 - 14:42:35:298 > game resumed.
auto...@1.1.1 - 14:42:35:299 > info - R: 2023-10-02T18:42:35.299Z, 780133, 3007012219951817, say, DATA, Personalized_Phishing_Training_CogEV_v1, 376971928752698, "phasedata", "Phase 2,1", 0.0.0, 1, 0
auto...@1.1.1 - 14:42:35:299 > silly - B: 2023-10-02T18:42:35.299Z, 780133, 3007012219951817, say, DATA, Personalized_Phishing_Training_CogEV_v1, 376971928752698, "phasedata", "Phase 2,1", 0.0.0, 1, 0
auto...@1.1.1 - 14:42:35:299 > info - R: 2023-10-02T18:42:35.299Z, 897374, 3007012219951817, say, DATA, Personalized_Phishing_Training_CogEV_v1, 376971928752698, "email", "[object O...", 0.0.0, 1, 0
auto...@1.1.1 - 14:42:35:299 > silly - B: 2023-10-02T18:42:35.299Z, 897374, 3007012219951817, say, DATA, Personalized_Phishing_Training_CogEV_v1, 376971928752698, "email", "[object O...", 0.0.0, 1, 0
auto...@1.1.1 - 14:42:35:299 > info - R: 2023-10-02T18:42:35.299Z, 306887, 3007012219951817, say, DATA, Personalized_Phishing_Training_CogEV_v1, 376971928752698, "averages", "HAM,0.53,...", 0.0.0, 1, 0
auto...@1.1.1 - 14:42:35:299 > silly - B: 2023-10-02T18:42:35.299Z, 306887, 3007012219951817, say, DATA, Personalized_Phishing_Training_CogEV_v1, 376971928752698, "averages", "HAM,0.53,...", 0.0.0, 1, 0
auto...@1.1.1 - 14:42:35:550 > info - creating widget ChoiceManager v.1.4.1
auto...@1.1.1 - 14:42:35:550 > info - creating widget ChoiceTable v.1.8.1
auto...@1.1.1 - 14:42:35:550 > silly - step.on: added: INPUT_DISABLE
auto...@1.1.1 - 14:42:35:550 > silly - step.on: added: INPUT_ENABLE
auto...@1.1.1 - 14:42:35:550 > info - creating widget Slider v.0.4.0
auto...@1.1.1 - 14:42:35:550 > silly - step.on: added: INPUT_DISABLE
auto...@1.1.1 - 14:42:35:550 > silly - step.on: added: INPUT_ENABLE
auto...@1.1.1 - 14:42:35:551 > silly - step.on: added: in.say.DATA
auto...@1.1.1 - 14:42:35:551 > silly - step.on: added: in.set.DATA
auto...@1.1.1 - 14:42:35:551 > silly - step.on: added: in.say.DATA
auto...@1.1.1 - 14:42:35:551 > silly - step.on: added: in.set.DATA
auto...@1.1.1 - 14:42:35:552 > silly - D: 2023-10-02T18:42:35.299Z, 780133, 3007012219951817, say, DATA, Personalized_Phishing_Training_CogEV_v1, 376971928752698, "phasedata", "Phase 2,1", 0.0.0, 1, 0
auto...@1.1.1 - 14:42:35:552 > silly - D: 2023-10-02T18:42:35.299Z, 897374, 3007012219951817, say, DATA, Personalized_Phishing_Training_CogEV_v1, 376971928752698, "email", "[object O...", 0.0.0, 1, 0
auto...@1.1.1 - 14:42:35:552 > silly - D: 2023-10-02T18:42:35.299Z, 306887, 3007012219951817, say, DATA, Personalized_Phishing_Training_CogEV_v1, 376971928752698, "averages", "HAM,0.53,...", 0.0.0, 1, 0
auto...@1.1.1 - 14:42:35:553 > info - S: 2023-10-02T18:42:35.552Z, 444101, 3007012219951817, say, PLAYER_UPDATE, 376971928752698, ROOM, "stageLevel", "[object O...", 1.1.1, 1, 0
auto...@1.1.1 - 14:42:35:553 > silly - step.on: added: PAUSED
auto...@1.1.1 - 14:42:35:553 > silly - step.on: added: RESUMED
auto...@1.1.1 - 14:42:37:561 > silly - step.on: added: PAUSED
auto...@1.1.1 - 14:42:37:562 > silly - step.on: added: RESUMED
auto...@1.1.1 - 14:42:42:543 > silly - ee.step removed listener: PAUSED
auto...@1.1.1 - 14:42:42:544 > silly - ee.step removed listener: RESUMED
auto...@1.1.1 - 14:42:42:545 > info - S: 2023-10-02T18:42:42.544Z, 139691, 3007012219951817, set, DATA, 376971928752698, SERVER, "done", "[object O...", 1.1.1, 1, 0
auto...@1.1.1 - 14:42:42:548 > info - S: 2023-10-02T18:42:42.547Z, 771400, 3007012219951817, say, PLAYER_UPDATE, 376971928752698, ROOM, "stageLevel", "[object O...", 1.1.1, 1, 0
Best,
Drew