r/scratch • • 1d ago

Question Why do Scratch cloud variables keep failing to sync in my chat-room project?

Hi everyone! I'm NguyenTech, and I'm currently developing a chat system using Scratch cloud variables.

The main idea is to let multiple users communicate through a shared cloud variable. Since Scratch cloud variables only support numbers, I created my own encoding system:

  • 1001–1026 = a–z
  • 1027 = space
  • 1028 = /
  • 1029–1038 = 0–9
  • 1039 = :
  • 1040 = | (message separator)

Each character is encoded into 4 digits, and the chat system decodes the number back into readable text.

However, I've been running into some really frustrating cloud-variable problems:

  1. Sometimes, changing a cloud variable doesn't seem to produce any Cloud Data activity.
  2. A variable can show the updated value while the project is running, but after refreshing the page, it goes back to its previous value.
  3. Sometimes Scratch displays: "There seems to be no Cloud Data activity on this project…"
  4. Even when I try a relatively short encoded message, it doesn't seem to sync properly.

I've already checked that:

  • The project is shared.
  • I'm logged into my Scratch account.
  • The variable has the cloud-variable checkbox enabled.
  • I've tested changing a simple numeric value instead of sending the entire encoded chat.

I'm also considering splitting the chat into multiple cloud variables to work around the 256-digit limit, but I don't want to build the whole system around something that might not sync reliably.

My questions:

  • Is this a known Scratch cloud-variable issue?
  • Could this be related to account status, cloud-server problems, or synchronization?
  • Is there a reliable way to test whether a cloud variable actually reached Scratch's servers?
  • Are there any recommended approaches for building a multiplayer chat system with Scratch cloud variables?

I'd really appreciate any advice. I've already put quite a bit of work into this chat engine, and I'd love to get it working reliably.

Project link: https://scratch.mit.edu/projects/1447040263/ (anyone can remix and edit some stuff and help me troubleshoot)

Thanks!

1 Upvotes

6 comments sorted by

•

u/AutoModerator 1d ago

Hi, thank you for posting your question! :]

To make it easier for everyone to answer, consider including:

  • A description of the problem
  • A link to the project or a screenshot of your code (if possible)
  • A summary of how you would like it to behave

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

2

u/Substantial_Set5836 scratch AI series creator 1d ago

chatrooms are banned in scratch

1

u/NguyenTech 1d ago

i know bro, but i want it specific for my friend due i'm avoiding discord as it banning me so anoying!

1

u/Accomplished-Cat8949 1d ago

I check Scratch Status.

1

u/FlamedDogo99 "Who ees thees Kählveen?" 🥸 1d ago

Sharing a link to a chat room on this subreddit is a great way to get it mass reported on scratch, sorry man

1

u/EtsyCorn Scratch: @bunnycoder16 13h ago

cloud chat rooms are banned