ScratchData LogoScratchData
Back to Voyager_III's profile

Streaks (local storage)

VOVoyager_III•Created September 1, 2023
Streaks (local storage)
114
106
1338 views
View on Scratch

Instructions

As it is, just click the green flag and wait for it to load, this project keeps track of how many days you've visited it in a row, without any cloud variables! Beat @Just_Call_Me_T's 39 day streak! Note, this doesn't work for many users. Tests are underway to improve it, and if it doesn't work, come back another time, maybe it will, though it's likely your device, OS, browser, or settings, as it does work for many, and may simply not be storing for long enough for you. Welcome to the beginnings of my local storage engine on Scratch! This stores data on your computer's cache, and retrieves it to keep local data (read to the end if you want to know more, and don't worry, it can't retrieve personal data or give viruses, et cetera). Note, this was accurate before transfered from Turbowarp to Scratch, tests are underway to readjust. Also, this may not store your data for a full day, if for whatever reason your cache is cleared or lots more storage on it kicks this out the back. This is a common issue, it seems lots of caches don't have the storage for this. The project is not broken. You can find settings for your cache and increase the size and longevity if you wish. In the meantime, I will work on optimising this so that it doesn't need so much space. This is still in development phase, I need help testing! Just tell me which days you visited the project, at which times, and how well it kept track of, or reset (if you missed a day), your streak. This will help make this more accurate and you will be credited if you provide enough data. If you want to use this engine, backpack the first sprite and you can use it in your projects. It tells you how many days in a row it has been visited, and if the streak has a "." symbol at the end, it has been visited already that day, for easier keeping track. Just credit me in the project you use it in, and let me know so I can see what you've done! Thanks so much to our testers; @OwlhousEReDra3z, @the_d_u_c_k, @BiggestBrainBoy, @zqvp, @octonus & @JustUrLocalDuck. :) Once this has been well developed, I'll implement it in my games and will work on a more accurate, all-encompassing local storage engine. In the meantime, if you like this, lots of work went into it, so I'd really appreciate a love or favourite, maybe even a follow if you'd like to see more of my projects. Thanks so much to @happywaffle0 for proposing this to be featured! :D How does this work, you may be wondering? When a request is made to the Google Translate API, it takes a moment to be processed and translated. To save costs, if you request something you've already requested recently, it remembers that result, instead of having to recalculate. This also means it's very fast to return, and you can send data in to see if it's been stored before. This isn't harmful at all. This is the basics of it, but many issues crop up. These can take a while to explain, so you may prefer to read the code, or ask if you have a specific question. Example: I translate "Hello" to German. Translate takes a moment to think, and says "Hallo" back to me. Next time I translate "Hello" to German, it thinks, 'Hang on, I remember this!', and returns an answer immediately. We ignore the result of the translation in this project, and look at the timing. #all #translate #local #storage

Project Details

Project ID888093428
CreatedSeptember 1, 2023
Last ModifiedNovember 21, 2024
SharedOctober 12, 2024
Visibilityvisible
CommentsAllowed