?
Solved

Python Network game startup needs expert

Posted on 2014-03-08
1
Medium Priority
?
251 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 9

Accepted Solution

by:
techtonik earned 2000 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

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

Plenty of writing has gone on the web trying to compare Python with other competitive programming languages and vice versa. However, not much has been put into a wholistic perspective. This article should help you decide whether to adopt Python as a…
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
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…
Suggested Courses
Course of the Month7 days, 23 hours left to enroll

765 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