j0schi's Recent Forum Activity

  • Hi Folks

    first a general question. With the multiplayer object one can add an ICE - TURN Server which i did and which works great. What i am interested in: Is the TURN Server always in use or only when there is a NAT Problem inbetween. I noticed, that local connections getting through with a ping of 1, which means there can be no TURN server inbetween.

    To my other question: We are talking about a multiplayer envoirement.

    When the peer layout loads it creates a tilemap.

    Whenever the tilemap needs to be updated the peer sends a message "tilemap" to the host. The host then answeres this specific peer with the tilemap. After that the peer sets the tilemap according to the host message (as json)

    Problem is, on the peer side, the tilemap always looks like another instance of the same tilemap which is in a total different layout. I cant get it to update...

    Here is the part where the host sends:

    and what the peer should do:

    Thanks to the debug2 text i know that the peer is actually receiving the tilemap.

    Is anything wrong with the loading from JSON part or am i missing something else?

    Thansk and kind regards

    Patrick

  • Hey

    We just completed the development phase 2 (Phase 1 is on Scirra Arcade: https://www.scirra.com/arcade/sports-games/platform-golf-1333 of Platform Golf and we are currently trying our luck with steam greenlight http://steamcommunity.com/sharedfiles/filedetails/?id=815687342

    Youtube Teaser:

    Homepage (With demo download):

    http://platformgolf.com/

    I appreciate any feedback from you folks as well as upvotes on greenlight if you like the game.

    So far it seems like most people have an issue with the ingame interface as it quite still looks as it was made for mobile. We actually found this interface to be the most convenient to use, even on PC. What do you guys think?

    Kind regards

    Patrick

  • at-99Instances2Go yes

    at-R0j0hound Thanks you very much, i am not sure why i couldnt get this to work, i will studdy the example and implement it

    thank you all for your help.

  • i have tryed both your suggestions, and in both cases the project just crashed... but thank you very much, i will keep trying...

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I send you a privatemessage with your credentials

  • did you mean like this?

    Doesnt work

  • well so if it is only for testing purpose you can have an account on my turn server

    so who will actually play this game?

  • might be related to my problem, take a look here and feel free to ask away: https://www.scirra.com/forum/viewtopic.php?f=147&t=178631

  • I noticed that also, it is different from browser to browser.

    you could try to detect the user agent (but there will be many cases where this is not correct) and then set the position if the game runns in this browser:

    UserAgent

    Return the full user agent string for the browser, e.g. Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.63.

    regards

  • So this rly bothers me, as i cant get it wo work.

    Basically i have a bunch of instances of the same object floating arround. The object has the instance variable "points" which also determine the size of the object. When one instance overlaps another the instance with more points should gain points from the instance with less points. This work as long as only 2 intances are overlapping, if another 2 overlapping it does not work (only for the first instances overlapping while i picked instances by nth).

    I tryed to let each instance spawn another object, pinned it to the first object and set a variable UID but that also does not work:

    is there any working solution for this problem? Any help would be greatly appreciated.

    Kind regards

    Patrick

  • So i should write a guide (and maybe i will in the future) but i am just needed elsewhere. regardless of this i want to post my solution for a common problem with C2MP:

    How to set up multiplayer server for up to 100 Players

    • write a Server in C2 which handles the game logig as you would normally do but without the player part
    • get a server for example from linode.com with at least 2 (better 3) cores
    • install ubuntu 14.04
    • Login as root
    • sudo apt-get update
    • sudo apt-get install xfce4
    • sudo apt-get install xrdp
    • sudo service xrdp restart
    • apt-get install firefox
    • echo xfce4-session >~/.xsession
    • connect via windows RDP to your server by entering the IP and your user credentials (after connection)
    • start firefox
    • type in about:config
    • enable webgl for WAY BETTER performance
    • navigate to your serversoftware written in c2
    • fire it up!
    • profit!

    so with this setup i successfully run a game with 50 simultaniously connections and the server was not nearly full, running the serversoftware at 60FPS at 0.6 CPU utilisation. The server synced 50 playerobjects with high precision double 8 bytes, 4 Instance variables, as well as 500 pickups with normal precision low bandwidth (mostly static)

    Maybe this will help someone in the future! Good luck with your mutiplayer project.

  • So to answer my own question:

    I installed a turn Server and now everything works fine.

    Here is a quickl guide what i did to install the reTURN server on ubuntu 14.04:

    1) apt-get install resiprocate-turn-server

    2) nano /etc/reTurn/reTurnServer.config

    3) Set up IP and Port for TURN Server in config

    4) Disabled md5 PW hash

    5) Added User in nano /etc/reTurn/users.txt like username:SHA1HASHOFPW:reTurn:authorized

    6) Configured IP-Tables to open up the Port

    7) Restart server so the new configuration becomes active: service resiprocate-turn-server restart

    8) In Construct 2 before opening the connection: Multiplayer: Add ICE server "TURN:domain.my(username "username", "credential SHA1HASHOFPW"

    9) Works like a charm on all devices now.

    If anyone needs an account for testing purpose i can grant you a timly limited access to my TURN-Server, so you can test your stuff out!

    Kind regards

    Patrick

j0schi's avatar

j0schi

Member since 8 Oct, 2014

Twitter
j0schi has 23 followers

Trophy Case

  • 10-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Popular Game One of your games has over 1,000 players
  • Famous Game One of your games has over 10,000 players
  • Viral Game One of your games has over 100,000 players
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

17/44
How to earn trophies