The Game Creators
The Game Creators Home Click to Login
  Hot: Official TGC CompetitionLee is tweeting!July NewsletterSmart PackerBox2DWeb Hosting SurveyDGS BonanzaFPS Creator Bonanza;
The Game Creators
Program Announcements / Multisync v1.0 - Multiplayer plugin

Go to the first page of this board Return to the Forum Menu Post Message
467 Messages - Page   of 12   
Bookmark and Share Search the Forum Next 40

Author Message
Benjamin

User


Joined: Sun Nov 24th 2002
Location: France
Posted: 3rd Feb 2007 09:48     Edited: 22nd Mar 2009 12:42     | link | toggle

Update 1.4.1 - 10th April, 2008
A few bugs have been fixed, the most important one being the one that was causing random crashes for some people. Added new net put memblock and net get memblock commands, as well as functions NetPutData and NetGetData for DBC/DarkGDK users. Added new option to define the size of the write buffer.

Update 1.3.2 - 28th February, 2008
Disabled what is known as the Nagle algorithm. This will make the networking more responsive when sending repeatedly at a rapid rate, thus making it more suitable for faster paced games.

Update 1.3 - 18th December, 2007
A problem with the message processing routine has been fixed, and a version has been compiled to be used from C++ and other languages. An optional IP address parameter has been added to net host.

Update 1.2 - 11th April, 2007
Commands have been added to deal with Windows Firewall. Note that you can only add applications to the allow list when running from an administrator account.

Update 1.1 - 14th February, 2007
The plugin is now compatible with DarkBASIC Classic Enhanced, and three new commands have been added. Other minor changes have been made.

Multisync
Multisync is a multiplayer plugin designed for DarkBASIC Professional, utilizing the TCP protocol and the client/server networking model. It is best used in games where it is important that data isn't lost, as the TCP protocol makes sure data is always delivered to its recipient. This means that the range of games it is useful for is large, ranging from simple card games to complex RTS games. It is very easy to use, and requires minimum networking knowledge.

Features:
Windows Firewall integration.
Easy client/server setup.
Easily manageable client ID's.
Supports most standard datatypes: byte, word, long(dword), integer, float, string.
Informative error reporting.
Stable and robust.

Download
The latest version (1.4.1) is available from here.

Older versions
Version 1.3.2 is available from here.

Online manual
An online version of the manual can be found here (version 1.2). Thanks to Slooper for hosting the manual and the software itself (his site).

Changelog
+ Code Snippet

Back to top
Download: Multisync 1.4.1.rar Size: 122324 bytesReport this message as abusive
Benjamin

User


Joined: Sun Nov 24th 2002
Location: France
Posted: 3rd Feb 2007 09:52     Edited: 3rd Feb 2007 10:18     | link | toggle

Zombies is a simple multiplayer FPS game created by Carlos Wilkes (Darkcoder) using Multisync V1 for networking.





You can download the source for it it from here.

Tempest - P2P UDP Multiplayer Plugin (DBP/DBCe)
Download the free version
Back to top
Download: zombies.rar Size: 2804789 bytesReport this message as abusive
Kohaku

User


Joined: Mon May 3rd 2004
Location: The not very United Kingdom
Posted: 3rd Feb 2007 09:56           | link | toggle

omcz omcz omcz. I'll be adding this to age baby tonight.. baby!


You are not alone.
Back to top
developing augmentation
Report this message as abusive
Silvester

User


Joined: Wed Dec 7th 2005
Location: Netherlands
Posted: 3rd Feb 2007 10:14           | link | toggle

Nice Ben,I will try setting up a server with this plugin!

-Prince Of Darkness
Back to top
DaMoose
Report this message as abusive
heartbone

User


Joined: Sat Nov 9th 2002
Location: Cyberspace
Posted: 3rd Feb 2007 10:39           | link | toggle

"You've come a long way baby."

Congratulations.

I havn't read the EULA (I don't have a rar decompressor installed yet), so I don't know how restrictive it is. However I do intend to use this 'in the future'.

