How to add block factory to my project

106 views
Skip to first unread message

Maxime M.

unread,
Jul 18, 2018, 5:07:21 AM7/18/18
to Blockly
Hi,

I'm currently trying to integrate the google version of the blocky factory in my project instead of the custom factory made by another person.

To do that, I have downloaded and integrated the closure library and I have integrated the index.html with all the js scripts and the css to the html code of my project.

The renderer of this html page can be seen in block_factory.png.

The version of the project with the custom version of the factory is https://github.com/Maxmawt/INGInious-problems-blockly.


What am I doing wrong with that integration?

Thank you for reading,

Maxime Mawait
block_factory.png

picklesrus

unread,
Jul 18, 2018, 9:05:43 AM7/18/18
to Blockly
Can you clarify what you mean by the "google version" vs the "custom factory made by another person"?

Also, it is difficult to tell from a screenshot what might be wrong. Are there any errors in the javascript console?  What browser are you using?It looks like most of the pieces are there, but not sized properly.

-picklesrus

Maxime M.

unread,
Jul 18, 2018, 9:11:36 AM7/18/18
to Blockly
By "google version", I mean the code present on the google repository on GitHub. By the "custom factory", It was a factory done from the old google factory by a student for his master thesis and he deleted what he found useless.

I'm using Firefox and there's no error in the js console

Andrew n marshall

unread,
Jul 18, 2018, 4:18:09 PM7/18/18
to blo...@googlegroups.com
If possible, a direct link to a publicly accessible version of your Block Factory would allow us to see the render errors first hand, and allow us to inspect the page's CSS.

Given the number of things that look misplaced, it is possible a CSS file is missing, or that the original CSS had differing assumptions that your embedded view.

--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Maxime M.

unread,
Jul 20, 2018, 2:23:14 AM7/20/18
to Blockly
It would be difficult to give a public given that I haven't a available server now. Beside, is it possible the js already present on my project and the blocky js have conflicts between them which don't generate errors?

Maxime
To unsubscribe from this group and stop receiving emails from it, send an email to blockly+u...@googlegroups.com.

picklesrus

unread,
Jul 20, 2018, 9:46:52 AM7/20/18
to Blockly
Whether conflicts are a problem probably depends on how old your old version was...

Have you tried opening it in Chrome or Internet Explorer?  It kind of looks like Blockly wasn't able to calculate the windows size properly.  Firefox tends to be more finicky about that when elements are rendered but hidden by css. 
Reply all
Reply to author
Forward
0 new messages