Special Aircraft Service

Please login or register.

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

Author Topic: Beech Baron breaks FMB  (Read 728 times)

0 Members and 1 Guest are viewing this topic.

Katyusha454

  • member
  • Offline Offline
  • Posts: 164
  • Fishbed Fangirl
Beech Baron breaks FMB
« on: July 17, 2016, 05:37:31 PM »

I was trying to add an AI Baron to a mission, but when I click on the "plane 1" tab the windows get all messed up and I can't click anything.  I'm having a hard time explaining exactly what happens and I can't take a screenshot because my computer refuses to printscreen Il-2, but here's the relevant portion of my log file:
Code: [Select]
INTERNAL ERROR: Str2FloatClamp() - Clamped 4 -> 2 (delta = -2) to Range 0..2
java.lang.NullPointerException
at com.maddox.il2.builder.PlMisAir.checkMesh(PlMisAir.java:3336)
at com.maddox.il2.builder.PlMisAir.access$000(PlMisAir.java:66)
at com.maddox.il2.builder.PlMisAir$_Render3D.preRender(PlMisAir.java:84)
at com.maddox.il2.engine.GUIRenders$WinRenders.doPreRender(GUIRenders.java:169)
at com.maddox.il2.engine.GUIRenders.preRender(GUIRenders.java:111)
at com.maddox.gwindow.GWindow.doRender(GWindow.java:768)
at com.maddox.gwindow.GWindow.doChildrensRender(GWindow.java:782)
at com.maddox.gwindow.GWindow.doRender(GWindow.java:770)
at com.maddox.gwindow.GWindow.doChildrensRender(GWindow.java:782)
at com.maddox.gwindow.GWindow.doRender(GWindow.java:770)
at com.maddox.gwindow.GWindow.doChildrensRender(GWindow.java:782)
at com.maddox.gwindow.GWindow.doRender(GWindow.java:770)
at com.maddox.gwindow.GWindow.doChildrensRender(GWindow.java:782)
at com.maddox.gwindow.GWindow.doRender(GWindow.java:770)
at com.maddox.gwindow.GWindow.doChildrensRender(GWindow.java:782)
at com.maddox.gwindow.GWindow.doRender(GWindow.java:770)
at com.maddox.gwindow.GWindowRoot.doPreRender(GWindowRoot.java:153)
at com.maddox.gwindow.GWindowManager.doPreRender(GWindowManager.java:53)
at com.maddox.il2.engine.GUIWindowManager$_Render.preRender(GUIWindowManager.java:163)
at com.maddox.il2.engine.Renders.doPaint(Renders.java:337)
at com.maddox.il2.engine.Renders.paint(Renders.java:253)
at com.maddox.il2.engine.RendersTicker.msgTimeOut(Renders.java:637)
at com.maddox.rts.MsgTimeOut.invokeListener(MsgTimeOut.java:73)
at com.maddox.rts.Message._send(Message.java:1217)
at com.maddox.rts.Message.sendToObject(Message.java:1191)
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:180)
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:449)
at com.maddox.il2.game.GameWin3D.main(GameWin3D.java:235)
Logged

western0221

  • Modder
  • member
  • Offline Offline
  • Posts: 6790
  • Live in Japan
    • IL-2 itaki blog
Re: Beech Baron breaks FMB
« Reply #1 on: July 17, 2016, 06:01:50 PM »

I don't have a time to check Beech Baron 's classfile codes, it's only my wonder --- not sure....

Beech Baron 's classfile codes might have some bugs , maybe around Regiment and Country setting lines (or similar property lines).

Baron's Java coder .... or some other Java modder .... 's debugging Baron is needed.



In example, checkMesh() method in PlMisAir.class of 4.12.2m is here.
Code: [Select]
    private void checkMesh(int i)
    {
        if(Actor.isValid(actorMesh[i]))
            return;
        PathAir pathair = (PathAir)builder.selectedPath();
        if(pathair == null)
        {
            return;
        } else
        {
            Class class1 = type[pathair._iType].item[pathair._iItem].clazz;
            meshName = Aircraft.getPropertyMesh(class1, pathair.regiment().country());
            createMesh(i);
            PaintScheme paintscheme = Aircraft.getPropertyPaintScheme(class1, pathair.regiment().country());
            paintscheme.prepare(class1, actorMesh[i].hierMesh(), pathair.regiment(), pathair.iSquadron, pathair.iWing, i, pathair.bNumberOn[i]);
            prepareSkin(i, class1, pathair.skins[i]);
            prepareNoseart(i, pathair.noseart[i]);
            preparePilot(i, pathair.pilots[i]);
            return;
        }
    }

My thought is the null pointer exception occurs one of these lines.
            Class class1 = type[pathair._iType].item[pathair._iItem].clazz;
            meshName = Aircraft.getPropertyMesh(class1, pathair.regiment().country());

Logged
Pages: [1]   Go Up
 

Page created in 0.331 seconds with 20 queries.