Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Deleting Broadcast messages / renaming them
- zom_hooovb51732
-
Scratcher
24 posts
Deleting Broadcast messages / renaming them
Hi, I'm zom_hooovb51732. A scratcher from scratch, Recently I made a mistake when making a broadcast message in one of my pre-alpha projects… I was researching and found no results! I'm on Scratch 3.0 online version not in the application. When I hold-click left and right no options shows up. So how am I going to edit those blocks or delete them? Pls comment! Also like, favourite and share my projects!
- deck26
-
Scratcher
1000+ posts
Deleting Broadcast messages / renaming them
Broadcast names will disappear from the list when there are no uses of the broadcast in the project and you save it. I think it used to be possible to change broadcast names but is no longer.
- zom_hooovb51732
-
Scratcher
24 posts
Deleting Broadcast messages / renaming them
Broadcast names will disappear from the list when there are no uses of the broadcast in the project and you save it. I think it used to be possible to change broadcast names but is no longer.
OK! Thanks. It helps!
- cIoudyness
-
Scratcher
500+ posts
Deleting Broadcast messages / renaming them
for me when you change all references to your old broadcast to the new, the broadcast deletes itself. you might need to look into all your sprites and the stage to change the blocks in list on the left.
- legendary34678
-
Scratcher
1000+ posts
Deleting Broadcast messages / renaming them
deck26 already said the same thing as what you just suggested.
- cIoudyness
-
Scratcher
500+ posts
Deleting Broadcast messages / renaming them
deck26 already said the same thing as what you just suggested.elaborating that replacing broadcast references in the blocks list wasn't mentioned
(which is surprisingly pretty useful)
- legendary34678
-
Scratcher
1000+ posts
Deleting Broadcast messages / renaming them
The references to the broadcast in the blocks list on the left will automatically be replaced if the broadcast no longer exists. I have tested this myself and verified it to be true.
- cIoudyness
-
Scratcher
500+ posts
Deleting Broadcast messages / renaming them
time to run away now
(yikes)
(yikes)
- RT_Borg
-
Scratcher
1000+ posts
Deleting Broadcast messages / renaming them
Hi cIoudyness, legendary34678, deck26,
I believe the source of confusion here is that the messages are not removed when the project is saved (hear me out).
After removing all references, and making sure you've pressed “Save Now” if it hasn't saved itself yet, the old message is still listed as a possible message to broadcast/receive.
In fact, if you save an .sb3 and look at the project.json, you'll still see the old message inside, even though it is no longer used by any block.
However, if you load the project (either as normal from MyStuff, or you load the saved .sb3 from your computer) it old message disappears (and if you save to your computer again at this point, it will not be in the .sb3 project.json).
So the unused broadcast/receive messages disappear on loading a project, not when it's saved.
By the way, if you end up in a situation where you need to change many occurances of a badly chosen message name, you can do that easily by modifying a .sb3. Just save to computer, change the .sb3 file extension to .zip, unzip, open project.json in your favorite text editor, replace all (bad name to good name), save, zip the directory, change the extension of your new .zip to .sb3, load from computer into Scratch (probably over a new project, in case you made a mistake–don't overwrite your original project unless you're sure you know what you're doing.)
(Obviously using replace all is a bad idea if your message is named the same as something else in the project.)
– RT_Borg
I believe the source of confusion here is that the messages are not removed when the project is saved (hear me out).
After removing all references, and making sure you've pressed “Save Now” if it hasn't saved itself yet, the old message is still listed as a possible message to broadcast/receive.
In fact, if you save an .sb3 and look at the project.json, you'll still see the old message inside, even though it is no longer used by any block.
However, if you load the project (either as normal from MyStuff, or you load the saved .sb3 from your computer) it old message disappears (and if you save to your computer again at this point, it will not be in the .sb3 project.json).
So the unused broadcast/receive messages disappear on loading a project, not when it's saved.
By the way, if you end up in a situation where you need to change many occurances of a badly chosen message name, you can do that easily by modifying a .sb3. Just save to computer, change the .sb3 file extension to .zip, unzip, open project.json in your favorite text editor, replace all (bad name to good name), save, zip the directory, change the extension of your new .zip to .sb3, load from computer into Scratch (probably over a new project, in case you made a mistake–don't overwrite your original project unless you're sure you know what you're doing.)
(Obviously using replace all is a bad idea if your message is named the same as something else in the project.)
– RT_Borg
Last edited by RT_Borg (Aug. 6, 2022 07:05:17)
- zom_hooovb51732
-
Scratcher
24 posts
Deleting Broadcast messages / renaming them
duem when you change all references to your old broadcast to the new, the broadcast deletes itself. you might need to look into all your sprites and the stage to change the blocks in list on the left.
OK thanks!
- zom_hooovb51732
-
Scratcher
24 posts
Deleting Broadcast messages / renaming them
Hi cIoudyness, legendary34678, deck26,Not true!!!!!!!!!!!!!
I believe the source of confusion here is that the messages are not removed when the project is saved (hear me out).
After removing all references, and making sure you've pressed “Save Now” if it hasn't saved itself yet, the old message is still listed as a possible message to broadcast/receive.
In fact, if you save an .sb3 and look at the project.json, you'll still see the old message inside, even though it is no longer used by any block.
However, if you load the project (either as normal from MyStuff, or you load the saved .sb3 from your computer) it old message disappears (and if you save to your computer again at this point, it will not be in the .sb3 project.json).
So the unused broadcast/receive messages disappear on loading a project, not when it's saved.
By the way, if you end up in a situation where you need to change many occurances of a badly chosen message name, you can do that easily by modifying a .sb3. Just save to computer, change the .sb3 file extension to .zip, unzip, open project.json in your favorite text editor, replace all (bad name to good name), save, zip the directory, change the extension of your new .zip to .sb3, load from computer into Scratch (probably over a new project, in case you made a mistake–don't overwrite your original project unless you're sure you know what you're doing.)
(Obviously using replace all is a bad idea if your message is named the same as something else in the project.)
– RT_Borg
- zom_hooovb51732
-
Scratcher
24 posts
Deleting Broadcast messages / renaming them
Rt_borg, it's not true
- RT_Borg
-
Scratcher
1000+ posts
Deleting Broadcast messages / renaming them
Rt_borg, it's not true
Hi zom_hooovb51732,
As I wrote my message, I did each of the steps I described, recording what I saw. I'm using Windows + Chrome on the standard Scratch website.
I wrote several things about exactly when I saw the broadcast/receive message stay and when I saw it disappear, as well as instructions about manually changing all occurrences of a message to a new name with a text editor. Which part of all that are you saying you see something different? Exactly what do you see, and how does it differ from what I described?
– RT_Borg
- Discussion Forums
- » Help with Scripts
-
» Deleting Broadcast messages / renaming them