Creating your own Server

mdotedot

  • *
  • Posts: 1394
Hello,

The multiplayer extensions are connecting to a server. The examples use a VPS = Virtual Private Server which I rented to have better connection speeds, but still they are not as fast as my home server.

You can also use a Free Webhosting service. There are many out there and with varying speeds/availability. You can even get a free Amazon (AWS) server up and running which you can control.

This topic is about creating your own Web Host on one of the Webhosting services : http://www.serversfree.com

The actual server was abandoned due to latency, but the steps you need to take are pretty much the same.

ServersFree_Stencyl_Server.pdf

This is the TAR with all the extensions, example files and the server files (PHP) :
multiplayer.tar

Have fun!

Best regards from
M.E.

« Last Edit: April 10, 2017, 08:18:54 pm by mdotedot »
Hanging out in the Chat:  http://www.stencyl.com/chat/

Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

Donni11

  • *
  • Posts: 2174
Is server free a trusted site ? My a browser sometimes says it dangerous ...
Edit : Well I can't use it anyway its says in the terms of service that users can't host app there ...
Also which server was abounded ? This one ? : http://149.210.227.113/stencyl/index.php
The Stencyl Discord Channel , Where the real Stencyl work happens ;).

mdotedot

  • *
  • Posts: 1394
The 149... server is a paid service.
The serversfree.com site is laggy but I have made the how-to based on that server.
The process is similar for various free hosting services. Just google some with search based on
'MySQL PHP cpanel'  text.

Regards from
M.E.
Hanging out in the Chat:  http://www.stencyl.com/chat/

Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

cabinfever

  • Posts: 153
Hi,

I'm looking into creating free webserver with serversfree.com

I created a new domain there. Created a zip-file with following contents:
--clip--
crossdomain.xml
stencyl/creation/create_db.pho
stencyl/connect.php
stencyl/crossdomain.xml
stencyl/gencodes.php
stencyl/index.php
stencyl/lobby.php
stencyl/main.php
stencyl/messages.php
stencyl/property.php
stencyl/score.php
stencyl/stencyl.php
stencyl/turn.php
---clip ends---

Now all seems to gone good, except I received no email when I used the page to create new app-id. I found those from the mysql-db. So I could give it a try (with scoreboard). No luck. the serversfree.com page replies with:

# yum install php-mysql
This is the first line of the file 'connect.php'.  Should it be removed?

So it seems that php-mysql component is missing. Any hints how to proceed?
---update---
I removed that line from the 'connect.php' and re-uploaded the website. Now it seems to be working ok.

« Last Edit: December 27, 2015, 09:05:18 am by cabinfever »

damv2007

  • *
  • Posts: 1
How can i create a local wifi multiplayer?

mdotedot

  • *
  • Posts: 1394
Good luck with it. Took me 2 years to make local wifi multiplayer and to find out that it really doesn't meet my requirements.
It is your first post. Don't ever think of multiplayer before you have multiple years of experience in making games.
There will be others saying that it doesn't need multiple years but trust me you will need it.
Creating multiplayer games is really, really, really difficult.
Turn-based multiplayer is possible but if you want to make anything else you are in for a nice journey into the unknown.
Hanging out in the Chat:  http://www.stencyl.com/chat/

Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.