Menu

#2 Items out of place in .mapinfo

Severe
open
Open/Save (4)
7
2007-02-26
2007-02-26
slowDan
No

Dantona 1.0

Tried saving as. I checked the .mapinfo and found some mapEnv entries in the track information section at the top of the file. They appear to be missing from mapEnv #3. Causes Redline to crash on choosing a track.

This seems to be a repeatable error.

Discussion

  • slowDan

    slowDan - 2007-02-26

    The offending mapinfo

     
  • slowDan

    slowDan - 2007-02-26

    Logged In: YES
    user_id=1729033
    Originator: YES

    Done a bit of testing with The Gorge and it also crashes Redline at choosing a track. Problem is I can't see the error in the .mapinfo. I proved to myself it was the .mapinfo by substituting my original. It runs fine with that!? The only differences I can see are in the ordering of the lines.

    I've attached the saved version in case it helps.
    File Added: slowDan-Gorge-s.mapinfo

     
  • slowDan

    slowDan - 2007-02-26

    Broken .mapinfo

     
  • Jens Ayton

    Jens Ayton - 2007-02-26
    • priority: 5 --> 7
     
  • Jens Ayton

    Jens Ayton - 2007-02-26

    Logged In: YES
    user_id=338897
    Originator: NO

    The problem with the out-of-place mapEnv entries is because there’s a misspelled key in the mapinfo file. Map Viewer reports this not-very-helpfully in the Console:

    ReadArray: Warning: found unexpected key mapEnv.lightmap in counted array keyed mapEnvs.
    ReadArray: Warning: found unexpected key mapEnv.lightmap in counted array keyed mapEnvs.

    The ad-hoc nature of the config file format makes it hard to recover from this sort of thing gracefully, although this particular case can probably be handled better. I also intend to report this sort of error properly. The crash is unfortunate, but, well, Not My Code.

    I haven’t looked at The Gorge yet, except to check that it's not producing similar parse errors.

     
  • Jens Ayton

    Jens Ayton - 2007-02-26

    Logged In: YES
    user_id=338897
    Originator: NO

    Clarification on the spelling issue: it should be mapEnv.lightMap, not mapEnv.lightmap. Jonas says keys are case-sensitive.

     
  • Jens Ayton

    Jens Ayton - 2007-02-26

    Logged In: YES
    user_id=338897
    Originator: NO

    On closer inspection, that’s not the totality of the issue. Bah, humbug.

     
  • slowDan

    slowDan - 2007-02-27

    Logged In: YES
    user_id=1729033
    Originator: YES

    I never noticed that before! It seems that your error checking must be a bit more stringent than Redline's, The lightMap seems to load just fine over here. Darn it, update on the way I guess. :-)

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.