Up to Main Index                             Up to Journal for April, 2018

                    JOURNAL FOR WEDNESDAY 4TH APRIL, 2018
______________________________________________________________________________

SUBJECT: A very productive, long weekend
   DATE: Wed  4 Apr 22:06:41 BST 2018

Spoiler alert: Reading & writing player files with inventory now works! \o/ :)

This weekend was a long bank holiday, with Good Friday and Easter Monday. As
the rest of the family were busy doing their own thing, I spent my time coding
on WolfMUD.

Friday and Saturday did not go well and were quite unproductive. I spent a lot
of the time writing code I just wasn’t happy with, resulting in the changes
being discarded. I knew exactly ‘what’ I wanted to do, but the ‘how’ was being
elusive.

On Sunday we went to visit my parents. While dinner was being prepared and
people sat chatting and doing their own things, I was left to myself. So I got
out my Chromebook and spent the afternoon hacking away on WolfMUD.

I don’t know if it was working on a Chromebook or being at my parents, either
way I had a very focused, productive afternoon. By early evening I had a
working implementation of saving players, complete with all of the inventory
items — even containers and containers in containers ad infinitum.

Monday and Tuesday I spent a lot of time cleaning up the code written on the
Sunday and committing everything. The code is far from perfect, but it’s good
code ‘because it works’™. There is some duplication of data between the Player
attribute and the frontend package which needs sorting out. The loader for
player files is also a separate re-implementation of parts of the zone loader.
At some point the player and zone loaders will be unified, especially as the
player loader does not do everything I want it to do yet.

I’ve also added the long missing gender attribute. This is needed so that the
gender specified during account creation is not lost when saving. It’s not the
full blown implementation I was planning on, but it will suffice for now.

I’m still testing and double checking everything, but all of the changes are
now on the public dev branch. Please, if anyone has any issues or finds any
bugs contact me with some details: diddymus@wolfmud.org

I guess the next thing to do is to sort out items in the zone data files, so
players have items they can collect.

It looks like a long overdue v0.0.9 release is just around the corner.

--
Diddymus


  Up to Main Index                             Up to Journal for April, 2018