Internet Pong (Who wants to play?)

I apologize to whoever has downloaded this before. The errors have been fixed.… For the most part. I won’t know until I can test it out! :slight_smile:

DONE EDITING THE CODE!!!
I would like to consider this a finished project, because all of the code should work. But I guess it just needs to be tested.

So… Who wants to test it out with me?

I’d need someone to let me use their computer as a server, and one person to be another client to test it out with me…

Sorry, dude who has the server, but you can’t play… You would be doing a HUGE favor for me, though!!!

The person who has the server will have to PM me their Internet IP, which you can find here.

The IP will change over time, though.

The client has to select Client, and then type in the IP of the dude who has the server’s server.

K?

I’ll PM whoever wants to help once I’m ready! :slight_smile:

Attachments


Pong.blend (808 KB)

For some odd reason I am told that this is an invalid syntax:

GameLogic.host = (ServerIP, ServerPort)

What is the scenario you are using it in, I am not great with Python but have been staring at Online coding for the last few hours xD so… I might be able to help
Also, if nothing else goes, search that in google in quotation marks, then you can see if anybody else has ever had the same error…

Hmm… It is the client attempting to connect to the server…

GameLogic.host = (ServerIP,Serverport)

That’s what I have too, but it doesn’t give an error…
Maybe you did something wrong in the rest of the code…May I see it?

EDIT: You have a space between ServerIP, and Serverport, I dont think there is supposed to be a space after the comma, try it without!

b/c I copied this directly from my code

NVMD. I got it to work. There were a couple errors…

But now they are fixed! So! Who wants to play???

I will, set up a time… What time zone are you in

Ohhhh sweet! Does this game actually work?

(It brings back memories where 2 years ago any person even thinking about having anything having to do with blender and online was pelted with hating comments lol.)

Haha. Yes, it should definitely work. I’ve worked out all the kinks. Of course, I won’t know if there are any more until I test it…

I’ll pm you and give you the file with directions how to use it when I’m done, if you would like!

@ micah:

I’m in michigan… hehe

I’ll play. Just text me when you’re not busy.

Probably still not the best network code. If i remember from when i looked through the file, you’ve used blocking sockets. Still, KISS eh?

what does KISS mean? yeah i’ll make a disconnect button for the game.

btw im posting from my kindle! :slight_smile:

KISS = Keep It Simple, Stupid!

Don’t feel bad, I only learned it like two weeks ago lol.

i’ll play.

I’ll finish all of the needed changes for the game tomorrow! I might get an old computer of mine up as a server as well soon, so I might not need anyone to host! YAY! :D:D:D

It’s freakin addictive! Good job man! my congrats!