packbits

I only need to save 2 of 8 bits from the world flags, so a small amount of compression is in order. The easiest thing to do is simply remove the other bits from the fields as it’s put into the savegame database. turns a 10k structure into a 2.5k.

ATM Machines! ATM Machines!

Dear God,
Who the hell makes up the news reports. I was listening to the news today and they help talking about ATM Machines! It really gets on my goat that they keep using this dire redundancy. It’s an effing Automatic Teller Machine, stop using the extra machine at the end, otherwise It’s an Automatic Teller Machine Machine, which sounds completely annoying.
Grr,
Pete.

Wobbly scrolling – in progress

I’m still trying to fix the wobbly scrolling. There’s got to be some way of doing this simply.
Ok, I’m checking the keystate with the KeyCurrentState() call while scrolling, it seems to keep the animation in check.
I’ve just got the minor problem of flickering in the minimap now (high resolution).
Potential Fixes:

  • Don’t ever paint ‘under’ the minimap
  • Lose the minimap (not really an option)

Removing the paint-under for the minimap is an awkward one. For basic screen painting this requires preening the tiles that the minimap uses from the draw loop. The scrolling leads to an awkward problem. Previously the algorithm copied the entire screen up/down/left/right depending on the motion (memory prohibits a back-buffer).
In the interim, I’m allowing the toggling of the minimap in the configuration screen.

Minimap rendering correctly

Ok,
the rendering of the minimap correctly on scrolling works correctly. Now I have to fix the scrolling being sluggish.
The problem is that there is no key-up event on the palm.
Memory footprint has been reduced – I checked the code that was being generated and shrunk quite a few functions, and moved some functions to different sections as they were being called either once per execution, or very rarely. Not that anyone would really care about things like this except little old me.

Strange things on T3’s

That’s Palm Tungsten T3’s – Turns out that whatever way the version of pilrc I am using does the resources, it is screwing up the contents of the string lists. From what I can tell it looks to be an alignment problem with the strings.
I’ll get a later version of pilrc and try with that.

Where I stay for the wekeend

Well there is a family do happening tomorrow, so I had to book into a hotel for the weekend, and this is what I ended up staying in (because the B&B was booked out).
Rochestown Park Hotel in Cork City, Ireland – Luxury Hotel Accommodation and Conference Venue with Leisure Centre
I’m using an eircom wireless card. Quite easy to connect and get everything working – simply pick up the eircom wireless connection and you’re away on a hack (pun not intended). The only problem is that I seem to not be able to access it from my room.

not to bring peace…

William Sloan Coffin – Not to Bring Peace, But a Sword Another article abut america’s place in the world.
But for more interesting things there’s the Squeezebox… and I want one. Of course as soon as I buy one it will be for sale really really cheap.
Dave commented about the Cluetrain Manifesto being available on mp3 format… I bought it in Boston a couple of years ago on CD and it’s in my mp3 collection (under spoken word, along with my granfather’s memoirs of the Irish Civil War, and the Irish War of Independence).
Crap; I am so bloody tired from yesterday. I was literally working until 3am so I’m having a lie-in.