Up to Main Index Up to Journal for July, 2013 JOURNAL FOR THURSDAY 25TH JULY, 2013 ______________________________________________________________________________ SUBJECT: How much load would the loader load if the loader loaded loads... DATE: Thu 25 Jul 22:09:54 BST 2013 Seeing as I've pushed out the changes allowing players to login to the server I thought I'd better sort out character creation next. Currently accounts have to be created manually which is a horrible hassle. Last night, WolfMUD Wednesday, I started looking at implementing the 'other half' of the recordjar package. We currently have a read method and a decoder. All we need now is a writer and an encoder. Or so I thought... After hacking around for a few hours I came to the realisation that the current recordjar package is not quite so well thought out and is in need of some TLC. I also need to give the loader package some TLC also. +++ WARNING: the word 'load' is used excessively in the following paragraph +++ The loader is the simpler of the two. At the moment when the server is started the loader loads all of the files in the data directory using the exported Load function. There is also an unexported load function. What needs to happen here is Load needs moving or renaming and load needs to be exported as the new Load - so we can use the loader on any files... Why? At the moment we are 'manually' loading the player files and unmarshalling the player data. If we add additional records to the player file such as items in the player's inventory the additional things will not be unmarshalled and everything will not be put into it's proper place. For example items will not be put back into the player's inventory. However the current loader's load function already knows how to handle all of this for us - so we just need to get to it. Then I can start on harder task of reworking the recordjar package... -- Diddymus Up to Main Index Up to Journal for July, 2013