+Alboy Posted May 1, 2007 Posted May 1, 2007 Hi all I was quite happily using the Rooku script, I don't remember why I felt the need to meddle but I did (something about wanting Child waypoints exporting I think)! I now export using the GSAK default Memory Map export, with the Edgemaster tweak and I now have all the child waypoints exporting well etc, many thanks to all. However I cannot get the linked file to point to my html files on my PDA. I've tried typing "\SD Card\Memory-Map-OS\Html cache\%code.htm" into the Use Local URL but I get an error message saying "Missing required file xref.txt in the HTML folder, please generate offline HTML again" I've tried to make sense of a couple of threads on this but they seem to refere to GSAK 7, or don't otherwise fit my scenario. If it helps, what I do is generate the html files to the C drive, then sync via Mobsync to my SD card. Anyone any ideas? (hopefully in 1 syllable words please!) Many thanks Quote
Edgemaster Posted May 1, 2007 Posted May 1, 2007 (edited) Problems were reported with cachemate and the Local URL box in v6. But, when GSAK exports to HTML, it will create an xref.txt file (as far as I know) point it to that. I'll just confirm this with my gsak help file. Edited May 1, 2007 by Edgemaster Quote
+Alboy Posted May 1, 2007 Author Posted May 1, 2007 (edited) Thanks Edgemaster - I was quite pleased to see you online! Do you mean change the local URL to "\SD Card\Memory-Map-OS\Html cache\xref.txt"? I can't see this helping as GSAK cannot trace that path as that is the path required on the PDA. So it won't know if the xref.txt file exists or not? Edited May 1, 2007 by Alboy Quote
Edgemaster Posted May 1, 2007 Posted May 1, 2007 (edited) Hmm, I'm unsure what to do, since it uses xref to generate the links. The help file doesn't say much, and I can't test as I don't have a PDA. Quick edit: Try "\SD Card\Memory-Map-OS\Html cache\" Edited May 1, 2007 by Edgemaster Quote
+Alboy Posted May 1, 2007 Author Posted May 1, 2007 Frustrating! But thanks for looking. It's not the end of the world, but it's a definite step backwards. Maybe I can get the roolku script to work with child waypoints? Or maybe I'll upgrade to GSAK 7 BTW did people get GSAK 6 and cachemate linking? Quote
Edgemaster Posted May 1, 2007 Posted May 1, 2007 Unfortunately not, the only instances that I am aware of upgraded to 7 - that allows a more flexible system. Also, in case you missed the edit above try "\SD Card\Memory-Map-OS\Html cache\" It may also be worth posting on the GSAK forums Clyde (the maker) knows GSAK the best, he may be able to assist (or even edit to allow v6 to be more receptive to general URLs) Quote
+rodz Posted May 1, 2007 Posted May 1, 2007 I fired my old PC which has GSAK v6. I think that you want the path name only so remove the "%code.htm" (which is used for v7) as Edgemaster suggested. I think I got cachemate to work in v6 by just putting cmate without any prefix. There were some changes made to how URLs were handled by GSAK in this situation in one of the last revisions for v6 which meant that I couldn't get a link that would work on both PPC and PC for offline HTML. So I used to have two sets of mmo overlays from two MM exports from GSAK. Quote
+Alboy Posted May 1, 2007 Author Posted May 1, 2007 thanks - the edit doesn't work - I get the same error message. I'll head over to GSAK forums as well. Quote
Edgemaster Posted May 1, 2007 Posted May 1, 2007 A messy workaround would be to call the MM export from a macro. After export, the macro would just do a mass-replace to fix the links. I'll try and put something together. Quote
+rodz Posted May 1, 2007 Posted May 1, 2007 Have you got the HTML export AND the MM export pointing to the same place ? It looks as though your MM export URL doesn't point to the directory where the xref.txt file is because the last sub folder in your MM export should be \cache which is appended by the HTML export. You should be able to look in your directory and see an xref.txt file and see what it says in there. Quote
Edgemaster Posted May 1, 2007 Posted May 1, 2007 $destination = "C:\Wherever\you\export\file.csv" $from = "file:///C:/Path/To/HTML/Export/On/PC" $to = "\SD Card\Memory-Map-OS\Html cache\" EXPORT Type=MEM File=$destination $CSVin = GetFile($destination) IF Left($CSVin,7) = "*Error*" Pause Msg="$CSVin" Cancel ENDIF $CSVout = Replace($from, $to, $CSVin, true) $error = PutFile($destination,$CSVout) IF Left($error,7) = "*Error*" Pause Msg="$error" Cancel ENDIF Tested under 6.6.5.19. Replace first 3 lines as apply to your situation - ensure you keep the slashes in the same direction, they are correct. Earlier builds of GSAK may require only two slashes after file: in line 3 Quote
+Alboy Posted May 2, 2007 Author Posted May 2, 2007 Thanks Edgemaster, much appreciated, but where should I drop this code in? To one of the text files from your zip file? Rodz, thanks, I now have them pointing at the same place but doesn't seem to help. I've posted on the GSAK as well, so hopefully someone can help. Cheers. Quote
Edgemaster Posted May 2, 2007 Posted May 2, 2007 Save to a new text file, and run as you would a normal macro. It will use the settings currently set in the Memory Map export dialogue. You will have to point the MM export to a copy of the HTML export saved somewhere on your local PC. The macro will simply convert the paths in the CSV to point to the files on the PDA. (Ensure you adjust the first 3 lines to suit your PC) Quote
+Alboy Posted May 3, 2007 Author Posted May 3, 2007 Thanks Edgemaster, this is great, I'm really grateful. I had the chance tonight to play with this - had to sacrifce watching Hustle but that's what recorders are for! Took me a while to get it to work but it's worked! An added bonus is that I can click through my Memory Map to get my offline, GSAK-generated cachepage up as the path is the same. Thanks again. PS - Did I say thanks?! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.