Here's something Villy and I made with the Lacewing beta #9 C++ library - http://webdeling.aquadasoft.com
Printable View
Here's something Villy and I made with the Lacewing beta #9 C++ library - http://webdeling.aquadasoft.com
Wow Webdeling is cool :)
In response to what dave26 said I think some sort of "Channel Master" feature would be very useful. I completely understand that the architecture of Lacewing is very different to that of the MooApi, however it would still be incredibly useful to know which user was the first to join a channel and therefore give them some small responsibility.
Take for example an IRC channel. The first user to join a channel (thus creating it) immediately becomes the admin and whoever joins next becomes a normal user.
A "Channel Master" feature would be useful in this situation.
True, although this could essentially be done in coding, it would be extremely helpful to have built in.
I don't think you could code Channel Masters in MMF2 because different applications will not recognize such things.
RickyRombo - Could you give me an example of how to code it in MMF? I was thinking of a few different ways but they all had flaws.
My first idea was to do a normal peer loop, and if returns no peers then you are the master. However weird things could happen where players could both join at exactly the same time, or lag could cause a player to think that they are the first one in when they are in fact not. Also when someone leaves, how do you tell who was the next person in?
I didn't look too closely at the Client IDs but could they be used to check who is the firs to join a channel? I couldn't work out how they were generated. Sometimes I would get a new ID and sometimes I would get the same ID when joining a server.
Well you are right, there are some ways it could be flawed, but the way I did it, in an "On Peer Connect", check how many peers there are, and if there is just one, then you are the master. I've also done message sending, eg. when you join you send "here". On the other user's end, if they receive they send back "ditto". If you receive no "ditto"s you are the channel master.
And yet another way is to limit what channels, or "chatrooms", you can join based on whether they've been created. In other words, a separate "Create chat" screen that checks to see (via "List Channels") if the channel you want to make doesn't already exist, then lets you join. If you want to join, it has to be on the Channel list.