Special Aircraft Service

Please login or register.

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

Author Topic: 100lb WPS M47A3 White Phosphorous bomb burst effect  (Read 3275 times)

0 Members and 2 Guests are viewing this topic.

WxTech

  • Modder
  • member
  • Offline Offline
  • Posts: 6074
Re: 100lb WPS M47A3 White Phosphorous bomb burst effect
« Reply #12 on: June 16, 2023, 03:23:29 AM »

I put this out into the wild as a way to hopefully allow others to see it in action.

I've integrated this into Explosions.class, where the weapon needs no effects-generating method(s) itself.

Even if this visual representation is deficient, it's far and away better than the stock handling, where a single glowing blob and anemic, short-lived greenish smoke was shown. If not incorrectly using the incendiary 'spider' of fire.streams.

And there's always room for improvement. After all, I never stop with my tweaking of just about every effect I've ever touched!  😀
Logged
Great minds discuss ideas. Average minds discuss events. Small minds discuss people. - Hyman Rickover (but probably predating his use.)

Knochenlutscher

  • Flying Ass Clown #10
  • Modder
  • member
  • Offline Offline
  • Posts: 4606
  • aka Segfej
Re: 100lb WPS M47A3 White Phosphorous bomb burst effect
« Reply #13 on: June 16, 2023, 01:55:59 PM »

I know, my intent was not to be pissy or so.
I would recommend posting the Classfile code on Superschool and
wait what our Java experts say. I'm not aborting it completely, it's a too cool Bomb
that needs polishing I guess.
But I'm at an end to my skills to fix or see what's the culprit.

Here's a Log for your current version
Code: [Select]
INTERNAL ERROR: Can't open file '3D)/Effects/Phosphorous/Flash.eff'
WARNING: object '3D)/Effects/Phosphorous/Flash.eff' of class 'FObjSect' not created
INTERNAL ERROR: Effect param file '3D)/Effects/Phosphorous/Flash.eff' NOT loaded
java.lang.RuntimeException: INTERNAL ERROR: Effect param file '3D)/Effects/Phosphorous/Flash.eff' NOT loaded

at com.maddox.il2.engine.Eff3D.New(Native Method)
at com.maddox.il2.engine.Eff3DActor.New(Eff3DActor.java:248)
at com.maddox.il2.objects.weapons.Bomb100lbWPS_M47A3.generateWP(Bomb100lbWPS_M47A3.java:36)
at com.maddox.il2.objects.weapons.Bomb100lbWPS_M47A3.msgCollision(Bomb100lbWPS_M47A3.java:71)
at com.maddox.il2.engine.MsgCollision.invokeListener(MsgCollision.java:72)
at com.maddox.rts.Message._send(Message.java:1217)
at com.maddox.rts.Message.sendToObject(Message.java:1158)
at com.maddox.rts.Message.sendTo(Message.java:1134)
at com.maddox.rts.Message.trySend(Message.java:1115)
at com.maddox.rts.Time.loopMessages(Time.java:252)
at com.maddox.rts.RTSConf.loopMsgs(RTSConf.java:101)
at com.maddox.il2.game.MainWin3D.loopApp(MainWin3D.java:131)
at com.maddox.il2.game.Main.exec(Main.java:422)
at com.maddox.il2.game.GameWin3D.main(GameWin3D.java:235)
INTERNAL ERROR: Can't open file '3D)/Effects/Phosphorous/Flash.eff'

Or you wish to stay here and we try solving it, one by one, guess, might fire up a few Errors and not show all at once?
I'm no Java Expert.

Hope this Helps

Best wishes
Tobias
Logged
Wiseman : "Did you speak the exact words?" Ash : "Look, maybe I didn't say every single little tiny syllable, no. But basically I said them, yeah."

WxTech

  • Modder
  • member
  • Offline Offline
  • Posts: 6074
Re: 100lb WPS M47A3 White Phosphorous bomb burst effect
« Reply #14 on: June 16, 2023, 02:23:49 PM »

