Solved

Python Network game startup needs expert

Posted on 2014-03-08
1
234 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to play a bell/system sound in Mac using Python 1 322
Export Table to CSV - Access to CSV - using python 18 96
Difference of import usage in Python 1 58
yara deployment 8 31
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…
A set of related code is known to be a Module, it helps us to organize our code logically which is much easier for us to understand and use it. Module is an object with arbitrarily named attributes which can be used in binding and referencing. …
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 modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…

914 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now