Loading [MathJax]/extensions/Safe.js

Special Aircraft Service

Please login or register.

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

Author Topic: WxTech's class files for Western0221's moving windsock mod  (Read 3886 times)

0 Members and 1 Guest are viewing this topic.

WxTech

  • Modder
  • member
  • Offline Offline
  • Posts: 6213
WxTech's class files for Western0221's moving windsock mod
« on: July 24, 2020, 09:16:49 PM »

===================================================================
UPDATE 2 (3rd release): Included the 6 class files for Western's Moving Flag Mod, so that the wind speed is taken not from the surface, but from 15m, or halfway to the top of my near-ground wind speed reduction zone (formerly I used the wind taken from the top, which is at 30m). THE WINDSOCK CLASSES HAVE BEEN CHANGED AS WELL (for a less horizontal sock angle at given speed.)
===================================================================


To be used with my Wind.class mod (for 4.12, but potentially useable with at least some other post-4.09 game version), available here:
https://www.sas1946.com/main/index.php/topic,63935.0.html

-------------------------------------------

Get this new set of moving windsock (and flag) class files here:

https://www.mediafire.com/file/ngszyyx988anel6/WxTech_WindsockGeneric_classfiles.7z/file

From the included readme:

These class files are for WindsockGeneric.class and FlagMovingGeneric.class, as supplied with Western0221's moving windsock and flag mods. His moving windsock and flag mod is available here:

https://www.sas1946.com/main/index.php/topic,44031.0.html


The list of the 6 new WindsockGeneric.class files replacing Western's:

4B4B59BAF00A305A
8CDB743E83C69676
99E3135ECD6EC844
659447827508EDA8
C3E85D6C8CC4E180
D7124ED014E60E74


The list of the 6 new FlagMovingGeneric.class files replacing Western's:

8EB0521638D49748
44E84F1CB5F7C15E
427A367CF7864A06
4582B0188C3491F0
6296FF46AF3A4FE6
56965B7C498EC008


They're primarily intended to be used with my own (WxTech) modded Wind.class. Why?

Among the numerous changes I made to code in Wind.class is the treatment of wind near the ground/sea. Formerly the wind at the surface was reduced to half the speed as at 10m. But this was unsatisfactory because of the flight model's susceptibility of the airplane to weathercocking (tendency to point into the wind) when any kind of wind was present, making taxying essentially impossible or at least vexingly difficult.

I raised the top of the near-ground zone of diminishing wind to 30m, as well as making the wind drop (smoothly) to zero at the surface so as to be rid of the unmanageable weathercocking.

The original code in this class here (WindsockGeneric.class) took the wind from the surface. This results in no windsock response with my new Wind.class because my surface wind is always zero! I've raised the point at which the wind speed is determined to 15m, or halfway to the top of my near-ground zone of diminishing wind. I use the halfway value because the original scheme also used the wind half-speed value at the surface.

I've tried to execute a reasonable response to wind speed, based on the change from the stock use of a ground wind at half speed, to the new full speed (at 30m.) Some parts of the code have thus far eluded my full understanding. But this fix should prove workable enough... I hope.  ;)

I include my WindsockGeneric.java and FlagMovingGeneric.java for reference.

-------------------------------------

