Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Need Help with Multiplayer Code

Author
Message
Tanifu
20
Years of Service
User Offline
Joined: 20th Jan 2004
Location:
Posted: 20th Jan 2004 21:06
If there is anyone that can tell me where or how to learn to put multipalyer code in a game, it would help a lot. Thanks
Tanifu
20
Years of Service
User Offline
Joined: 20th Jan 2004
Location:
Posted: 20th Jan 2004 21:08
About 2 weeks.
Mussi
21
Years of Service
User Offline
Joined: 27th Jan 2003
Location: Netherlands
Posted: 20th Jan 2004 21:59
you might want to learn a bit more about the language cuz multiplayer ain't an easy job.



Specs: AMD Athlon 1800, 256 DDRRam 266mhz, 80GB HD 7200rmp U133, Geforce 4 Ti4400 128mb
Darkflame
21
Years of Service
User Offline
Joined: 4th Jul 2003
Location:
Posted: 20th Jan 2004 22:04
How about simply exchanging a value between too machines?

I have tried countless times and cant even get that to work

Dunno if its my code or my connection though.

"The man who says it cannot be done is generally interrupted by someone doing it." ~ Elbert Hubbard
Tanifu
20
Years of Service
User Offline
Joined: 20th Jan 2004
Location:
Posted: 20th Jan 2004 22:23
I know that I should know more, but I think that if I get multiplayer that the game well go along a lot faster. There is another programmer as well so it shouldn't be to hard if you can at least give us an Idea on how to do multiplayer.
Darkflame
21
Years of Service
User Offline
Joined: 4th Jul 2003
Location:
Posted: 21st Jan 2004 05:20
Well, i thought i knew the "idea" of how to do it, but as its not working i must be getting it wrong.




I was just trying to create a very,very simple chat program.

"The man who says it cannot be done is generally interrupted by someone doing it." ~ Elbert Hubbard
zircher
21
Years of Service
User Offline
Joined: 27th Dec 2002
Location: Oklahoma
Posted: 21st Jan 2004 17:29 Edited at: 21st Jan 2004 21:02
Here's a tip: After you get it working, convert from strings to memblocks and send memblocks. Why? You can send memblocks with guarenteed delivery so you don't loose messages.

I wrote a chat program for my VirMin project, but the code is scattered through several thousand lines of code and mixed in with my user interface. I can pull out some code fragments, if you want/need them.
--
TAZ

Darkflame
21
Years of Service
User Offline
Joined: 4th Jul 2003
Location:
Posted: 21st Jan 2004 20:44
Well, I suppose what would be nice is just the bare minimum about of code to send a variable between 2 machines.
Im 99.9% sure i cant work everything out from that

"The man who says it cannot be done is generally interrupted by someone doing it." ~ Elbert Hubbard
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 22nd Jan 2004 09:02
Then take a look in the CodeBase - there's a simple chat program there. If it's too complex, then I might have an older version hanging around someshere.

For free Plug-ins, source and the DBPro Interface library for Visual C++ 6 and .NET
http://www.matrix1.demon.co.uk
Darkflame
21
Years of Service
User Offline
Joined: 4th Jul 2003
Location:
Posted: 23rd Jan 2004 15:43
Yes i looked at that and it is a tad bit hard for me to understand.

(I never was that good at reading other peoples code..)

Surely enchanging a variable between 2 machines should just be a few lines no?

"The man who says it cannot be done is generally interrupted by someone doing it." ~ Elbert Hubbard
zircher
21
Years of Service
User Offline
Joined: 27th Dec 2002
Location: Oklahoma
Posted: 23rd Jan 2004 16:34 Edited at: 23rd Jan 2004 16:44
It is, after you get the connections and setting done. And, of course, without the connection those two lines are useless. I don't have DBP in front of me, but there are some files in the helpexamples directory that clearly explain how to set that up.
--
TAZ

[edit]

C:\Program Files\Dark Basic Software\Dark Basic Professional\Help\documents\2 Multiplayer Secrets.htm

Login to post a reply

Server time is: 2024-09-21 18:02:01
Your offset time is: 2024-09-21 18:02:01