Wednesday, January 25, 2006

Wednesday 25th

Bit the bullet today and decided to finish off the Tile Resize system I'd had trouble with a week ago. The plan was reasonably simple - create executables on the main PC and test them on the laptop, which wasn't too much of an ordeal as the pair are already networked.

Within an hour or so I'd managed to get the routines working properly, and the system required just a few more tweaks and checks to ensure that everything else worked properly (buffers being reset and variables restored, the kind of boring housework that often gets overlooked until someone finds a bug).

The next task was a small tweak to the Zoom routine, as I realised that the Zoom tileset is calculated by loading in the current tileset from disk - this meant that newly-created tilesets which hadn't yet been saved (and thus, had no file or filename) wouldn't be displayed. A few frantic finger flourishes later, the Zoom routine was working perfectly (and as an added bonus, I also tracked down a small bug in my buffer plot routine).

The remainder of today's session was spent adding code to handle INI files, so that preferences can be saved and loaded as required (some of the default settings are beginning to annoy even me!). Managed to find a suitable routine in the Blitz Code Archives, so I'll probably chop this down to the bare minimum for my requirements.

Rounded off by having a think about a Guides system for the Editor; while testing the Brush and Symmetry functions, it became apparent that some artists might need a guide or two, particularly if their maps are very long or tall. However, I've a strict list of things I really have to be getting on with, so the Guides will have to wait :)