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 / multiplayer.

Author
Message
DB newbie
19
Years of Service
User Offline
Joined: 13th Nov 2005
Location: um..... i dont remember.
Posted: 12th Mar 2006 16:40
ok this question is for the future can i do a multiplayer chat program in DBC and you know in modern commercial games how the have a like screen that has all of the servers that are up? is it possible to do that in DBC or DBpro.

Check out my site!(unfinished)
http://www.freewebs.com/dbnewbie/
Roxas
19
Years of Service
User Offline
Joined: 11th Nov 2005
Location: http://forum.thegamecreators.com
Posted: 12th Mar 2006 17:09
I have got something with dbpro so i think you can do it with dbpro..

Hmm.. there was program called E_zerv somewhere..

<DeleteD>
DB newbie
19
Years of Service
User Offline
Joined: 13th Nov 2005
Location: um..... i dont remember.
Posted: 12th Mar 2006 17:24
oh ok i will resaerch some more about it thanks.

Check out my site!(unfinished)
http://www.freewebs.com/dbnewbie/
General Sephiro
20
Years of Service
User Offline
Joined: 27th Sep 2004
Location:
Posted: 12th Mar 2006 17:38
Hmm I do believe DBC can support multiplayer i'm not to sure how well though, i tried a simple chat program a while ago, I think it was successfull but sadly all my programs were lost after the re-booting...

Might re-try creating a chat program again

SimSmall
20
Years of Service
User Offline
Joined: 7th Aug 2004
Location: United Kingdom
Posted: 12th Mar 2006 18:28
I tried this type of software - yes DBC does support it, and supports it quite well...

The real irony is that when I tried to convert my program over to DB Pro, it refused to process messages (where DB Classic would process them!) :S turned out to be just badly structured code.

The lobby Screen is also easily do-able by simply doing:
perform checklist for net sessions
and then printing the checklist to the screen.
DB newbie
19
Years of Service
User Offline
Joined: 13th Nov 2005
Location: um..... i dont remember.
Posted: 13th Mar 2006 01:39
oh ok thank you i just wanted to know if you can.

Check out my site!(unfinished)
http://www.freewebs.com/dbnewbie/
Duke Blue Devils
19
Years of Service
User Offline
Joined: 11th Mar 2006
Location:
Posted: 13th Mar 2006 05:35
I am having a problem with the Perform Checklist for Net Sessions command. For some reason it isn't identifying my active net game. Does anyone have any idea why this is? The computers must be connected to the same IP address right? Then why isn't it working?

J.J. Redick-Player of the year
Overall #1 Seed
2006 National Champions
SimSmall
20
Years of Service
User Offline
Joined: 7th Aug 2004
Location: United Kingdom
Posted: 13th Mar 2006 15:48
Quote: "The computers must be connected to the same IP address right?"


Nope - you can't have two computers on the same network with identical IP addresses. If this the computers are on the same network then they should be part of the same IP subnet. But really, for testing you should use IPX. it initialises faster, (actualy it's faster than TCP/IP is for every single net command) Downside: Doesn't connect over the internet.
DB newbie
19
Years of Service
User Offline
Joined: 13th Nov 2005
Location: um..... i dont remember.
Posted: 13th Mar 2006 21:34
wait a sec. do i need the DB enhancement pack to make a like chat program.

Check out my site!(unfinished)
http://www.freewebs.com/dbnewbie/
Duke Blue Devils
19
Years of Service
User Offline
Joined: 11th Mar 2006
Location:
Posted: 13th Mar 2006 22:35
But I thought that the client computer must be connected to the same IP address as the one the game is hosted on. Are the IP addresses just those for each separate connection?

J.J. Redick-Player of the year
Overall #1 Seed
2006 National Champions
SimSmall
20
Years of Service
User Offline
Joined: 7th Aug 2004
Location: United Kingdom
Posted: 13th Mar 2006 23:18
need the enhancement pack for multiplayer of any kind...
DB newbie
19
Years of Service
User Offline
Joined: 13th Nov 2005
Location: um..... i dont remember.
Posted: 13th Mar 2006 23:52 Edited at: 14th Mar 2006 19:37
nooooooooo
i will just get DBpro then.

Check out my site!(unfinished)
http://www.freewebs.com/dbnewbie/
Benjamin
22
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 14th Mar 2006 19:01
Quote: " But I thought that the client computer must be connected to the same IP address as the one the game is hosted on"

I'm not sure exactly what you mean, but this is how it works:

The host 'hosts' using its IP(if you are directly connected to the net this is your internet IP, but if you are on a LAN then it's your computers LAN address), and others connect by specifying the internet IP of the host(unless you are both on a LAN, in which case you use their computer's LAN IP).

Of course, over the net you will have to set up your router's port forwarding..

Tempest - P2P UDP Multiplayer Plugin - 70%
Download the free version
SimSmall
20
Years of Service
User Offline
Joined: 7th Aug 2004
Location: United Kingdom
Posted: 14th Mar 2006 19:18 Edited at: 14th Mar 2006 21:24
Quote: "Of course, over the net you will have to set up your router's port forwarding.."


and if you use ICS instead of a router?

The DirectPlay 9 documention suggested it will work automatically, but it doesn't seem to (obviously DirectPlay 9 isn't DB's native DX7, but surely the procedure is similar...)
DB newbie
19
Years of Service
User Offline
Joined: 13th Nov 2005
Location: um..... i dont remember.
Posted: 14th Mar 2006 19:36
oh sorry i will edit my post.

Check out my site!(unfinished)
http://www.freewebs.com/dbnewbie/
Benjamin
22
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 14th Mar 2006 20:34
Quote: "and if you use ICS instead of a router?"

I've never thought about that really. And I'm not entirely sure..

Tempest - P2P UDP Multiplayer Plugin - 70%
Download the free version
SimSmall
20
Years of Service
User Offline
Joined: 7th Aug 2004
Location: United Kingdom
Posted: 14th Mar 2006 21:26
oh well, was worth a shot...
Duke Blue Devils
19
Years of Service
User Offline
Joined: 11th Mar 2006
Location:
Posted: 14th Mar 2006 23:59
@Benjamin
I appreciate your response. You confimed what I had originally suspected. My problem is that "others" are not able to connect to the host IP address. For some reason the clients don't recognize that there is a game being hosted on the host's IP address. I am not using a router so that eliminates some of the possiblilities as to why this won't work. Could a firewall be involved in some way? What should I do?
Take a look at my post for the source code:
http://forum.thegamecreators.com/?m=forum_view&t=74020&b=10

Thanks

J.J. Redick-Player of the year
2006 National Champions
Duke Blue Devils
19
Years of Service
User Offline
Joined: 11th Mar 2006
Location:
Posted: 15th Mar 2006 02:27
Sorry wrong link.
I meant:
http://forum.thegamecreators.com/?m=forum_view&t=73981&b=10

J.J. Redick-Player of the year
2006 National Champions
waffle
22
Years of Service
User Offline
Joined: 9th Sep 2002
Location: Western USA
Posted: 15th Mar 2006 05:01
yes, using a firewall will block connections. you'll need to check your docs for your firewall on how to grant permission for DB to access the the world and to permit others to connect to DB ....
I think DBC uses port 2525 .... and no, you don't need the enhancement pack unless you want those special memblock commands or want to use .dll files and so on. I do have a few multiplayer games on my website that are done using both DBC, DBCEnhanced and DBPro.
DBC Enhanced is my language of choice for now. The demands of DBPro are out of my budget for now.
DB newbie
19
Years of Service
User Offline
Joined: 13th Nov 2005
Location: um..... i dont remember.
Posted: 15th Mar 2006 05:22
oh ok thank you that you dont need the enhanceed version to make a chat program.

Check out my site!(unfinished)
http://www.freewebs.com/dbnewbie/

Login to post a reply

Server time is: 2025-05-23 19:18:24
Your offset time is: 2025-05-23 19:18:24