Thanks in advance.

I'm unique, just like everybody else.
Back to top
www.heartbone.com Find user on ICQ
Report this message as abusive
Silvester

User


Joined: Wed Dec 7th 2005
Location: Netherlands
Posted: 3rd Feb 2007 11:38     Edited: 3rd Feb 2007 11:40     | link | toggle

Heres a simple chat server:

+ Code Snippet

And here is the client :

+ Code Snippet

Hope you have fun

-Prince Of Darkness
Back to top
DaMoose
Report this message as abusive
jasonhtml

User


Joined: Sat Mar 20th 2004
Location: OC, California, USA
Posted: 3rd Feb 2007 11:42           | link | toggle

WOOHOO! It's finally here!

Back to top
Send AIM user a message
Report this message as abusive
Silvester

User


Joined: Wed Dec 7th 2005
Location: Netherlands
Posted: 3rd Feb 2007 13:16           | link | toggle

There is one bug,

If a player logs of,that number will not be available anymore.so after a while the server is full without having the limit of people actualy playing.

And i noticed that if you set the Player limit above 9999 that it crashes.

-Prince Of Darkness
Back to top
DaMoose
Report this message as abusive
Benjamin

User


Joined: Sun Nov 24th 2002
Location: France
Posted: 3rd Feb 2007 14:50           | link | toggle

Quote: ""You've come a long way baby."

Congratulations."
Thank you.

Quote: "I havn't read the EULA (I don't have a rar decompressor installed yet), so I don't know how restrictive it is."

+ Code Snippet

Quote: "
If a player logs of,that number will not be available anymore.so after a while the server is full without having the limit of people actualy playing."
It's not a bug - when a player leaves, their ID is unavailable for reuse until you call net player left.

Quote: "And i noticed that if you set the Player limit above 9999 that it crashes."
Could you post some code? That doesn't happen here. I will however impose a limit at some point.

Tempest (DBP/DBCe)
Multisync V1 (DBP)
Back to top
Report this message as abusive
Silvester

User


Joined: Wed Dec 7th 2005
Location: Netherlands
Posted: 3rd Feb 2007 14:52           | link | toggle

This is my new Server fot he chat example i made,it crashes when limit is set to 9999

+ Code Snippet

Could be my PC too,as it isnt realy new.

-Prince Of Darkness
Back to top
DaMoose
Report this message as abusive
Benjamin

User


Joined: Sun Nov 24th 2002
Location: France
Posted: 3rd Feb 2007 15:04           | link | toggle

It doesn't crash for me. What exactly do you mean crash, does it just close?

Tempest (DBP/DBCe)
Multisync V1 (DBP)
Back to top
Report this message as abusive
Silvester

User


Joined: Wed Dec 7th 2005
Location: Netherlands
Posted: 3rd Feb 2007 15:05     Edited: 3rd Feb 2007 15:08     | link | toggle

OK,it crashes with no error,and sometimes it tells that it cant connect to the server?

I think its my PC then.

-Prince Of Darkness
Back to top
DaMoose
Report this message as abusive
Benjamin

User


Joined: Sun Nov 24th 2002
Location: France
Posted: 3rd Feb 2007 15:12           | link | toggle

Quote: "OK,it crashes with no error,and sometimes it tells that it cant connect to the server?"
So why have you given me the server code if it's the client that crashes? Or is it the server that crashes?

Tempest (DBP/DBCe)
Multisync V1 (DBP)
Back to top
Report this message as abusive
heartbone

User


Joined: Sat Nov 9th 2002
Location: Cyberspace
Posted: 3rd Feb 2007 16:47           | link | toggle

THANK YOU, Benjamin.

I'm unique, just like everybody else.
Back to top
www.heartbone.com Find user on ICQ
Report this message as abusive
GatorHex

User


Joined: Tue Apr 5th 2005
Location: Gunchester, UK
Posted: 3rd Feb 2007 20:18     Edited: 3rd Feb 2007 21:15     | link | toggle

