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 / Net Game - host is not receiving data from joiners

Author
Message
TheComet
16
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 6th Feb 2010 11:31 Edited at: 6th Feb 2010 11:38
Hi everyone!

Over the last weeks I have been squishing bugs in my net game, and from what I can see, only one is left: Every joiner receives info from everyone including the host (like it should be), but the host only receives his own information, as if he is sending it to himself, and no info from any joiner is received.

This is the code I tracked down:



In case this is not enough, I attached my whole project.

In the receiving part of the above code, you will find the following line:

center text 320,240,"Receiving from : "+str$(m)

Running this on 2 computers, I get these results:

hostindex : 2
joinerindex : 1

joiner computer : a steady number "2"
host computer : a flashing, unsteady number "2"

Why is the command "net message player from()" returning the index of the host on the host computer? It should be returning the index of the joiner computer...

Any help is greatly appreciated.

TheComet


Make the paths of your enemies easier with WaypointPro!

Attachments

Login to view attachments
Ki11er
14
Years of Service
User Offline
Joined: 7th Feb 2010
Location:
Posted: 7th Feb 2010 10:12
Thinks@

[url=http://www.uraion.com/ ]aion gold[/url]
[url=http://www.uraion.com/ ]aion kina[/url]
Ki11er
14
Years of Service
User Offline
Joined: 7th Feb 2010
Location:
Posted: 7th Feb 2010 10:13
sadasdasdsafdfgfdgdfgdfg

[url=http://www.uraion.com/ ]aion gold[/url]
[url=http://www.uraion.com/ ]aion kina[/url]

Login to post a reply

Server time is: 2024-04-23 23:52:23
Your offset time is: 2024-04-23 23:52:23