Tuesday 18 January 2011

Reverse Engineering the Abandonware Game "Ignition"

Ignition has always been one of my favourite racing games. It had a quirky charm that was reminiscent of Micro Machines, but set in beautiful outdoor environments.

It's now one of the most prominent cases of Abandonware ever. First published by Virgin Interactive, which was acquired by Titus Software, which then became Avalon Interactive. Both Titus and Avalon no longer exist. So who owns the rights to the game (and more importantly who has the source code) is a mystery.

The other day I decided to take a look at the files that come with Ignition, I wondered if there was anything salvageable for an indie game developer. Perhaps I could knock together a level viewer or mod the game. The first thing I noticed is that Ignition uses a lot of different file formats.


There is one TGA image, but that's just of the Virgin Interactive logo, some of the sounds are WAV, but others are another mystery format. However, some of the extensions give away what they are. There are .PIC files and .MSH which I assume are images and mesh files respectively. There is also a .TEX, some other image file perhaps?

I fired up a hex editor and began work reverse engineering the .PIC file. The first thing I tried to do was to render the latter part of the data as RGB bytes. I assumed (wrongly) that it would be a 24 bit image. All I got out of it was a garbled mess, except for a couple of rows near the top of the image which were all different colours. It then occurred to me; this is a palette based image and those two rows of colour are the palette.

Now that I knew what I was looking for, things got easier. I looked at the beginning of the header and found a couple of familiar numbers; 640 and 480. Those bytes were obviously the dimensions of the image. With that in mind I could read backwards from the end of the file for 640 * 480 bytes and assume that that would be where the end of the header (and probably the palette data) was.

Finally, with a bit more experimentation, I found the start and end of the palette and some other numbers the use of which still eludes me.

To sum up, here is the header structure of the PIC image file that Ignition uses:

typedef struct PICHeader {
    INT file_size;
    SHORT magic; //Always 38144 (or 0, 149 in separate bytes)
    SHORT width;
    SHORT height;
    SHORT unknown1;
    SHORT unknown2;       
    BYTE unknown3[50];
    SHORT palette_size; //I thought this was palette size - but it's not, it's always 776
    BYTE unknown4[6]; //Always zeros, probably reserved
    BYTE palette[256*3];
    SHORT unknown5; //In one file this was the number of bytes after and including this one, but not in others (??)
    BYTE unknown6[4]; //Seen (0, 0, 1, 0), (4, 0, 1, 0) - probably orientation (e.g flipped image)
} PICHeader;

Every byte beyond the header is an index into the palette for the pixel colour. I now have a simple little program that converts from PIC to TGA. If anyone has any clue what any of the other numbers means then let me know.

Now onto the other... probably more complicated... formats.

