Blockly Gemes doesn't include core serialization module?

23 views
Skip to first unread message

John Dalbey

unread,
Sep 11, 2022, 4:04:06 PM9/11/22
to Blockly Games
I'm building a Blockly game and I would like to use Blockly's serialization (for workspaces), but I get an error that Blockly.serialization isn't found.  Looking in appengine/third-party/blockly/core it seems serialization is missing. 
I tried to copy it from Blockly source, but it seems it has other dependencies and I quickly ran into a nest of conflicting and missing dependencies.
Is there an easy solution to this problem that I overlooked?

Neil Fraser

unread,
Sep 11, 2022, 4:16:53 PM9/11/22
to Blockly Games
Blockly Games currently runs on this unofficial one year old fork of Blockly:
https://github.com/NeilFraser/blockly-for-BG

As can be seen by the flurry of activity on the Blockly Games repo, we are currently working hard to update to use the next version of Blockly, but it's a significant effort.

In the meantime, if you want to serialize the workspace, just call:
Blockly.Xml.domToPrettyText(Blockly.Xml.workspaceToDom(BlocklyInterface.workspace))


--
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/64132457-b3ed-404c-b1c2-41ce466e8b15n%40googlegroups.com.


--
Reply all
Reply to author
Forward
0 new messages