Try again. I made a silly typo in the path for the Flash.eff!
Logged
Great minds discuss ideas. Average minds discuss events. Small minds discuss people. - Hyman Rickover (but probably predating his use.)

Knochenlutscher

  • Flying Ass Clown #10
  • Modder
  • member
  • Offline Offline
  • Posts: 4606
  • aka Segfej
Re: 100lb WPS M47A3 White Phosphorous bomb burst effect
« Reply #15 on: June 17, 2023, 06:17:41 AM »

Wooohooo,
Yeah, that's it, working, insane.

Link for Loadout proposal moved into a collated Thread,
I will link up to WxTechs WPS Fix there.

adding these takes a while, please be patient, Thanks

Best wishes
Tobias
Logged
Wiseman : "Did you speak the exact words?" Ash : "Look, maybe I didn't say every single little tiny syllable, no. But basically I said them, yeah."

Knochenlutscher

  • Flying Ass Clown #10
  • Modder
  • member
  • Offline Offline
  • Posts: 4606
  • aka Segfej
Re: 100lb WPS M47A3 White Phosphorous bomb burst effect
« Reply #16 on: June 17, 2023, 07:07:45 AM »

Anyone interesst in a bigger version of this, that was historical?
A 5th AF invention for Bombers.
M47 was was an early development, the use of 1000lbs GP casings a later WW2 version.
As M47 WP one of Gen. George Kenney's inventions (Kenney's Cocktails), Air Burst White Phosphorus 1000lbs,
used a time flare fuse for upper half and a standard GP nose fuse for Tail.
Time setting was up to 93 secs, so for various altitudes.
This beast had a brilliant burst of up to 150 feet from central.
Hot phosphorous shooting in every direction up to 100 feet.
Used by leading Bombers to surpress AA and blocking vision of the enemy gunners,
as the white smoke lingered on the ground.

Air burst Phosphorus bomb


From a book US Bombs by Revell

The Java is prepped, running, just can't get it into shape.  :-|
Logged
Wiseman : "Did you speak the exact words?" Ash : "Look, maybe I didn't say every single little tiny syllable, no. But basically I said them, yeah."

WxTech

  • Modder
  • member
  • Offline Offline
  • Posts: 6074
Re: 100lb WPS M47A3 White Phosphorous bomb burst effect
« Reply #17 on: June 17, 2023, 08:27:41 AM »

Tobias,
Would such an air burst munition have an impact in the game beyond the visual aspect? At any distance of note it will not exert blast effect, and the shrapnel might not be so lethal given that the burst energy is working principally to push out the phosphorous. And AI would not have visibility hindered. Would players be interested in lugging what is effectively dead weight that does nothing to destroy stuff?  ;)

Is this experiment using existing, working code, needing only certain specific adjustments to purpose?
Logged
Great minds discuss ideas. Average minds discuss events. Small minds discuss people. - Hyman Rickover (but probably predating his use.)

Knochenlutscher

  • Flying Ass Clown #10
  • Modder
  • member
  • Offline Offline
  • Posts: 4606
  • aka Segfej
Re: 100lb WPS M47A3 White Phosphorous bomb burst effect
« Reply #18 on: June 17, 2023, 08:52:09 AM »

Alright, that is true. My crap, blimey.

Yeah, don't wonder, from time to time I have curious ideas.

Code: [Select]
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) deadcode
// Source File Name:   Bomb1000lbWPS.java
// Inclusion of method generate() is superfluous; does nothing different to Explosions.class !

package com.maddox.il2.objects.weapons;

import com.maddox.JGP.*;
import com.maddox.il2.ai.RangeRandom;
import com.maddox.il2.ai.World;
import com.maddox.il2.engine.*;
import com.maddox.il2.objects.ActorLand;
import com.maddox.rts.Property;
import com.maddox.il2.objects.effects.Explosions;  //NEW
import com.maddox.sas1946.il2.util.TrueRandom;  //NEW