Wow realy BIG THANK YOU!!

TCG should pay you for this, i would have dumped this language if it wasn't for you!

I think you should put in the the ELUA a paypal donation link so if anyone makes a network game that makes money they can send you something, I know I will!

MINOR NIGGLES
- Would be nice if help file can be viewed in DBP help.
- Using the help file you had, I didn't know if a command needed brakets or not until i used it and saw the IDE throw back an error.
- I think you should warn users nothing will work until you run "net player joined()" on the server end. Confused the hell out of me for an hour or so and "net player left()" is just as important for cleaning up.

http://www.KumKie.com http://bulldog.servegame.com
Back to top
www.KumKie.com
Report this message as abusive
3D Coding

User


Joined: Mon Jan 15th 2007
Location: My 3D Spaceship
Posted: 3rd Feb 2007 21:10           | link | toggle

I echo the paypal link idea. If I can get this working for my game to remote host, I'd be glad to send a few $ your way.

MEGA EMPIRES III(c)Soltronics 2007 ---- A DarkBASIC Professional 3D Interstellar Conquest Project
http://me3.artofwarcentral.com/index.html <---- Come check out our BETA modules opening very soon
Back to top
MEGA EMPIRES III
Report this message as abusive
3D Coding

User


Joined: Mon Jan 15th 2007
Location: My 3D Spaceship
Posted: 3rd Feb 2007 21:54           | link | toggle

The warning about 'deleting critical files' is kind of alarming.
I'm still new to this and I'm old fashioned and like the OPEN FILE AS etc.

Am I right that all the DBPRO multiuser commands will work with this also?

If I can get my poor old noggin to understand sending string$ back and forth from a remote host to multiple clients I just might be in business.

MEGA EMPIRES III(c)Soltronics 2007 ---- A DarkBASIC Professional 3D Interstellar Conquest Project
http://me3.artofwarcentral.com/index.html <---- Come check out our BETA modules opening very soon
Back to top
MEGA EMPIRES III
Report this message as abusive
3D Coding

User


Joined: Mon Jan 15th 2007
Location: My 3D Spaceship
Posted: 3rd Feb 2007 22:16           | link | toggle

Sorry to clog up the works with so many messages.

This really looks great!

I beg for an example of how to use NET PLAYER FROM to organize data.

My idea is to have the client ask name & password, connect to server(host), log in with the name/pass, and then have the host send the player his colony data.

Can you please tell me how to integrate NET PLAYER FROM with name/password?

MEGA EMPIRES III(c)Soltronics 2007 ---- A DarkBASIC Professional 3D Interstellar Conquest Project
http://me3.artofwarcentral.com/index.html <---- Come check out our BETA modules opening very soon
Back to top
MEGA EMPIRES III
Report this message as abusive
GatorHex

User


Joined: Tue Apr 5th 2005
Location: Gunchester, UK
Posted: 3rd Feb 2007 22:37     Edited: 3rd Feb 2007 22:53     | link | toggle

3D Coding, for an example have you looked at the Zombie game he gave you a link to in this thread? I contains full source code.

Benjamin is MultiSync using TCP or UDP? I've not managed a connection through NAT yet I've only seen 1.0.0.0 requests like standard DBP networking.

I've opened a MultiSync test server on 81.174.154.100 port 8181, its sending out a net string every 1 second. Can anyone connect to it? http://forum.thegamecreators.com/?m=forum_view&t=99234&b=1

http://www.KumKie.com http://bulldog.servegame.com
Back to top
www.KumKie.com
Report this message as abusive
Kohaku

User


Joined: Mon May 3rd 2004
Location: The not very United Kingdom
Posted: 3rd Feb 2007 23:14           | link | toggle

I get a 'connection failed' error when I try to connect to you with your client source.

The top post states that MS uses TCP.

So, the integration of MS into AGE is pretty much complete. I have to say that it's been a pleasure to use. It's a great improvement over the last version and I can't wait to work with it some more. As network editing is now working perfectly in AGE, I think tomorrow (though it's already 5am) will see the release of AGE 0.5.

