Python Online Game Tutorial #5 - Sending Objects With Pickle!

preview_player
Показать описание
This online game tutorial covers how to send objects using the pickle module. Pickle is a python module that allows for you to save data in byte form. We can then send that byte data to our server and read it in as an object.

◾◾◾◾◾
💻 Enroll in The Fundamentals of Programming w/ Python

◾◾◾◾◾◾

⚡ Please leave a LIKE and SUBSCRIBE for more content! ⚡

Tags:
- Tech With Tim
- Pygame
- Python Tutorials
Рекомендации по теме
Комментарии
Автор

I really enjoy your series! Keep on the good work!

svenschroder
Автор

You could have returned second player as "other players" and just returned a list, with player id popped out,
after that on client side for loop draw each player, just a tip and easier to manage.

GodBurstPk
Автор

And here gentlemen, is the reward for those who have been following everything. :D

befa
Автор

You are so helpful keeping making good videos like this

manasayjoseph
Автор

This is EPIC! tim can you also do a mini tutorial eventualy or during ep 6 on how to create ourr own game music? or .mp3/.wav files?

FeedFall
Автор

For multiplayer games like an small indie mmoRPG with characters walking around would you use this or something new now that it's 5yrs since this video?
Very interested and thanks so much for your knowledge! Game will be for my family and friends for now across state lines.

finest
Автор

Its really good iam reallly that a rock paper scissor

tcgvsocg
Автор

Tim Question How do we Protect our servers from DDoS or DoS attacks? i expirimeted to see how much it can handle because after you have so many Networks connected if one or all nets leave the server collapses or gets an error

FeedFall
Автор

Thank you for this series! I haven't exactly watched through them yet, but I plan on doing so sometime. I did copy + paste your code to see how it works, and I was wondering (like a lot of other people, I noticed) if it's possible to have a list of players that updates every time a client connects or disconnects? I have seen there is a player list, but the network is unable to access this as it isn't being sent across clients. Fixing this would also be fixing the problem where you start with two "players' automatically without there being two clients yet, and at the same time, you would be able to increase max players (I already know how to increase connectivity with s.listen(MAX_PLAYERS) ). Basically to summarize, is there a good way to make this framework expandable? Thank you again for this series, and keep up the good work!

stormwrecker
Автор

why i have error in
s.listen(2)
server line 16

soroush
Автор

Wow you are amazing man, but I have a small question: how can I use the server module in combination with a c++ program? 😃

GorosVoices
Автор

Hi tim, i have a question, how do i send a list? like bullets and the class is projectile, it's the same projectile class in your pygame tutorial. Sorry about my english im from argentina, but i hope you understand my question.

salmiron
Автор

Hello!, amazing tutorial, how i can modify the game for allow multiple players? using a "max connection players" limit variable? i only can add two players

victoralvarado
Автор

Hey, thanks for this video! Is this a TCP server or a UDP server?

stormwrecker
Автор

from network import Network
ModuleNotFoundError: No module named 'network'

aleksandargligorijevic
Автор

Hi Tim can u tell .me how to import pygame module in python .

ashu
Автор

Could you teach more about the UI and the logic of the game? Because actually I don’t know how to play this game.

sokhuonguon
Автор

How can we make this work with computers that aren't on same networks?

qwertzuiop
Автор

While Running The Client I Get:
Traceback (most recent call last):
File "C:/Users/Plat/PycharmProjects/SocketStuff/client.py", line 39, in <module>
main()
File "C:/Users/Plat/PycharmProjects/SocketStuff/client.py", line 29, in main
p2 = n.send(p)
File "C:\Users\Plat\PycharmProjects\SocketStuff\network.py", line 27, in send
return
EOFError: Ran out of input

Thanks And Help Is Appreciated

onwardplatypus-
Автор

Do you know some universal formula to add "x" more players? so i can connect more clients than two together

petrdavidlanca