I don't understand Blockly

220 views
Skip to first unread message

adım soyadım

unread,
Mar 7, 2024, 1:50:41 PM3/7/24
to Blockly
Please help me! Why is everything so difficult, Blockly has many conferences, but I havent come across a video explaining how we can use Blockly. I'm crying now. None of the methods I've tried work. I read the manuals but I don't understand. Please have one of you run the demo in this link for me and explain to me how it works. Only this way I can understand. Can anyone please spare time for this? You will receive my prayer. https://github.com/RITAccess/blockly

Wolfgang Meyers

unread,
Mar 7, 2024, 3:03:17 PM3/7/24
to blo...@googlegroups.com
Not sure where to start. Have you tried using the demo? It's here - https://blockly-demo.appspot.com/static/demos/code/index.html

The idea is that you connect blocks together, and then Blockly generates code from your blocks. I've posted an example at https://blockly-demo.appspot.com/static/demos/code/index.html#y9g5yb

These blocks that I just threw together:

image.png
Generate this javascript code (you can see this on the "Javascript" tab:
image.png

This isn't very useful by itself, you usually want to add custom blocks to let Blockly generate code that can interact with other things, like a game for example.
If you are wanting to dig into this and make custom blocks, I found a tutorial here that might get you started - https://medium.com/@akajithkumar9700/create-workspace-custom-blocks-in-blockly-530d97a95ce

On Thu, Mar 7, 2024 at 10:50 AM adım soyadım <botesin...@gmail.com> wrote:
Please help me! Why is everything so difficult, Blockly has many conferences, but I havent come across a video explaining how we can use Blockly. I'm crying now. None of the methods I've tried work. I read the manuals but I don't understand. Please have one of you run the demo in this link for me and explain to me how it works. Only this way I can understand. Can anyone please spare time for this? You will receive my prayer. https://github.com/RITAccess/blockly

--
You received this message because you are subscribed to the Google Groups "Blockly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blockly+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/blockly/26ef790f-b3e0-43d2-8063-cd6aa6af154fn%40googlegroups.com.


--
Best Regards,

Wolfgang Meyers
cell: 650.834.7751
email: wolfgan...@gmail.com

adım soyadım

unread,
Mar 7, 2024, 3:52:43 PM3/7/24
to Blockly
Thank you very much for your answer and this link. If I need to explain in more detail, a module is installed in the demo whose link I posted. I think that's why it needs to be opened using npm. These are the steps I took.
1- installed Node.js
2- installed Python
3- installed Git
4-I wrote this command in Node.js: C:\BlocklyProject>git clone https://github.com/RITAccess/blockly.git
5- Then I wrote this command:         C:\BlocklyProject>blockly>npm install
6- I said npm run release and I got the error closure not found.
What should my next step be?

I didn't do anything different. I don't have a website or app. I only want to open this demo locally from the browser. I don't know which file to process. For example, when I am asked to import the code, I don't know where to write it. this is the situation :(

7 Mart 2024 Perşembe tarihinde saat 23:03:17 UTC+3 itibarıyla wolfgan...@gmail.com şunları yazdı:

Aaron Dodson

unread,
Mar 8, 2024, 12:00:40 PM3/8/24
to Blockly
It looks like this repo is using a very old version of Blockly, so the build process is a bit more complicated unfortunately. I was able to get it working by:

1. Download and unzip https://github.com/google/closure-library/archive/refs/tags/v20190618.zip, renaming the folder to "closure-library", and placing it in the same folder as your blockly folder (not inside the blockly folder, next to it)
2. Add the following lines in core/blockly.js after the goog.provide('Blockly') line:

goog.require('goog.debug.ErrorHandler');
goog.require('goog.events.EventWrapper');
goog.require('goog.events.EventLike');

3. Re-run the npm run release command. It takes a long time and prints out some red text that looks like an error at the end, but it should work. Let me know if you're still running into trouble after that!

adım soyadım

unread,
Mar 8, 2024, 2:41:12 PM3/8/24
to Blockly
I can't believe this is working now. You're a genius! May Allah protect you from evil in this world and the hereafter.

8 Mart 2024 Cuma tarihinde saat 20:00:40 UTC+3 itibarıyla ado...@google.com şunları yazdı:
Reply all
Reply to author
Forward
0 new messages