Discuss Scratch

Nigthmare_27
Scratcher
37 posts

scratchattach - A Scratch API wrapper (Python)

TimMcCool wrote:

What out of these features would you like to see in scratchattach?

a) an image encoder / decoder that converts images to a list of hex color values
b) a CloudStorage class that allows storing data through cloud variables and import / export the database as dict
c) a Sprite class that allows working with the sprites of scratch projects
The b. I made my own image encoder for a pfp, although that would be cool too.

Last edited by Nigthmare_27 (June 4, 2022 07:26:01)

nampinanathali
Scratcher
1000+ posts

scratchattach - A Scratch API wrapper (Python)

TimMcCool wrote:

What out of these features would you like to see in scratchattach?

a) an image encoder / decoder that converts images to a list of hex color values
b) a CloudStorage class that allows storing data through cloud variables and import / export the database as dict
c) a Sprite class that allows working with the sprites of scratch projects

a

mom when look at my browser history
fries09
Scratcher
61 posts

scratchattach - A Scratch API wrapper (Python)

So I have a question, I already directly messaged TimMcCool, but would it hypothetically be possible to make online multiplayer games? Also, if so, what are the limitations?

Hello.
<[My brain cells] < [-100]>
-FreeEngines-
Scratcher
100+ posts

scratchattach - A Scratch API wrapper (Python)

fries09 wrote:

So I have a question, I already directly messaged TimMcCool, but would it hypothetically be possible to make online multiplayer games? Also, if so, what are the limitations?
you can make online multiplayer games without this just aswell, that has been a thing for years.
the limitation is just the data transfer, you can have 10 cloud variables per project with like 128 chars each when i remember it right. If you want an insignificant data / packet loss, you should have a cooldown of around 0.5-1 seconds per data transfer, so you can transfer like 1280 characters per second. Not taking into account the time for the request to the client, processing and connecting to the websocket
catchey8
Scratcher
3 posts

scratchattach - A Scratch API wrapper (Python)

Baidog_Studios
Scratcher
5 posts

scratchattach - A Scratch API wrapper (Python)

With Scratchattach can you use voice recognition to implement into projects?
god286
Scratcher
1000+ posts

scratchattach - A Scratch API wrapper (Python)

22000 views on this topic - wow!

Baidog_Studios wrote:

With Scratchattach can you use voice recognition to implement into projects?
If you want Scratch project to send voice to Python and then return text?
I don't think that the loudness block is enough to get full voice recognition even with the power of Python.

Here are some of my followers!

I joined: 5 years, 9 months, 24 days ago (31/03/2018)
I have: 479 followers
In total, I have attained: 1,403 loves, 1,145 favourites, and 33,731 views.
Fun Fact: If my account continued to gain followers at a similar rate to right now, in 14,210 years I would reach the number of followers griffpatch has today! Try to imagine how many followers he would have then!
Thank you everyone!
Script created by god286.
-FreeEngines-
Scratcher
100+ posts

scratchattach - A Scratch API wrapper (Python)

Baidog_Studios wrote:

With Scratchattach can you use voice recognition to implement into projects?
not really. you cannot record voices, just the loudness/volume. you can obviously send that to a server, but i guess thats kinda useless.
edit: you could send NOTE data to your client and play that, tho well thats still not voice.

Last edited by -FreeEngines- (June 5, 2022 08:11:15)

Baidog_Studios
Scratcher
5 posts

scratchattach - A Scratch API wrapper (Python)

-FreeEngines- wrote:

Baidog_Studios wrote:

With Scratchattach can you use voice recognition to implement into projects?
not really. you cannot record voices, just the loudness/volume. you can obviously send that to a server, but i guess thats kinda useless.
edit: you could send NOTE data to your client and play that, tho well thats still not voice.

Ok thank you!
fluo1234
Scratcher
100+ posts

scratchattach - A Scratch API wrapper (Python)

fries09 wrote:

