- Code: Select all
1073.64 [ALRT]:nasal Nasal runtime error: File not found: /home/user/fgfs-addons/LandingChallenge/gui/images/threshold-deviation.svg
1073.64 [ALRT]:nasal at /home/user/fgdata-2020.4.0/Nasal/canvas/svg.nas, line 23
1073.64 [ALRT]:nasal called from: /home/user/fgfs-addons/LandingChallenge/dataDialog.nas, line 16
The relevant code is:
- Code: Select all
canvas.parsesvg(deviationImageGroup, "/home/user/fgfs-addons/LandingChallenge/gui/images/threshold-deviation.svg");
The path was cop&pasted from my file browser. What could I have possibly done wrong ???
EDIT:
In case it matters, here is the content of the SVG image I'm trying to show:
- Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg version="1.1" viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg">
<g id="runway" transform="matrix(1.16 0 0 1 -5.81 .00391)">
<rect id="asphalt" x="5" width="55" height="64" fill="#070707"/>
<path id="centerline" d="m32.5 0v64" fill="none" stroke="#fff" stroke-dasharray="6, 6"/>
</g>
<g id="airplane" transform="matrix(.728 0 0 .794 8.34 6.6)" fill="#fff">
<ellipse id="body" cx="32.5" cy="32" rx="3" ry="13.5"/>
<rect id="elevator" x="23" y="42" width="19" height="3"/>
<rect id="wings" x="11" y="27" width="43" height="6"/>
</g>
</svg>