|
|
|
|
|
|
BMW Garage | BMW Meets | Register | Today's Posts | Search |
|
BMW 3-Series (E90 E92) Forum
>
New POIs on Navi (Professional)
|
|
04-30-2006, 03:31 AM | #111 |
New Member
0
Rep 26
Posts |
Guys,
I am just getting mad.... Active Perl 5.6 Windows XP SP2 Used the original script from Mathmos (that I give here, as I am really doubting of everything...) I get the following message : C:\>perl scriptjav.txt sample.asc Can't take log of -1 at script.txt line 41, <> chunk 1. HELP, I'M TIRED OF IT ! Dr Fluid, still I would like an exe.... Last edited by StressFull; 06-02-2006 at 04:46 PM.. |
Appreciate
0
|
04-30-2006, 03:36 AM | #112 |
New Member
0
Rep 26
Posts |
Just did the trick with :
$/ = "\n"; # set input record separator $\ = "\r\n"; # set output record separator and at least not error message. However I opened the 2 URL, they look the same, but the one I did is with <CR> at each end of line under VEdit, when the one from Mathmos is without... Same for IDX, I generate much more <CR> than in the original file of Mathmos. Attached a sample of my result... Any hint ? Last edited by StressFull; 06-02-2006 at 04:46 PM.. |
Appreciate
0
|
04-30-2006, 04:10 AM | #113 |
New Member
0
Rep 29
Posts |
Ok, I've done some playing with your files and my files to try and find out why yours comes out differently and why you need to modify the perl script and I don't and I've manged to find the answers.
<whispers> You know I said that I used Activeperl, I was lying I originally installed Activeperl as that was what others in this thread mentioned however then gave up using it when people said it didn't work. I then went down the linux virtual machine route instead. I still wanted an all windows solution so I downloaded Cygwin that jav mentions earlier in this thread to see what that was. Installed that choosing to install perl and a couple of editors only. Didn't think anything else of it because I thought Cygwin was a command shell that was only there when you started the application and hence applications included in Cygwin would only be availble when you were running the Cygwin shell. That does not appear to be the case, or certainly not with perl it doesn't. When I type perl -v at an ordinary command prompt it tells me "This is perl, v5.8.7 built for cygwin" !!! I'm really, really, really sorry for leading some of you up the garden path but I had no idea that perl for Cygwin was usable outside of Cygwin and it was that which was running when I run javs perl script. Anyway at least I have found a version of perl that does work as we want under Windows! Does that redeem me? |
Appreciate
0
|
04-30-2006, 05:05 AM | #114 | |
New Member
0
Rep 29
Posts |
Quote:
But so far the procedure works ok on all these disks thankfully. |
|
Appreciate
0
|
04-30-2006, 05:14 AM | #115 | |
New Member
0
Rep 29
Posts |
Quote:
|
|
Appreciate
0
|
04-30-2006, 06:30 AM | #116 |
New Member
0
Rep 29
Posts |
I'm going to put together over the next few days what I hope will be a comprehensive HowTo guide. Covering software that works, different NAV DVD versions, examples etc.
Will post a copy here as soon as I having to show. |
Appreciate
0
|
04-30-2006, 07:58 AM | #117 |
New Member
0
Rep 26
Posts |
I've just installed Cygwin and it is working !!!
Same files... I'm just amazed ! Make sure you put in your howto that you need to specify during the installation of cygwin that Perl has to be installed (default no installation !). Mathmos, do you know if the "ESPANA" or "BELGIE" in my case are of importance ? I would like to have NETHERLANDS, GERMANY, FRANCE AND BELGIUM all in one file ? Anyway, I'll try with my own ASCs. I'll keep you posted. SO THIS IS OFFICIAL AND AGREED : use Cygwin under Windows, not ActivePerl ! |
Appreciate
0
|
04-30-2006, 08:25 AM | #118 | |
New Member
0
Rep 29
Posts |
Quote:
Well Done Sir! I've been looking and it certainly appears that you can have different countries all in one file. Take a look at other url files on the NAV DVD and in many cases you'll find a mixture of countries. |
|
Appreciate
0
|
04-30-2006, 08:54 AM | #119 |
New Member
0
Rep 26
Posts |
Live from home....
Burn the dvd (by the what file system did you use with dvd decrypter ? ISO 1999, ISO+Joliet or ISO+UDF) ? Was very excited.... BUT... No menus at all !! 2 options : 1. the default mode for burning images from Nero is corrupting some text files or 2. my lsc files are wrong (I modified eng.lsc and fre.lsc, as my default language is french). Did not work in english either.... Shall I go on or am I doomed ? I shall go on, with your support guys ! Will keep you posted ! Just in case you want to spend some time, my lsc files in attachement...BTW Mathmos, did you modify TPD-SEV in lsc files ? Last edited by StressFull; 06-02-2006 at 04:47 PM.. |
Appreciate
0
|
04-30-2006, 09:05 AM | #120 | |
New Member
0
Rep 29
Posts |
Quote:
You need to edit line 33 ( the line that begins ) print URL "POSWGS:S and remove the spaces that occur here NAME:S:$name len so it becomes NAME:S:$namelen and here COUNTRY:S :6 so it becomes COUNTRY:S:6 (though if you change the country in the asc to UK this will become) COUNTRY:S:2 ( or the length of whatever country you have in your asc file ) and ENTP4:S:0|E NTP5:S:0 so it becomes ENTP4:S:0|ENTP5:S:0 and B RANDNAME:S:0|_:S:0"; so it becomes BRANDNAME:S:0|_:S:0"; I did try to include the whole of the corrected line in this post but even with the CODE tags around it, it seems this board is inserting those spaces. Hope this helps! [LATER] I can confirm that making the corrections outlined above does result in place names being displayed correctly Last edited by mathmos; 04-30-2006 at 10:33 AM.. |
|
Appreciate
0
|
04-30-2006, 09:25 AM | #121 | |
New Member
0
Rep 29
Posts |
Quote:
What I did was: Generate all the files required: idx, url, lsc, sf*htm, st*htm etc. Make an image of the DVD using Nero (creates a .nrg file) Open .nrg using UltraISO, right click on the image name (CD_nnnn) and select Properties. In the CD File Section ensure only ISO 9660, Joliet and UDF are ticked. In the ISO 9660 FileName Format section select the Windows/Unix(31) option and leave the other options alone. In The Joliet FileName Format Section select the Extended(110) option. On the Date/Time tab tick the Creation and Modification boxes but do nothing else. Now press OK to save these preferences. Drag and drop the files you have chaged\created from their relevant location in the bottom part of the UltaISO window to the correct location in the top part of the UltraISO window (will be obvious!) Do a Save As and give the image a filename and type .iso Close UltraIso Open DVD Decrypter, from the menu select Mode | ISO | Write Select the .iso file you created and then click on Write to burn the DVD. |
|
Appreciate
0
|
04-30-2006, 11:13 AM | #122 |
New Member
0
Rep 26
Posts |
So, my dear Mathmos,
I am proud to announce you that (drums) : IT IS WORKING ! I now have your nice icons on my maps, and it is just plain great ! Thank you forever, I have tried since the beginning of this thread and only today, after 20+ DVD failed, I have succeeded ! This is indeed only thanks to you. You took the time to explain. I would add that I burned on a very good medium (Verbatim) and very slow (x2 on a x 16 media). Mathmos, as I firmly believe in sharing (some nutcase wanted to sell this on ebay...), I am ready to help you on the redaction of the howto, to make it idiot proof, as I have some experience about being idiot (or ignorant). Guys, it is a just a very happy day ! Sounds childish, but that is how I feel ! |
Appreciate
0
|
04-30-2006, 12:04 PM | #124 |
New Member
0
Rep 26
Posts |
Yep, I noticed it in the url file just before you posted it.
Also I think the properties with UltraIso were of help. Finally, I also re-organised the initial asc file which was a mess. No I am wondering if we could append several files to do BELGIUM FRANCE and other countries... Or modify the perl script with an "IF" depending on the input file ? What do you think ? Cheers. |
Appreciate
0
|
04-30-2006, 04:30 PM | #126 | |
New Member
0
Rep 29
Posts |
Quote:
I've included the amended perl script in the attachment with this message along with my sample input file and the resulting idx and url files. Perhaps if you don't mind risking wasting one more DVD you could give it a try? |
|
Appreciate
0
|
05-01-2006, 12:29 PM | #127 |
Rudolf OS X
0
Rep 39
Posts |
Mathmos
You wer're right. Removed the spaces and (plus a few user errors) now I'm the proud user of three new catagories. Of course, I'm not satisifed - now I'm off to add a submenu for Supermarkets, improve the quality of my icons and even correct the x,y co-ords for the local Dealer Service shop! I might even try to work out what some of those Roll's Royce POI's are and activate them.... Cheers & good luck to everyone else G PS: I used your modified Perl, it worked great (and on my three .asc's - National Trust, English Heritage and Tesco). I'm thinking of trying another mod to allow a command line variable for the group number (e.g. 9000) as used in sf_/st_nnnn.... I'm no Perl expert either If that works. I might explore what changes in the car when you populate more fields e.g. City, Street etc. |
Appreciate
0
|
05-01-2006, 01:24 PM | #128 |
New Member
0
Rep 26
Posts |
Mathmos,
Worked like a charm. I have the speed cameras of Belgium and France on my screen... Thanks for your excellent spirit. Again, I think you should write a HowTo, and I am ready to either write or correct and improve should you need me. Just PM me anytime. Thanks again, it's been a pleasure "talking" to you. All the best ! |
Appreciate
0
|
05-01-2006, 01:51 PM | #129 | |
Second Lieutenant
23
Rep 244
Posts |
Quote:
Could you elaborate on the binary lookup table after the first two lines of the idx files? I need to understand what information the table might have to creat EXE. Thanks.
__________________
330i-NAV-Premium
|
|
Appreciate
0
|
05-01-2006, 04:32 PM | #130 | |
New Member
0
Rep 29
Posts |
Quote:
So you would call it thus perl createidxurl.pl inputfile.asc 9000 or perl createidxurl.pl inputfile.asc 9001 Note to non-UK readers: This script sets the country field to UK so remember to change this and the country field size accordingly. |
|
Appreciate
0
|
05-02-2006, 01:02 AM | #131 |
Rudolf OS X
0
Rep 39
Posts |
Mathmos
You've got way too much free time on your hands! I'm already suffering the evil glares from Misses and 1yr old daughter over the time its taken me to cut my first six test disks! Looking forward to test driving your new script once I am back later this week. Hopefully I'll post that I've succesfully got the submenus working.... Cheers |
Appreciate
0
|
05-02-2006, 03:20 AM | #132 | |
Second Lieutenant
23
Rep 244
Posts |
Quote:
It is a table with 2 column indicating a line number of a POI and its corresponding x coordinate. I sampled some original idx files out of the DVD, but the interval in the table is not equidistant. One file has [0 20 40 60 78 89 ...]th location in the binary table, whereas the other has [0 50 91 122 155 205 255 ... ]. Is there or should there be a certain rule in writing this binary table? Once i understand the order for the binary table, then it's no problem to create EXE. I think I will write a code in FORTRAN rather than in Matlab.
__________________
330i-NAV-Premium
|
|
Appreciate
0
|
Bookmarks |
|
|