60 comments:

  1. Hello there, sir!
    I'd love to know if you ever came back to this topic or if you plan to. I love this game sice 1997 and I'm interested in getting every single bit of information about it I can get.
    I'm not a programmer, though. Just a occasional modeler and texture artist. Therefore I'm obviously most interested in *.msh and *.tex files. Have you tried to research them?
    Do you plan to publish the converter you created?
    Thanks in advance!

    Cáno

    ReplyDelete
  2. The best solution so far would be to run Ignition in the DOSBox Debugger to see the Assembly code and understand how to open the .msh files.

    ReplyDelete
  3. @Jędrzej My enthusiasm kinda tailed off when I took a look at the MSH format. I'll probably get back to it some day.

    I can't think where I put the converter but it shouldn't take me long to create another one (the hard part was working out the format). I'll post back here if I find time to do that.

    ReplyDelete
  4. This comment has been removed by the author.

    ReplyDelete
  5. I ripped the textures using 3D ripper DX. It rips all the textures in ram, so If you enter a track, you get all textures in dds format (I oppened them in blender 3d). This program should also rip 3d models, but there is a transparent plane in front of the camera, and it just rips a plane.

    ReplyDelete
    Replies
    1. I tried using 3DRipperDX and GLXtractor on both 3DFX and Windows verions but nothing worked at all. I'm using Windows 7 (so I used dgVoodoo and a patch to run the game). Could you please tell me how you did it?

      Delete
    2. It worked with nGlide but the effects were, as you said, a bunch of 0kb *.obj files.
      I got my hopes high with another OpenGL wrapper (OpenGLide_009rc7), because it made GLXtractor work. It also ripped the textures well (in *.png format). It even produced some kind of models but they were just a complete mess of flat triangles. So close.

      Delete
    3. In fact it resembles the opening scene (top letf viewport):
      http://s17.postimage.org/kjk97xq7h/Bez_tytu_u.png
      But it's completely flat and as a result useless. :(
      Heartbreaking.
      I tried fiddling with settings but to no avail.

      Delete
    4. This comment has been removed by the author.

      Delete
    5. This comment has been removed by the author.

      Delete
    6. I tried glxtractor, I could not scale the flat object resulting from the capture... there was another opengl extractor, I'll try to find it.

      Delete
    7. It has something to do with "z buffer", the objects are flat because the buffer is not activated.. Dgvodoo has a "w buffer" option, but it runs on directx...

      Delete
  6. If anyone is interested, I've set up a GitHub repo for tools here: https://github.com/Kazade/Ignition-Tools

    ReplyDelete
    Replies
    1. This comment has been removed by the author.

      Delete
    2. This comment has been removed by the author.

      Delete
  7. How can I contact you? I'm interested in ripping ignition 3d models to make a PSP homebrew version of the game. Thanks!

    ReplyDelete
    Replies
    1. This comment has been removed by the author.

      Delete
  8. I want to contribute to this aswell . Time has passed but I could model 3D tracks , cars and create textures . I tried to build your converter but with no success .

    ReplyDelete
  9. After installing the game, i noticed that there were more than significant improvements in the game. There were way more factions that we were able to choose. All those factions had many different, special powers and functions. Such as Teutons with excellent heavy infantry and Mongols with nice light cavalry. locker codes

    ReplyDelete
  10. Kids these days invest the greater part of their energy in playing electronic diversions on the PCs. The ubiquity of these recreations lies in their best amusement play. Children can appreciate every one of the offices that grown-ups have in these recreations they can drive autos furthermore they can get some of them for them self's. http://pokegogpshack.com

    ReplyDelete
  11. Spot on with this write-up, I truly feel this amazing site needs a lot more attention. I’ll probably be back again to read through more, thanks for the information, find more info

    ReplyDelete
  12. Software engineering is one of the lucrative careers these days and it can be seen that almost every field of work today demands for software engineering qualifications in its candidates for certain particular professions.cheap Revit 2016

    ReplyDelete
  13. Geographically, North America is estimated to lead the market during the forecast period, with its share in the global market already exceeding 30%, which is due to increased use of cloud-based software.buy SolidWorks 2012

    ReplyDelete
  14. solidworks-2017-premium-crack/
    freesoftsfiles.com
    SolidWorks 2017 Crack and Keygen included is yet another new form that has been discharged as of in the not so distant future. There are numerous other comparative programming projects that take the necessary steps simply like solidworks. In any case, there is not a

    ReplyDelete
  15. Apparently an information driven design is the thing that separates a diversion motor from a bit of programming that is an amusement however not a motor.http://www.hack4clashroyale.com

    ReplyDelete
  16. Hey what a brilliant post I have come across and believe me I have been searching out for this similar kind of post for past a week and hardly came across this. Thank you very much and will look for more postings from you. agen judi online

    ReplyDelete
  17. There are various plays of nourishment appear. This show is the more prominent digital broadcast that can be viewed at YouTube moreover. You might likewise want to tune in about the Company where I do work which gives best imaginative author India which can make your show progressively prevalent. 로투스바카라

    ReplyDelete
  18. If you have a very basic circuit, your PCB manufacturer will likely recommend the use of a single-sided PCB. PCB reverse engineering services Moreover, for low-quantity or prototype PCBs commonly needed by design engineers, the cost for producing a handful of PCBs was extremely prohibitive with traditional assembly techniques.

    ReplyDelete
  19. Thankful to you for peopling get the information they require. Remarkable stuff obviously. Keep up the titanic work!!! 토토사이트

    ReplyDelete
  20. I favor the entire group of products, Considered truly loved, I want more information. about this, thinking about that it's fairly good., Many thanks a great deal with regards to displaying. windows activator

    ReplyDelete
  21. Great job for publishing such a beneficial web site. Your web log isn’t only useful but it is additionally really creative too. There tend to be not many people who can certainly write not so simple posts that artistically. Continue the nice writing 해외배팅사이트

    ReplyDelete
  22. I wanted to thank you for this excellent read!! I definitely loved every little bit of it. I have you bookmarked your site to check out the new stuff you post. sexy gaming

    ReplyDelete
  23. You have given such wonderful information through this blog. Thanks for giving such great information. Keep posting. pcb copy.

    ReplyDelete
  24. Today, the most popular PCB assembly technique is surface mount technology (SMT), which is a vast improvement over earlier assembly techniques such as through-hole assembly. FastPCBunion.com You do not want to learn about surcharges once the prototype PCB production begins.

    ReplyDelete
  25. printed circuit board assembly, I am impressed. I don't think Ive met anyone who knows as much about this subject as you do. You are truly well informed and very intelligent. You wrote something that people could understand and made the subject intriguing for everyone. Really, great blog you have got here.

    ReplyDelete
  26. I truly appreciate this post. I’ve been looking everywhere for this! Thank goodness I found it on Bing. You’ve made my day! Thanks again!
    Astrology Reading,
    Lord Ganesha Pooja,
    Jai Hanuman Pooja,
    Daily Horoscope,
    Astrologer in California,

    ReplyDelete
  27. Very appreciated post. Thank you for sharing this post with us. 경마

    ReplyDelete
  28. The heart beats due to the electrical activity of the electrical system.
    토토사이트

    ReplyDelete
  29. What’s up everybody, here every one is sharing these knowledge, thus it’s fastidious to read
    this web site, and I used to pay a quick visit this website all
    the time.카지노사이트탑

    ReplyDelete
  30. Thank you for some other informative blog. The place else could I get that kind of info written in such a perfect approach? I’ve a challenge that I’m simply now working on, and I’ve been at the look out for such info.카지노사이트

    ReplyDelete
  31. Very appreciated post. Thank you for sharing this post with us.
    https://www.astrologerrk.com/

    ReplyDelete
  32. This comment has been removed by the author.

    ReplyDelete
  33. e rebufvalid, obviously. We regularly base our decisions on instinct rather than hard realities. f individuals brutally when we sp
    토토사이트

    ReplyDelete
  34. Your blogs are great.Are you also searching for Nursing evidence-based practice writing services ? we are the best solution for you. We are best known for delivering the best nursing writing services to students without having to break the bank.

    ReplyDelete
  35. What an informative post you have here. In search of statistics assignment writing help online, we offer nothing less of top-quality writing help.

    ReplyDelete
  36. The high-definition sports broadcasting site broadcasts sports games live online and provides free overseas soccer broadcasts. Free broadcast categories include baseball broadcasts, basketball broadcasts, Champions broadcasts, and overseas soccer broadcasts, and real-time live scores are also provided. Especially, it provides a great streaming environment to watch EPL European football.
    무료 스포츠중계

    ReplyDelete
  37. Toto Game in Korea is a game in which the winning amount is paid according to the dividend rate after investing in betting money online in sports games. Sports betting is available on Toto sites, focusing on famous sports games such as overseas soccer, MLB, and NBA.
    토토사이트 사이트 방문 안전놀이터

    ReplyDelete
  38. Toto sites, which specialize in Sports Toto Proto, are often old private Toto sites. First-generation Totosites often refer to safety playgrounds that focus on sports betting. 토토사이트 안전놀이터
    mujuru.com

    ReplyDelete
  39. Private Toto is an online company that provides Internet sports betting. Various betting items will be provided to Toto users and the winner will be refunded according to the set dividend rate. And among Toto sites, private Toto sites with excellent capital are called safety playgrounds.
    sa000 토토사이트 안전놀이터

    ReplyDelete
  40. Wow, I sympathize. Me too, Ignition has always been one of my favorite racing games. Thank you for sharing good material, and I plan to visit often after bookmarking. I would like to see more good content :) 토토 사이트

    ReplyDelete
  41. Do you need online class help? Tell us to Do My Class Online For Me and we will provide you the best online class takers. Take my online class for me in cheap!

    ReplyDelete
  42. I think this is one of the most significant info for me. And i am glad reading your article.But wanna remark on some general things, The web site style.is wonderful, the articles is really nice : D. Good job, cheers.I read this paragraph fully about the comparison of latest and previous technologies, 먹튀검증커뮤니티

    ReplyDelete
  43. Hello, I like to play a few stunning games, for example like keno live. What's your perspective on this game? I truly need to play on some cash in this game. I truly believe should do practical withdrawal following to winning.

    ReplyDelete

  44. There are, nonetheless, ways of making the lowland stronger and reestablish it to great wellbeing. With these
    먹튀폴리스

    ReplyDelete
  45. Hey! Do you want to make some extra cash? I can share with you my favorite service which I use personally for making extra money! Register here 9winz deposit and I can surely say that you will crush on it! I wish you luck

    ReplyDelete
  46. I am glad to find this post. Thanks for sharing with us.. Here is a good news for the travelers: The Indian government restored the Indian 5 years e-Tourist Visa for United Kingdom travelers, so check out the new updates and guidelines issued by the government.

    ReplyDelete
  47. The Luxury Desert Safari Tour was a perfect blend of adventure and relaxation. From thrilling dune bashing to lounging in a Bedouin-style camp under the starry desert sky, it was an incredible journey.

    ReplyDelete