What's the best Python module for online play?

This forum is currently in read-only mode.
From the Asset Store
Best car suspension with spring effect and very cool terrain generation.
  • As the title says.. what's the best module to use with python in construct with good online capabilities?

    <DIV> </DIV>

    <DIV>When I say online capabilities I mean 1 Player vs other, hability to create a game and other join to duel and available game list</DIV>

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I think there is only one Python module that has actually been used with Construct before, and that's PodSix. Not sure if it's the best, but there should be a forum post in the "Tutorials" section on it.

  • I think there is only one Python module that has actually been used with Construct before, and that's PodSix. Not sure if it's the best, but there should be a forum post in the "Tutorials" section on it.Ya I know about PodSix but if I remember.. someone said this isn't very good for online applications(maybe for simple games shouldn't be a problem but it isn't the case) and there is another one better.. I think it's Pygame but maybe there are others

  • I've looked at all nearly all the Python modules for networking and the best/easiest IMHO is PodSixNet. There is Mastermind (which supports UDP and does work with Construct) and is probably better for action games:

    scirra.com/forum/udp-online-network-connection-sample-project_topic39868.html

    pygame.org/project-Mastermind+Networking+Lib-859-.html

    Since I wrote the tut a new library AstralNetworking was released in Beta:

    pypi.python.org/pypi/astralnetworking/0

    This library is a high level wrapper around either of the above two libraries. So stick with one of the three options above.

    Pygame doesn't have networking/online support.

    As far as PodSix not being good for online...I don't think that is true...

    Check out this game that uses PodSixNet:

    infiniteplatformer.com

    I think it is perfect for turn-based and slower games like RTS or something like that. Not sure how it would fare for fast action games (poorly probably), but since it uses TCP it isn't well suited for that.

    If you want to make an action game then whether you choose TCP or UDP you will need to also use lag compensation techniques (i.e., interpolation and extrapolation).

  • Ya I saw that Astralnetworking in another post from you..

    It's a turn-based strategy game but with a server who hosts all the games created..

    It's really a great doubt as to which module should I use and avoid wasting time for nothing..

    I will start with podsixnet then, do you think it would handle good for a turn-based game but with a potential for a lot of players?

    something like Diablo 2 game, many players inside a lobby and they can create a game and other joins it(with max players) then people can search for those games while chating, etc.

  • >I will start with podsixnet then, do you think it would handle good for a >>turn-based game but with a potential for a lot of players?

    Podsixnet is by far the best one for Turn-based-games. Check out the forum with Juryiel's questions as he seems to be using Podsix just fine for his game. Note to test lag across the internet...it is in the tut to try out the lag simulator to test performance. As far as lots of players...the most I've tested at one time was about 10 but the infinite platformer (http://infiniteplatformer.com/) game by Chris is supposed to support a lot more than that...just not sure the max. I'm not positive but you might gain better performance in PodSixNet using JSON for serialization vs the default binary encoder, but that is for advanced users!

    many players inside a lobby and they can create a game and other joins >>it(with max players) then people can search for those games while chating, >>etc.

    Yes, this is easily supported with PodSix. I showed an simple version of this in the Dungeon escape game where players join the game, chat could easily be added (based on the chat example) and it detects when enough players had joined. You might have to use a module to deal with routing traffic to the server unless you have manually configured port forwarding on router or server is internet facing.

    stackoverflow.com/questions/294504/python-upnp-igd-client-implementation

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)