Menu

#9 Null Pointer Exception

v1.0 (example)
open
nobody
None
5
2017-07-18
2017-07-15
No

Hi Andy,

I'm getting an exception when opening FS SCE. Here's what happens:

1) I get a warning about duplicate area numbers (See Capture.JPG)
2) When I click "No" I get the exception show in Capture2.JPG

My Scenery config is also included in the zip attached.

I've done a little debugging and if i manually remove Area 000 SCE seems to load OK (although I'm not sure the disaplyed scenery items actually match the ones in the config/the order seems like it might be incorrect?)

Any ideas?

1 Attachments

Discussion

  • Wills Bithey

    Wills Bithey - 2017-07-15

    Probably worth noting that I believe my scenery.cfg was actually corrupt as P3D V4 froze trying to startup until I removed the config and let it generate a fresh one.

    Maybe SCE could detect the corruption and fix it?

     
    • Andrew R. Thornton

      Hi Wills!

      Sorry for not replying yesterday - I was at a wedding.

      So looking at your scenery.cfg, there's two issues here:

      1. The first Area in the file has the identification number 000 this is not
        allowed - the minimum number is 001.
      2. That same Area has the layer number 0 - this is also not allowed and the
        minimum is 1.

      Now my code is telling you the wrong thing for this - saying its a
      duplicate area - rather than what it really which is simply illegal and
      looking at it I don't handle negative areas or layers well either... I will
      take a look at fixing this.

      If you'd chosen to look at the text editor it would have shown you that the
      Area number wasn't right for some reason by highlighting it in red. There's
      a the method in the actions menu to fix duplicate area numbers, (Cunningly
      named as "fix duplicate area numbers"), and it will tell you to consider
      deleting SCENERY.DAT files (if they're present). Then after doing that -
      you can then switch to the list or group view, and the layer number would
      be fixed for you too. The best method for fixing both of these problems is
      in the actions menu called: "Reset Area and Layer numbers" which will fix
      both actions and layer numbers in one go.

      Now, that might not have completely fixed things for you as the cfg doesn't
      start with a [General] section - but if the above fixes did fix it for you
      it would be great to know - if otherwise it needed the [General] section
      moving up to the top - that would also be great to know.

      Andy

      On Sat, 15 Jul 2017 at 11:42 Wills Bithey willsb3@users.sf.net wrote:

      Probably worth noting that I believe my scenery.cfg was actually corrupt
      as P3D V4 froze trying to startup until I removed the config and let it
      generate a fresh one.

      Maybe SCE could detect the corruption and fix it?

      Status: open
      Group: v1.0 (example)
      Created: Sat Jul 15, 2017 10:26 AM UTC by Wills Bithey
      Last Updated: Sat Jul 15, 2017 10:26 AM UTC
      Owner: nobody
      Attachments:

      Hi Andy,

      I'm getting an exception when opening FS SCE. Here's what happens:

      1) I get a warning about duplicate area numbers (See Capture.JPG)
      2) When I click "No" I get the exception show in Capture2.JPG

      My Scenery config is also included in the zip attached.

      I've done a little debugging and if i manually remove Area 000 SCE seems
      to load OK (although I'm not sure the disaplyed scenery items actually
      match the ones in the config/the order seems like it might be incorrect?)

      Any ideas?

      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/fs-sceditor/bugs/9/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

      --
      Andrew Thornton
      art27@cantab.net

       
  • Wills Bithey

    Wills Bithey - 2017-07-18

    Hey Andy,

    Yeah, I did see the scenery area index 000 when i checked the cfg in my text editor, but I'm not sure how that index got there. It was not added by me - I can only assume it was added by Orbx FTX Central somehow during the install of the various Orbx packages.

    I had planned to use the "fix duplicate area numbers" feature as I've seen that (along with the auto layer number reordering functionality) of SCE but as far as I remember I wasn't able to get to the menu to use it because of the corruption in my cfg. It's been a few days though so this could be me mis-remembering...

    I didn't notice the lack of [general] section until I deleted the cfg and let the sim generate a new one (which now contains the general section). I didn't have much scenery installed to I just re-ran FTX central so it could re-add it's required scenery library entries and then added the few other scenery entries that I needed manually.

    Can't remember what the [general] section contains, but perhaps SCE could check if it's missing and throw up a warning?

     

Log in to post a comment.

MongoDB Logo MongoDB