Entries Tagged as 'Geeky'

Project LRSS2: Defender

LRSS2: Defender is the working name of my iOS game. This is the first entry in the development journal.

I will post screenshots etc. of what I have already got shortly.

Tonight I updated the version of PVRShell I was using to the 2.8 release. Tricky part was merging in my touch handling code – I deal with 11 touches, the POWERVR SDK only does 1. Sadly, I can’t see an easy way of feeding this back right now as I have to hackily include the PVRTools in the PVRShell to achieve this at the moment. It’s probably not that hard, mind.

I’ll probably update the PVRTools that I’m using soon as well – although I’ll have to merge in more improvements there, I suspect.

const is not always your friend

Especially if you add it to a virtual function that’s supposed to be overridden and don’t add it to the overriding functions.

Oops.

Touch Screens On Desktop Computers

“I don’t want to be reaching around on a vertical surface all day – my hands will get tired. It’d be so awkward!”

Why on earth do people assume that touch interfaces to desktops, laptops or whatever, will remain vertical and not be adjustable to an angle that’s comfortable to work at? My 6 year old laptop screen already does this and it doesn’t even have a touch screen. The iMac in front of me can lean back a bit already. I’ve read so many complaints like the one above, often from apparently very knowledgeable people on sometimes very specialist forums, it beggars belief. Every one seems to forget that your real desktop that you reach about on and touch is still horizontal, just like it was 30 years ago before computers became so typical. Obviously, one reason for this choice of inclination is to stop things falling off, but, for instance, draughtsman working on large paper designs used to work at an angle, because it was easier for them – touch screens will be adjustable to the angle you want to work at. I could quite easily imagine multiple surfaces at different angles depending on their function – think about the Nintendo DS or imagine a music studio with mixer channels at a shallow angle with sound information etc. displayed on a more conventional screen. Would these all be touch enabled? Perhaps not initially, perhaps not ever. Perhaps not until the technology became so ubiquitous that not having it would be considered unusual. After all, reaching out and touching a vertical surface might be the most intuitive thing to do occasionally, even if it is a little awkward for constant use.

The other huge assumption is that as soon as touch screens become available then we’ll suddenly have to throw away all our mice and keyboards and be entirely restricted to working/playing with the touch screen. Doesn’t anybody remember when computer mice became popular? We had all these complaints then – it never seemed to occur to people that 25 years on we’d still see “QWERTY” every time we sat at a machine. On the whole, computer interfaces are additions to each other that may overlap in use, but entire replacements are rare. This will be exactly the same. Perhaps the reason people are getting so upset is because of the way mobile devices are developing, but in a stationary environment, space and weight concerns are not so severe and so input choice can be much more varied.

Creating a dualboot Windows XP and Mac OS 10.6 machine with FAT32 common partition

Steps:

  • Install Mac OS 10.6 Snow Leopard
  • Run Bootcamp assistant to partition your drive to 2 partitions
  • Install Windows XP on the bootcamp partition after reformatting it to NTFS
  • Boot back into Mac OS
  • Reduce the size of the Mac OS partition in disk utility and add a common FAT32 partition in the space you’ve freed. Don’t touch the windows partition at all.
  • Install MacFUSE and NTFS-3G so that you can edit the boot.ini file on the Windows partition.
  • Change where it says partition(#) in the boot.ini file to partition(#+1) (This worked for me – you may want to try adding 2 or 3 on some setups).
  • Voila! You should be able to boot into Windows and Mac OS by holding option at start up (that’s alt for all you new Mac users)

Disclaimer: this worked for me – your mileage may vary…

Crackers

Dry biscuits, Christmas fixtures and people who enter computers across a network covertly. The last definition is not also a definition of the meaning of the word “hacker”. No dispute. Simple facts. Nothing to see here.

So I was saddened to see that the cancer that plagues Wikipedia, specifically the insistence of ignorant people with too much time on their hands to meddle with information posted by professionals and other specialists in their areas, had spread to this article:

“Hacker” article on wikipedia

I suppose I should just be glad that there’s no suggesting that passwords consist entirely of three letter words and that computer pros all wear inline skates constantly. As if I’d get to fool around in a swimming pool with Angelina just ’cause I can bypass a Windows login…

Wanted: A What the Hell Did I Just Do Dialog

So I’m trying to write an Applescript in ScriptEditor (don’t ask) and I’m used to Xcode. So I do a couple of lines and hit Command-B which would build my project in Xcode. Except it doesn’t do that in ScriptEditor (obviously), it does something else. What I’d like is some nice standard way that a program will report what I just did and how to undo it (if possible).BTW in ScriptEditor Command-B just switches on bold type (wtf this has to do with scripting I don’t know – huh?). However, in the other use cases for this option – the “I-Guessed-That-This-Shortcut-Would-Do-This-But-Was-Surprised-To-Find-It-Didn’t-What-The-Hell-Has-Happened-To-My-Work-Now” Case or the similar “I-Hit-The-Wrong-Keys-With-My-Sausage-Fingers-WTF-Just-Happened” case – I feel it might be more useful.

It’s just wrong…

Why do I have to write my own mod operator in C or C++ just because the idiots who came up with the language couldn’t do it right in the first place? (Yes, I’ve just had to fix a bug because of this.)Look here.

Open Source

We’ve been discussing making my PVRTC stuff open source. It makes me wonder why the rest of our software isn’t open source too – after all we’ve always made a big deal of how our software’s free and we make our money from the hardware. Why not go the whole hog and make the software open too?

http://www.catb.org/~esr/writings/cathedral-bazaar/magic-cauldron/ar01s18.html

The rest of the article is interesting too.

Game Design

See this

 Game Design has become a profession. When I started writing games the programmer (sometimes the artist) was the game designer and most of it was considered self-evident. You didn’t waste hours of time deciding whether X feature took away from the player’s focus or whether Y feature interrupted the flow of them game.

Now, this did pave the way to plenty of poor games, some that were practically unplayable. I don’t doubt that there’s a need for more thought and particularly more testing for modern games. But I’m sure I can’t be the only person who’s noticed that modern games all seem to be homogenized in their accessibility. There’s no mystery left – half the fun of a game is discovering or unlocking the potential in it, learning the tricks or locations where certain things happen, learning the game. Nowadays we get a walk-through with some irritatingly west coast US accented guy with a husky voice explaining some unintuitive game move with a ridiculous jargon name and that’s it.

“You’re supposed to be able to just pick it up and play though!”  Perhaps I don’t want that? Perhaps I want the reward from putting in a little bit of effort that immersiveness gained by investing a little brain and the subsequent reward? Besides there are many great games that you couldn’t pick up and play (Kick Off, Elite, Falcon). They wouldn’t have been great if they’d been any other way either.

Time Machine to a Networked Windows Share

This wasn’t as difficult as I thought it would be: 

  1. Use  defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1 to allow TimeMachine to allow the network drive.
  2. Follow the instructions  here but don’t bother with trying to grab the file name. Just get your computer name from the Sharing Preferences Pane and your MAC address from Network and put these together.