gumshoe2029's Forum Posts

  • 1. a 000webhost.com server

    That is a curious new server provider. I might have to recommend this for beginners instead of AWS.

    2. which is exactly the difference between normal and dedicated servers?

    I would consider dedicated servers "normal" and peer-to-peer as an oddball. Your 000webhost server is a dedicated server.

    See: how-do-i-use-a-lobby-server-for-a-multiplayer-game_p1091393?#p1091393

    I tried using the AJAX object to "contact" a database, but my problem is that all the tutorials are written for PHP 5.6 (which uses MySQL) and since the PHP 7 update, it is necessary to write MySQLi (I don't know and I didn't find the adequate code), so I decided trying with the Multiplayer plugin (which would be fine if the room's stability didn't depend on the host being connected). I don't want to give up the Multiplayer plugin yet, I hope to be able to find a solution.

    Anyhow, if you could kindly tell me what I exactly need to research on to implement a dedicated server (I do only have basic knowledge), it would be great.

    Thank you once again for your help, I really need it <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    MySQLi for beginners: http://codular.com/php-mysqli

    For research to use a dedicated server, you just need to use your 000webhost server and do research on "PHP program application interface tutorial" and "PHP mySQLi" to find out how to take in HTTP parameters and place them into your database. Then you access your API via AJAX and use it to input items into your database.

  • Well now I know I can do that, but I'm still confused about 2 things :

    1. How do I install the signalling server on my web server ? (as I said it's not explained anywhere I read)

    2. After installing it, what do I need to do in Construct 2 ? Do I have to connect every peer to a "global" room, and then connect them in a sub-room (I'm not sure how to say that ^^') with a limited number of places (here 2, 3 or 4) when they want to start a game together ? (and connect them back to the global room it they disconnect from the sub-room)

    1. You don't. You just use Scirra's. Ashley provides their signalling server for all users of Construct to use freely out of the goodness of his heart.

    1a. If you want your own signalling server, you must first have a server. This brings you back to a dedicated server. There is probably some programming you would have to do on the backend then. Maybe you can find an open-source signalling server? If your primary goal is avoiding backend programming, then insisting on your own signalling server is a contradictory goal.

    2. The multiplayer plugin should automatically (maybe?) connect to it to find hosts/peers. I've never used the multiplayer plugin, so I can't say for sure.

    See my links here:

    3. If you want a private tutorial on how to use AWS, I'll be happy to PM you a bunch of links to useful tutorials that I used.

  • gumshoe2029

    Thank you for your answer!

    After reading these posts I have 2 questions:

    1. How can I add a browser or a browser emulator on my server? I am not really an expert in servers. I suppose if I do this once it won't be necessary to mantain the server (excepting there is a bug or the server has any problem), isn't it?

    2. I read that the Multiplayer Plugin does not work with iOS, but this post is from 2015. Does it work now on iOS devices?

    Tank you once again for your reply

    1. What kind of server are you running?

    2. I have no idea. I use dedicated servers.

    Honestly, it sounds like you need to be using a dedicated server and not the multiplayer plugin. I recommend doing research on how to use the AJAX object.

  • Just to be sure, what do you mean by "available games" ? Does that mean that you choose the maximum number of games that can be played at the same time when configuring the signalling server ?

    Because that's what I want to do in my project :

    1. The players start by connecting to a big lobby server, where every player is connected

    2. - They can start a "public" game that everyone can join, or a "private" game that cannot be joined without an invitation, for 2, 3 or 4 players. They are then redirected to a waiting room with a chat and a button to invite other users (if they are not in a waiting room or a game).

    - They can also "join an available game" to join an unfilled public waiting room

    3. No one can join when the game is started, but guests can choose to "watch the game" if they want

    If I understood properly, to run the signalling server I will need a dedicated server and not a classic web server right ?

    Please can I have some advice to do what I described above ?

    The signalling server is not a dedicated server for your use. It is a meeting place for peer-to-peer clients, nothing more. If you want a dedicated server, you have to set it up yourself on something like AWS (or other providers or setup your own server).

    http://gamedev.stackexchange.com/questi ... ent-server

    https://www.lynda.com/Network-tutorials ... 389-4.html

    http://www.gamespot.com/forums/system-w ... -26276019/

    https://technet.microsoft.com/en-us/lib ... 10%29.aspx

  • Thanks for the capx gumshoe2029 . But how do i swap back to original position?

    Just reverse the original variables for A & B.

  • Is this dangerous? Or is nw.js the desktop publisher?

  • You can store multiple x,y positions like:

    https://drive.google.com/open?id=0B-xiq ... U1jeU5ULUE

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • https://github.com/aadsm/jschardet is close maybe

  • It should work. You should just call the same action again with the same effect. What does it do?

    You can also load images from URL to different frames in the same sprite.

    https://drive.google.com/open?id=0B-xiq ... 1NIU1B3dDA

  • You will want to use a http POST request. I am not sure exactly how this would work in C2, but I know it is possible.

  • There was a lot of discussion about this some time ago:

    The general consensus was to have a browser or browser emulator on your server that connects first and serves as the more permanent host.

  • Guess it is time to move on to 231.

    I know... I keep getting left behind too...

  • Can you show me an example capx? thanks.

    I was afraid you would ask this... give me a bit.

    https://drive.google.com/open?id=0B-xiq ... GRfSlpHd00

    Seriously though, you need to learn to search Google or the Scirra forums for stuff. You can even use cascaded searching in the Scirra forums.

  • Ratmaster

    If you get the EC2 servers, they operate exactly like classic webservers (except the hardware is abstracted away). You just SSH into the Linux command console, download Linux packages (like Apache webserver), or use winSCP to upload files to the server.

    Dabble with the free server before you actually buy one.

    There is no tutorial for this, since we are the only ones (that I know of) that use AWS for our servers in the Scirra forums. I am hesitant to write a tutorial on this, because I don't want to step on Ashley 's Scirra arcade store.

  • We built our website in C2. It was a good experience, but not one that I am going to repeat.