Here's my scenario...
I connect to a network as a client, this is successful. I immediately get a value which has been set to -1 by the host, to prove I'm connected:
` *** Run a quick test to get a parameter
ret = getNetworkClientInteger(gBingo.networkId, gBingo.hostId, "netPlaying")
debugWriteSave("Got a parameter from Host, the value is " + str(ret))
This is successful, here's my log file:
Quote: "
20.272 * Connected to Network *
20.272 Network Id of connected network = 10001
20.272 Host Id of connected network = 1
20.272 Got a parameter from Host, the value is -1
"
Now, my client keeps checking to see if the game has started. For the purpose of debugging, I'm logging the GetNetworkClientInteger() command, wrapped in 2 debug statements, to prove this really is the line:
` *** Client
if gGame.cycle = 2
debugWriteSave("here...")
ret = getNetworkClientInteger(gBingo.networkId, gBingo.hostId, "netPlaying")
debugWriteSave("netPlaying = " + str(ret))
And here again is the log file to show it continuously getting the value successfully:
Quote: "
20.372 here...
20.372 netPlaying = -1
20.539 here...
20.539 netPlaying = -1
20.706 here...
20.706 netPlaying = -1
"
Now the host sets the value to 1 as the game starts:
` *** Host only, set netPlaying = 1
if gBingo.netState = 1 then setNetworkLocalInteger(gBingo.networkId, "netPlaying", 1)
And the Client should now see a value of 1, and I should see this in the log file. But I don't! The log file stops here...
Quote: "
26.373 here...
26.373 netPlaying = -1
26.539 here...
26.539 netPlaying = -1
26.706 here...
"
Which indicates it was the GetNetworkClientIneteger() that crashed the program. The screen freezes and I have to end the process in Task Manager. It is using 0% CPU.
Any comments/ideas appreciated.