Special Aircraft Service

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 2 3 [4]   Go Down

Author Topic: SBD-3 & 5 - Bombs Release Gear  (Read 21404 times)

0 Members and 1 Guest are viewing this topic.

Epervier

  • 4.09 Guardian Angel !
  • SAS Team
  • member
  • Offline Offline
  • Posts: 9541
  • I'm French and Rebel_409! Nobody is perfect!
    • Some tinkering here
Re: SBD-3 & 5 - Bombs Release Gear
« Reply #36 on: October 01, 2014, 05:16:38 AM »

Epervier, does the 4.10 version work for you?
The update in first post ? Yes !
Logged
If your results do not live up to your expectations, tell yourself that the great oak was once an acorn too. - Lao Zi -

The Radge

  • Modder
  • member
  • Offline Offline
  • Posts: 1023
Re: SBD-3 & 5 - Bombs Release Gear
« Reply #37 on: October 05, 2014, 07:30:28 AM »

Hi Radge.

Try with this:

Code: [Select]
    private Fuze getFuze()
    {
      if ((this.selectedFuze != null) && (bullets() != 1))
      {
        try
        {
          Fuze fuze = (Fuze)this.selectedFuze.getClass().newInstance();
          fuze.fuzeMode = this.selectedFuze.fuzeMode;
          fuze.setDetonationDelay(this.selectedFuze.getDetonationDelay());
          return fuze;
        }
        catch (Exception exception)
        {
        }
      }
      return this.selectedFuze;
    }

By the way, it worked perfectly for me :)
Thank you very much!
Very soon I will try to upload the mod.

And you try to use Eclipse, and other decompilers as Java Decompiler (JD-GUI), Cavaj, Jode, Fernflower, etc. ;)
I think, then it will be too boring to me, just won't wish and won't have time for that :D
Logged

Dreamk

  • Modder
  • member
  • Offline Offline
  • Posts: 2018
Re: SBD-3 & 5 - Bombs Release Gear
« Reply #38 on: October 05, 2014, 03:07:46 PM »

Recompiling Bombgun and Bomb classes were always a problem - The only solution, and a painful one, was Jabaytes till Loku posted the following sometimes ago - and it works:

"I had same problem when tried to make new bomb,cloned classes with new names dont work even when compiled correctly,game loaded without crash plane appear in qmb window but only option for weapons was Default,than i asked my friend who is skilled with java and he told me its a decompilation problem,to make it work i need add (Object),its a example from BombGun class wich caused problem:

Property.set(class1,"bulletClass", com.maddox.il2.objects.weapons.BombPuW100.class);

add (Object)

Property.set(class1,"bulletClass", (Object)com.maddox.il2.objects.weapons.BombPuW100.class);

now its working without any problem.Maybe it helps you ,and it may solve  some other problem with some classed we had before on other mods."
I tested it and ....it's one of the things that convinced me that Eclipse is the best option for writing and compiling classes for Il2 :))
Logged

The Radge

  • Modder
  • member
  • Offline Offline
  • Posts: 1023
Re: SBD-3 & 5 - Bombs Release Gear
« Reply #39 on: October 05, 2014, 10:35:58 PM »

Quote from: Dreamk
Property.set(class1,"bulletClass", com.maddox.il2.objects.weapons.BombPuW100.class);

add (Object)

Property.set(class1,"bulletClass", (Object)com.maddox.il2.objects.weapons.BombPuW100.class);

Thank you, Dreamk, but I know this thing quite long time, from disperairfield.com (known as ZaPa - Reserve airfield)
With this solution I made some weapons mods, e.g. 45-36 AN.
But here I was asking not for the BombGun......java but for generic class BombGun.
And that's quite different problem I faced, with what Skipper and ton414 helped me ;)

Logged

The Radge

  • Modder
  • member
  • Offline Offline
  • Posts: 1023
Re: SBD-3 & 5 - Bombs Release Gear
« Reply #40 on: October 06, 2014, 01:18:23 AM »

Hello again! :D
I made the patch that will be suitable for all BRG mods.
you can take it here: https://www.mediafire.com/?a9vny7m1bbznp2w

! I ask moderator to put it at the first page of each BRG mod, please (if you find it good, OC ;))
Logged

Epervier

  • 4.09 Guardian Angel !
  • SAS Team
  • member
  • Offline Offline
  • Posts: 9541
  • I'm French and Rebel_409! Nobody is perfect!
    • Some tinkering here
Re: SBD-3 & 5 - Bombs Release Gear
« Reply #41 on: October 06, 2014, 02:12:21 AM »

I made the patch that will be suitable for all BRG mods.

Quote
To have Bomb Release Gear Mod (for SBD-3 or IAR-81 or Ju-87)
working in your 4.12, you need to place this class in the each folder of the BRG mod
and make the replacement.
Little question !
Not compatible whit D3A BRG ?
In theory it should be!
Logged
If your results do not live up to your expectations, tell yourself that the great oak was once an acorn too. - Lao Zi -

The Radge

  • Modder
  • member
  • Offline Offline
  • Posts: 1023
Re: SBD-3 & 5 - Bombs Release Gear
« Reply #42 on: October 06, 2014, 03:00:07 AM »

Little question !
Not compatible whit D3A BRG ?
In theory it should be!

Gabriel, sorry... :-[
I forgot about her, of course she should work, too!
I hope Val will forgive me, too :D
Logged

Epervier

  • 4.09 Guardian Angel !
  • SAS Team
  • member
  • Offline Offline
  • Posts: 9541
  • I'm French and Rebel_409! Nobody is perfect!
    • Some tinkering here
Re: SBD-3 & 5 - Bombs Release Gear
« Reply #43 on: October 06, 2014, 07:55:40 AM »

! I ask moderator to put it at the first page of each BRG mod, please (if you find it good, OC ;))
Done in all mods BRG ! ;)
Logged
If your results do not live up to your expectations, tell yourself that the great oak was once an acorn too. - Lao Zi -

The Radge

  • Modder
  • member
  • Offline Offline
  • Posts: 1023
Re: SBD-3 & 5 - Bombs Release Gear
« Reply #44 on: October 06, 2014, 09:59:35 AM »

I've already noticed, thank you ;) :)
Logged
Pages: 1 2 3 [4]   Go Up
 

Page created in 0.029 seconds with 25 queries.