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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
Status: open
Milestone: Next Release
Created: Wed Apr 24, 2024 03:44 AM UTC by Alan Trulock
Last Updated: Mon Nov 04, 2024 06:09 PM UTC
Owner: nobody
Attachments:
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
Christ! You have to manage layers and select "On Map" every time you open the file.
Last edit: Alan Trulock 2024-04-24
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:
Thanks
Dave
I can reproduce on my system two ways.
Method 1.
Method 2.
I don't see the problem using the supplied files
However what I see does not match your screen shots
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
No idea why that posted anonymously...
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.
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.
Mac M1 - OS Sonoma 14.6.1
XQuartz 2.8.5 (server 21.1.6)
Still will not save 'manage'-'layers'-MAP
Tried XQuartz 2.8.8 beta 2 no effect.
I pushed a possible fix to Default brnch
I don't have a MAC to try this on.
Can you build Default and try it?
thanks
I see no change. Thank you for looking at it.
r, Alan Trulock
Related
Bugs: #565