Solved

Python Network game startup needs expert

Posted on 2014-03-08
1
242 Views
Last Modified: 2014-03-12
Hi
My other questions similar to this have veered off topic or were vague, not specific enough.

My Python RTS server inits a UDP socket and waits for n client HELO messages. It exits the Join Loop and will enter a Game Loop.

My Client first sends a HELO UDP message to the server and will wait for a GAME_START message from the server. (easily done if networking okay)
I'd simply like to know if my outline so far looks okay. I'm most concerned with method and reliability.

I read that one pro network game done in Python had millions of lines of code. Can I get a working game going on my own? What comprises that huge code? I'd guess it's the networking reliability and connectivity? UDP isn't reliable. Is game logic big? Don't some articles mention incorporating TCP for reliability? How is that sewed in exactly, in game, or is it mainly TCP for setup?
My UDP Outline step 0 Code is attached below. Should I do this step all in TCP for safety?

Thanks for comments What should it look like?
Server.py
Client.py
0
Comment
Question by:beavoid
1 Comment
 
LVL 9

Accepted Solution

by:
techtonik earned 500 total points
ID: 39924096
I'd say - now that you know how it works on the basic level - don't reinvent the wheel - move further - use Twisted.

Or more exact: https://twistedmatrix.com/documents/13.2.0/core/howto/udp.html
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Help with my python script 6 167
.properties file to call function/method 9 61
os.getenviron does not work when running script from crontab 10 56
Error catching in Python 8 55
This article will show the steps for installing Python on Ubuntu Operating System. I have created a virtual machine with Ubuntu Operating system 8.10 and this installing process also works with upgraded version of Ubuntu OS. For installing Py…
Introduction On September 29, 2012, the Python 3.3.0 was released; nothing extremely unexpected,  yet another, better version of Python. But, if you work in Microsoft Windows, you should notice that the Python Launcher for Windows was introduced wi…
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question