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.

DarkBASIC Discussion / Help with online game.

Author
Message
D18AGON
20
Years of Service
User Offline
Joined: 25th Sep 2004
Location:
Posted: 18th Mar 2005 02:32
Hi, I want to make a game where 1 or more servers can be created by people and those servers can be scanned for and detected by a client looking for a game server to connect to from within the game, and so a list of all the servers come up for them to connect to one, like the way many of the leading multiplayer games work today, I don't see any examples of this in DBCE and I would very much like some code examples or some info on how to do this. (include code). Give me a test example which I could use in a game if you can please. I simply want the client to be able to double click on the server and join without having to type in an IP.
blanky
20
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: ./
Posted: 19th Mar 2005 01:46
What you're basically doing here is asking for someone else to make you code for a server-client system.

And if you didn't mean to ask just that, read your post for yourself.

---

Anyway, we split into two parts -

The LOBBY bit, which allows you to choose a server, and get and pass it's IP address to the next bit without the user having to type it in.

Then you've got the ACTUAL IN-GAME bit.
With a bit of thought, both of these are pretty easy. Unfortunately, I have gone insane and will be back later, probably with a potato.

Mr Blanky - This Time, It's Personal
D18AGON
20
Years of Service
User Offline
Joined: 25th Sep 2004
Location:
Posted: 20th Mar 2005 00:38
I asked for a working EXAMPLE, isn't that ok?
Cellbloc Studios
21
Years of Service
User Offline
Joined: 15th Mar 2004
Location: Atlanta, GA
Posted: 20th Mar 2005 00:46
Maybe I am not following you either. Are you asking for code examples of if I start a "server", and you could start a "client", click a button, and it will find my "server"?

-This...is my boomstick!
waffle
22
Years of Service
User Offline
Joined: 9th Sep 2002
Location: Western USA
Posted: 21st Mar 2005 07:21
in a word ... don't.
DB/DBPro are not very good tools for listing servers or selecting active servers ... The best method for such a task is:

1 - have a web site.

2 - This website could be just a simple forum, or it could be
more robust ... basically, anyone that creates a server compatible
with your game, would post the IP address onto your website.

3 - users would access your website (either from a browser, or using DBC/DBPro FTP) to obtain a list of servers.

4 - Then, enter the selected IP address and begin the connection process.

In summary, don't bother. Focus on making your game. If you can get your game working as either a client or a host, then work on the other problem of listing multiple servers ... For now, you can cheat and simply recommend using some free chat rooms to pass IP between users that are not on a LAN system.

I tried performing those other steps with my games, its just too much trouble. Focus on the game.

Login to post a reply

Server time is: 2025-05-31 05:48:06
Your offset time is: 2025-05-31 05:48:06