B3D TCP achievement

Miscellaneous Forums/General Discussion/B3D TCP achievement

Well, tonight I (hacked) together a B3D server and numerous client-esque things. I say hack coz I wrote it on the fly (design in the suede), and am very pleased with the results.

Just had to share, my server will at the moment hold info for 25 clients (each client is a bit greedy with 20 bytes each for player x,y co-ords, bullet x,y co-ords, they only use about 10 bytes of their allocated 20 bytes the now)

My clients currently start pinging out move requests after a couple of iterations, and the server stores their movements sweetly, and pushes it out to all other clients that are connected.

Due credit to : http://www.tiberion.com


I was first drawn to B3D by its 3d qualities, however it is quite capable of networking to, Blitz3D is great, look:-




You've got Fairway Solitaire installed! GA will like you. You're running all the clients locally? Have you been able to try this over a LAN or over the internet yet?

Yep, ran all the clients locally, might try it over my LAN later today - may have to enable port forwarding on my router though. The above clients are communicating with the server every 1.2 seconds.

Yep, Fairway solitaire is a cool game.

Have got my bets on for the grand national, less than 2 hours to go.....

Oh well, one of our horses came second in the national, never mind.

Anyways, tried running 20 clients over the LAN, simply did an ipconfig through the accessories DOS window, changed the following lines for the client to access the server, created appropriate rule in my firewall and worked well with 20 clients sending move requests to the server across my wireless LAN.




;link=OpenTCPStream("www.tiberion.com",7056)
;link=OpenTCPStream("127.0.0.1",7056)	
;NOTE:  might need to replace with your IP info
link=OpenTCPStream("192.168.0.2",7056)          ;NOTE, you need to do 
;                                                an ipconfig on the computer 
                                                ;you are running the server 
;                                               on to find out this IP address.

Graphics 400,700,16,2            ; B3D




I did initially try using this:

http://www.blitzbasic.com/codearcs/codearcs.php?code=1821

however the site that is hosting the necessary lib for it seemed very creaky and slow..... hence resorting to the ipconfig. Worked well anyhow. (;-)

Next, create a graphical representation of players moving around a screen with respect to where the server reckons the x and y co-ords for each player are.