Special Aircraft Service

Please login or register.

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

Author Topic: Fixing incorrectly decompiled nested "for" loops in Java?  (Read 610 times)

0 Members and 1 Guest are viewing this topic.

WxTech

  • Modder
  • member
  • Offline Offline
  • Posts: 6051
Fixing incorrectly decompiled nested "for" loops in Java?
« on: April 17, 2020, 06:47:23 AM »

I was starting to post this in the SuperSchool, but realized this is a specific *request*. And therefore better raised here?

This is taken from the decompiled 4.12.2 Java available here at SAS. The decompiler used had failed to correctly 'reconstruct' some nested for loops.

What would it take to have made available the corrected Java for these classes (which would likely apply for other game versions in most instances)? I should think it would be less onerous than making up a new plane. ;)

If I had more than a bumbling dilettante's barely rudimentary capacity to monkey about in Java, I'd do it myself. Where I *do* have confidence is in my ability to muck something up, at least unwittingly. ;)


Code: [Select]
Search "_L1:" (26 hits in 23 files)
  C:\IL2 Stuff\SELF_CONTAINED_DECOMP_COMP_412\Java 4.12.2\com\maddox\il2\ai\air\AirGroup.java (1 hit)
Line 1391: _L1:
  C:\IL2 Stuff\SELF_CONTAINED_DECOMP_COMP_412\Java 4.12.2\com\maddox\il2\builder\PlMapText.java (1 hit)
Line 120: _L1:
  C:\IL2 Stuff\SELF_CONTAINED_DECOMP_COMP_412\Java 4.12.2\com\maddox\il2\builder\PlMisTarget.java (1 hit)
Line 271: _L1:
  C:\IL2 Stuff\SELF_CONTAINED_DECOMP_COMP_412\Java 4.12.2\com\maddox\il2\engine\Land2DText.java (1 hit)
Line 243: _L1:
  C:\IL2 Stuff\SELF_CONTAINED_DECOMP_COMP_412\Java 4.12.2\com\maddox\il2\fm\AircraftState.java (1 hit)
Line 121: _L1:
  C:\IL2 Stuff\SELF_CONTAINED_DECOMP_COMP_412\Java 4.12.2\com\maddox\il2\game\DeviceLink.java (1 hit)
Line 73: _L1:
  C:\IL2 Stuff\SELF_CONTAINED_DECOMP_COMP_412\Java 4.12.2\com\maddox\il2\game\DServer.java (1 hit)
Line 82: _L1:
  C:\IL2 Stuff\SELF_CONTAINED_DECOMP_COMP_412\Java 4.12.2\com\maddox\il2\game\Main.java (1 hit)
Line 135: _L1:
  C:\IL2 Stuff\SELF_CONTAINED_DECOMP_COMP_412\Java 4.12.2\com\maddox\il2\game\Mission.java (1 hit)
Line 132: _L1:
  C:\IL2 Stuff\SELF_CONTAINED_DECOMP_COMP_412\Java 4.12.2\com\maddox\il2\game\ZutiRadarRefresh.java (2 hits)
Line 219: _L1:
Line 228: _L1:
  C:\IL2 Stuff\SELF_CONTAINED_DECOMP_COMP_412\Java 4.12.2\com\maddox\il2\gui\GUIAirArming.java (1 hit)
Line 610: _L1:
  C:\IL2 Stuff\SELF_CONTAINED_DECOMP_COMP_412\Java 4.12.2\com\maddox\il2\gui\GUIBriefingGeneric.java (1 hit)
Line 435: _L1:
  C:\IL2 Stuff\SELF_CONTAINED_DECOMP_COMP_412\Java 4.12.2\com\maddox\il2\net\BornPlace.java (1 hit)
Line 320: _L1:
  C:\IL2 Stuff\SELF_CONTAINED_DECOMP_COMP_412\Java 4.12.2\com\maddox\il2\net\NetBanned.java (1 hit)
Line 201: _L1:
  C:\IL2 Stuff\SELF_CONTAINED_DECOMP_COMP_412\Java 4.12.2\com\maddox\il2\objects\air\Aircraft.java (2 hits)
Line 1133: _L1:
Line 3058: _L1:
  C:\IL2 Stuff\SELF_CONTAINED_DECOMP_COMP_412\Java 4.12.2\com\maddox\il2\objects\ships\BigshipGeneric.java (1 hit)
Line 4203: _L1:
  C:\IL2 Stuff\SELF_CONTAINED_DECOMP_COMP_412\Java 4.12.2\com\maddox\opengl\GLContext.java (1 hit)
Line 163: _L1:
  C:\IL2 Stuff\SELF_CONTAINED_DECOMP_COMP_412\Java 4.12.2\com\maddox\rts\CmdEnv.java (1 hit)
Line 376: _L1:
  C:\IL2 Stuff\SELF_CONTAINED_DECOMP_COMP_412\Java 4.12.2\com\maddox\rts\NetChannel.java (1 hit)
Line 1164: _L1:
  C:\IL2 Stuff\SELF_CONTAINED_DECOMP_COMP_412\Java 4.12.2\com\maddox\rts\NetChannelInStream.java (1 hit)
Line 253: _L1:
  C:\IL2 Stuff\SELF_CONTAINED_DECOMP_COMP_412\Java 4.12.2\com\maddox\rts\NetControl.java (1 hit)
Line 183: _L1:
  C:\IL2 Stuff\SELF_CONTAINED_DECOMP_COMP_412\Java 4.12.2\com\maddox\rts\ObjIO.java (2 hits)
Line 251: _L1:
Line 1732: _L1:
  C:\IL2 Stuff\SELF_CONTAINED_DECOMP_COMP_412\Java 4.12.2\com\maddox\rts\Time.java (1 hit)
Line 311: _L1:
Logged
Great minds discuss ideas. Average minds discuss events. Small minds discuss people. - Hyman Rickover (but probably predating his use.)

SAS~Storebror

  • Editor
  • member
  • Offline Offline
  • Posts: 23958
  • Taking a timeout
    • STFU
Re: Fixing incorrectly decompiled nested "for" loops in Java?
« Reply #1 on: April 17, 2020, 07:02:32 AM »

What would it take to have made available the corrected Java for these classes
Try it.
Seriously.
Don't rely on anyone else to do it.
Some of the classes affected are quite massive.
Give the "Mission" class a try and you'll see what I mean.

which would likely apply for other game versions in most instances
Not at all unfortunately.
Team Dildos have a nasty habit of changing code at will, for unknown reasons.
Across two major "official" updates the chance for a base game class to survive unaltered is less than 10%.
Which doesn't mean that it really got any new feature.
It just got changed.

]cheers[
Mike
Logged
Don't split your mentality without thinking twice.
Pages: [1]   Go Up
 

Page created in 0.034 seconds with 26 queries.