EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > Featured Projects > EQ2MAP

Reply
Thread Tools Search this Thread Display Modes
  #1  
Unread 05-04-2005, 05:18 AM
highlander highlander is offline
A Brown Bear
 
Join Date: Apr 2005
Server: Antonia Bayle
Posts: 9
Default 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
Reply With Quote
  #2  
Unread 05-04-2005, 05:30 AM
Deathbane27's Avatar
Deathbane27 Deathbane27 is offline
aka Mook
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Jul 2004
Server: Nektulos
Posts: 1,451
Default

(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!
Reply With Quote
  #3  
Unread 05-04-2005, 05:38 AM
highlander highlander is offline
A Brown Bear
 
Join Date: Apr 2005
Server: Antonia Bayle
Posts: 9
Default

oh god i m a noob i didn t even notice my logs where in french lol
thx, i m trying this right now
Reply With Quote
  #4  
Unread 05-04-2005, 07:19 AM
diztorded's Avatar
diztorded diztorded is offline
Crushbone - Cronique
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Crushbone
Posts: 163
Default

I will update my HowTo to reflect what the parcer is looking for.
Reply With Quote
  #5  
Unread 05-04-2005, 10:51 AM
highlander highlander is offline
A Brown Bear
 
Join Date: Apr 2005
Server: Antonia Bayle
Posts: 9
Default

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.
Reply With Quote
  #6  
Unread 05-04-2005, 11:38 AM
sstair sstair is offline
Scuba Steve
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Everfrost
Posts: 150
Default

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.
Reply With Quote
  #7  
Unread 05-04-2005, 12:47 PM
highlander highlander is offline
A Brown Bear
 
Join Date: Apr 2005
Server: Antonia Bayle
Posts: 9
Default

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>
Reply With Quote
  #8  
Unread 05-04-2005, 04:24 PM
Deathbane27's Avatar
Deathbane27 Deathbane27 is offline
aka Mook
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Jul 2004
Server: Nektulos
Posts: 1,451
Default

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!
Reply With Quote
  #9  
Unread 05-05-2005, 02:07 AM
Killarny Killarny is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Neriak
Posts: 273
Default

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.
Reply With Quote
  #10  
Unread 05-05-2005, 06:25 AM
highlander highlander is offline
A Brown Bear
 
Join Date: Apr 2005
Server: Antonia Bayle
Posts: 9
Default

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
Reply With Quote
  #11  
Unread 05-05-2005, 11:28 AM
Killarny Killarny is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Neriak
Posts: 273
Default

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.
__________________
Reply With Quote
  #12  
Unread 05-05-2005, 11:50 AM
highlander highlander is offline
A Brown Bear
 
Join Date: Apr 2005
Server: Antonia Bayle
Posts: 9
Default

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
Reply With Quote
  #13  
Unread 05-05-2005, 04:31 PM
diztorded's Avatar
diztorded diztorded is offline
Crushbone - Cronique
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Crushbone
Posts: 163
Default

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.
Reply With Quote
  #14  
Unread 05-05-2005, 04:36 PM
highlander highlander is offline
A Brown Bear
 
Join Date: Apr 2005
Server: Antonia Bayle
Posts: 9
Default

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
Reply With Quote
  #15  
Unread 05-05-2005, 05:08 PM
taco-man's Avatar
taco-man taco-man is offline
EQ2MAP Updater Author
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Nov 2004
Server: Antonia Bayle
Posts: 1,349
Default

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.
__________________
EQ2MAP Updater Download
EQ2MAP Website
How to Install a custom interface
Reply With Quote
  #16  
Unread 05-05-2005, 09:57 PM
diztorded's Avatar
diztorded diztorded is offline
Crushbone - Cronique
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Crushbone
Posts: 163
Default

Here is the step by step, kinda, files for a map I made.
Attached Files
File Type: zip example.zip (89.0 KB, 243 views)

Last edited by diztorded : 05-05-2005 at 10:00 PM.
Reply With Quote
  #17  
Unread 05-06-2005, 04:28 AM
highlander highlander is offline
A Brown Bear
 
Join Date: Apr 2005
Server: Antonia Bayle
Posts: 9
Default

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
Attached Files
File Type: xml mapperfr.xml (1.2 KB, 287 views)

Last edited by highlander : 05-06-2005 at 05:01 AM.
Reply With Quote
  #18  
Unread 05-06-2005, 11:04 AM
diztorded's Avatar
diztorded diztorded is offline
Crushbone - Cronique
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Crushbone
Posts: 163
Default

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.
Reply With Quote
  #19  
Unread 05-06-2005, 11:32 AM
sstair sstair is offline
Scuba Steve
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Everfrost
Posts: 150
Default

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.
Attached Files
File Type: xml mapper.xml (1.5 KB, 292 views)
Reply With Quote
  #20  
Unread 05-06-2005, 09:00 PM
diztorded's Avatar
diztorded diztorded is offline
Crushbone - Cronique
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Crushbone
Posts: 163
Default

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.
Attached Files
File Type: txt test.txt (75.7 KB, 255 views)
Reply With Quote
  #21  
Unread 05-07-2005, 04:25 AM
sstair sstair is offline
Scuba Steve
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Everfrost
Posts: 150
Default

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.
Attached Files
File Type: xml mapper.xml (1.5 KB, 306 views)
Reply With Quote
  #22  
Unread 05-07-2005, 06:26 AM
diztorded's Avatar
diztorded diztorded is offline
Crushbone - Cronique
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Crushbone
Posts: 163
Default

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?
Reply With Quote
  #23  
Unread 05-11-2005, 01:02 AM
highlander highlander is offline
A Brown Bear
 
Join Date: Apr 2005
Server: Antonia Bayle
Posts: 9
Default

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
Attached Files
File Type: txt soussol.txt (8.5 KB, 274 views)
Reply With Quote
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 06:58 PM.


Our Network
EQInterface | EQ2Interface | WoWInterface | LoTROInterface | ESOUI | MMOUI