Top stuff.


You are not alone.
Back to top
developing augmentation
Report this message as abusive
Google Ad
Back to top
 
Silvester

User


Joined: Wed Dec 7th 2005
Location: Netherlands
Posted: 4th Feb 2007 03:49           | link | toggle

It is the server that crashes then Ben,the server crashes if its set to 99999,any other number seems to work now.

-Prince Of Darkness
Back to top
DaMoose
Report this message as abusive
Benjamin

User


Joined: Sun Nov 24th 2002
Location: France
Posted: 4th Feb 2007 06:37     Edited: 12th Dec 2008 16:44     | link | toggle

Quote: "I think you should put in the the ELUA a paypal donation link so if anyone makes a network game that makes money they can send you something, I know I will!"
Quote: "I echo the paypal link idea. If I can get this working for my game to remote host, I'd be glad to send a few $ your way."
Heh thanks, but if you want to help, buy the commercial plugin I shall release sometime in the near future.

Quote: "- Would be nice if help file can be viewed in DBP help."
I was thinking this. In fact, I tried linking each command to its relevant section in the manual at some point, but due to the DBP help viewer not supporting CSS (I believe this is the case, anyway), everything looked rather messed up.

Quote: "- Using the help file you had, I didn't know if a command needed brakets or not until i used it and saw the IDE throw back an error."
I thought this may happen, but it can only happen when you don't return a value from a command that you should.

Quote: "- I think you should warn users nothing will work until you run "net player joined()" on the server end. Confused the hell out of me for an hour or so and "net player left()" is just as important for cleaning up."
I thought I had mentioned this in the manual already, although apparently not. I'll fix it right away.

Quote: "The warning about 'deleting critical files' is kind of alarming."
The was only possible in that example because of the way it worked.

Quote: "Am I right that all the DBPRO multiuser commands will work with this also?"
If you mean the built-in DBP multiplayer commands, no.

Quote: "I beg for an example of how to use NET PLAYER FROM to organize data."
You can use it to directly reference an array. For example:

+ Code Snippet

Quote: "Benjamin is MultiSync using TCP or UDP? I've not managed a connection through NAT yet I've only seen 1.0.0.0 requests like standard DBP networking."
TCP, as mentioned in the manual and in the first post of this thread. I forgot to mention that the default port is 3999, so if you want to accept connections from behind a router, you must forward data for this port to your computer (or change the default port to one you already forwarded).

Quote: "So, the integration of MS into AGE is pretty much complete."
Great!

Quote: "It is the server that crashes then Ben,the server crashes if its set to 99999,any other number seems to work now."
Well, one hundred thousand connections is quite a lot, so I'm not surprised. I think I'll set a limit at 9999 players.

Back to top
Download: avatar1.jpg Size: 1602 bytes  View Image: avatar1.jpg Size: 1602 bytesReport this message as abusive
Silvester

User


Joined: Wed Dec 7th 2005
Location: Netherlands
Posted: 4th Feb 2007 06:42           | link | toggle

Yes its much,and well,now that everything works as its designed to do,9999 players are alot too.but its enough for a multiplayer plugin.as its not an MMO plugin

-Prince Of Darkness
Back to top
DaMoose
Report this message as abusive
GatorHex

User


Joined: Tue Apr 5th 2005
Location: Gunchester, UK
Posted: 4th Feb 2007 09:11           | link | toggle

Quote: "
Quote: "Benjamin is MultiSync using TCP or UDP? I've not managed a connection through NAT yet I've only seen 1.0.0.0 requests like standard DBP networking."
TCP, as mentioned in the manual and in the first post of this thread. I forgot to mention that the default port is 3999, so if you want to accept connections from behind a router, you must forward data for this port to your computer (or change the default port to one you already forwarded).
"

Am I doing it wrong? I tried to use the custom port command coded as below? It work great on the LAN but the when the WAN forwarded the port to the internal IP instead of requesting 192.168.0.2 it tried to request 1.0.0.0

Server:
MAX_PLAYERS = 100
NETWORK_PORT = 8181
NET SET PORT (NETWORK_PORT)
if net host(MAX_PLAYERS)

Client:
MAX_PLAYERS = 100
NETWORK_PORT = 8181
SERVER_IP$ = "81.174.154.100"
NET SET PORT (NETWORK_PORT)
if net connect(SERVER_IP$)

http://www.KumKie.com http://bulldog.servegame.com
Back to top
www.KumKie.com
Report this message as abusive
Benjamin

User


Joined: Sun Nov 24th 2002
Location: France
Posted: 4th Feb 2007 09:23     Edited: 18th Jan 2009 21:32     | link | toggle

Quote: "It work great on the LAN but the when the WAN forwarded the port to the internal IP instead of requesting 192.168.0.2 it tried to request 1.0.0.0"
What tried to request 1.0.0.0? Perhaps if you show me your router configuration I may be able to help you. Also, it might help to know exactly how you are connected to the internet. Is it just a PC->Router->Internet setup?

Back to top
Report this message as abusive
GatorHex

User


Joined: Tue Apr 5th 2005
Location: Gunchester, UK
Posted: 4th Feb 2007 09:28     Edited: 4th Feb 2007 09:40     | link | toggle

SHOULD BE:
Client -> 81.174.154.100:8181 -> Netgear DG834PN -> 191.168.0.2:8181 -> Server

BUT WHAT IM GETTING IS:
Client -> 81.174.154.100:8181 -> Netgear DG834PN -> 1.0.0.0:8181 -> .... Server (never hears it)

SERVICE SETUP
Service name: MultiSync
Type: TCP
Start port: 8181
Finish port: 8181

FIREWALL/PORT FORWARD SETUP
Service, Action, LAN Server IP, WAN User, Log
MultiSync, ALLOW always, 192.168.0.2, Any, Always

I already run a web server on port 80 and another game server on 7171 they port forward just fine.

http://www.KumKie.com http://bulldog.servegame.com
Back to top
www.KumKie.com
Report this message as abusive
Benjamin

User


Joined: Sun Nov 24th 2002
Location: France
Posted: 4th Feb 2007 09:40           | link | toggle

What exactly is 1.0.0.0? What's the router's internal IP? For your IP, are you sure you mean 192.168.0.2 and not possibly 192.168.1.2?

Tempest (DBP/DBCe)
Multisync V1 (DBP)
Back to top
Report this message as abusive
GatorHex

User


Joined: Tue Apr 5th 2005
Location: Gunchester, UK
Posted: 4th Feb 2007 09:45     Edited: 4th Feb 2007 09:51     | link | toggle

My LAN network is built on

Game Server: 192.168.0.2
Mask: 255.255.255.0
Router/Gateway: 192.168.0.254

1.0.0.0 is some kind of broadcast I think, DBP netplay was doing the same, it supposadly broadcasts to build an available server list. I was expecting MultiSync using a port number would just forward to the internal IP. Like I said I've already got Apache web and Tibia game servers running they port forward like a charm.

I could try changing my whole lan to 192.168.1.x but it shouldn't make a difference.

http://www.KumKie.com http://bulldog.servegame.com
Back to top
www.KumKie.com
Report this message as abusive
Benjamin

User


Joined: Sun Nov 24th 2002
Location: France
Posted: 4th Feb 2007 09:50     Edited: 4th Feb 2007 09:51     | link | toggle

Quote: "I was expecting MultiSync with a port number would just forward to the internal IP."
It should do, it's just like a standard TCP application. Port forwarding works fine for me, mind you it's a completely different router.

Quote: "1.0.0.0 is some kind of broadcast I think"
But where exactly are you seeing this?

Think you could show me a screen print of the port forwarding page in your router setup?

Tempest (DBP/DBCe)
Multisync V1 (DBP)
Back to top
Report this message as abusive
GatorHex

