Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » Free Cloud Servers?
- MathPuppy314
-
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!
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
-
1000+ posts
Free Cloud Servers?
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
-
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
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.
(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
(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
-
500+ posts
Free Cloud Servers?
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)
- MagicCrayon9342
-
1000+ posts
Free Cloud Servers?
Paid Option 1
Paid Option 2 (Free Trial)
Free (And Open Source) Option 1 (Paid Plans Available)
Hosting it yourself (Free Option 2/ Paid Option 3)
Paid Option 2 (Free Trial)
Free (And Open Source) Option 1 (Paid Plans Available)
Hosting it yourself (Free Option 2/ Paid Option 3)
Last edited by MagicCrayon9342 (Nov. 11, 2021 16:25:56)
- Verixion
-
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
just use this if you want, it's a not used server
- Chiroyce
-
1000+ posts
Free Cloud Servers?
https://cloud-server.9gr.repl.co/There's a problem with using replit. They can't share the link in a project description or comments. if you want, here's my server:
just use this if you want, it's a not used server
- stan20096
-
1 post
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 therethen press enter and wait until you see a $ sign and a ~ signnpm install
(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
-
1000+ posts
Free Cloud Servers?
Last time I checked, NPM tried to mess up my Downloads folder on Windoze 10. 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 therethen press enter and wait until you see a $ sign and a ~ signnpm install
(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.
- god286
-
1000+ posts
Free Cloud Servers?
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. Last time I checked, NPM tried to mess up my Downloads folder on Windoze 10.
- DifferentDance8
-
1000+ posts
Free Cloud Servers?
And you will have to pay for 24/7 hosting, and for higher limits, and for basically higher ability… You are running it on a secure computer in the cloud if you use replit.
Just self host it using a RPi that's always on, and use Hamachi to allow people to join your website / server / whatever.
- GamesForGamesXD
-
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).
- EPIC_SLAVER
-
20 posts
Free Cloud Servers?
replit isn't really free anymore, especially the fact that you have to pay to do almost anything
- Discussion Forums
- » Advanced Topics
-
» Free Cloud Servers?