Discuss Scratch

MathPuppy314
Scratcher
500+ posts

Free Cloud Servers?

Hello,

I want to make a multiplayer game for my friends and I to play together online, but they don't have Scratch accounts. I've been experimenting with the turbowarp packager, exporting my scratch project as an executable html file which connects to the free turbowarp cloud system. At the moment, it takes about 100ms to update one variable to the cloud, but if I constantly add values, then it slows down until there are several seconds of delay. While I could try updating the cloud only every other frame or every few frames, I don't want to make the ping that bad. I know how to program ai-driven interpolation between frames, but I feel like 250ms is a little too long to successfully do that.

Are there any free cloud servers that run more quickly? If not, what are some of the cheaper options?
Also, does anyone have any suggestions on how to handle it using the lag on turbowarp?

Thank you for helping!
Chiroyce
Scratcher
1000+ posts

Free Cloud Servers?

MathPuppy314 wrote:

Are there any free cloud servers that run more quickly? If not, what are some of the cheaper options?
https://replit.com is a good option.

You will have to code it yourself - but there's already an option - https://github.com/SheepTester/primitive-cloud-server

I can help you make it if you want.

Last edited by Chiroyce (Nov. 11, 2021 15:36:24)

Chiroyce
Scratcher
1000+ posts

Free Cloud Servers?

So here's what you should do -

(1) Make an account on https://replit.com
(2) Click on this link - https://replit.com/github/sheepTester/primitive-cloud-server
(3) Go to the “shell” tab and paste this in there
npm install
then press enter and wait until you see a $ sign and a ~ sign
(4) Share your project on scratch (optional - but recommended so you don't get into trouble with the ST)
(5) Your repl's link will be formatted like this -
https://primitive-cloud-server.{yourReplitUsername}.co

to get the Cloud Server link, replace https with wss, so it becomes
wss://primitive-cloud-server.{yourReplitUsername}.co
(ps. you cannot go to the cloud server link like a normal link)

Then take your project's ID and then you'll get your final link

https://turbowarp.org/{YOUR-PROJECT-ID}?cloud_host={CLOUD-SERVER-LINK}

and it should work. I seem to be able to update cloud variables every 74 milliseconds or so - it can be higher depending on the project and how close you are to the server (replit's servers are in the US)

Also this is a very VAGUE tutorial - if you need to understand what happens in every step - feel free to ask.

Last edited by Chiroyce (Nov. 11, 2021 15:59:14)

MathPuppy314
Scratcher
500+ posts

Free Cloud Servers?

Chiroyce wrote:

https://replit.com is a good option.

You will have to code it yourself - but there's already an option - https://github.com/SheepTester/primitive-cloud-server

I can help you make it if you want.

What language would I need to work with?
I understand only the basics in js, html, and python, but I am much more fluent in C#.

Last edited by MathPuppy314 (Nov. 11, 2021 16:06:50)

Verixion
Scratcher
100+ posts

Free Cloud Servers?

if you want, here's my server: https://cloud-server.9gr.repl.co/

just use this if you want, it's a not used server
Chiroyce
Scratcher
1000+ posts

Free Cloud Servers?

Verixion wrote:

if you want, here's my server: https://cloud-server.9gr.repl.co/

just use this if you want, it's a not used server
There's a problem with using replit. They can't share the link in a project description or comments.
masoluka
Scratcher
26 posts

Free Cloud Servers?

Tx

Last edited by masoluka (Jan. 22, 2022 21:58:38)

stan20096
Scratcher
1 post

Free Cloud Servers?

Chiroyce wrote:

So here's what you should do -

(1) Make an account on https://replit.com
(2) Click on this link - https://replit.com/github/sheepTester/primitive-cloud-server
(3) Go to the “shell” tab and paste this in there
npm install
then press enter and wait until you see a $ sign and a ~ sign
(4) Share your project on scratch (optional - but recommended so you don't get into trouble with the ST)
(5) Your repl's link will be formatted like this -
https://primitive-cloud-server.{yourReplitUsername}.co

to get the Cloud Server link, replace https with wss, so it becomes
wss://primitive-cloud-server.{yourReplitUsername}.co
(ps. you cannot go to the cloud server link like a normal link)

Then take your project's ID and then you'll get your final link

https://turbowarp.org/{YOUR-PROJECT-ID}?cloud_host={CLOUD-SERVER-LINK}

and it should work. I seem to be able to update cloud variables every 74 milliseconds or so - it can be higher depending on the project and how close you are to the server (replit's servers are in the US)

Also this is a very VAGUE tutorial - if you need to understand what happens in every step - feel free to ask.

Where do I need to put mine scratch project id
because I cant find out.
PPPDUD
Scratcher
1000+ posts

Free Cloud Servers?

Chiroyce wrote:

So here's what you should do -

(1) Make an account on https://replit.com
(2) Click on this link - https://replit.com/github/sheepTester/primitive-cloud-server
(3) Go to the “shell” tab and paste this in there
npm install
then press enter and wait until you see a $ sign and a ~ sign
(4) Share your project on scratch (optional - but recommended so you don't get into trouble with the ST)
(5) Your repl's link will be formatted like this -
https://primitive-cloud-server.{yourReplitUsername}.co

to get the Cloud Server link, replace https with wss, so it becomes
wss://primitive-cloud-server.{yourReplitUsername}.co
(ps. you cannot go to the cloud server link like a normal link)

Then take your project's ID and then you'll get your final link

https://turbowarp.org/{YOUR-PROJECT-ID}?cloud_host={CLOUD-SERVER-LINK}

and it should work. I seem to be able to update cloud variables every 74 milliseconds or so - it can be higher depending on the project and how close you are to the server (replit's servers are in the US)

Also this is a very VAGUE tutorial - if you need to understand what happens in every step - feel free to ask.
Last time I checked, NPM tried to mess up my Downloads folder on Windoze 10.
god286
Scratcher
1000+ posts

Free Cloud Servers?

PPPDUD wrote:

Last time I checked, NPM tried to mess up my Downloads folder on Windoze 10.
You are running it on a secure computer in the cloud if you use replit. It will be running on a different computer so replit/npm won't harm your computer.
DifferentDance8
Scratcher
1000+ posts

Free Cloud Servers?

god286 wrote:

You are running it on a secure computer in the cloud if you use replit.
And you will have to pay for 24/7 hosting, and for higher limits, and for basically higher ability…

Just self host it using a RPi that's always on, and use Hamachi to allow people to join your website / server / whatever.
GamesForGamesXD
Scratcher
7 posts

Free Cloud Servers?

You could just get a server from aws. If you have prime, you can get quite a bit of freebies (although they have there limits).
applejuiceproduc
Scratcher
1000+ posts

Free Cloud Servers?

If your friends don't have scratch accounts, you can play at https://turbowarp.org can't you?

EPIC_SLAVER
Scratcher
20 posts

Free Cloud Servers?

replit isn't really free anymore, especially the fact that you have to pay to do almost anything

Powered by DjangoBB