// Referenced classes of package com.maddox.il2.objects.weapons:
//            Bomb, BallisticProjectile

public class Bomb1000lbWPS extends Bomb
{

    public Bomb1000lbWPS()
    {
    }

    public static void generateWP(Actor actor, Point3d point3d, float f, int i, float f1, boolean bool, boolean bool_1, int j)  //EXPERIMENTAL by WxTech
{
if (Config.isUSE_RENDER() && actor != null)
{
Loc loc = new Loc(point3d);
o.set(0.0F, 90.0F, 0.0F);
loc.set(point3d, o);
Vector3d vector3d = new Vector3d();
Eff3DActor.New(loc, 1.4F, "3DO/Effects/Phosphorous/Flash.eff", -1F);  //phosphorous central flash; 10-15m * 1.4
Eff3DActor.New(loc, 1.0F, "3DO/Effects/Phosphorous/PhosphorousSmoke.eff", -1F);  //phosphorous main smoke

for(int j_1 = 0; j_1 < 54; j_1++)  //54 thin trails
{
vector3d.set((double) TrueRandom.nextFloat(-1.0F, 1.0F), (double) TrueRandom.nextFloat(-1.0F, 1.0F), (double) TrueRandom.nextFloat(0.3F, 1.0F));
vector3d.normalize();
vector3d.scale((double) TrueRandom.nextFloat(35.0F, 4.0F));  //speed scale factor, to get m/s; was 48, 60
BallisticProjectile ballisticprojectile = new BallisticProjectile(point3d, vector3d, 4.0F);  //was 1.0
Eff3DActor.New(ballisticprojectile, null, null, 1.0F, "3DO/Effects/Phosphorous/PhosphorSpark.eff", -1F);  //NEW effect; bright burning bit
Eff3DActor.New(ballisticprojectile, null, null, 1.0F, "3DO/Effects/Phosphorous/SmokeTendril.eff", -1F);  //NEW effect; thin smoke tendrils, trail based
}

int i_2 = TrueRandom.nextInt(3, 7);  //3 to 6 denser trails
for(int j_2 = 0; j_2 < i_2; j_2++)
{
vector3d.set((double) TrueRandom.nextFloat(-1.0F, 1.0F), (double) TrueRandom.nextFloat(-1.0F, 1.0F), (double) TrueRandom.nextFloat(0.3F, 1.0F));
vector3d.normalize();
vector3d.scale((double) TrueRandom.nextFloat(35.0F, 45.0F));  //speed scale factor, to get m/s; was 48, 60
BallisticProjectile ballisticprojectile = new BallisticProjectile(point3d, vector3d, 5.0F);
Eff3DActor.New(ballisticprojectile, null, null, 2.0F, "3DO/Effects/Phosphorous/PhosphorSpark.eff", -1F);  //NEW effect; bright burning bit
Eff3DActor.New(ballisticprojectile, null, null, 1.0F, "3DO/Effects/Phosphorous/SmokeTendrilFat.eff", -1F);  //NEW effect; denser smoke tendrils, particle based
}

if(actor instanceof ActorLand && Engine.land().isWater(point3d.x, point3d.y)) //will not generate for direct water hits
return;
Eff3DActor.New(loc, 1.0F, "3DO/Effects/Phosphorous/PhosphorousCloud.eff", 300F);  //5 min duration
}
}

    public void msgCollision(Actor actor, String s, String s1)
    {
        if(actor instanceof ActorLand)
        {
            super.msgCollision(actor, s, s1);
            generateWP(actor, super.pos.getAbsPoint(), 16F, 2, 23F, false, false, 0);  //NEW method, above
        }
    }

    private static Orient o = new Orient();  //if including an Eff3DActor
    private static Loc loc = new Loc();  //if including an Eff3DActor