User


Joined: Tue Apr 5th 2005
Location: Gunchester, UK
Posted: 4th Feb 2007 09:54     Edited: 4th Feb 2007 09:59     | link | toggle

Quote: "
Quote: "1.0.0.0 is some kind of broadcast I think"
But where exactly are you seeing this?
"

In the router logs as I've told it to log all access to port 8181
Sun, 2007-02-04 16:25:14 - TCP Packet - Source:208.60.x.x,2598 Destination:1.0.0.0,8181 - [MultiSync match]

What make of router are you using? As a last resort I might try a new NAT router, but I'll try reconfiguring the lan to 192.168.1 first I think, maybe there is some microsoft bug that don't like zeros.

http://www.KumKie.com http://bulldog.servegame.com
Back to top
www.KumKie.com
Report this message as abusive
Benjamin

User


Joined: Sun Nov 24th 2002
Location: France
Posted: 4th Feb 2007 09:58     Edited: 4th Feb 2007 09:59     | link | toggle

Quote: "In the router logs as I've told it to log all access to port 8181"
Oh ok.

Quote: "What make of router are you using?"
It's an Orange Livebox made by SAGEM that came with our ADSL package. It's basically a modem/router combo, though from this computer I use purely the router part of it.

Quote: "As a last resort I might try a new NAT router."
You shouldn't have to; if it's working with other things, then there must be a way to get it to work with this.

Tempest (DBP/DBCe)
Multisync V1 (DBP)
Back to top
Report this message as abusive
GatorHex

User


Joined: Tue Apr 5th 2005
Location: Gunchester, UK
Posted: 4th Feb 2007 10:02     Edited: 4th Feb 2007 10:06     | link | toggle

Is your ADSL connection a USB cable or an CAT5 network cable?

If it's a USB cable then it works differently because it don't use NAT and places the external IP directly on the interface of your PC.

http://www.KumKie.com http://bulldog.servegame.com
Back to top
www.KumKie.com
Report this message as abusive
Benjamin

User


Joined: Sun Nov 24th 2002
Location: France
Posted: 4th Feb 2007 10:03           | link | toggle

Quote: "Is your ADSL connection a USB Modem or an CAT5 NAT Router?"
CAT5 NAT.

