Up to Main Index Up to Journal for October, 2013 JOURNAL FOR WEDNESDAY 9TH OCTOBER, 2013 ______________________________________________________________________________ SUBJECT: Logins revisited DATE: Wed 9 Oct 23:17:58 BST 2013 A busy evening coding. This evening I've been looking into logins again as there is still some work needed before WolfMUD is actually 'useful'. Off the top of my head the following needs sorting out: ∙ Duplicate logins ∙ Account & Character creation ∙ Character saving So I started this evening on duplicate logins. For this I've decided to use the PlayerList. This means the VERY FIRST thing to do when logging in is to add the player to the PlayerList and the VERY LAST thing to do is remove the player from the PlayerList. Sounds easy and modifying the PlayerList was easy enough. The tough part is actually handling what happens if the player is already logged in. For example the hand off between the login and player parsers, handling concurrent logins and closing up any race conditions that would otherwise allow duplicate logins. I actually found I was adding a lot of corner case handling. For example if you are already logged in you can't be added to the world, but to back out of the partial login assumes you are already logged in *sigh* so I need to rethink some of tonight's changes and rework them to make them cleaner. Account and character creation is going to be fun and I'll probably create another parser just to handle that. This also means I'll have to revisit the loader to create a 'saver' compliment of the loader. I'll also need to write an 'encoder' to compliment the decoder. So that's going to take a while to sort out. Once the saver and encoder are written for the account and character creation that's a lot of the coding done for saving players 'in game' and when quitting. So lots to do but progress is being made... -- Diddymus Up to Main Index Up to Journal for October, 2013