Hi,
Re your error, I am not sure, but it's likely a problem of logic, so study carefully how the demoworker is doing.
- Make use of room custom properies to keep track across your network of Player assignments. Also, you know how many players there is in a room, you can typically assign a predefine order for roles as you join, else simply record everything within the room custom properties.
- Typically, a network game also comes with a proper database, and so the likely alternative is to store the room reference and keep track within a database of what's going on, but for sure a lot more involving if you don't have experience with this.
Bye,
Jean