I wrote a menu block back in the days of JavaScript that let users define a menu in a list variable.
It looked up the name of the block and then used that name to read the menu.
Just as I finished developing it - JS was disabled
So I'm trying to recreate it with the new facilities
Original JS block
[edit]I'm thinking there's a much easier way of getting same result - working on it now
Yep - I just needed to reset my world view and not try and do it the old way
It's trivial to do with new facility
I'm kinda opposed to that idea as well
I'm adding some more details to some of the blocks, and I think set slot [ V] to []::control may be broken at the moment
But alas, it
is still in development, so that's to be expected
jens
November 4, 2024, 2:50pm
88
hmm, can you share what you're trying to do?
Yes, one second though I'm making help menus for all of the blocks I made
I think I discovered another glitch. I accidentally clicked the hat that detects when an input has been clicked, and none of the changes to the blocks I've made after that saves
Also here's the block in question
jens
November 4, 2024, 3:05pm
91
I'm not seeing any code in that pic. Can you just show a script pic of the script that throws the error?
Here's my blocks, all fully equipped with help menus.
* I haven't tested this much but atm I think pressing the backpack dropdown accidentally adds
every custom block in the backpack
jens
November 4, 2024, 3:12pm
94
okay, now please
enable visible stepping, then
open the block editor and
run the script that throws the error
and let me know where exactly inside the menu script it occurs. Tnx!
jens
November 4, 2024, 3:28pm
96
okay, thanks!
btw, none of your pics seem to have any code in them, or is it just me / my laptop?
I just noticed this as well, I think this might be a bug with the beta because script pics in prod work fine
jens
November 4, 2024, 3:31pm
98
so, I don't quite understand what this does, and I don't have time to try to second-guess your design, perhaps you'd like to be a little more communicative? Which text or number are you trying to assign to the contents of an input slot? Can you reproduce it with just that data?
Heres the prod version of the script pics, but you'll have to manually replace the Undefined!::other blocks
I'm trying to change the scripted input (blocks) to be Deleted script.
or Deleted all scripts.
after you run the script, but it gives a TypeError. The reason for this is because Snap code in Lisp notation can get quite long
jens
November 4, 2024, 3:43pm
101
nope, the size of text shouldn't be an issue, and neither should script pics be. Both work fine for me:
Confirming Jens code works for me
@mr_owlssssnap2 Maybe save your project, close browser/clear cache and reload to see if that clears your issue?
And maybe post link to your project?