ScratchData LogoScratchData
Back to BirdNani_Test's profile

Data Encoder

BIBirdNani_Test•Created December 15, 2019
Data Encoder
5
3
118 views
View on Scratch

Description

Quick little encoder I was working on... Works with negative and positive numbers. A custom block allows you to chunk your custom data to a certain length using added zeros. This is made so that it is easy to decode from large chunks of combined data of this type, without a character separation detector or complex decoder system. The data is kept at a constant length unless it exceeds the dataLength range that is set. It relocates the negative sign to the front if it is negative, so that scratch blocks (Specifically operators) can properly extract the numbers from data with no decoding errors. (A setup like this " (35)*(0-80) " will confuse scratch and not work properly. Something like this however " (35)*(-080) " will function and read out properly. That is what this system accomplishes.) If you use, please give credit to @BirdNani! :D

Project Details

Project ID353963714
CreatedDecember 15, 2019
Last ModifiedDecember 15, 2019
SharedDecember 15, 2019
Visibilityvisible
CommentsAllowed