EQ2Interface

EQ2Interface (https://www.eq2interface.com/forums/index.php)
-   EQ2MAP (https://www.eq2interface.com/forums/forumdisplay.php?f=34)
-   -   SVG Image Files are very simple (https://www.eq2interface.com/forums/showthread.php?t=1818)

hirebrand 03-11-2005 02:01 AM

SVG Image Files are very simple
 
1 Attachment(s)
http://www.w3.org/TR/SVG11/paths.html#PathData

This is the simplest file:

Code:

<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
<path
d="M 100 100 L 300 100 L 200 300"
style="fill:none;stroke:#000000;stroke-width:1;stroke-opacity:1;"/>
</svg>


To turn a list of /locs into a SVG file here are the steps

1) Remove all extra info besides your locations. Remove the middle location value (this is the vertical location and is useless).

2) Paste this before the locations. (Paste M before the first location only)
Code:

<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
<path d=" M

3) Before every location except the first one with M paste
Code:

L
4) After all the locations paste
Code:

" style="fill:none;stroke:#000000;stroke-width:1;stroke-opacity:1;"/> </svg>
5) Save as whatever.svg and open with Inkscape or Adobe Illustrator, or like program. Edit to your heart's content.

--------

Example

eq2log_Jaaissa.txt
Code:

(1110512319)[Thu Mar 10 22:38:39 2005] Logging to 'logs/Guk/eq2log_Jaaissa.txt' is now *ON*
(1110514068)[Thu Mar 10 23:07:48 2005] You have entered Echoes of Time: Epic.
(1110514451)[Thu Mar 10 23:14:11 2005] Your location is 859.11, -51.89, 583.01.  Your orientation is 92.20, 0.00, 0.00
(1110514454)[Thu Mar 10 23:14:14 2005] Your location is 865.34, -45.85, 582.82.  Your orientation is 90.09, 0.00, 0.00
(1110514458)[Thu Mar 10 23:14:18 2005] Your location is 865.12, -40.11, 576.93.  Your orientation is 92.20, 0.00, 0.00
(1110514464)[Thu Mar 10 23:14:24 2005] Your location is 859.04, -34.31, 576.93.  Your orientation is 266.19, 0.00, 0.00
(1110514468)[Thu Mar 10 23:14:28 2005] Your location is 859.63, -34.29, 582.58.  Your orientation is 270.41, 0.00, 0.00
(1110514471)[Thu Mar 10 23:14:31 2005] Your location is 864.08, -30.26, 582.45.  Your orientation is 90.73, 0.00, 0.00
(1110517226)[Fri Mar 11 00:00:26 2005] It will take about 20 more seconds to prepare your camp.
(1110517231)[Fri Mar 11 00:00:31 2005] It will take about 15 more seconds to prepare your camp.
(1110517236)[Fri Mar 11 00:00:36 2005] It will take about 10 more seconds to prepare your camp.
(1110517241)[Fri Mar 11 00:00:41 2005] It will take about 5 more seconds to prepare your camp.
(1110517249)[Fri Mar 11 00:00:49 2005] Logging to 'logs/Guk/eq2log_Jaaissa.txt' is now *OFF*

Step 1
Code:

859.11,583.01
865.34,582.82
865.12,576.93
859.04,576.93
859.63,582.58
864.08,582.45

Step 2
Code:

<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
<path d="M 859.11,583.01
865.34,582.82
865.12,576.93
859.04,576.93
859.63,582.58
864.08,582.45

Step 3
Code:

<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
<path d="M 859.11,583.01
L 865.34,582.82
L 865.12,576.93
L 859.04,576.93
L 859.63,582.58
L 864.08,582.45

Step 4
Code:

<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
<path d="M 859.11,583.01
L 865.34,582.82
L 865.12,576.93
L 859.04,576.93
L 859.63,582.58
L 864.08,582.45" style="fill:none;stroke:#000000;stroke-width:1;stroke-opacity:1;"/> </svg>

Step 5
Eventual image seen below. Hey, I never said these points were interesting. :-)


All times are GMT -5. The time now is 10:30 PM.

vBulletin® - Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
© MMOUI