Menu

#565 No Map for Newly Saved Files

Next Release
open
nobody
None
V5.3.0GA
14.4.1
OSX
5
2024-05-02
2024-04-24
No

After updating, the map has disappeared for newly saved files. Existing files that have not been saved since updating still display the map.

1 Attachments

Discussion

  • Alan Trulock

    Alan Trulock - 2024-04-24

    Seems to be an issue with layers oin the layout files. I ran a diff to see what changed:

    XTrackCAD Version: 5.2.2GA, Date: Wed Jul 5 00:32:54 2023

    VERSION 12 5.2.0

    TITLE1 Trevors Layout

    TITLE2

    MAPSCALE 37

    ROOMSIZE 72.000000 x 36.000000

    SCALE N

    LAYERS 0 1 0 1 255 0 0 0 0 "Main"

    LAYERS 1 1 0 1 16711680 0 0 0 0 "Upper Level Track"

    LAYERS 2 1 0 1 32768 0 0 0 0 "Transision Track"

    LAYERS 3 1 0 1 16776960 0 0 0 0 "Yard"

    LAYERS CURRENT 3

    XTrackCAD Version: 5.3.0GA, Date: Tue Apr 23 23:37:03 2024

    VERSION 12 5.2.0

    TITLE1 Trevors Layout

    TITLE2

    MAPSCALE 37

    ROOMSIZE 72.000000 x 36.000000

    SCALE N

    LAYERS 0 1 0 1 255 0 0 0 0 "Main" 1 0 9.750000 0.000000 0.616800 0.100000 0.200000

    LAYERS 1 1 0 1 16711680 0 0 0 0 "Upper Level Track" 1 0 9.750000 0.000000 0.616800 0.100000 0.200000

    LAYERS 2 1 0 1 32768 0 0 0 0 "Transision Track" 1 0 9.750000 0.000000 0.616800 0.100000 0.200000

    LAYERS 3 1 0 1 16776960 0 0 0 0 "Yard" 1 0 9.750000 0.000000 0.616800 0.100000 0.200000

     
  • Alan Trulock

    Alan Trulock - 2024-04-24

    Christ! You have to manage layers and select "On Map" every time you open the file.

     

    Last edit: Alan Trulock 2024-04-24
  • Dave Bullis

    Dave Bullis - 2024-04-25

    Unfortunately I don't see this problem

    You said you diffed the layout files but I only see the first few lines of the 2 files
    Can you attach them?

    Could you explain the steps you did
    Is it:
    - start xtrkcad
    - Is the map displayed?
    - open an existing file.
    - save it
    - Does the map window disappear? Or does it have empty contents? Can you take a screen shot of it?

    Thanks
    Dave

     
  • Alan Trulock

    Alan Trulock - 2024-04-25

    I can reproduce on my system two ways.

    Method 1.
    1. Create new layout. Map displays. (Screenshot 1).
    2. Save file. Map still displays. (Screenshot 2).
    3. Open saved file. Map disappears. (Screenshot 3).

    Method 2.
    1. Open file that has not been edited with 5.3.0GA. Map is displayed. (Trevors Layout 2.xtc).
    2. Edit and save file. Map is still displayed.
    3. Open saved file. Map disappears. (Trevors Layout 2 Edit.xtc).

     
  • Dave Bullis

    Dave Bullis - 2024-04-25

    I don't see the problem using the supplied files
    However what I see does not match your screen shots

     
    • Alan Trulock

      Alan Trulock - 2024-04-25

      I see. I created a new account on my computer and still cannot see the map after saving a file. If it is working for you, it may be MacOS specific. UPDATE: Works as advertised on my wife's Windows machine.

       

      Last edit: Alan Trulock 2024-04-25
      • Alan Trulock

        Alan Trulock - 2024-04-26

        No idea why that posted anonymously...

         
  • Anonymous

    Anonymous - 2024-04-26

    I am trying to understand what is going on with this. Files created with 5.3.0 show VERSION 12 5.2.0 just as they did under 5.2.2; however, the file format is slightly different. The wiki states that layers are defined as LAYERS(sp)Layer-number(sp)visible(sp)frozen(sp)on-map(sp)color-rgb(sp)module(sp)dont-use-color(sp)color-flags(sp)button-off(sp)"Layer-Name". This matches what I get using 5.2.2 (e.g. LAYERS 0 1 0 1 192 0 0 1 0 "Main"). Under 5.3.3, extra data appears that is not documented in the wiki (e.g. LAYERS 0 1 0 1 192 0 0 1 0 "Main" 1 7 18.000000 0.000000 1.131804 0.183697 0.367394). This extra data appended to the layer data seems to be what ismcausing my issue on MacOS. This does not cause a problem for Windows. By manually editing the layout file and removing everything past the layer name, everything looks correct when I open the layout.

     
  • Alan Trulock

    Alan Trulock - 2024-05-02

    For the sake of clarity:

    I am running MacOS 14.4.1 with version 5.3.0.

    When I open a layout file that was saved with under 5.2.2, layers appear on the map as expected.

    When I open a layout file that was saved under 5.3.0, layers do not appear on the map as expected until I go and manually reselect On Map for each layer.

    I have verified this functions as expected on Windows. I have not tested this on Linux. It seems to be MacOS specific that is not handling the additional data elements.

    I compiled 5.3.1-devel from source and get the same results. Layers do not display despite the setting in the layout file saying otherwise.

    Wiki appears to be updated with the new data elements. https://sourceforge.net/p/xtrkcad-fork/wiki/LayoutFile/

    New screenshots and matching layout file supplied. Previous supplied screenshots did not match the layout file.

     

Anonymous
Anonymous

Add attachments
Cancel