Binary to text conversion (yippee more brain pain : p)

so I’ve been experimenting with this I’m I’ve managed to barely translate some blocks I found on a block forums website but the blocks are incomplete due to gkc having uh limitations to it’s blocks
so I was wondering if there was another way to do these kinds of block’s actions in gkc
7abe6f85f317b6bfa07548ec4c127e73c5eaf9a3_2_690x268


these blocks were not by me I had just found an example of it on another discourse website
I barely understand base 10 and all that stuff or scratch that I’m not familiar with any of those base anythings ._.

1 Like

(My head hurts.) Could you ss the one you are currently working on? (if you can).

So the initialize global thing I believe are variables, or properties in Gimkit.

The for command doesn’t exist, so this would be extremely hard or not possible with the current coding blocks in Gimkit.

1 Like

I mean, repeating in block code is quite hard. but you can check strings in GKC, and you can have variables.
EDIT: you can just repeat the block code with a trigger loop @Slim and disable it when the task is done.

The for command could be recreated by having properties track how many of something there is in the block code…
Elaboration: Using a system to track the trackers
Elaboration of Elaboration: If the things being tracked for for are physical, this is easy. However, if it’s technical (inside other systems) then it’s also easy. Just count how many “items” are in the system, and set a property to that number or something.

2 Likes

For/While Loops - A Sorely Needed Mechanism

7abe6f85f317b6bfa07548ec4c127e73c5eaf9a3_2_690x268
intiallize is basically, set %varible% to blah
there is no split function, but the work around is that is there a set amount of numbers?
if so, then i can hlp, if not, get bh.
join, is a bit complicated, and uhhh, if they are text, we have to um… (code every letter to number, then decode the thing added together by powers of ten to next digit?)


no clue wt asc character is but ok.
length, umm, are there blocks for that? if not, um, divide by ten untill decimal ? then see how much time u have to divide 10?

thats rly all i can do. i am young. i am not as educated as some other people, so dont put too much thought into my post, @Blackfox45666 i hope this hlps. shoot me any questions u have about wt i said, and anyhting else

1 Like

@Blackfox45666 I can definitely help with part of this.
First, I’m almost done with something that can run an equivalent of the first screenshot. Basically converts that list to binary form.
However, I’m kinda confused about the second screenshot. I’ll let somebody a bit more advanced than me do that for you.


There’s a chance I’ll be able to get you the GKC equivalent of the first screenshot tonight, but if not I should be able to get it to you sometime tomorrow.

1 Like

Ok, this should work (sorry, it’s very long):

Yes, long enough for one of these

Trigger 1
Receives on: recurbinaryconversion
Block code:



Trigger 2
Receives on: convertnum2binary
Code:


Trigger 3
Receives on: continuebination
Code:


Trigger 4
Receives on: continuation2
Code:


Trigger 5
Receives on: continuation3
Code:

Trigger 6
Receives on: inbinaryform
Code:


Properties
Binatenumber - number
binarynum - text
newdecimalFormat - text
decimalFormat - text
binaryFormat - text
Recurtext# - number

I tested it, found some errors, fixed, it should work. There are some random channels in there, you can just leave them, they shouldn’t harm anything. Your final list will be property binaryFormat.

4 Likes

What are you using this code for seems a little extreme for a simple gimkit game don’t you think

i’ll go ahead and test it out later
during lunch
but anyways thank ya’ll for giving a bit of help! :3
I’ve been mostly using this stuff for experimenting for funzies or helping others do some stuff
so yeah while this may have gone to a graveyard or to a good cause I still appreciate the help
so on and so forth I’m not gonna bombard ya’ll with a text wall so yeah one last thing I’m not gonna be marking a solution until I get around to testing it (I like to take my sweet time on help topics : p)

1 Like

also a way to input the numbers in would be nice the way I’m using dosent seem to be compatible with this system ur using ;-;
I can provide some screenshots of the input system I’m using if ya need me to

1 Like

You mean like input the decimalFormat? I guess you would just set the property and use joins to put spaces in between. But I would like to see your input system.

Screenshot 2024-10-22 12.59.10 PM
ignore the blank props they were there for a previous system

other screenshots

Screenshot 2024-10-22 12.58.32 PM
Screenshot 2024-10-22 12.58.43 PM
Screenshot 2024-10-22 12.58.53 PM

also the I forgot to mention the text blocks but whatever : p

Uhh…
your pictures are confusing me. My brain just isn’t comprehending what the code above is saying. Also, what is binary format added to in the second screenshot?