Network play
Network play
Is adding netplay over the internet or LAN difficult to do? Here's what I want to do:
Let's say I have a four player game, simulataneous play on one PC. I want to have the option of selecting the controls for each player, or have them be controlled by a remote player on a network or the internet.
Anyone done a game with netplay? If so, is it a massive undertaking?
Let's say I have a four player game, simulataneous play on one PC. I want to have the option of selecting the controls for each player, or have them be controlled by a remote player on a network or the internet.
Anyone done a game with netplay? If so, is it a massive undertaking?
-
- Addict
- Posts: 1648
- Joined: Mon Sep 20, 2004 3:52 pm
- Contact:
might help...
Am currently fiddling myself some Examples together for Netplay ( Well messages are easy .. tho keepin a real game synced is .. ugh ) atm.
If you haven't time to read big into TCP/IP you could use
Kylars Netlib:
http://www.krylarskreations.com/knl.shtml
am atm testing some stuff with it atm bc. the compiled example is horrid =P
Otherwise you could use DirectPlay() .. heres a little Tutorial on gamesdev.net ( good site btw, lots of ressources )
http://www.gamedev.net/reference/progra ... res/dplay/
..its not PB but you might get a lil insight into whats behind it at least.
Hope this helps...
Thalius
If you haven't time to read big into TCP/IP you could use
Kylars Netlib:
http://www.krylarskreations.com/knl.shtml
am atm testing some stuff with it atm bc. the compiled example is horrid =P
Otherwise you could use DirectPlay() .. heres a little Tutorial on gamesdev.net ( good site btw, lots of ressources )
http://www.gamedev.net/reference/progra ... res/dplay/
..its not PB but you might get a lil insight into whats behind it at least.
Hope this helps...
Thalius
- Joakim Christiansen
- Addict
- Posts: 2452
- Joined: Wed Dec 22, 2004 4:12 pm
- Location: Norway
- Contact:
I'd say that would help a lot if you're just starting!
After that, go for more!
a 2d screen with 2 circles (each circle a player) you should update their movement based on X milliseconds (say half a second or less) and reflect the new data on the graphics.
once you've got that nailed, implement some linear interpolation on the values, so the movement would be smooth with out having to send lots and lots of data every 10ms or so (heh that wouldnt help you much anyway on the net, wouldnt be a good idea at all!).
once thats ready and working, you're ready to implement networking on your game..
After that, go for more!
a 2d screen with 2 circles (each circle a player) you should update their movement based on X milliseconds (say half a second or less) and reflect the new data on the graphics.
once you've got that nailed, implement some linear interpolation on the values, so the movement would be smooth with out having to send lots and lots of data every 10ms or so (heh that wouldnt help you much anyway on the net, wouldnt be a good idea at all!).
once thats ready and working, you're ready to implement networking on your game..
-
- Addict
- Posts: 2218
- Joined: Mon Jun 02, 2003 9:16 am
- Location: Germany
- Contact:
http://www.shadowturtle.de/sacede.zip
MMORPG Example with Blitzbasic or whatever(how many Blitzes are aviable?)
MMORPG Example with Blitzbasic or whatever(how many Blitzes are aviable?)
bye,
Daniel
Daniel
...BlitzBasic IS the language, not a package. The released packages by blitz research that included "blitzbasic" language were:
Blitz2D (dx7 based)
Blitz+ (includes blitz2d + windows gui)
Blitz3D (dx7 based)
thats it.
the new bmax doesnt use blitzbasic, but a new variant of it. (kind of a "c" wannabe)
(you still want to stay away from any of those packages ;!!)
(laughs)
an MMORPG server in blitzbasic .. good one!!!!!!
pff ahahahah!! still laugthing here
How childish :/ They should of used C at least for such thing, mmorpg servers could be very loaded, and using bb is definetly not a good idea to process all that data. It might just be an exercise project I hope for their sake.
Blitz2D (dx7 based)
Blitz+ (includes blitz2d + windows gui)
Blitz3D (dx7 based)
thats it.
the new bmax doesnt use blitzbasic, but a new variant of it. (kind of a "c" wannabe)
(you still want to stay away from any of those packages ;!!)
(laughs)
an MMORPG server in blitzbasic .. good one!!!!!!
pff ahahahah!! still laugthing here
How childish :/ They should of used C at least for such thing, mmorpg servers could be very loaded, and using bb is definetly not a good idea to process all that data. It might just be an exercise project I hope for their sake.
-
- Addict
- Posts: 2218
- Joined: Mon Jun 02, 2003 9:16 am
- Location: Germany
- Contact:
They? It was just one who programmed. And he is good, very good. I don't know much about BlitzWhatever.dagcrack wrote:How childish :/ They should of used C at least for such thing, mmorpg servers could be very loaded, and using bb is definetly not a good idea to process all that data. It might just be an exercise project I hope for their sake.
bye,
Daniel
Daniel
(laughs)dagcrack wrote: an MMORPG server in blitzbasic .. good one!!!!!!
pff ahahahah!! still laugthing here
How childish :/ They should of used C at least for such thing, mmorpg servers could be very loaded, and using bb is definetly not a good idea to process all that data. It might just be an exercise project I hope for their sake.
Should use C for such thing? haahha, hahaha, good one, I hope for your sake, your just kidding. :roll:
Well this is a purebasic forum isnt it, this is basic. isnt it a joke, it could be. Depends on your sense of humour.
I hope you Dont dare to compare the speed of C against BB because I will make you have sex with mark sibley. You cant compare them, C is fast, BB isnt. Thats the whole story. You sure can programm slow code in C as you can in BB, however the entire bundle is slow. That is no excuse. You cant host 100.000+ players in a B3D based server, the performance would not even be close to 60% as if was made in C.
If you don't believe me, I really don't care.
I have my proven reasons for this.
I hope you Dont dare to compare the speed of C against BB because I will make you have sex with mark sibley. You cant compare them, C is fast, BB isnt. Thats the whole story. You sure can programm slow code in C as you can in BB, however the entire bundle is slow. That is no excuse. You cant host 100.000+ players in a B3D based server, the performance would not even be close to 60% as if was made in C.
If you don't believe me, I really don't care.
I have my proven reasons for this.
Good? good for your standardsDarkDragon wrote:They? It was just one who programmed. And he is good, very good. I don't know much about BlitzWhatever.dagcrack wrote:How childish :/ They should of used C at least for such thing, mmorpg servers could be very loaded, and using bb is definetly not a good idea to process all that data. It might just be an exercise project I hope for their sake.
-
- Addict
- Posts: 2218
- Joined: Mon Jun 02, 2003 9:16 am
- Location: Germany
- Contact:
Would his mapeditor be sold then? :roll: I know I know I'm a noob, nobody has to tell me this.dagcrack wrote:Good? good for your standardsDarkDragon wrote:They? It was just one who programmed. And he is good, very good. I don't know much about BlitzWhatever.dagcrack wrote:How childish :/ They should of used C at least for such thing, mmorpg servers could be very loaded, and using bb is definetly not a good idea to process all that data. It might just be an exercise project I hope for their sake.
bye,
Daniel
Daniel