Tuesday 21 June 2011

Getting firefight to work on win7

Firefight's a game made by chaos works, in 1996

Surprisingly it works on windows 7 with little effort, and without the need to use windows compatibility mode

After a little debugging, the reason it doesn't run on windows 7 (both LOADER.EXE and FIREFGHT.EXE) is because of a bug in the program using SetWindowsHookExA with thread id as null

The bug doesn't manifest itself under win98

The thread id value is filled after this call instead of before it

I didn't dig deeper into this, this probably changed after win98
from msdn: "An error may occur if the hMod parameter is NULL and the dwThreadId parameter is zero"

there's also a small cd check in FIREFGHT.EXE, patching this makes the game work

I've uploaded the patched files here, if you need them
http://www.mediafire.com/?omab7605dwwh7ek

ps.

if you want to get this game, you could probably find it on the internet somewhere
if not, send me an email

53 comments:

  1. Please, I can't find this game! Send me. My e-mail julijbe@gmail.com

    ReplyDelete
  2. Please, Ibeg you send me this game to my email
    abner.strokes182@gmail.com
    I used to play this game on my computer when i was 4.

    ReplyDelete
  3. Hi! I can't find this game anywhere! And my original copy was stolen way back...

    My email is donut_master1@hotmail.com

    Thanks!

    ReplyDelete
  4. Hey Simon,

    Good job diagnosing the issue and thanks for the patched files! You are a champion. I got Fire Fight working yesterday on Windows 7 with your files straight away after having failed previously and assuming I'd have to set up Windows 98 VMs to get it off the ground.

    Two questions for you. Firstly, I've encountered a graphics issue that can't seem to be reliably overcome using compatibility mode options. Basically on the loading screen (Electronic Arts-Epic Mega Games-Chaos Works-Fire Fight) all the colours distort and come out in vibrant pinks and yellows and the like. When the mission loader comes up, it's fine colour wise and generally the missions are too. But occasionally, part way through a mission, the colours will go crazy making it virtually unplayable.

    I know a workaround, which I use to resolve the same issue on Windows 7 with Age of Empires II, and that is to kill explorer.exe from Task Manager and manually restart it afterwards. Something to do with the way Windows 7 handles colours and the Aero desktop I believe. Anyway, that solves the problem no worries, but I'd like to put it in batch script form (like here: http://superuser.com/a/178741). That would be easy too, but I want to use the LOADER.EXE Play button to start it up, and it calls FIREFGHT.EXE directly, such that I can't use command line calls before and after it to kill and restart explorer.

    Any suggestions on this one? Have you encountered it too? Perhaps the exe could be decompiled and directed to call the batch script instead? Or the code optionally embedded into LOADER.EXE? Incidentally, what tool did you use to reverse engineer the executables in the first place? I wouldn't mind playing around with it a bit.

    Second question is do you know where Fire Fight stores its Configurations (i.e. save games)? I've tried searching the game's directory, Program Files, C:/ and the registry to no avail. I'd like to be able to back up the files to save my progress, but I just can't find them!

    You can email me at matt.hellyer@gmail.com. Thanks heaps for your assistance.

    Cheers,

    Matt

    (P.S. I take it from your domain name that you are a fellow Aussie? Represent :-))

    ReplyDelete
  5. omg dude I need this game badly! My Cd scratched. Can you send it to my email? marcelo_leonardo@hotmail.com Thanks

    ReplyDelete
  6. I'd love to play this game again. It was one of my favorites as a kid. If you'd send a copy to patlevyhfx@gmail.com, if you are still viewing these comments, I'd appreciate it.

    ReplyDelete
  7. @folks needing the game: I've uploaded a torrent on thepiratebay, keep it seeded! Bandwidth is costly where I live, so it will be appreciated

    ReplyDelete
  8. thepiratebay has banned my account again, have no clue why, happened last time i uploaded this same torrent
    here's an alternative link
    https://www.google.com/search?q=%22firefight%28parts%29%22

    ReplyDelete
    Replies
    1. I have tried your files but I can only the loader seems to work - I am running windows 7 64 bit so whether that is the problem I am not sure. The log seems to imply that it cannot load an ini file

      Exec info: command 'C:\Users\Gralf\AppData\Local\Temp\firefght.exe spr_safe sos_safe loader=H:\GAMES\FIRE FIGHT CD\LOADER.EXE error=0' working in 'H:\games\fire fight cd'
      Program info: optimized, limited diags, compiled May 21 1996 22:28:54
      System info: user Gralf, Windows version 6.1, physical memory: 4096.0MB
      DirectX info: dplay failed, ddraw ok, dsound ok, status failed

      ---log begin---- Sun Jan 27 06:51:52 2013

      1lg_comm(137) log initialized
      1lg_comm(137) cmd_line initialized
      1cw(141) command line: 'C:\USERS\GRALF\APPDATA\LOCAL\TEMP\FIREFGHT.EXE SPR_SAFE SOS_SAFE LOADER=H:\GAMES\FIRE FIGHT CD\LOADER.EXE ERROR=0'
      1cw(149) * unable to load ini file
      1cw(391) * engine initialization failed
      1mm(565) Fast_heap'unknown' destructed
      1lg_comm(80) performing quits...
      1lg_comm(84) deinitializing cmd_line
      1lg_comm(84) deinitializing log

      Engine information

      1lg_comm(75) application time: 00:00:00.0

      ----log end----- Sun Jan 27 06:51:52 2013

      Program status: execution failed
      1cw(149) * unable to load ini file
      1cw(391) * engine initialization failed

      Executing 'H:\GAMES\FIRE error=152'
      <<< EXECUTION FAILED >>>

      any ideas

      Delete
    2. Is it a fresh install? I've never had this problem before

      Delete
  9. Got it working - me being stuping and saving your files in the wrong folder! Doh! Thanks anyway

    ReplyDelete
  10. Hi, Thanks for executable files.
    Now I'm playing the full version of Firefight on "Windows 8" guess "Windows 7" can also be equal. I do it with WindowsXP SP2 compatibility mode, and 640x480 resolution (also compatibility mode option)

    Now, the only downside is that I do without music, perhaps because the game is only 48MB in size.
    Do you have or know where to get the ISO of the game???
    (try moving midi files DEMO version did not work)


    On the other hand if they want to pass the game warn me "dem_argentina (@) yahoo.com.ar".

    Greetings!

    ReplyDelete
  11. Hi Simon,

    Thanks for the response. Yeah, I eventually discovered the location of the save data in the registry after posting. I can't believe it's all stored as binary in that one entry called 'easy'! If only I could decode it so I could derive my stats!

    Another issue I noticed soon after posting the first time was that pressing the 'Network Play' button similarly causes the game to crash before it even loads. My guess is that it suffers the same problem that the single player 'Play' button had. I'd really love to get multi player working again. Would you be able to take a look at it to see if you can work out what's wrong and how to fix it? I'd really appreciate it!

    Thanks for the advice about the tools you used to investigate this issue. I've installed them both and used them to take a look at the EXEs, but I don't really know what I'm doing. Any chance you could help me integrate the 'kill explorer.exe, load and play the game and later exit, restart explorer.exe' modification I'd like to add?

    Your help with both of these would be fantastic. It would be great to restore this classic back to full functionality again.

    Thanks!

    Matt

    ReplyDelete
    Replies
    1. While I'm at it, I thought of something else. When I play the modified version of the game without the disc in, I get no music. When I stick the CD in, the music plays as it would were I running the game directly from the disc.

      Would it be possible to modify the game to look for the music files on the hard drive rather than the CD drive? I determined that the music is stored on the CD like a regular music disc (i.e. it plays in a standard CD player from track 2, like many other games do) and the files can't be "seen" in Explorer on the PC. So I ripped them off in WAV format using WMP. Now, is it possible to get the game to point to them instead of the CD? Now that would be cool!

      Delete
    2. Yea definitely, it wouldn't be hard. I'll try to fix this once I have time

      Delete
    3. I haven't taken a look at the network play issue yet, but I think it's a different problem.

      Delete
    4. Cheers, I'm quite keen to get these issues sorted, but don't really have the skills and experience to do it myself. Happy to learn though if I can be of assistance :-).

      Thanks again!

      Matt

      Delete
  12. Please send me the game compatible with windows XP my id is rajiv.sinha1988@gmail.com

    ReplyDelete
  13. Hi, According to the patch cracked files you uploaded to mediafire, AVG anti-virus detected that both are infected by the malware name "IDP.Trojan.21A2BEFA". Don't mind can double check is it safe to use cause I scared if my entire files is affected by the crack file.

    ReplyDelete
  14. Yes it is safe, I don't distribute malware

    ReplyDelete
  15. Hi again, don't mind you can test the other anti-viruses to check if it contains no malware?

    ReplyDelete
    Replies
    1. I've already answered your question.
      If you don't trust me than don't use it.

      Delete
  16. Hi, Sorry bout the previous reply. Game cracks fine but my daimon tool running FF.ISO has malware.....(For my issue -_-")

    ReplyDelete
  17. please send me the game
    bjm4504@gmail.com

    ReplyDelete
  18. I have a Problem, I changed the resolution to 320x240 and as it seems modern graphic cards are not able to use this resolution, now I'm trying to find the config to change it again, cause the game won't even start anymore. Can yoz tell me where the config and the savestates are? They aren ot in the gamefolder so...

    ReplyDelete
  19. hi...

    i found a website where u can download REEEALLY old games for free (as long as you are willing to take either a dl-speed of about 5kb/s or donate some $ for better speed). i was searching for the game like forever, now i got it there, unrared the files and now i get a strange error message when i start the firefght.exe: 'cwe.ini:/spr/use_640x480' no such label [Text] engine initialization failed. no idea what it is actually telling me, but if you still can hand the 'original' game (files) to me it would be very nice. my email: "sayujiro@aol.com". thank you in advance, greets Sayu

    ReplyDelete
  20. Hi Simon, I tried that alternative link you showed me up there, the loader is still the only thing that seems to work :(

    If you don't mind, could you please send me a copy of the original game that could run on Windows 7, to hnkul447152@hotmail.com? Thanks, much appreciated!

    ReplyDelete
  21. Hey buddy
    I downloaded a copy of it and patched it with your files but it requests a cd in the drive. Can you send me your copy?
    foo.fighter.nz@gmail.com

    ReplyDelete
    Replies
    1. Sure you patched it correctly? Games quite large so not very convenient, I put up a torrent a long time ago but it always died with me being the only seeder :(

      Delete
  22. Excelent work. I had original copy of this game. One of the coolest, just behind Metal Marines.

    Regards, Beegees.

    ReplyDelete
  23. Shame the music doesn't work!

    ReplyDelete
  24. Music solved!

    I used a no cd ingame music package for carmageddon and it works like a charm.

    Send me a message and i will send the whole game with music and all.

    ivan.larsson@hotmail.se


    Happy Gaming!!!


    Ivan

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

      Delete
  25. It looks like you used the original exe file and not the 1.2 update. The 1.2 works nice on win7 x64 so i guess they fixed it. I diidnt check for cd-check routine but i works anyway and never stops.
    Their is a graphics improwement in the update to so if you want to try it just send me a message.

    ivan.larsson@hotmail.se


    //Ivan

    ReplyDelete
  26. can someone please send me a copy of the game. my email is costan778 @ hotmail.com. Thank you very much

    ReplyDelete
  27. I can only get the loader to work. When I hit Play, I get an error:
    "Fire Fight Error
    Undefined error occured during execution of Fire Fight
    Solution
    Restart Windows and play again"

    I restart and get the same error. When I run FIREFIGHT.EXE, I get a different error.
    "'cwe.ini/spr/use_540x400' no such label [Text]
    engine initialization failed

    See C:\Users\Alex\AppData\Local\Temp\FIREFIGHT.LOG"

    Here is that log:
    Exec info: command '"C:\Users\Alex\Desktop\FIRE\FIREFGHT.EXE" ' working in 'C:\Users\Alex\Desktop\FIRE'
    Program info: optimized, limited diags, compiled May 21 1996 22:28:54
    System info: user Alex, Windows version 6.2, physical memory: 2048.0MB
    DirectX info: dplay failed, ddraw ok, dsound ok, status failed

    ---log begin---- Sun Jan 24 11:40:59 2016

    1lg_comm(137) log initialized
    1lg_comm(137) cmd_line initialized
    1cw(141) command line: '"C:\USERS\ALEX\DESKTOP\FIRE\FIREFGHT.EXE" '
    1lg_comm(137) mmu initialized
    1lg_comm(137) registry initialized
    1lg_comm(137) xio initialized
    1io_Txt(748) * 'cwe.ini:/spr/use_640x400' no such label [Text]
    1cw(391) * engine initialization failed
    1mm(565) Fast_heap'unknown' destructed
    1lg_comm(80) performing quits...
    1lg_comm(84) deinitializing xio
    1lg_comm(84) deinitializing registry
    1lg_comm(84) deinitializing mmu
    1lg_comm(84) deinitializing cmd_line
    1lg_comm(84) deinitializing log

    ReplyDelete
    Replies
    1. Thanks very much for any assistance! I can't wait for that nostalgic feeling when I hear "Plasma Gun" and "Swarmers"! - Cheers

      Delete
    2. Nevermind! I turned the file into an .iso, mounted it, and it worked flawlessly!

      Entire air and ground defenses has been destroyed.

      Delete
  28. Can someone please send me a copy of the game, please..
    jasmene782@gmail.com

    ReplyDelete
  29. Would appreciate very much if someone could send me a copy.
    scott44441@gmail.com

    Thanks.

    ReplyDelete
  30. please send me this game, I'm very want to play it, it's game of my childhood
    baterfield@i.ua - it's my E-mail

    ReplyDelete
  31. please send me this game, I'm very want to play it, it's game of my childhood
    baterfield@i.ua - it's my E-mail

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

    ReplyDelete
  33. It would be great if you could send me this game along with patches & step by step procedure to make it work on windows 7 pro
    My email id is Shantilal19690811@gmail.com

    ReplyDelete
  34. Hey Simon Thanks for all the efforts I too seem to be having issues with getting back to this game could you please send me a copy.
    Thanks Much Appreciated.

    ReplyDelete
  35. Hi Simon, I have the original CD, but am unable to download your file from Mediafire. I get errors each time I try to download. Are you able to send me a copy of the file in question? anthray@gmail.com
    Cheers from a fellow Aussie

    ReplyDelete
  36. For those that would like to play Fire Fight with wine on linux or mac you need to add the game directory to wine drives. You might need to install v1.2 patch files (https://www.classicdosgames.com/files/patches/epic/ff12up.exe) before you replace the executables with the ones provided here. Also make sure that there are only these .exes there and no Loader.exe or loader.exe and such.

    I'm still missing music from my nostalgic experience but it's still great to play again one of my favorite games while I was growing up. Thanks a lot for the fix.

    ReplyDelete
  37. Hey,I tried to run it with loader.exe but it asks for thd cd to be put in the drive. What can I do about that?

    ReplyDelete
  38. Hello Simon,

    I have the original CD and I but am unable to download your file from Mediafire.

    I get errors each time I try to download.

    Are you able to send me a copy of the file in question? marios@evripidou.me

    Thank you,

    Marios

    ReplyDelete
  39. To run the game on Windows 7:
    - You need the patched binaries
    - You need to add the binaries to anitivirus exceptions
    - You need to enable compatibility mode and 256 colors for firefight.exe
    - You need to run the loader, and in options select resolution 640x480

    Without the resolution change, game won't run - modern drivers don't allow entering 640x400.

    ReplyDelete
  40. You should be able to find the full 381MB CD image (which includes in-game music) in an archive at abandonware websites like myabandonware daht com.
    The archive will have a .iso, a .mds and a .mdf file. To get in-game music, you need to mount the .mds file, not the .iso. The .iso doesn't have the track info required to play in-game music.
    I ran this game in Wine on Linux.
    1) I first used the cdemu program to create a virtual cdrom for from the .mds file. This created a /dev/sr0 virtual cdrom device:
    cdemu load 0 FireFight/CD/FIREFIGHT.mds
    2) I mounted this cdrom:
    sudo mount /dev/sr0 /mnt/cdrom
    3) Running winecfg, I made sure /mnt/cdrom was available at D:.
    4) Then I installed the FireFight 1.2 update (which was also included in the game archive):
    wine FireFight/ff12up.exe
    5) Finally, I switched to D: in wine and ran the game:
    cd .wine/dosdevices/d\:
    wine ffstart.exe

    ReplyDelete
  41. No matter what I try, I can't download your file because my browser, any browser I try, says it contains a virus. :(

    ReplyDelete