Solved

Python Network game startup needs expert

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Flask is a microframework for Python based on Werkzeug and Jinja 2. This requires you to have a good understanding of Python 2.7. Lets install Flask! To install Flask you can use a python repository for libraries tool called pip. Download this f…
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 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…

744 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

12 Experts available now in Live!

Get 1:1 Help Now