    static
    {
        Class class1 = com.maddox.il2.objects.weapons.Bomb1000lbWPS.class;
        Property.set(class1, "mesh", "3do/arms/1000lbGP_AN_M65/mono.sim");
        com.maddox.rts.Property.set(class1, "radius", 15F);
        com.maddox.rts.Property.set(class1, "power", 253.3F);
        com.maddox.rts.Property.set(class1, "powerType", 2);
        com.maddox.rts.Property.set(class1, "kalibr", 0.48F);
        com.maddox.rts.Property.set(class1, "massa", 449.46F);
        Property.set(class1, "sound", "weapon.bomb_mid");
        Property.set(class1, "fuze", ((Object) (new Object[] {
            com.maddox.il2.objects.weapons.Fuze_M111.class, com.maddox.il2.objects.weapons.Fuze_M108.class
        })));
    }
}

Like I said, have no clue how to do it even as regular non-air burst.
And it's an idea, does not need to be pushed if too fancy.
Your 100lbs is fine too.

 :-|
Logged
Wiseman : "Did you speak the exact words?" Ash : "Look, maybe I didn't say every single little tiny syllable, no. But basically I said them, yeah."

WxTech

  • Modder
  • member
  • Offline Offline
  • Posts: 6074
Re: 100lb WPS M47A3 White Phosphorous bomb burst effect
« Reply #19 on: June 17, 2023, 11:40:39 AM »

My Java Neanderthal crown shall not be questioned, challenged or usurped!  :blonde_banana:
Logged
Great minds discuss ideas. Average minds discuss events. Small minds discuss people. - Hyman Rickover (but probably predating his use.)

Knochenlutscher

  • Flying Ass Clown #10
  • Modder
  • member
  • Offline Offline
  • Posts: 4606
  • aka Segfej
Re: 100lb WPS M47A3 White Phosphorous bomb burst effect
« Reply #20 on: June 17, 2023, 01:00:53 PM »

Copy, that's here too. 8)

Let me Thank you for this update, how cool it is, see I'm supporting it as much as I can.
I added few more kites with these nice WPs.


Best wishes
Tobias
Logged
Wiseman : "Did you speak the exact words?" Ash : "Look, maybe I didn't say every single little tiny syllable, no. But basically I said them, yeah."

Whiskey_Sierra_972

  • Modder
  • member
  • Offline Offline
  • Posts: 6690
  • In memory of my beloved hero: Saburo SAKAI!
Re: 100lb WPS M47A3 White Phosphorous bomb burst effect
« Reply #21 on: April 08, 2024, 11:34:18 AM »

Hi mate!

I'm in the process to install this fix on JTW but I noticed that the .eff files are outside the Fireworks folder....I think that this isn't correct because the log give me missing effect error....

Putting them inside the Fireworks folder give correct effect and no more log error....

Logged

WxTech

  • Modder
  • member
  • Offline Offline
  • Posts: 6074
Re: 100lb WPS M47A3 White Phosphorous bomb burst effect
« Reply #22 on: April 08, 2024, 12:56:16 PM »

Walter,
It's been the better part of a year, and going on memory... For a standalone release like this I would have supplied the resource files in their own folder so as to not cause other effects using the same file names to now have an incorrect appearance. I suspect that if this little mod resided higher in your listing than any other mod(s) using any of the same files, it would have been unnecessary to make the change you did.

Again, I'm going on a hazy memory as I tap this out on my phone.  ;)
Logged
Great minds discuss ideas. Average minds discuss events. Small minds discuss people. - Hyman Rickover (but probably predating his use.)

leforban

  • member
  • Offline Offline
  • Posts: 228
Re: 100lb WPS M47A3 White Phosphorous bomb burst effect
« Reply #23 on: May 08, 2024, 09:46:04 AM »

Hi everyone,
which american planes used this phosphorous bomb ? B29 and B24 over Tokyo ? or was used all along the PTO ?

Le forban
 
Logged
Pages: 1 [2] 3   Go Up
 

Page created in 0.055 seconds with 26 queries.