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 / multiplayer command problems

Author
Message
simonuk74
23
Years of Service
User Offline
Joined: 3rd Nov 2002
Location:
Posted: 29th Sep 2003 02:04
I have been trying to set up a simple net connection between and XP pc & 98se pc.
the network is fine within window (can ping/browse machines etc) but Dark Basic Pro seems to not want to find any sessions.

here is the code I am using to look for a session :
[/code]perform checklist for net connections

for a=1 to checklist quantity()
print a," . ",checklist string$(a)
next a

set net connection 3 : rem ( my tcp/ip is always listed as the 3rd connection)

perform checklist for net sessions

for b=1 to checklist quantity()
print b,". ";checklist string$(b)
next b

if checklist quantity()=0
print "No Sessions Found"
else
print "at last!!!!!!"
endif

wait key



and here is the code I have been using for creating a session:
perform checklist for net connections

for c=1 to checklist quantity()
print checklist string$(c)
next c

REM TCP/IP is 1
set net connection 1

create net game "test","noob1",2,1

do
cls
set cursor 320,0
if net game exists()
print "Game ON!"
else
print "Game OFF!"
endif

perform checklist for net sessions

print "Sessions Found"
for c=1 to checklist quantity()
print c," ",checklist string$(c)
next c

perform checklist for net players

print "Players Found"
for c=1 to checklist quantity()
print checklist string$(c)
next c

sync
loop[code]

if its blatently wrong, can you please point me in the right direction !

thanks
simonuk74
23
Years of Service
User Offline
Joined: 3rd Nov 2002
Location:
Posted: 29th Sep 2003 02:05
sorry about the importing code problems!
simonuk74
23
Years of Service
User Offline
Joined: 3rd Nov 2002
Location:
Posted: 2nd Oct 2003 21:41
come on guys,
30 people have now looked at this post, and no replies??

even if you dont know, could I please have some helpful suggestions ?
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 2nd Oct 2003 22:17
I can't see anything obvious wrong with your code, but I don't really have time to test and debug it.

Try having a look at the chat code in Codebase for a start.

Over the next few weeks (maybe months) I'm planning to rewrite my library of multiplayer code to make it a little more clever - I might release that to Codebase too.
simonuk74
23
Years of Service
User Offline
Joined: 3rd Nov 2002
Location:
Posted: 4th Oct 2003 02:46
thanks, I`ll go have a look, see what I can find

cheers!

Login to post a reply

Server time is: 2026-07-25 07:01:39
Your offset time is: 2026-07-25 07:01:39