Special Aircraft Service

Please login or register.

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

Author Topic: Bailout order  (Read 851 times)

0 Members and 1 Guest are viewing this topic.

Atoka220

  • Bomber
  • Modder
  • member
  • Offline Offline
  • Posts: 804
Bailout order
« on: February 15, 2022, 12:42:14 PM »

Since I've played this game, this bugged me

When you the player, or Ai bails from a multi crew plane, the pilot always bails first, followed by the crew. Is modifying the order of bailouts even possible, or this is not even worth thinking?
In reality, the pilot would give his crew every chance to safely leave and finally he would bail too

Also what about the 'tangled chute' problem? I see it's an old one and most notably happens with B-17s when 2 airmen bail at the same time besides eachother
Logged
There are 2 certain things in life: Death and CTDs

Epervier

  • 4.09 Guardian Angel !
  • SAS Team
  • member
  • Offline Offline
  • Posts: 9556
  • I'm French and Rebel_409! Nobody is perfect!
    • Some tinkering here
Re: Bailout order
« Reply #1 on: February 15, 2022, 02:50:01 PM »

Also what about the 'tangled chute' problem? I see it's an old one and most notably happens with B-17s when 2 airmen bail at the same time besides eachother
If I remember correctly, I solved this problem by modifying all the Java Classes which concern the dropping of parachutists by modifying :
  (e.g. BombGunPara)

      Property.set(class1, "shotFreq", 0.75F);

instead of 0.50F
Logged
If your results do not live up to your expectations, tell yourself that the great oak was once an acorn too. - Lao Zi -

WxTech

  • Modder
  • member
  • Offline Offline
  • Posts: 6065
Re: Bailout order
« Reply #2 on: February 16, 2022, 03:37:21 PM »

I tried to make this change to the shotFreq, but the game fails to load at all when this modded BombGunPara.class is present, and no log entry is created either. There are no other instances of this class outside of the SFS archive.

Here's the code. I had to fix a bad decompiler jumble (enclosed within /*  ...  */ delimiters). This compiles fine, but the loading process balks.

Code: [Select]
package com.maddox.il2.objects.weapons;

import com.maddox.rts.Property;

// Referenced classes of package com.maddox.il2.objects.weapons:
//            BombGun

public class BombGunPara extends BombGun
{

    public BombGunPara()
    {
    }

/*    static Class _mthclass$(String s)
    {
        return Class.forName(s);
        ClassNotFoundException classnotfoundexception;
        classnotfoundexception;
        throw new NoClassDefFoundError(classnotfoundexception.getMessage());
    }  */

    static Class _mthclass$(String s)
    {
        Class class1;
        try
        {
            class1 = Class.forName(s);
        }
        catch(ClassNotFoundException classnotfoundexception)
        {
            throw new NoClassDefFoundError(classnotfoundexception.getMessage());
        }
        return class1;
    }


    static
    {
        Class class1 = com.maddox.il2.objects.weapons.BombGunPara.class;
        Property.set(class1, "bulletClass", com.maddox.il2.objects.weapons.BombPara.class);
        Property.set(class1, "bullets", 1);
        Property.set(class1, "shotFreq", 0.75F);  //was 0.5
        Property.set(class1, "cassette", 1);
    }
}


Logged
Great minds discuss ideas. Average minds discuss events. Small minds discuss people. - Hyman Rickover (but probably predating his use.)

Epervier

  • 4.09 Guardian Angel !
  • SAS Team
  • member
  • Offline Offline
  • Posts: 9556
  • I'm French and Rebel_409! Nobody is perfect!
    • Some tinkering here
Re: Bailout order
« Reply #3 on: February 16, 2022, 04:03:29 PM »

Quote
I tried to make this change to the shotFreq, but the game fails to load at all when this modded BombGunPara.class is present, and no log entry is created either. There are no other instances of this class outside of the SFS archive.
Obviously we are not using the same compiler!
I write this kind of code in a very different way... despite Mike's disapproval!  :D   ;)

See attachments...
Logged
If your results do not live up to your expectations, tell yourself that the great oak was once an acorn too. - Lao Zi -

WxTech

  • Modder
  • member
  • Offline Offline
  • Posts: 6065
Re: Bailout order
« Reply #4 on: February 16, 2022, 04:59:15 PM »

Thanks, Gabriel! Game loads OK. In my first test I blasted a bunch of Ki-21s. However, a certain number of the crew always leap in pairs, side by side, and thus can never have their chutes open. A change would be required to make these poor, doomed unfortunates take to the silk one by one.  ;)

As to the singleton bailers, I've not yet seen how they now behave. Although I can't recall any situation of fouling chutes ever calling attention to itself for the 'one by one' guys... It was this thread that first brought the issue to my attention.
Logged
Great minds discuss ideas. Average minds discuss events. Small minds discuss people. - Hyman Rickover (but probably predating his use.)

Epervier

  • 4.09 Guardian Angel !
  • SAS Team
  • member
  • Offline Offline
  • Posts: 9556
  • I'm French and Rebel_409! Nobody is perfect!
    • Some tinkering here
Re: Bailout order
« Reply #5 on: February 17, 2022, 03:42:37 AM »

For some cases I had spread the bailout hooks by about 50cm in height and width...
Logged
If your results do not live up to your expectations, tell yourself that the great oak was once an acorn too. - Lao Zi -
Pages: [1]   Go Up
 

Page created in 0.034 seconds with 24 queries.