Special Aircraft Service

Please login or register.

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

Author Topic: Do-17Z-0 and Do-17Z-2 AI only in BAT 4.2, How to add cockpits?  (Read 240 times)

0 Members and 1 Guest are viewing this topic.

ansons

  • member
  • Offline Offline
  • Posts: 80
Do-17Z-0 and Do-17Z-2 AI only in BAT 4.2, How to add cockpits?
« on: November 24, 2021, 09:41:01 AM »

Hello,

Making a mission in FMB over Leningrad, I found that the Do-17Z-0 and Do-17Z-2 are AI Only , If I try to fly them I get a CTD with the following error in the log.txt

INTERNAL ERROR: HierMesh: Wrong chunk idx (-1, N:99)
java.lang.NoSuchFieldError: printCompassHeading
   at com.maddox.il2.objects.air.CockpitDo17.<init>(CockpitDo17.java:145)
   at java.lang.Class.newInstance0(Native Method)
   at java.lang.Class.newInstance(Unknown Source)
   at com.maddox.il2.objects.air.Aircraft.createCockpits(Aircraft.java:2640)
   at com.maddox.il2.objects.air.Aircraft.load(Aircraft.java:2143)
   at com.maddox.il2.game.Mission.loadAir(Mission.java:1324)
   at com.maddox.il2.ai.Wing.load(Wing.java:143)
   at com.maddox.il2.game.Mission.loadWings(Mission.java:1095)
   at com.maddox.il2.game.Mission._load(Mission.java:667)
   at com.maddox.il2.game.Mission.access$600(Mission.java:124)
   at com.maddox.il2.game.Mission$BackgroundLoader.run(Mission.java:412)
   at com.maddox.rts.BackgroundTask.doRun(BackgroundTask.java:155)
   at com.maddox.il2.game.MainWin3D.loopApp(MainWin3D.java:108)
   at com.maddox.il2.game.Main.exec(Main.java:422)
   at com.maddox.il2.game.GameWin3D.main(GameWin3D.java:235)
 
 How can I solve this issue or add cockpits to make them flyables ?
 Thanks  in advance


Logged

SAS~vampire_pilot

  • SAS Team
  • member
  • Offline Offline
  • Posts: 7261
  • a million fixes
Re: Do-17Z-0 and Do-17Z-2 AI only in BAT 4.2, How to add cockpits?
« Reply #1 on: November 24, 2021, 10:34:11 AM »

Both planes are flyable with a cockpit in both TGA and WAW.

most likely you added a mod that modified one or several of the classfiles for these planes and now they are broken because of that.

The printCompassHeading  error usually indicates a incompatible version of the cockpit class... I am not 100% certain, but iirc that would be what a  4.10 version cockpit class inside a 4.12 based bame would show. So another indication of some classfile mixup on your additional modding setup.

ansons

  • member
  • Offline Offline
  • Posts: 80
Re: Do-17Z-0 and Do-17Z-2 AI only in BAT 4.2, How to add cockpits?
« Reply #2 on: November 25, 2021, 08:34:58 AM »

Hi SAS-Vampire-Pilot, Thanks for your reply, by renaming the Classes_BAT folder in order  to move it up into the loading order, I solved the issue, I could fly the Do-17Z-0 and Do-17Z-2. I have not yet identify which mod creates the issue. Removing all aircraft addons from the air.ini did not change anything...
Thanks for your help. Best regards

Logged

SAS~vampire_pilot

  • SAS Team
  • member
  • Offline Offline
  • Posts: 7261
  • a million fixes
Re: Do-17Z-0 and Do-17Z-2 AI only in BAT 4.2, How to add cockpits?
« Reply #3 on: November 25, 2021, 08:42:12 AM »

I word of friendly advice:

Do NOT rename or reorder the folders that come with BAT!
You will end up with a huge mess and a broken install once you want to install any update of BAT!

Instead, reorder your own modded folders.
BAT updates won't care about those.

Quote
Removing all aircraft addons from the air.ini did not change anything...
That's logical, as the overwriting class is still in place and called by the Do-17.

Reordering the mods you have is the thing to do.
Pages: [1]   Go Up
 

Page created in 0.05 seconds with 24 queries.