The Midnight Engine – iPhone

So I’ve taken, to porting The Midnight Engine to the iPhone. This is a task that I started 3 years ago. But as many of you loyally Midnight followers will know, time is not a friend to my projects.

I have been playing with getting the engine up and running under AirPlay SDK as this will hopefully give me a little more scope. It kinda goes against my normal philosophy with development, in that an engine must offer just the right amount of assistance to your project but not bog you down with far too many features that you don’t need nor want. There are reasons to consider AirPlay which I won’t go into here, but one of the advantages is that it allows me to keep development in C/C++ which is how TME was written. This is a bonus as I can just port the engine without having to rewrite – well that was the theory.

First I had to scrap my porting attempt from 3 years ago. A because there were an awful lot of errors, and B because I had no idea where I was at.

Creating a new project under XCode and Airplay, I had some 20,000 errors and warnings – mainly errors. Part of this problem was that the codebase had been written to cross-compile across OS’s. And it used to. Not any longer.

It’s been nearly 5 years since I did any proper work on TME, and things have moved on. The compiler didn’t like my code anymore. New keywords had been reserved. Warnings popped up for things that I’d never had warnings for before. eg. Comparing signed and unsigned variables. The Compiler was having different affects on areas of the code that previously compiled fine. The GNU compiler doesn’t appear to be as happy with namespaces as Visual Studio used to be. (that said I can’t get the old project to compile under VS2010 anymore!)

So I had to strip it back. And bit by bit put the code back into the project and painstakingly change everything that needed to be done to make it compile.

After a week – I’m done.

Now I need to do some testing and recoding. First is to get the project loading in the LOM database. This will allow me to wrinkle out some of the OS/Hardware issues in the TME libraries. After that I need to painstakingly test large chunks of the code to make sure they are still doing what I want them to…

Related Posts:

Toughguy

Well, I ran Toughguy on Sunday (Braveheart II). This was my second toughguy having completed Nettle Warrior in the summer.

Toughguy is billed as “The Worlds safest, most dangerous taste of mental and physical pain, fear and endurance.”

It’s a 6 mile cross country run with a few obstacles for good measure, deep ditches of water and mud, hay bales, tree steeplechases, cargo netting, and steep hills to keep running up and down. Then when you have finished all that you enter the killing fields obstacle course (twice round in the summer) this covers about another 2 miles if you don’t take into account all the ups and downs. There are walls to climb over, rope bridges, monkey bars, tall climbing frames, tyre tunnels, electric shocks, tunnel pipes to crawl through, lakes, barbed wire to crawl under, dark underground chambers, water tunnels… And on and on. All with lots of mud and water, so that you are constantly wet and heavy with mud! No amount of text here can describe the awfulness of the killing fields!

I completed the summer event, emotionally and physically broken. I spent four and a half hours on the course dragging my sorry arse around.

So I signed up for the winter one!

Luckily, most of January has been more clement that December. The temperature had just started dropping again, but at -3 it was still milder that last years -7. That said water that has a good centimetre of ice on the top of it, is bitterly, painfully, cold!

There’s not much to say about the day. I managed to complete the main running part of the event as expected. The 10 slaloms hurt like hell. The water burnt and your feet and legs become numb.

The first part that surprised me was the torture chamber. The electric shock stuff in there never bothered me in the summer, but it mega hurt this time. It’s not fun as your body convulses in a small enclosed dark area. Especially when the convulsion makes you hit another electric wire! I’m not sure if they had turned the dial up or if it was just the cold and wet.

The underground tunnels were much more unpleasant this time too. I’m a little too big for them, so I can’t crawl on my hands and knees. In the summer I was able to lay on my back and push myself with my feet. This time I had to lay front and inch along on my elbows. This is unpleasant in the pitch black tunnels, but much worse in the tunnels that are climbing upward!

But the thing that finished me off was the cold water. You’re almost constantly in and out of the water to varying depths. I had fallen over in one of the ditches early on and got the full submersion that i hadn’t been expecting till much later. After walking around the lake (that’s in the lake up to my chest in water) and ducking under the tunnels , I came to the death plunge… Walking the plank into 8ft of icy cold water..And that was it… I just couldn’t go on… I was too cold, too numb, and just couldn’t face any more water! And i knew all the other obstacles still to come.

So I turned tail and headed back to the changing rooms… Strangely enough I wasn’t at all disappointed.

I woke this morning with a little different take on it. I was a little disappointed that i hadn’t finished. I didn’t regret my decision to stop; I made the right decision for how i felt at that moment in time. My body was telling me something and I had to listen… However I woke with the thought of ‘what if?’ If I had just taken that plunge, could i have overcome the rest? I had been on the go for two and a half hours, and probably had another thirty to forty minutes left… could I have kept going or would have that led to hyperthermia?

And now i find myself thinking: do I try again?

Related Posts:

  • No Related Posts

Lords of Midnight & Doomdark’s Revenge

Watch this space…

Related Posts:

Happy Now

Happy Now
Bon Jovi

What would you say to me?
If I told you I had a dream
If I told you everything
Would you tell me to go back to sleep
Take a look in these tired eyes
They’re coming back to life
I know I can change
Got hope in my veins
I’m telling you I ain’t going back to the pain

Can I be happy now?
Can I let my breath out?
Let me believe
I’m building a dream
Don’t try to drag me down
I just want to scream out loud
Can I be happy now?
Been down on my knees
I learned how to bleed
I’m turnin’ my world around

Can I be happy now?
Can I break free somehow?
I just want to live again
Love again
Pick my pride up off of the ground
I’m ready to pick a fight
Crawl out of the dark to shine a light
I ain’t throwing stones
Got sins of my own
Ain’t everybody just trying to find a way home?

Can I be happy now?
Can I let my breath out?
Let me believe
I’m building a dream
Don’t try to drag me down
I just want to scream out loud
Can I be happy now?
Been down on my knees
I learned how to bleed
I’m turning my world around

You’re born then you die
It’s all gone in a minute
I ain’t looking back
Cause I don’t want to miss it
You better live now
Cause no one’s going to get out alive, alive

Can I be happy now?
Can I let my breath out?
Let me believe
I’m building a dream
Don’t try to drag me down
I just want to scream out loud
Can I be happy now?
Been down on my knees
I learned how to bleed
I’m turning my world around
Can I be happy now?
Ohhhh
I’m turning my world around
Can I be happy now?

Related Posts:

Open All Night…

Playlist for Bon Jovi @ the O2 – Sat 19th June 2010

Related Posts:

%d bloggers like this: