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.

Author
Message
new programmer
19
Years of Service
User Offline
Joined: 20th Dec 2005
Location: right behind you.
Posted: 19th Feb 2006 03:48
hi, i'm making an MMORPG(massive multiplayer online role playing game), and it needs a server. i thought of a few things:

1. make the server a player in the net game and everyone send data to server player, it broadcasts it.
2. everyone connects to server and sends things to server, it broadcasts it.

is 1 possible?? if so, good, if not, how would i do version 2??

thanks!!!!!
Oneka
21
Years of Service
User Offline
Joined: 24th Apr 2004
Location: Hampton,VA
Posted: 19th Feb 2006 03:55
WELLLLLLLL
If you are a new programmer....you shouldnt jump right off the bat trying to make a MMORPG...iam not saying that you cant because I would just be contridicting what I do (spelling) but that is a question that you must decide on your own.....because not all Online games work the same....but a server some time down the line will broadcast some information....just plan on either one and choose from there....


Making better games everday!
Oh yeah and just so you know its Oh-nek-a not One-ka!
new programmer
19
Years of Service
User Offline
Joined: 20th Dec 2005
Location: right behind you.
Posted: 19th Feb 2006 04:28 Edited at: 19th Feb 2006 04:45
ok, what if i made the net game with flag 2:

1. how do i MAKE a connection? i know theres a checklist for it but how do i make a connection?
2. how do you send a net message to the net game so it broadcasts it to all players?
SimSmall
20
Years of Service
User Offline
Joined: 7th Aug 2004
Location: United Kingdom
Posted: 19th Feb 2006 13:07 Edited at: 19th Feb 2006 13:08
1 - set net connection
2 - join net game
2 - send net message <put type here> 0,<put message here>

you can't send a net mesage to a session if you're not in that session - otherwise the host won't know who sent it

and this is the same for both peer-to-peer and Client/Server
new programmer
19
Years of Service
User Offline
Joined: 20th Dec 2005
Location: right behind you.
Posted: 19th Feb 2006 20:55 Edited at: 19th Feb 2006 21:26
thanks!

what about the server? how would i make a server, i'm kinda stuck.

could the server just be


? and all users just send net messages to player 0(every player)?

also can i connect to internet through router?

EDIT: i'm having some trouble with client-side too. do i set a net session then connect? how do i choose what connection?

uhh. im lost.

:EDIT

thanks,
new programmer
SimSmall
20
Years of Service
User Offline
Joined: 7th Aug 2004
Location: United Kingdom
Posted: 19th Feb 2006 23:01
The help is all in the extensive helpsystem:



This finds all types of net connection you have that are supported by DirectPlay.



finds the Internet TCP/IP connection value(if avilable)



sets the connection to be internet TCP/IP for a client - if you have a static address for the server, use that instead 255.255.255.255 - that searches every IP out there



sets the connetion to be internet TCP/IP for a server - only games on your 1st loopback IP can be detected, since a server won't be joining sessions, all it does is save time by not searching every IP.



displays a list of all net games written in dark BASIC that are currently running (you will need to make a filter of your own (like the way I find only the TCP connection) to make it show only the server(s) for your game.

Just assuming your game is net game number 1:



this joins the game and calls the player on current machine the contents of PlayerName$ (so save this string before you get here obviously)

after that, who knows what you wants your clients to do...

now, for setting up the host, the connection is already set up for TCP/IP



this creates a net game called My MMORPG Server, with a maximum of 254 clients allowed to join (you have to count yourself in your game), and the server's player name is the contents of ServerName$ - it's silly giving it a proper player name since the MMORPG servers are usually dedicated, so there won't actually be a player there manning the computer, but still it must have a player name.

THIS CAN NOT BE ACHIEVED FOR ANY SYSTEM THAT IS BEHIND A NAT (SUCH AS A ROUTER - THIS IS IN CAPS AND UNDERLINED BECAUSE IT CAN NEVER BE STRESSED ENOUGH)

If you're getting stuck and lost at this stage, before the game is even started, can I suggest an offline adaptation of your game first?
new programmer
19
Years of Service
User Offline
Joined: 20th Dec 2005
Location: right behind you.
Posted: 19th Feb 2006 23:25
so you cant connect through a router?

then WHAT is DB useful for??????
heres to you lee: ,!,,

btw thx for the help.
SimSmall
20
Years of Service
User Offline
Joined: 7th Aug 2004
Location: United Kingdom
Posted: 20th Feb 2006 12:35
Well, MMORPG servers shouldn't be run from a home computer, because of the bandwidth limitations. And this is just a theory, so don't go getting your hopes up. If you put your machine in the DMZ (refer to your routers manual on how to do that if you're not sure), you might be able to get dark BASIC to connect over the internet. Of course, I don't know if that's true or not, but I'd say it was worth a shot.
BearCDPOLD
21
Years of Service
User Offline
Joined: 16th Oct 2003
Location: AZ,USA
Posted: 20th Feb 2006 23:54
You would need to set up port forwarding (like DMZ, except you specify what ports to leave open, more secure). This is true of any application you'd want to make a server for be it Battlefield, Teamspeak, or Counterstrike.


I'm going to eat you!
new programmer
19
Years of Service
User Offline
Joined: 20th Dec 2005
Location: right behind you.
Posted: 21st Feb 2006 05:24
i've allready stopped using DBC for my (M)MORPG. i'm now using C++ with winsock, as i can specify a socket. i just need a model loader now...

know of any that can load .3ds or .x models? if so please reply to my thread in forum 20!

Login to post a reply

Server time is: 2025-05-23 15:04:13
Your offset time is: 2025-05-23 15:04:13