Quote: "If it's a USB modem then it works differently because it don't use NAT and places the external IP directly on the interface of your PC."
Perhaps with other devices, but when using the USB interface (with the old computer that doesn't have an Ethernet card) I still had to use port forwarding (due to the fact that it acts as a modem and a router simultaneously).

Tempest (DBP/DBCe)
Multisync V1 (DBP)
Back to top
Report this message as abusive
GatorHex

User


Joined: Tue Apr 5th 2005
Location: Gunchester, UK
Posted: 4th Feb 2007 10:08           | link | toggle

Ok thank for your help Bejamin, I'm gona try chaning my LAN to 192.168.1.x network and see if it helps... <back in a few hours!>

http://www.KumKie.com http://bulldog.servegame.com
Back to top
www.KumKie.com
Report this message as abusive
dark coder

User


Joined: Sun Oct 6th 2002
Location: Japan
Posted: 4th Feb 2007 10:12           | link | toggle

Quote: "Yes its much,and well,now that everything works as its designed to do,9999 players are alot too.but its enough for a multiplayer plugin.as its not an MMO plugin"

Are you sure you have your head plugged in? NO game in the galaxy uses 100k connections, especially when using the same application, that would be insane, and probably impossible, even 10k is a incredibly high limitation, and yes any MMO would work totally fine with a limitation of 10k connections on the one app, as you can have multiple servers.

Back to top
darkcoder
Report this message as abusive
GatorHex

User


Joined: Tue Apr 5th 2005
Location: Gunchester, UK
Posted: 4th Feb 2007 10:33           | link | toggle

Ooooh, Ooooh, ohhh! Found a RIP2-B (routable IP broadcast) option in my routers LAN settings somone try and connect plx and see if it work now? Thanx.

http://www.KumKie.com http://bulldog.servegame.com
Back to top
www.KumKie.com
Report this message as abusive
3D Coding

User


Joined: Mon Jan 15th 2007
Location: My 3D Spaceship
Posted: 4th Feb 2007 13:57           | link | toggle

Thanks very much for explaining use of net player from()

That cleared up a lot, but I'm still a bit baffled by:
playerName(thisPlayer) = net get string()because it makes me wonder, is a string being sent already, or is this a request for a string? Its obviously a very precise business and being done somewhat invisibly, so its kind of difficult to grasp.

Can I request a file this way also? I'm thinking it might be easier (on my old noggin at least) for the client to just store the users name and password in a file, and then have the host retrieve it when a connection is made.

MEGA EMPIRES III(c)Soltronics 2007 ---- A DarkBASIC Professional 3D Interstellar Conquest Project
http://me3.artofwarcentral.com/index.html <---- Come check out our BETA modules opening very soon
Back to top
MEGA EMPIRES III
Report this message as abusive
3D Coding

User


Joined: Mon Jan 15th 2007
Location: My 3D Spaceship
Posted: 4th Feb 2007 14:12           | link | toggle

GH: I'm still not getting connection. Same error:"Could not start server: CONNECTION FAILED"

MEGA EMPIRES III(c)Soltronics 2007 ---- A DarkBASIC Professional 3D Interstellar Conquest Project
http://me3.artofwarcentral.com/index.html <---- Come check out our BETA modules opening very soon
Back to top
MEGA EMPIRES III
Report this message as abusive
Benjamin

User


Joined: Sun Nov 24th 2002
Location: France
Posted: 4th Feb 2007 14:40     Edited: 4th Feb 2007 14:41     | link | toggle

Quote: "playerName(thisPlayer) = net get string()because it makes me wonder, is a string being sent already, or is this a request for a string?"
The string is being read from a message that has already been sent.

If you want the client to be able to log in using a username and password, here is roughly how it would happen:

1. The client connects to the server using NET CONNECT.

+ Code Snippet

2. The server accepts this new connection by calling NET PLAYER JOINED which returns the client's ID.

+ Code Snippet

3. The client sends a username and password to the server. It's a good idea to prefix messages with a single byte value as a message ID, so that the receiver knows what kind of message it is. In this case the ID is 0.

+ Code Snippet

4. The server receives this message and accepts or rejects the client. Message ID '1' in this case tells the client that it has logged in fine, '2' indicates that it hasn't.

+ Code Snippet

5. The client receives the reply from the server and acts according to the result.

+ Code Snippet

If you want I can code up a practical working example.

Tempest (DBP/DBCe)
Multisync V1 (DBP)
Back to top
Report this message as abusive
3D Coding

User


Joined: Mon Jan 15th 2007
Location: My 3D Spaceship
Posted: 4th Feb 2007 15:27           | link | toggle

Fantastic! Thanks very kindly! I should say "Eureka!"

Now if we can help GatorHex get his project launched, there will be hope for remote hosting multiplayer games with DarkBASIC Pro. "Make it so, Number One!"

GH has been working hard on this, there has got to be a solution.
"We are the people who made fire! We can do this!"

MEGA EMPIRES III(c)Soltronics 2007 ---- A DarkBASIC Professional 3D Interstellar Conquest Project
http://me3.artofwarcentral.com/index.html <---- Come check out our BETA modules opening very soon
Back to top
MEGA EMPIRES III
Report this message as abusive

Go to the first page of this board Return to the Forum Menu Post Message
467 Messages - Page   of 12   
Search the Forum Next 40

This is a multi-page thread older than 30 days.
Go to the last page to check if you can reply to it.

Forum Search

Enter a word or phrase to search our Forum for:

Thread Subject Search
Search Phrase:
Search Scope: Entire forum
Just this board
 
Google Forum Search
Search Phrase:
 
Apollo v2.02


Game Creator Store
Privacy Policy AUP Top of Page