Problems when building puzzle and maze

103 views
Skip to first unread message

David Keller

unread,
Dec 22, 2019, 2:49:36 PM12/22/19
to Blockly Games
I'm trying to incorporate Blockly Games on my website, with a few code changes. I copied the built site into my code base, and then checked out the original source and ran make deps, and then ran make puzzle-en, and copied over the resulting compressed.js to my website. Everything was fine, except none of the blocks had color anymore (see attached).

When I tried running make maze-en, the resulting code also produced blocks with no color, the text "turnLeftturnRight" at the bottom left, and functionality for moving the guy through the maze broke.

Am I building the code wrong, and copying over the resulting compressed.js incorrectly?
puzzle.png

Neil Fraser

unread,
Dec 22, 2019, 3:07:15 PM12/22/19
to Blockly Games
Wonderful.  Blockly has broken colours again.  It seems to happen every six months or so.  I'll report this to the Blockly team.

In the meantime, just edit Makefile and search and replace 'blockly/branches/develop/' to 'blockly/trunk/' (there are 6 instances).  Then run 'make clean', 'make deps', and 'make en'.

--
You received this message because you are subscribed to the Google Groups "Blockly Games" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blockly-game...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/blockly-games/e1ccd448-fbe0-49f8-884c-c0bd3f145863%40googlegroups.com.


--

David Keller

unread,
Dec 22, 2019, 9:48:38 PM12/22/19
to Blockly Games
That fixed the colors, but maze is still broken after i build it. I see some garbage text in bottom left corner (see attached), and the maze guy won't move regardless of what blocks I drag over.


On Sunday, December 22, 2019 at 12:07:15 PM UTC-8, Neil Fraser wrote:
Wonderful.  Blockly has broken colours again.  It seems to happen every six months or so.  I'll report this to the Blockly team.

In the meantime, just edit Makefile and search and replace 'blockly/branches/develop/' to 'blockly/trunk/' (there are 6 instances).  Then run 'make clean', 'make deps', and 'make en'.

On Sun, 22 Dec 2019 at 11:49, David Keller <kell...@gmail.com> wrote:
I'm trying to incorporate Blockly Games on my website, with a few code changes. I copied the built site into my code base, and then checked out the original source and ran make deps, and then ran make puzzle-en, and copied over the resulting compressed.js to my website. Everything was fine, except none of the blocks had color anymore (see attached).

When I tried running make maze-en, the resulting code also produced blocks with no color, the text "turnLeftturnRight" at the bottom left, and functionality for moving the guy through the maze broke.

Am I building the code wrong, and copying over the resulting compressed.js incorrectly?

--
You received this message because you are subscribed to the Google Groups "Blockly Games" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blockl...@googlegroups.com.
maze.png

Neil Fraser

unread,
Dec 23, 2019, 1:05:03 AM12/23/19
to Blockly Games
Hmm, the error in Maze is not one that I can recreate on a clean version of Blockly Games (with the Blockly version synced to master rather than develop).  Could it be the result of one of the changes you've made locally?  Also, are there any errors in the browser's console?

To unsubscribe from this group and stop receiving emails from it, send an email to blockly-game...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/blockly-games/d242b7c4-6f0f-4a77-9071-c7c5be8a297f%40googlegroups.com.

David Keller

unread,
Dec 23, 2019, 2:56:31 AM12/23/19
to Blockly Games
I undid all of my local changes, and simply built the maze with make deps and make en. Then copied the compressed file to my site. Here's what I see in the browser console:

(anonymous) @ compressed.js:511
setTimeout (async)
Bd @ compressed.js:511
(anonymous) @ compressed.js:582
load (async)
(anonymous) @ compressed.js:578
manifest.json:1 Manifest: Line: 1, column: 1, Syntax error.

David Keller

unread,
Dec 23, 2019, 12:54:18 PM12/23/19
to Blockly Games
I solved the issue. I had to copy over third-party/JS-Interpreter/compressed.js to the equivalent path in my site to solve the maze guy not moving. I then had to copy over common/common.css to the equivalent path in my site to hide the garbage text in the bottom left corner.
Reply all
Reply to author
Forward
0 new messages