All-Aircraft-Simulations
Bf-109G10, Bf-109G14 with optional MG151/20 loadout - Printable Version

+- All-Aircraft-Simulations (https://allaircraftsimulations.com)
+-- Forum: IL2 MODS Download & Discussion (https://allaircraftsimulations.com/forumdisplay.php?fid=267)
+--- Forum: IL-2 4.09m (https://allaircraftsimulations.com/forumdisplay.php?fid=348)
+---- Forum: IL2 MODS Discussion Section 4.09m (https://allaircraftsimulations.com/forumdisplay.php?fid=292)
+---- Thread: Bf-109G10, Bf-109G14 with optional MG151/20 loadout (/showthread.php?tid=51206)

Pages: 1 2


Bf-109G10, Bf-109G14 with optional MG151/20 loadout - 15/JG52_Riddler - 13.11.2007

I think I found the solution. Looks like it's just one line of code.

I downloaded the JDK and I'll try to compile the solution when I get home.

I really hope the elusive BoB will be more mod friendly, at least for skins, squadrons, ground objects and such...I mean...why encrypt buildings textures, gunsight reticles, pilot skins ...


- elephant - 13.11.2007

Great news! Smile
If task finally accomplished, how about an F-4B as well?


- Guest - 13.11.2007

would be nice if it is one line of code ! Smile


Re: Bf-109G10, Bf-109G14 with optional MG151/20 loadout - SG2_Wasy - 13.11.2007

15/JG52_Riddler Wrote:I think I found the solution. Looks like it's just one line of code.

I downloaded the JDK and I'll try to compile the solution when I get home.

I really hope the elusive BoB will be more mod friendly, at least for skins, squadrons, ground objects and such...I mean...why encrypt buildings textures, gunsight reticles, pilot skins ...
Yes. it's simple for 4.05, but i think in 4.08 you will be have some trouble...


- nuke - 13.11.2007

What about copying all changes from 4.06 to 4.08 into 4.05 and use 4.05 as default-Il2?


- Guest - 13.11.2007

Quote:What about copying all changes from 4.06 to 4.08 into 4.05 and use 4.05 as default-Il2?

^you know it may take something like that to make it happen lol^
without really thinking about it too much mmm the exe is different & im sure that requires something that is within the new sfs file - so we may as well revert back to 4.05 ?
ive often thought should this community revert back to 4.05 ? this way we could pretty much do what we liked - im going to start a thread Smile

the best ive managed so far is moving pylon positions & bomb positions lol thats it !


- 15/JG52_Riddler - 13.11.2007

my idea is this:
add this line to BF_109G10.java (decompiled class) constructor method:

Aircraft.weaponsRegister(class1, "mg151opt", new String[] {
"MGunMG131si 300", "MGunMG131si 300", null, "MGunMG15120MGki 200", null, null, null, null, null, null
});

compile, hash and add to filelist. Will it work or I'm being naive?


- Barbazul - 13.11.2007

Its seems too easy to be real . . . Smile

If you can do that, pls try to remove the bomb rack in the 190 A8.

thx.


- ballenato - 13.11.2007

Yes! and add loadout to F series!


- 15/JG52_Riddler - 13.11.2007

Unfortunatelly I do not speak Java Sad. I used NetBeans to try to build a new 109G10 but I get dependency errors in compile time in the form of "Package does not exist".

I have all those classes compiled I just do not know how to tell the compiler to use them. any help would be appreciated. An equivalent to "Add dependency" in Visual Studio, and reference to a .class file.

For example:
if the java source file references com.maddox.il2.ai.Wing, and I have Wing.class in a folder hiearchy equivalent to fully qualified class namespace/path, how do I reference it? Do I need to decompile everything and build?


P.S. I do not know how to add loadout to F4, probably needs a weapon station defined and that probably means hook in 3D model...


- Barbazul - 13.11.2007

did you try to load the entire app into eclipse?


- elephant - 13.11.2007

The station you mentioned should be the same as in G2, if this offers any help...
Meaning that the bomb rack even MG151 pods .msh files could be retrieved from the G2 folder and the hier.him file of the F4 be edited as the G2 one, (the dimentions are the same), to hook them on. Idea


- ROSOBORONEXPORTCORP - 13.11.2007

Well, there's something more. I think much of the data has to be stored somewhere other than the class files. I tried several techniques to try to activate the Mig-3UD loadouts on the Mig-3 AM38 and the failure of them would seem to support this assertion.

It is good to see the work. I'll talk more later. S!


- 15/JG52_Riddler - 13.11.2007

Made some progress today, figured out NetBeans and how to reference java classes Smile


- 15/JG52_Riddler - 14.11.2007

Some progress has been made, my BF_109G10 compiles. I used classhasher and put the resulting file in files folder, however, if I do that - the game will not run, it does not even show the splach screen Sad


I tried changing the line 137 from
Code:
Aircraft.weaponsRegister(class1, "default", new String[] {
            "MGunMG131si 300", "MGunMG131si 300", null, "MGunMK108ki 65", null, null, null, null, null, null
        });

to
Code:
Aircraft.weaponsRegister(class1, "default", new String[] {
            "MGunMG131si 300", "MGunMG131si 300", null, "MGunMG15120MGki 200", null, null, null, null, null, null
        });

But I do not think it's this particular line since I can not make it work even if I use the original decompiled code specifying mk108 as default weapon. Tried a few others as well.
My guess is it must be some compiler option or I'm missing something...
Hopefully there should be a way to run this thing in debug mode so I can see what the actual error is.

Too bad I'm not Java developer. any Java devs here?