RottNet groups
Blitz3D Forums/Blitz3D Programming/RottNet groups
| ||
I've just started using the RottNet UDP library. I've used BP_lite before, and wanted to upgrade to pro but it seems that can't be done anymore, so I thought I'd try RottNet because I needed reliable packet delivery. Anyway ... when using BlitzPlay I'd created a 'Zone' type and some accompanying routines to provide almost exactly the same functionality as RottNet's groups. So I was pleased to see it there, because it saved me a job. However, I can't quite get them to work... I made a simple test platform with 3 groups that the player could belong to - 'left', 'middle' and 'right' in the server code I make the following function calls before any players join: RN_CreateGroup(connection, "left") RN_CreateGroup(connection, "middle") RN_CreateGroup(connection, "right") I soon found the clients would happily report their group ID, but not its *name*. I entered the following code to both my server and client programs: For G.RN_Group = Each RN_Group Print G\ID Print G\Name$ Print G\Connection Print "" Next when I call it on the server, I see what I expect: 1 left 1 2 middle 1 3 right 1 but when I call the same code on the client this is what I get: 1 left 1 6 iddle||rightRottNet Test Platform 1 BTW: I start the server with GameData$ = "RottNet Test Platform" you can see the info is there, of sorts, but it's getting screwed up on the way! Anyone got any ideas? thanks. |
| ||
I contacted Rob, who created the RottNet lib, and he has corrected this bug and uploaded a new version to his website. for more info on RottNet: http://www.blitzbasic.com/toolbox/toolbox.php?tool=47 |