multiplayer -- what?

BlitzMax Forums/BlitzMax Programming/multiplayer -- what?

Hi KingNothing,

Your problem is caused by the GNetObject localObj which you can only create after you have constructed the TGNetHost.

So if you change your connectTo() function and create the localObj after you create the Host it works fine!

e.g.

Function ConnectTo()
	CloseGNetHost(host)
	host:TGNetHost=CreateGNetHost()

	'localObj needs to be created from new host
	localObj = CreateGNetObject:TGNetObject( host )

	If hosting = 1


Hope this helps.