Error in oldish nodeGame game

179 views
Skip to first unread message

Don Morrison

unread,
Dec 12, 2022, 2:16:34 PM12/12/22
to nodeGame, Coty Gonzalez

Stefano,

I’m trying to resurrect an oldish nodeGame game that someone else wrote several years ago. I believe it was written against nodeGame version 5.9.0. I’m trying to update it to run in version 7.1.0. Well into this game I get a client-side error

2.2.1@13:59:12> http://ddmlab.com:8080/javascripts/nodegame-full.js
38169,13: Uncaught TypeError: GameWindow.setInnerHTML: replace must
be string or number. Found: undefined

At root I presume there is something in the game’s code that needs to be updated to work correctly in 7.1.0 (or perhaps in the version of node.js we’re running). But when I go to the dev tools in Chrome everything I can see appears to point only into the nodeGame code, not into our game per se.

Screenshot from 2022-12-12 14-09-29.png

Any advice you can provide on how to track down what I need to fix in our code to make this work, or at least be more usefully visible?

Thanks!


Don Morrison df...@cmu.edu
“The successes of deep learning have been truly remarkable and
have caught many of us by surprise. Nevertheless, deep learning
has succeeded primarily by showing that certain questions or
tasks we thought were difficult are in fact not.”
– Judea Pearl and Dana Mackenzie, The Book of Why

Stefano Balietti

unread,
Dec 12, 2022, 2:29:32 PM12/12/22
to node...@googlegroups.com
Hi Don,

You can try this debug technique. Click on the nodegame line in the error message (the one above it actually), line 30281. It will bring you to the source of nodegame. If it is not minified, you can place a debugger statement in the browser and run it again. It will stop there and then you can follow the backtrace to the error line. Alternatively, you can check all W.setInnerHTML statements that you have, if you don't have many it could work also.

Best,
Stefano

--
You received this message because you are subscribed to the Google Groups "nodeGame" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nodegame+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodegame/CAO9hiFXs_-wz1tM6u%2B4UBd2LC1ZywHZmMNLKUVvWJurZ7fteBw%40mail.gmail.com.

Kingsley Obi

unread,
Dec 13, 2022, 7:39:31 AM12/13/22
to node...@googlegroups.com
Pardon me nodegame community, any site to do online job? I will highly appreciate the recommendation please 🥺

Stefano Balietti

unread,
Dec 13, 2022, 8:18:48 AM12/13/22
to node...@googlegroups.com
Hi Kingsley,

Please do not change the topic of the email thread. However, here is a short answer for you:

- You can advertise yourself here as a nodeGame programmer, if that is something you can do.
- You can google for "online labor markets" and you will find sites like upwork.com or fiverr.com

 Best,
Stefano

Reply all
Reply to author
Forward
0 new messages