Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How can I fix cloud variable issue on my project
- dakpok
- Scratcher
23 posts
How can I fix cloud variable issue on my project
Hello! I make a project https://scratch.mit.edu/projects/556386197/ for PGMA (Pixel Game Maker Awards) voting, and there is a glitch with the cloud variable, when i encode my username, (dakpok to 131020252420) all process is all right, but if i reload the page, the encoded username will be the first
digit of my username (letter 1 of dakpok to d which have the value 13 when encoded), if you can solve this problem, please reply this forum, or comment on my profile! thanks!
digit of my username (letter 1 of dakpok to d which have the value 13 when encoded), if you can solve this problem, please reply this forum, or comment on my profile! thanks!
Last edited by dakpok (July 30, 2021 00:03:29)
- mstone326
- Scratcher
1000+ posts
How can I fix cloud variable issue on my project
The project isn't shared
High School Athletic Director / Middle School Tech Teacher / High School Baseball Coach
Kung Fu by Nintendo 1984 - https://scratch.mit.edu/projects/369994801/
Taco Defense - Speed Typing - https://scratch.mit.edu/projects/316795450/
Halloween Boss Battle - Taking Back our Woods - https://scratch.mit.edu/projects/257155118/
Almost Pong - https://scratch.mit.edu/projects/656276979/
Studio - My Best Projects - https://scratch.mit.edu/studios/4125978/
Forum Help Project Examples - https://scratch.mit.edu/studios/4133335
- deck26
- Scratcher
1000+ posts
How can I fix cloud variable issue on my project
Project is currently shared but link above includes an extra bracket at the end.
Is the username supposed to be in ‘who voted’? That variable is currently blank. I added my name manually and ran the decode script and it worked. So is the cloud variable still holding the value when you reload? How are you running the decode script?
Is the username supposed to be in ‘who voted’? That variable is currently blank. I added my name manually and ran the decode script and it worked. So is the cloud variable still holding the value when you reload? How are you running the decode script?
- dakpok
- Scratcher
23 posts
How can I fix cloud variable issue on my project
Project is currently shared but link above includes an extra bracket at the end.
Is the username supposed to be in ‘who voted’? That variable is currently blank. I added my name manually and ran the decode script and it worked. So is the cloud variable still holding the value when you reload? How are you running the decode script?
yes the variable ‘who voted’ is for storing username that who already vote for PGMA, the problem is that the encoding process is good, but when you reload the page the cloud var.who voted will be 13, which the letter 1 of encoded d, from my username dakpok
- dakpok
- Scratcher
23 posts
How can I fix cloud variable issue on my project
Project is currently shared but link above includes an extra bracket at the end.
Is the username supposed to be in ‘who voted’? That variable is currently blank. I added my name manually and ran the decode script and it worked. So is the cloud variable still holding the value when you reload? How are you running the decode script?
if someone know how to solve the problem, please remix the project and make the non-problem project
- dakpok
- Scratcher
23 posts
How can I fix cloud variable issue on my project
Project is currently shared but link above includes an extra bracket at the end.
Is the username supposed to be in ‘who voted’? That variable is currently blank. I added my name manually and ran the decode script and it worked. So is the cloud variable still holding the value when you reload? How are you running the decode script?
also the reason why the list is (decoded who has voted) blank is because there is no ‘00’ to stop the program of encoding, which all because glitch of scratch cloud var.
- furrypig
- Scratcher
100+ posts
How can I fix cloud variable issue on my project
Cloud variables have a limit on how quickly you can set them, you cannot repeatedly set them very quickly. In the below script, the cloud variable is set many times in a repeat loop. Because it is being set so many times too fast, the variable doesn't actually set—it may only set once on the first letter, and then stop setting.
Instead, put the encoded username into a separate non-cloud variable first and then add that variable onto the cloud variable. The cloud variable is now only set once:
Instead, put the encoded username into a separate non-cloud variable first and then add that variable onto the cloud variable. The cloud variable is now only set once:
- dakpok
- Scratcher
23 posts
How can I fix cloud variable issue on my project
Cloud variables have a limit on how quickly you can set them, you cannot repeatedly set them very quickly. In the below script, the cloud variable is set many times in a repeat loop. Because it is being set so many times too fast, the variable doesn't actually set—it may only set once on the first letter, and then stop setting.
Instead, put the encoded username into a separate non-cloud variable first and then add that variable onto the cloud variable. The cloud variable is now only set once:
i'll try it! thank you so much for the sugestion!
- dakpok
- Scratcher
23 posts
How can I fix cloud variable issue on my project
Cloud variables have a limit on how quickly you can set them, you cannot repeatedly set them very quickly. In the below script, the cloud variable is set many times in a repeat loop. Because it is being set so many times too fast, the variable doesn't actually set—it may only set once on the first letter, and then stop setting.
Instead, put the encoded username into a separate non-cloud variable first and then add that variable onto the cloud variable. The cloud variable is now only set once:
thanks! it worked! i'm going to add you to the credits! thanks a lot!
- dakpok
- Scratcher
23 posts
How can I fix cloud variable issue on my project
Cloud variables have a limit on how quickly you can set them, you cannot repeatedly set them very quickly. In the below script, the cloud variable is set many times in a repeat loop. Because it is being set so many times too fast, the variable doesn't actually set—it may only set once on the first letter, and then stop setting.
Instead, put the encoded username into a separate non-cloud variable first and then add that variable onto the cloud variable. The cloud variable is now only set once:
also if i just continue using the cloud var.who voted it will ended with maximum cloud 256 letter, do you have any solution for that?
thank you!
- Discussion Forums
- » Help with Scripts
- » How can I fix cloud variable issue on my project