|
05-04-2005, 05:18 AM
|
A Brown Bear
|
|
Join Date: Apr 2005
Server: Antonia Bayle
Posts: 9
|
|
Mapper.xml not working on non-english log files
first of all sorry if my english is not very good, because i m french hehe
i did a search about inkscape, and it s been 2 days that i m trying to make a map with no success.
i downloaded everything, mapper.XML, perl, inkscape, i did my logfile, and i can t get a usefull .svg file.
here is what i get:
<?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"></svg>
i m not very good at XML so i can t debug it myself but i can clearely see that the script actualy bypass all my logfile
here is the begining of my logfile suposed to be used for the .svg :
(1115118556)[Tue May 03 13:09:16 2005] Logging to 'logs/Storms/eq2log_Medecin.txt' is now *ON*
(1115118558)[Tue May 03 13:09:18 2005] Vous start new map line
(1115118560)[Tue May 03 13:09:20 2005] Votre position est -17,83, 628,39, 125,04. Votre orientation est 89,95, 0,00, 0,00
(1115118560)[Tue May 03 13:09:20 2005] Votre position est -18,21, 628,37, 125,05. Votre orientation est 89,95, 0,00, 0,00
(1115118560)[Tue May 03 13:09:20 2005] Votre position est -18,40, 628,36, 125,06. Votre orientation est 89,95, 0,00, 0,00
(1115118560)[Tue May 03 13:09:20 2005] Votre position est -18,95, 628,33, 125,08. Votre orientation est 89,95, 0,00, 0,00
(1115118560)[Tue May 03 13:09:20 2005] Votre position est -19,34, 628,31, 125,10. Votre orientation est 89,95, 0,00, 0,00
(1115118560)[Tue May 03 13:09:20 2005] Votre position est -19,62, 628,30, 125,11. Votre orientation est 89,95, 0,00, 0,00
i get absolutely no error msg, everything seems to work very well exept the fact that i don t get a single line in the end
|
05-04-2005, 05:30 AM
|
|
aka Mook
|
|
Join Date: Jul 2004
Server: Nektulos
Posts: 1,451
|
|
(Split into new thread.)
The log parser was made for the english-language logs. When you point it to your french-language log file, it has no clue what it's looking at. It's just a computer, after all.
Try this:
Open the log file with a text editor. Search for Votre position est and replace with Your location is
Then search for Votre orientation est and replace with Your orientation is
That should let the script parse the log correctly.
__________________
If it ain't broke, it needs more features!
|
05-04-2005, 05:38 AM
|
A Brown Bear
|
|
Join Date: Apr 2005
Server: Antonia Bayle
Posts: 9
|
|
oh god i m a noob i didn t even notice my logs where in french lol
thx, i m trying this right now
|
05-04-2005, 07:19 AM
|
|
Crushbone - Cronique
|
|
Join Date: Dec 2004
Server: Crushbone
Posts: 163
|
|
I will update my HowTo to reflect what the parcer is looking for.
|
05-04-2005, 10:51 AM
|
A Brown Bear
|
|
Join Date: Apr 2005
Server: Antonia Bayle
Posts: 9
|
|
hmm it s still not working with this as my logfile:
(1115118556)[Tue May 03 13:09:16 2005] Logging to 'logs/Storms/eq2log_Medecin.txt' is now *ON*
(1115118558)[Tue May 03 13:09:18 2005] You start new map line
(1115118560)[Tue May 03 13:09:20 2005] Your location is -17,83, 628,39, 125,04. Your orientation is 89,95, 0,00, 0,00
(1115118560)[Tue May 03 13:09:20 2005] Your location is -18,21, 628,37, 125,05. Your orientation is 89,95, 0,00, 0,00
(1115118560)[Tue May 03 13:09:20 2005] Your location is -18,40, 628,36, 125,06. Your orientation is 89,95, 0,00, 0,00
(1115118560)[Tue May 03 13:09:20 2005] Your location is -18,95, 628,33, 125,08. Your orientation is 89,95, 0,00, 0,00
(1115118560)[Tue May 03 13:09:20 2005] Your location is -19,34, 628,31, 125,10. Your orientation is 89,95, 0,00, 0,00
the weird thing is that it doesn t even seem to execute this line :
my $startline = "<polyline fill=\"none\" stroke=\"black\" ...
it s not even a problem of interpreting, it s just that it seems to bypass it
Last edited by highlander : 05-04-2005 at 11:34 AM.
|
05-04-2005, 11:38 AM
|
Scuba Steve
|
|
Join Date: Dec 2004
Server: Everfrost
Posts: 150
|
|
Quote:
Originally Posted by highlander
hmm it s still not working with this as my logfile:
(1115118560)[Tue May 03 13:09:20 2005] Your location is -17,83, 628,39, 125,04. Your orientation is 89,95, 0,00, 0,00
|
Ok, now the problem is that the pattern the code is trying to match is probably something like:
Your location is [-]NNN.NN, [-]NNN.NN, [-]NNN.NN
And your log file has commas where the pattern is expecting periods.
|
05-04-2005, 12:47 PM
|
A Brown Bear
|
|
Join Date: Apr 2005
Server: Antonia Bayle
Posts: 9
|
|
i understand what you mean but i tried and it didn t work tho the real problem is not even that it doesn t work as it should, it just doesn t do anything.
here is all i get in my .svg file :
<?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"></svg>
even if it wasn t working well there should be something between <svg xmlns="http://www.w3.org/2000/svg" version="1.1"> and </svg>
|
05-04-2005, 04:24 PM
|
|
aka Mook
|
|
Join Date: Jul 2004
Server: Nektulos
Posts: 1,451
|
|
Quote:
Originally Posted by highlander
i understand what you mean but i tried and it didn t work tho the real problem is not even that it doesn t work as it should, it just doesn t do anything.
|
No, it IS working, it just isn't doing anything because it can't find what it's looking for. As far as it can tell there's no /loc lines in there.
No idea how you're gonna fix this one. Need a program that will change regular expressions and search for a ,(number) pattern and replace with .(number)
__________________
If it ain't broke, it needs more features!
|
05-05-2005, 02:07 AM
|
A Griffon
|
|
Join Date: Dec 2004
Server: Neriak
Posts: 273
|
|
Use WordPad.
(without quotes on the following)
Edit > Replace.. > ", " with "_" > Replace All
Edit > Replace.. > "," with "." > Replace All
Edit > Replace.. > "_" with ", " > Replace All
Fixed!
I tested this on your sample data above, and ended up with this:
Code:
(1115118560)[Tue May 03 13:09:20 2005] Your location is -17.83, 628.39, 125.04. Your orientation is 89.95, 0.00, 0.00
(1115118560)[Tue May 03 13:09:20 2005] Your location is -18.21, 628.37, 125.05. Your orientation is 89.95, 0.00, 0.00
(1115118560)[Tue May 03 13:09:20 2005] Your location is -18.40, 628.36, 125.06. Your orientation is 89.95, 0.00, 0.00
(1115118560)[Tue May 03 13:09:20 2005] Your location is -18.95, 628.33, 125.08. Your orientation is 89.95, 0.00, 0.00
(1115118560)[Tue May 03 13:09:20 2005] Your location is -19.34, 628.31, 125.10. Your orientation is 89.95, 0.00, 0.00
__________________
Last edited by Killarny : 05-05-2005 at 02:10 AM.
|
05-05-2005, 06:25 AM
|
A Brown Bear
|
|
Join Date: Apr 2005
Server: Antonia Bayle
Posts: 9
|
|
when i say i t s not working it s because ... it s not working look at my new logs :
(1115118556)[Tue May 03 13:09:16 2005] Logging to 'logs/Storms/eq2log_Medecin.txt' is now *ON*
(1115118558)[Tue May 03 13:09:18 2005] You start new map line
(1115118560)[Tue May 03 13:09:20 2005] Your location is -17.83, 628.39, 125.04. Your orientation is 89.95, 0.00, 0.00
and this isnt working
|
05-05-2005, 11:28 AM
|
A Griffon
|
|
Join Date: Dec 2004
Server: Neriak
Posts: 273
|
|
I haven't used mapper.xml, I use a different method to make maps - if you post your logfile here, I can make the map for you, if you like.
You'd get all the credit for it, of course.
__________________
|
05-05-2005, 11:50 AM
|
A Brown Bear
|
|
Join Date: Apr 2005
Server: Antonia Bayle
Posts: 9
|
|
thx but i m only begining and my logs are pretty crapy for now and i hate when something isn t working the way i want, I WANT to solve it
|
05-05-2005, 04:31 PM
|
|
Crushbone - Cronique
|
|
Join Date: Dec 2004
Server: Crushbone
Posts: 163
|
|
The answer to your problem is your started your log with:
(1115118558)[Tue May 03 13:09:18 2005] You start new map line
You cannot start a new map line until you have some /loc first. This is why it worked for Killarny. If you look at the info he converted, it does not start off with a new map line.
I hope this helps.
|
05-05-2005, 04:36 PM
|
A Brown Bear
|
|
Join Date: Apr 2005
Server: Antonia Bayle
Posts: 9
|
|
well i now tried about everything, and it s still not working, and i reduced my logfile to :
(1114304218)[Sat Apr 23 19:56:58 2005] Your location is 53.66, 29.79, 67.16. Your orientation is 124.17, 0.00, 0.00
and that s it, i installed everything again step by step reading the how to stuff and it s still not working
is there something that could forbid me to have it work? or can someone give me a sample of the .svg file so i can actualy make my own program with another language since i don t know XML
|
05-05-2005, 05:08 PM
|
|
EQ2MAP Updater Author
|
|
Join Date: Nov 2004
Server: Antonia Bayle
Posts: 1,349
|
|
well in order to draw a line you need at least 2 points if all your log file has is just 1 line that says
(1114304218)[Sat Apr 23 19:56:58 2005] Your location is 53.66, 29.79, 67.16. Your orientation is 124.17, 0.00, 0.00
then there wont be a line.
|
05-05-2005, 09:57 PM
|
|
Crushbone - Cronique
|
|
Join Date: Dec 2004
Server: Crushbone
Posts: 163
|
|
Here is the step by step, kinda, files for a map I made.
Last edited by diztorded : 05-05-2005 at 10:00 PM.
|
05-06-2005, 04:28 AM
|
A Brown Bear
|
|
Join Date: Apr 2005
Server: Antonia Bayle
Posts: 9
|
|
ok ...
after many many tries i finaly figured out what was wrong.
for some reason, the french log as only one space between first loc and orientations loc :
(1115369327)[Fri May 06 10:48:47 2005] Votre position est -97,82, -4,67, -27,15. Votre orientation est 266,47, 0,00, 0,00
(1114965444)[Sun May 01 12:37:24 2005] Your location is -15.02, -1.04, 5.05. Your orientation is 353.51, 0.00, 0.00
so i m working on a second mapper.xml that would accept french version
here is the mapper.xml version i made for french peeps but with the little knowledge i have in XML i didn t do much, and french user will still have to open there logs and change all "," to "." and i said all, not just the decimal number one
Last edited by highlander : 05-06-2005 at 05:01 AM.
|
05-06-2005, 11:04 AM
|
|
Crushbone - Cronique
|
|
Join Date: Dec 2004
Server: Crushbone
Posts: 163
|
|
I have made further changes to it. I have tested it with your file and it "seems" to be working properly without ANY changes having to be made to the logfile.
I am posting it in the HowTo with Paint Shop Pro.
|
05-06-2005, 11:32 AM
|
Scuba Steve
|
|
Join Date: Dec 2004
Server: Everfrost
Posts: 150
|
|
I modified the mapper.xml file as well (not that its actually an XML file :).
I changed it to support the european usage of a comma as decimal separator.
I also fixed it so that starting off with a "start new line" command, or putting consecutive "start new line" commands, is ignored.
Then I got rid of the "Using unitialized value" warnings.
It seemed to work for your french log file snippet from this post, tho you might want to try it on a larger sample.
|
05-06-2005, 09:00 PM
|
|
Crushbone - Cronique
|
|
Join Date: Dec 2004
Server: Crushbone
Posts: 163
|
|
This does not work. I am including a test.txt which is a French log for you to give a test run on. I think the problem resides in starting the new map line.
|
05-07-2005, 04:25 AM
|
Scuba Steve
|
|
Join Date: Dec 2004
Server: Everfrost
Posts: 150
|
|
Found the problem, and I changed the mapper.xml to work, but I have a question. Does the final coordinate in the French log file end in a comma or a period?
This is a line from the first post in this thread. Notice that the last coordinate ends in a period.
Code:
(1115118560)[Tue May 03 13:09:20 2005] Votre position est -17,83, 628,39, 125,04. Votre orientation est 89,95, 0,00, 0,00
This is a line from your sample log file. Notice that the last coordinate ends in a comma.
Code:
(1114445717)[Mon Apr 25 12:15:17 2005] Votre position est 189,29, -12,76, 140,16, Votre orientation est 0,52, 0,00, 0,00
In any case, I modified the mapper.xml to accept either, and it should now work.
|
05-07-2005, 06:26 AM
|
|
Crushbone - Cronique
|
|
Join Date: Dec 2004
Server: Crushbone
Posts: 163
|
|
To be honest, I do not know. Highlander would be able to tell us. In fact, Highlander, could you post a logfile that has not been altered?
|
05-11-2005, 01:02 AM
|
A Brown Bear
|
|
Join Date: Apr 2005
Server: Antonia Bayle
Posts: 9
|
|
here is a logfile that didn t touch, all i did is remove the /log on and off but it s also working with
for info i m using one of your new mapperfr and it s working very well
thx to all for you your help
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:52 AM.
|
|