Deprecated…

I was feeling a little depressed last night, thought I’d wallow in the understanding that I was going to end up, moving on…

I’m working away, (again), at the moment. So I left my hotel and went for a walk, then into town to get something to eat. Found a nice homely Italian restaurant, and settled on some pasta, and beer, and wine, and desert, and Limoncello, and coffee…

I got back to the hotel and decided to Kickstart the ZX Spectrum Next. I figured that I might have a play around with it when it comes out. Started to think about finishing off the OpenSourceing of the codebase that I started previsouly. I then decided that I needed to give Timbles one last chance. I’d been unable to build LoM and DDR as 64 bit, but hadn’t tried Timbles. It failed! BUT, it failed differently. Hmmm… interesting.

Marmalade uses a project file called an MKB. The cross platform nature of it means that you create the actual project from the MKB file. So if I’m developing on Mac under XCode, I don’t hand the XCode project to someone developing on Windows, just the files and the MKB. From the MKB file they will be able to create a Visual Studio project.

This would be the only thing that would affect the build process of the different Apps. I took a look through the MKB file and found a couple of odd entries, entries that looked like they pertained to processor. These entries were in the iOS section. Now, I didn’t think there was anything in the project file for processor selection, that happens as part of the build process, AND I didn’t recognise the config options, I certainly hadn’t put them there. Now, I’ve had this before when an older version of Marmalade has added some options, or the options were necessary at some stage, but the system has evolved – yet the project has not been cleaned up.

I deleted the options and rebuilt… Success!

Quickly loaded the app onto my device… fail!

Not disheartended though, the failure was a memory issue. A quick check of my memory configs and I noticed that I don’t have enough memory allocated against the new devices ( as decided by screen resolution ). I’m testing on an iPhone7. Change, compile, deploy… fail!

It got further though… This time it is complaining that the TME databse is invalid. The MagicNo that I used to identify the database and to check endianness, is wrong. I figure that this is a 64 bit issue… I check my definitions of u32 ( being an unsigned 32 bit ) and the definition is unsigned long. Longs change to 64 bit, so I’m reading 8 bytes for the MagicNo and not 4 bytes, I should have used int. I check all the type definitions, check all the places that I’m using longs in the project. Change, compile, deploy… fail!

This time no error message, just crash straight out. So I add more logging and identify the image cache sorting routine. It’s using the c++ qsort function to sort a series of pointers to objects… in the code I noticed some funky casting going on, which happens to be using *(u32*) – that should be using longs. Change, compile, deploy… fail!

Hmmm… more tracing and I find another sort routine! So I change that and then search the code for any code that is doing a similar thing. Change, compile, deploy… success!

A quick play through and everything looks ok!

I upload to app store and the upload fails. It doesn’t like the binary. The reaon – it’s because the payload has the iTunesArtwork embedded in it, and Apple stopped doing that a while ago. Change, deploy, upload… success!

Download the app and everything is ok. So I push a version to external testing. This requires Apple to review and clear it. At 1:45 the app is cleared. I’m now ready to externally test. I really need to test against all the new devices that have been released by Apple over the last few years. Resolution will be the issue…

But… we’re on. This means that I can now push a new version of LoM and DDR out and buy myself a lot more time to transition to a new system.

Related Posts:

The Lords of Midnight and Doomdark’s Revenge

Image

DDR_LOM_advert

Related Posts:

  • No Related Posts

Are we there yet…?

lordsofmidnight_avatarI should be working, but today has been a nice day, and I’ve been a little distracted. I’m at the end of week 5 for Timbles, and on the whole, everything is coming along fine with that.

However, I can’t help myself but think about the last 7 months. During that time I have managed to release The Lords of Midnight for iOS ( iPad, iPhone, iPod touch ), Android, Blackberry Playbook, Blackberry Z10, Mac OSX, Microsoft Windows, and Kindle Fire. I find it odd, that I often berate myself for not having brought all the versions to market as quickly as I had intended, however I need to remind myself that there is only me for the majority of the time, and support from Jure for the graphics, and I am only working on it part time.

With the release today of the Windows version, I feel close to wrapping up this little chapter that started… well it’s hard to say when it started. 30 years ago with the release of the original game, 24 years ago with my work on the DOS version, 14 years ago with my Windows version, 5 years ago with the opening of the Apple App Store and approaching Mike about releasing it for iOS, 2 Years ago when Mike finally said yes, or 9 months ago upon his death.

On Monday I intend to try and build a beta Windows 8 Phone version that will allow me to get a Windows 8 Phone through a Microsoft/Marmalade promo programme. This is how I approached the Blackberry versions. With full acceptance from Microsoft after that, the Windows 8 Phone version should be available in their store later this year. Not before the end of August I suspect, mainly because I have a 3 week holiday coming up. Once that is done, I don’t think I will be looking at any other platforms, although I must admit, I would love to see it on a console in some fashion…

There is still a lot I would like to do with LoM, but that will have to wait. I intend to push out a couple of updates this year, there are some new features for the mobile versions, and no doubt some bugs in the desktop versions. But my main focus will be Doomdark’s Revenge now. Only after that is released can I really take stock of the games and come up with some major grand plan. I would like to release one major update every year, and I do have the ideas that would fit into that category.

The last seven months have been more hectic than I imagined, the next seven months I suspect will be much more so. I must remember to take more time to think…

Related Posts:

  • No Related Posts

Lords of Midnight & Doomdark’s Revenge

Watch this space…

Related Posts:

Doomdark’s Revenge


I know it’s been a while since I posted or did anything on this project, but I finally got round to doing something again today.

Firstly, I wrote a lot of code for DDR back in October 2006, I had a good few programming sessions on it, and then as usual faded away. I coded most of the NPC’s AI; Follow Liege, Follow Foe, Go after Object, Go home, Do Nothing, Approach a Lord, Pickup Objects on their travels, and Move. I coded the moving mist and wild thing regeneration. I also coded most of the battle code… and then I got distracted by shiny objects.

Since then I’ve changed computers and compiler; so loading up the project yesterday I found that it didn’t compile in a big way. So tonight I have mainly spent all the time fixing compiler issues… and there are an awful lot of them.

One of the other problems I have had with the project is that the graphics are getting so complicated that while running in debug mode, the project runs a little slow. I’ve been putting up with it because it isn’t so bad in Release mode but slowly it has been getting me down and distracting me from the issues. It’s hard to test logic if the frontend isn’t working properly.

I’ve wanted to move the graphics subsytem to make use of the hardware. By moving the 2d logic to use 3d cards I would be able to massively speed everything up. However, I’m not a 3d programmer and again the task just keeps distracting me away from things.

I had a word with Jon Alma today who has been working on the Legends Engine and hopefully he is going to knock up a quick wrapper for some OpenGL stuff that will allow me to move the graphics forward and solve the speed issues.

So today I felt that I made a little progress…

Related Posts: