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 Professional Discussion / 3 Questions Regarding Multiplayer

Author
Message
Derek Darkly
14
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 16th Nov 2013 08:03
Ok, so I'm newbing/noobing my way into multiplayer waters, but since a lot of DBPro's commands have fallen into antiquity farther than a sprocket in a Dwemer mining facility, I have 3 questions and hopefully not many more after these.

(Oh God, please let someone answer! )

1. Will the regular multiplayer commands actually work without replacing them with a plugin? A simple peer-to-peer, even just 2 players is good enough for now.

(If #1 is yes then...)

2. When I successfully do a CREATE NET GAME so that NET GAME EXISTS=1, does that automatically imply that I have created a "SESSION"?

(If #2 is yes then...)

3. As host, should I also be able to view the results of PERFORM CHECKLIST FOR NET SESSIONS?

The problem is, I can start the game session, but NET SESSIONS remain at zero.

D.D.
Derek Darkly
14
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 17th Nov 2013 19:08
I'm looking into the Matrix1Utils plugins now...
Can anyone confirm that this is the best networking plugin?

I don't mind paying for DarkNet if it's worth it.

D.D.
SamKM
17
Years of Service
User Offline
Joined: 25th May 2009
Location:
Posted: 17th Nov 2013 19:24 Edited at: 17th Nov 2013 19:31
Try the Multisync plugin - it's free and awesome
It's a little more complicated than DBPro's ancient commands, but definitely worth it... To answer your question, 'Do the DBPro commands still actually work?', well... Sometimes... And usually very slowly xD
I've had a pretty bad experience with them myself. Create Net Game crashes the program about 2 out of every 5 times, and when it does work, it takes about 30 seconds to get anything set up. That's my experience anyway

Edit: Here's the Multisync thread, if you're interested!
http://forum.thegamecreators.com/?m=forum_view&t=99188&b=5
Use the red download button at the bottom right hand corner of the post, because the links in the post are dead
Derek Darkly
14
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 17th Nov 2013 20:04
Thanks for sharing, Sam!
There are so many options sometimes, it's good to get a shove in the right direction.

I can only offer in return, Kirby on mushrooms...



D.D.
Broken_Code
15
Years of Service
User Offline
Joined: 20th Aug 2010
Location: Bremen, Germany
Posted: 17th Nov 2013 20:04
+1 for Multisync.

I've used DBP's Network functions before and can say that although they're not broken, they are less than optimal. Check out the Multisync plugin like SamKM said!
Derek Darkly
14
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 17th Nov 2013 20:42 Edited at: 17th Nov 2013 20:50
Thanks guys!
Ok, I'm trying to use the Server/Client examples that come with Multisync

I'm not sure which IP address I'm supposed to use...

Is it listed in the command window after running IPCONFIG, or is it more like the one returned from a site like IPCHICKEN.COM?




By the way, I'm running Windows XP...
Does anyone know if it is absolutely necessary to have something called 'NETWORK CONNECTIONS SERVICE' installed before any of these connections can be successful?

D.D.
Broken_Code
15
Years of Service
User Offline
Joined: 20th Aug 2010
Location: Bremen, Germany
Posted: 18th Nov 2013 10:47 Edited at: 18th Nov 2013 10:57
It'll be the IP adress listed under 'Ethernet adaptor local connection'. That's what I used with DBP before and had no Problems with it.

Quote: "Does anyone know if it is absolutely necessary to have something called 'NETWORK CONNECTIONS SERVICE' installed before any of these connections can be successful?"


Google tells me that's part of svchost, so it should already be on your System if you do Need it. I used the DBP Networking commands without any extra Downloads.
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 18th Nov 2013 19:29
Quote: "It'll be the IP adress listed under 'Ethernet adaptor local connection'."

This is only correct for LAN connections. For Internet connections, use a web IP service. (Like IPChicken, or whatismyip.com.)

Derek Darkly
14
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 18th Nov 2013 20:48 Edited at: 18th Nov 2013 20:57
Cool, thanks again guys!
(And sorry, I should have specified that I wanted to play over the internet, not locally.)

I think one problem is that I haven't learned "port forwarding" yet.

I'm trying to get my home computer (non-wireless DSL modem) to connect with my work computer which is on a router. So far I think I understand that I have to do port forwarding for any computer connected to a router. (I think.)

I'm considering Hamachi as a temporary alternative, but I read that I may still need port forwarding for some connection types.

D.D.
Derek Darkly
14
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 19th Nov 2013 06:02
Hey!

I've managed to connect the 2 computers through the fake IP addresses provided by the Hamachi VPN. Not bad for only having researched networking in DBPro for 5 days.



I still need to learn how to do port forwarding instead, but I'm more excited right now about sending test object/game data back and forth!

D.D.
GreenDixy
17
Years of Service
User Offline
Joined: 24th Jul 2008
Location: Toronto
Posted: 20th Nov 2013 04:02
Love Multisync been awesome easy to use and understand, Altho would like to try darknet for the voice chat stuff.

.:: Http://DeanWorks.Ca ::.
My software never has bugs. It just develops random features.
Derek Darkly
14
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 21st Nov 2013 18:31 Edited at: 21st Nov 2013 18:42
Quote: "Love Multisync been awesome easy to use and understand, Altho would like to try darknet for the voice chat stuff."


Multisync definitely seems to be most popular.

Soon I'll be trying to transfer game data with DBPro's native commands. I expect there to be some type of shortcomings that will lead me to need Multisync or DarkNET.

For now I just need to figure out the standard way to transfer groups (packets?) of data, like the x,y,z coords of an object all at once, for example. I suspect that it's done with memblocks...??

D.D.
GIDustin
18
Years of Service
User Offline
Joined: 30th May 2008
Location:
Posted: 21st Nov 2013 19:48
I used DBPro's network commands for one project, then switched to Multisync for one project, and then moved to DarkNet, where I have made several projects. I cannot remember why I switched away from Multisync. I think it was the amount of connections, where DarkNet can connect to and host as many connections as you want. Plus the built in voice commands are extremely awesome.

Derek Darkly
14
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 22nd Nov 2013 00:29 Edited at: 22nd Nov 2013 00:31
Quote: "Plus the built in voice commands are extremely awesome."


I thought about making a "ghetto" version of voice chat using native DBP... Basically the player would hit a key or click a button which would trigger RECORD SOUND for x number of seconds, then just send it via NET MESSAGE SOUND. Cheap, but workable if not too slow.

Personally I don't own a headset but my webcam works nicely for voice recordings.

D.D.
thenerd
17
Years of Service
User Offline
Joined: 9th Mar 2009
Location: Boston, USA
Posted: 22nd Nov 2013 03:21
Quote: "I thought about making a "ghetto" version of voice chat using native DBP... Basically the player would hit a key or click a button which would trigger RECORD SOUND for x number of seconds, then just send it via NET MESSAGE SOUND. Cheap, but workable if not too slow.
"


I've gotten this to work! Two main issues are that the dbpro native sound takes some time to start and stop recording, and it freezes the program while recording. If only we had some kind of audio plugin that would allow low level realtime access to the microphone so you could obtain sound samples in small chunks and send them over UDP.

Derek Darkly
14
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 22nd Nov 2013 18:26 Edited at: 22nd Nov 2013 18:28
Quote: "I've gotten this to work! Two main issues are that the dbpro native sound takes some time to start and stop recording, and it freezes the program while recording."


So there's hope!
I don't have a mic here at work, but maybe someone can test this?




D.D.
Derek Darkly
14
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 29th Nov 2013 03:35 Edited at: 29th Nov 2013 03:35
Well I'm about 12 days into this multiplayer thing, and so far I have found DBPro's native commands to actually be quite forgiving.

For the last few days I've been working on an avatar system for a simple tank game. There's still a slight issue with resizing, but I'm sure it's a problem with my coding and not DBPro.

(Forgive my poor tank model. I just quickly threw it together out of primitives.)



D.D.

Login to post a reply

Server time is: 2026-07-06 10:36:29
Your offset time is: 2026-07-06 10:36:29