F4Patch Plugins and EXE edits


Falcon 4.0 is a successor of a series of the best flight sims "Falcon" (F-16 simulation) ever available on market. Falcon 4.0 was developed by Hasbro, but later terminated due to financial reasons. A group of flight sims enthusiasts formed of ex and active military personell (mechanics and pilots on various types of military aircraft including F-16s, F-117, B-1, A-4, F-4, F-15C, tank commanders, Patriot ADS officers, SA-3 officers) from all around the world, combined with civilian pilots and a handfull of programmers (including myself) then decided to take over a free-of-charge developement of this sim and prolonged its lifetime for three years past the project termination date.

As said, after the project 1.08 release Hasbro terminated it, but a testing group iBeta took over and released two more compiled versions of Falcon (Falcon4_108i and Falcon4_108i2) with some bugs removed. Falcon4_108i2 was the most stabile released version of this game.
After iBeta dropped it, this group I mentioned above the Realism Patch Group, took it over.

First developement goal of RPG were data edits. These were hex edits of large data files where weapon and vehicle characteristics were stored. By altering these values to match the reality conditions Falcon4 was made far more realistic that it originally was. But some changes could not be made without EXE edits.
I was the fourth and the last programmer that joined RPG (after Poogen, Sylvain Gagnon and Marco Formato).

Since we did not have the code of the Falcon4_108i2 release, we had to hex edit the machine code in the existing exe instead of building a new release version from CPP code.
To do that, a programmer Joel Bierling developed a program that read text files where offsets and old plus new hex data was written. Instead of supplying the general public completely new versions of hacked files, we only had to write changes into text files and then this program F4Patch did the job on local machine.

But not everything could be done just by hex editing data files and exe file. Therefore Joel expanded his progra to be able to run external plugins which could do much more than just hex edits.
For example, new weapons were introduced into the game, like AGM-142, J-7III, Su-30MKK etc..., and all these additions demanded to not just change data structures but also add new 3D graphics (new missile, new aircraft models) to the game.

Plugins I made:
 

Plugins code available here.
Plugins release version and instructions available here.
 

Here`s the work I did in the exe:
 
 


Assembly code for exe hacks available here.

Snapshots available here.

Miran Klemenc, April 15th 2002 1