Drop this folder into your MODS folder (or #SAS, etc.). If you prefer, you could simply dump the contents into my existing "Wind and Sun Classes" folder, to save on the use of an extra folder (keep things leaner and tidier.) Or replace the original classes in Western's mod. In any event, rename the original 6 class files with a preceding "-" character! (So that you can revert to them if you don't like my treatment here.)

-------------------------------------

As always, this work is offered for use by all for any purpose, without restriction.


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

cbradbury

  • member
  • Offline Offline
  • Posts: 1078
Re: WxTech's class files for Western0221's moving windsock mod
« Reply #1 on: July 25, 2020, 02:41:24 AM »

Hi WxTech,

thanks for this - seems to be working fine in BAT.

Note for BAT users, the classfiles need to be installed in the 'Classes-ObjectsOther' folder(s) in each BAT module. I advise creating a BATMODS switchable install in case of any unexpected conflicts or later upgrades to the classfiles from WxTech. I can post my copy here for download if anyone wants it.
Logged

andrey65

  • member
  • Offline Offline
  • Posts: 200
Re: WxTech's class files for Western0221's moving windsock mod
« Reply #2 on: July 25, 2020, 04:19:45 AM »

"I can post my copy here for download if anyone wants it."
It is very good, I'll be grateful!
Logged

cbradbury

  • member
  • Offline Offline
  • Posts: 1078
Re: WxTech's class files for Western0221's moving windsock mod
« Reply #3 on: July 25, 2020, 04:36:09 AM »

"I can post my copy here for download if anyone wants it."
It is very good, I'll be grateful!

Here you go:

https://www.mediafire.com/file/sxbpzenz88le3ng/wind_windsock_classfiles_BAT.7z/file

Includes the wind classfile as well, so activating this in BATMODS gives you both the wind adjustments but the animated windsocks and flags still work.

Any problems let me know.

Yours,

Clive
Logged

Vampire_pilot

  • member
  • Offline Offline
  • Posts: 8630
Re: WxTech's class files for Western0221's moving windsock mod
« Reply #4 on: July 25, 2020, 05:41:24 AM »

I have applied the wind class and these classes to BAT but the animated flags still do not work, they still flicker!

(windsocks are okay)
Logged

cbradbury

  • member
  • Offline Offline
  • Posts: 1078
Re: WxTech's class files for Western0221's moving windsock mod
« Reply #5 on: July 25, 2020, 06:14:24 AM »

I have applied the wind class and these classes to BAT but the animated flags still do not work, they still flicker!

(windsocks are okay)

Strange, I have never experienced the flickering on either. Before the fix, the windsock just hung limp, which would be logical as WxTech said there was no wind at that level. Just tested a flag and the same - just hanging limp, so maybe the same fix re wind height needs to be applied to the flag classfiles too.
Logged

Vampire_pilot

  • member
  • Offline Offline
  • Posts: 8630
Re: WxTech's class files for Western0221's moving windsock mod
« Reply #6 on: July 25, 2020, 06:19:22 AM »

Dis you set a higher wind value in your test? Flag hangs limp when there's no wind set.

The classes for western's pack FlagMoving of course need the same treatment!
https://www.sas1946.com/main/index.php/topic,44031.0.html

FlagMovingGeneric.class

etc...
Logged

cbradbury

  • member
  • Offline Offline
  • Posts: 1078
Re: WxTech's class files for Western0221's moving windsock mod
« Reply #7 on: July 25, 2020, 06:24:29 AM »

Dis you set a higher wind value in your test? Flag hangs limp when there's no wind set.

The classes for western's pack FlagMoving of course need the same treatment!
https://www.sas1946.com/main/index.php/topic,44031.0.html

FlagMovingGeneric.class

etc...

Yes - 10m/sec wind with both windsock and flag in the mission - socks blowing horizontal - flag hangs vertical with no movement. Either way should be easy to resolve as you state above...just strange that we are each getting different results...
Logged

Vampire_pilot

  • member
  • Offline Offline
  • Posts: 8630
Re: WxTech's class files for Western0221's moving windsock mod
« Reply #8 on: July 25, 2020, 06:29:43 AM »

I noticed it in Nero's DOF campaigns, where each airfield has at least an animated Russian flag!
Try Galicia for instance.

unfortunately  am not able to compile the FlagMovingGeneric.class myself.
Someone with more java knowledge needs to do this.

EDIT:
I noticed there are two kinds of "animated" flags!  Some in "Objects" (Spanish CW flags at different highs for example) and western's pack in "animated objects"!  I  was only looking at the latter.
Maybe the Object flags - wherever those are from - work with yet another method... :o

Logged

Vampire_pilot

  • member
  • Offline Offline
  • Posts: 8630
Re: WxTech's class files for Western0221's moving windsock mod
« Reply #9 on: July 25, 2020, 06:44:30 AM »

I just tested an animated "Object" Flag (spanish republican) inside the Galicia01 mission next to a Windsock and a Russian flag by western:
Windsock is doing it's normal business, the  Spanish flag is waving too, the Russian flag "flickers"
Logged

WxTech

  • Modder
  • member
  • Offline Offline
  • Posts: 6213
Re: WxTech's class files for Western0221's moving windsock mod
« Reply #10 on: July 25, 2020, 07:07:25 AM »

After work today I'll look at the flag class and apply the relevant changes.
Logged
Great minds discuss ideas. Average minds discuss events. Small minds discuss people. - Hyman Rickover (but probably predating his use.)

andrey65

  • member
  • Offline Offline
  • Posts: 200
Re: WxTech's class files for Western0221's moving windsock mod
« Reply #11 on: July 25, 2020, 07:15:16 AM »

We saw a reverse wind indication. The wind is 180 degrees, but the pointer shows 360.
http://forum.aviaskins.com/showthread.php?p=210601#post210601
Logged
Pages: [1] 2   Go Up
 

Page created in 0.032 seconds with 22 queries.