Network play

Blitz3D Forums/Blitz3D Programming/Network play

Yeh this is my first network play project !!!!TOP SECRET!!!
sorry I am soon going to make a work log!

Ok the example code is

; JoinNetGame example 
; Note; run the HostNetGame example code on the other computer 
; you wish to join with 

gamename$="ShaneGame" 
; Change this to match the other computer's IP! 
serverIP$="0.0.0.0" 

; Make the join attempt 
joinResults=JoinNetGame(gamename$,serverIP$) 

Select joinResults 
Case 1 
Print "Joined the game successfully!" 
Default 
Print "Joining the game was unsuccessful." 
End Select 
WaitKey() 


I put in my ipcode given to me by another program made!!!
Plus I chnage the name to the right one!!!!!

THe server one works fine but this does not!!

UHHHH please reply I want thsis to help if the example does not work it is rather pointless to have it


This is a pitty post as it has been one day and it does not work!!!!

I'm using blitzplay pro for my networking code... and to tell you the truth I haven't looked at blitz' native networking stuff so I can't be for sure. But isn't there something missing in regards to the port #?

ahhh probally true were is blitplay por website I can't find it!!!!

http://www.blitzcoder.com/blitzplay/

oh god don't use Directplay... it sucks monkey bits.

UDP is the way to go in games and I hear BlitzPlay is very good. Im writing a network system that mimics DPlay (commands and all) but used UDP instead.

Skully

BlitzPlay Pro, BlitzPlay Pro, BlitzPlay Pro...

Er I'd use BlitzPlay Pro if I were you.

Sorry I was being a little silly there - it is worth every penny as I have said before. I had a simple maze game up and running in less than a day from scratch!

IPete2.

the only thing that i can see that is wrong with your code, and i dunno cuz i havnt done any networking in blitz is that you IP is wrong... what happens if you change it to 127.0.0.1

I havent programmed any server stuff in blitz yet, but I do notice you dont mention what port its connecting 2.

You can choose the port

Skully

It's hard to tell what's wrong, I have only used TCP for now. If you also post the server code, maybe it would be easier to see what happens.