Disclaimer:
This tutorial is to help those that wish to create aircraft for IL-2 Sturmovick 1946. Firstly, I am not a java expert and I will never claim to be, This is just how I created the first Beta version of my Blenheim Mk IVF.
-Newy
Required Tools:
J2re-1.3.20
J2sdk-1.3.1.20
Classresolver.jar
Classhasher.jar
DjDecompiler
SFS Extractor v20 beta12
IL2 Java Class Paths for UP2.01 (This contains all the class files used in the UP2.01 in the correct structure)
All The tools required for this work are available here.
Let's Get Started:
Step 1:
Create a folder called IL2 Aircraft Building.
Step 2:
Inside the IL2 Aircraft Building folder create a folder called Downloads.
Step 3:
Download the Tools listed in the Tools Required Section into the Downloads folder.
Step 4:
Extract the IL2 Java Class Paths folder from the IL2 Java Class Paths for UP2.01 into
the IL2 Aircraft Building folder.
Step 5:
Create a folder called SFS Extractor
Step 6:
Extract the files from the SFS_Extractor_v20_beta12.rar into This folder.
Step 7:
Create a folder called Extracted IL2 files.
Step 8:
Using SFS Extractor,extract all of the Blenheim related files to the Extracted IL2 Files folder.
Under Extracted IL2Files/3do/plane copy the BlenheimMkIV(Multi1) and rename it BlenheimMkIVF.
Step 9:
Copy the Gunpod.msh and Barrels.msh files from the BlenheimMkIF folder into the
BlenheimMkIVF folder. Now open the hier.him for the BlenheimMkIF and copy the lines for both
mesh files to the BlenheimMkIVF hier.him.
The 3D Model work is done, the next stage is to do the class file work.
Step 10:
Install J2re-1.3.20 and J2sdk-1.3.1.20
Step 11:
Install DJ Java Decompiler 3.11
Step 12:
Go to IL2 Aircraft Building/IL2 Java Class Paths/Classfiles/com/maddox/il2/objects/air then
open the BLENHEIM1F.class file using DJ Java Decompiler.
Step 13:
Rename the three BLENHEIM1F entries to BLENHEIM4F.
Step 14:
Change the line Property.set(class1,"meshName","3DO/Plane/BlenheimMkIF/hier.him");
to Property.set(class1,"meshName","3DO/Plane/BlenheimMkIVF/hier.him");
Now change the line Property.set(class1,'FlightModel","FlightModels/Blenheim_MkIF.fmd");
to Property.set(class1,'FlightModel","FlightModels/Blenheim_MkIV.fmd");
Step 15:
Save as BLENHIEM4F
Now comes the fun part :)
Step 16:
Click on the Compile button in the top right hand side menu.
The top 2 should fill in automatically.
Change the Destination directory to
IL2 Aircraft Building\IL2 Java Class Paths\Newclassfiles\
Under Java Complier navigate to your install of JDK1.31_20\bin\javac.exe.
Under both Class Path and Source Path navigate to
IL2 Aircraft Building\IL2 Java Class Paths\Classfiles\
Next tick the box next to Target and the select 1.3 from the drop down menu.
Now hit the Compile button. All going well it should compile. If you get an error, then go to
the end of this tutorial for fixes to some of the common errors.
Now to check your newly complied class file, go to the Newclassfiles folder under the
IL2 Java Class Paths folder. There should now be a com folder.
Step 17:
Navigate to com/maddox/il2/objects/air and there should be two class files.
Delete the BLENHEIM4 class file as it already in the game.
Step 18:
Go back to your IL2 Java Class Paths folder and place a copy of your cmd.exe there.
Open the cmd.exe and type java -jar classhasher.jar Newclassfiles\.
Then hit enter.
You should now have a newly hashed class file in your IL2 Java Class Paths folder
Now to combine all the parts the make a usable mod.
Step 19:
Create a folder in your Mods folder called BelnheimMkIVF. Then inside that folder one called
3do. Then again inside that folder one called Plane.
Mods/BlenheimMkIVF/3do/Plane
Step 20:
Copy your newly created class file into the BlenheimMkIVF folder.
Step 21:
Copy and paste a copy of the BlenheimMkIVF folder from the Extracted IL2 files/3do/plane
folder to the newly created Plane folder.
Step 21:
Add the following lines to your .ini files
air.ini
BlenheimMkIVF air.BLENHEIM4F 1 gb01 DESERT
plane_ru
BlenheimMkIVF Blenheim Mk.IVF, Beta
A weapon_ru entry is not required for this mod.
Step 22:
Create a folder called BlenheimMkIVF in your skins folder. This beta will use the same skins
as the BlenheimMkIF.
Step 23:
With any luck when you start your game, your new beta Blenheim MkIVF should be there.