So I have a question, I already directly messaged TimMcCool, but would it hypothetically be possible to make online multiplayer games? Also, if so, what are the limitations?
there are tons of online multiplayer games

A

do you need he- nvm

I wrote:

ok
something
infintyrussia
Scratcher
100+ posts

scratchattach - A Scratch API wrapper (Python)

Why is this invalid syntax?


while scratch3.get_var(project_id, “CoCloud-Broadcast”) != “4” or scratch3.get_var(project_id, “CoCloud-Broadcast”) != “5”:


-FreeEngines-
Scratcher
100+ posts

scratchattach - A Scratch API wrapper (Python)

infintyrussia wrote:

Why is this invalid syntax?


while scratch3.get_var(project_id, “CoCloud-Broadcast”) != “4” or scratch3.get_var(project_id, “CoCloud-Broadcast”) != “5”:
I dont know about python Syntax errors but you might have a whitespace error there
-FreeEngines-
Scratcher
100+ posts

scratchattach - A Scratch API wrapper (Python)

infintyrussia wrote:

Why is this invalid syntax?


while scratch3.get_var(project_id, “CoCloud-Broadcast”) != “4” or scratch3.get_var(project_id, “CoCloud-Broadcast”) != “5”:
So like is there something after the : die you make a new line etc?
infintyrussia
Scratcher
100+ posts

scratchattach - A Scratch API wrapper (Python)

-FreeEngines- wrote:

infintyrussia wrote:

Why is this invalid syntax?


while scratch3.get_var(project_id, “CoCloud-Broadcast”) != “4” or scratch3.get_var(project_id, “CoCloud-Broadcast”) != “5”:
So like is there something after the : die you make a new line etc?

No there are no empty spaces.

Here is some more of the code:

if request == “1”:
print(“saving”)
project = session.connect_project(project_id)
conn.set_var(“CoCloud-Broadcast”, “2”)
save = scratch3.get_var(project_id, “CoCloud-Send”
while scratch3.get_var(project_id, “CoCloud-Broadcast”) != “4” or scratch3.get_var(project_id, “CoCloud-Broadcast”) != “5”:
save_times = save_times + 1
if (save_times>5):
break


Magic_kid12
Scratcher
12 posts

scratchattach - A Scratch API wrapper (Python)

(long unnecessary quote removed by moderator - please don't spam)

And you did this? Mind blown!

Last edited by Paddle2See (June 9, 2022 16:48:50)

fluo1234
Scratcher
100+ posts

scratchattach - A Scratch API wrapper (Python)

infintyrussia wrote:

Why is this invalid syntax?


while scratch3.get_var(project_id, “CoCloud-Broadcast”) != “4” or scratch3.get_var(project_id, “CoCloud-Broadcast”) != “5”:
whats the error

do you need he- nvm

I wrote:

ok
something
CodingScratching
Scratcher
8 posts

scratchattach - A Scratch API wrapper (Python)

uh can you make a project that connects scratch to python?
infintyrussia
Scratcher
100+ posts

scratchattach - A Scratch API wrapper (Python)

fluo1234 wrote:

infintyrussia wrote:

Why is this invalid syntax?


while scratch3.get_var(project_id, “CoCloud-Broadcast”) != “4” or scratch3.get_var(project_id, “CoCloud-Broadcast”) != “5”:
whats the error

The error is invalid syntax.


Nigthmare_27
Scratcher
37 posts

scratchattach - A Scratch API wrapper (Python)

infintyrussia wrote:

(#604)

fluo1234 wrote:

infintyrussia wrote:

Why is this invalid syntax?


while scratch3.get_var(project_id, “CoCloud-Broadcast”) != “4” or scratch3.get_var(project_id, “CoCloud-Broadcast”) != “5”:
whats the error

The error is invalid syntax.
Maybe try to remove the “” around the numbers?
sayguy120
Scratcher
4 posts

scratchattach - A Scratch API wrapper (Python)

Can someone inform me about scratchattach?

Powered by DjangoBB