Cruisers Forum
 

Go Back   Cruisers & Sailing Forums > Seamanship, Navigation & Boat Handling > OpenCPN
Cruiser Wiki Click Here to Login
Register Vendors FAQ Community Calendar Today's Posts Log in

Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 03-07-2012, 09:54   #1
Registered User

Join Date: May 2012
Posts: 1,205
Tidal Current plugin for European Waters Again

Here is the prototype for a European Tidal Current plugin. Windows only. Tested with XP SP3 only.

Lots of work was copied from other parts of the OpenCPN source code, especially the work done by SethDart with his KML plugin.

Attached is the EUTidalCurrents plugin and also "libexpat.dll". If you have not installed the KML plugin you will need to put this latter file in your main OpenCPN installation folder. Plugin file goes in the plugins folder as normal.

The zip file TSDemo contains the folder 'TS Demo'. This contains the KMZ files for Tidal Currents in South West England. These are examples only. Place the folder somewhere on your system where you can find the folder after starting the plugin. The KMZ files can be viewed with Google earth as well as the plugin. Transparency of the KMZ files is set to 50%. This could be adjusted if you make your own files.

The MAPC2MAPCNET program and Google Earth were used to create the KMZ files. There are many paper sources of Tidal Current data.

This plugin is a work in progress. Saving the folder path/name when closing down OpenCPN does not work. There may be other anomalous behaviour that I have not noticed, which could affect your opencpn.ini file. There is work to be done with relating the time displayed in the dialog to the Tidal Current displayed at that time.

Comments are always welcome.

Mike

Here is the link for the files. Sorry, Google Drive is needed.

https://docs.google.com/folder/d/0B4...wwN2ZvcmM/edit
Rasbats is offline   Reply With Quote
Old 07-07-2012, 22:37   #2
Registered User

Join Date: May 2012
Posts: 1,205
Re: Tidal Current plugin for European Waters Again

The EU Tidal Currents plugin has been updated.

The plugin no longer walks all over the 'opencpn.ini' file. Location of the folder containing the KMZ files is saved in it's own section of the 'ini' file. When the plugin is re-started this folder is written into the Tidal Atlas box.

Work still to do on the size of the dialog box and the link between date/time and the tidal atlas.

Attached is the updated plugin file. Please remove the .doc extension and unzip to access the .dll.

Mike
Attached Files
File Type: doc EUTidalcurrents_pi.zip.doc (180.6 KB, 224 views)
Rasbats is offline   Reply With Quote
Old 07-07-2012, 23:07   #3
Registered User
 
sailorF54's Avatar

Join Date: Dec 2009
Location: Perros-Guirec, France
Boat: Jeanneau Sunshine 36
Posts: 999
Re: Tidal Current plugin for European Waters Again

The plugin doesn't appear in the toolbox/plugin window, nor in the ini file.
EUTidalcurrents_pi.dll in the pluging folder
Libexpat in the main OpenCpn folder.
TSDemo folder on the desktop
Windows7 with OpenCpn 3.0.1
???
sailorF54 is offline   Reply With Quote
Old 07-07-2012, 23:33   #4
Registered User

Join Date: May 2012
Posts: 1,205
Re: Tidal Current plugin for European Waters Again

sailorF54

Appreciate your attempts at using the plugin.

I am using OpenCPN 3.0

Back to the drawing board. First step will be building the plugin with v3.01. Watch this space!

Did you try using the KMLOverlay plugin from SethDart?

Mike
Rasbats is offline   Reply With Quote
Old 08-07-2012, 00:44   #5
Registered User
 
sailorF54's Avatar

Join Date: Dec 2009
Location: Perros-Guirec, France
Boat: Jeanneau Sunshine 36
Posts: 999
Re: Tidal Current plugin for European Waters Again

Here is the log file for the EUTidal and KmlOverlay (hoping I got the latest version for the second one)


-----------------
09:17:15: PlugInManager: Loading PlugIn: C:\Program Files\OpenCPN\plugins/EUTidalcurrents_pi.dll
09:17:15: Error: Failed to load shared library 'C:\Program Files\OpenCPN\plugins/EUTidalcurrents_pi.dll' (error 14001: l’application n’a pas pu démarrer car sa configuration côte-à-côte est incorrecte. Pour plus d’informations, consultez le journal d’événements d’applications ou utilisez l’outil de ligne de commande sxstrace.exe.)
09:17:15: PlugInManager: Cannot load library: C:\Program Files\OpenCPN\plugins/EUTidalcurrents_pi.dll

.....
09:17:15: PlugInManager: Loading PlugIn: C:\Program Files\OpenCPN\plugins/kmloverlay_pi.dll
09:17:15: Error: Failed to load shared library 'C:\Program Files\OpenCPN\plugins/kmloverlay_pi.dll' (error 14001: l’application n’a pas pu démarrer car sa configuration côte-à-côte est incorrecte. Pour plus d’informations, consultez le journal d’événements d’applications ou utilisez l’outil de ligne de commande sxstrace.exe.)
09:17:15: PlugInManager: Cannot load library: C:\Program Files\OpenCPN\plugins/kmloverlay_pi.dll
sailorF54 is offline   Reply With Quote
Old 08-07-2012, 01:21   #6
Registered User

Join Date: May 2012
Posts: 1,205
Re: Tidal Current plugin for European Waters Again

Thanks for the log file information.

Installed OpenCPN 3.0.1 on WinXP SP3.

OpenCPN running.

Copied the EUTidalCurrents plugin to the plugin folder. No sign of the plugin.

Closed OpenCPN and re-started and then the plugin was seen and found working.

Win7?

Mike
Rasbats is offline   Reply With Quote
Old 08-07-2012, 01:49   #7
Registered User
 
sailorF54's Avatar

Join Date: Dec 2009
Location: Perros-Guirec, France
Boat: Jeanneau Sunshine 36
Posts: 999
Re: Tidal Current plugin for European Waters Again

Quote:
Originally Posted by Rasbats View Post

Win7?

Mike
Who knows ?
Time and other users may tell !
sailorF54 is offline   Reply With Quote
Old 09-07-2012, 03:37   #8
Registered User

Join Date: May 2012
Posts: 1,205
Re: Tidal Current plugin for European Waters Again

Good day,

I have re-read the KML overlay thread. SethDart solved the problem of that plugin loading, for some people, by providing 'zlib1.dll'. This is copied to the main OpenCPN folder. I have attached a copy of 'zlib1.dll' to this post. Just remove the '.doc' extension. On my machines other programs are already using their own copy of 'zlib1.dll', which perhaps explains my lack of a problem.

One bug for me to eliminate is when a KMZ file is loaded for an area far away from the chart you are viewing, especially a 'KAP'. This causes OpenCPN to crash on my machine.

Mike
Attached Files
File Type: doc zlib1.dll.doc (65.0 KB, 129 views)
Rasbats is offline   Reply With Quote
Old 09-07-2012, 10:55   #9
Registered User
 
sailorF54's Avatar

Join Date: Dec 2009
Location: Perros-Guirec, France
Boat: Jeanneau Sunshine 36
Posts: 999
Unhappy Re: Tidal Current plugin for European Waters Again

Quote:
Originally Posted by Rasbats View Post
Good day,

I have re-read the KML overlay thread. SethDart solved the problem of that plugin loading, for some people, by providing 'zlib1.dll'. This is copied to the main OpenCPN folder. I have attached a copy of 'zlib1.dll' to this post. Just remove the '.doc' extension. On my machines other programs are already using their own copy of 'zlib1.dll', which perhaps explains my lack of a problem.

One bug for me to eliminate is when a KMZ file is loaded for an area far away from the chart you are viewing, especially a 'KAP'. This causes OpenCPN to crash on my machine.

Mike


I still get the same error with zlib1 present
----
19:49:48: PlugInManager: Loading PlugIn: C:\Program Files\OpenCPN\plugins/EUTidalcurrents_pi.dll
19:49:48: Error: Failed to load shared library 'C:\Program Files\OpenCPN\plugins/EUTidalcurrents_pi.dll' (error 14001: l’application n’a pas pu démarrer car sa configuration côte-à-côte est incorrecte. Pour plus d’informations, consultez le journal d’événements d’applications ou utilisez l’outil de ligne de commande sxstrace.exe.)
-----
Could you post here the version of the KMZ plugin you are using ?
I also get an error for it
sailorF54 is offline   Reply With Quote
Old 10-07-2012, 07:05   #10
Registered User

Join Date: May 2012
Posts: 1,205
Re: Tidal Current plugin for European Waters Again

SailorF54

The version number shown for the KML Overlay plugin is 0.2.

The same version number appears for both versions (normal and test) that were available from Jean-Eudes and found in the KML Overlay Plugin thread.

Mike
Rasbats is offline   Reply With Quote
Old 13-07-2012, 09:39   #11
Registered User

Join Date: Apr 2012
Posts: 59
Re: Tidal Current plugin for European Waters Again

good work!
I have it running on 3.0 on Windows 7. It crashed when zoomed in outside the region (I was zoomed in on Exmouth, just east of the tidal stream area) but if I have some of the plugin area visible when I click on one of the HW Dover +/- buttons it is fine.
jimseng is offline   Reply With Quote
Old 13-07-2012, 09:51   #12
Registered User

Join Date: May 2012
Posts: 1,205
Re: Tidal Current plugin for European Waters Again

Thanks for the test.

Work on the plugin will have to stop while I go sailing for a couple of weeks. I will look at issues such as this when I return.

Mike
Rasbats is offline   Reply With Quote
Old 28-07-2012, 11:29   #13
Registered User

Join Date: May 2012
Posts: 1,205
Re: Tidal Current plugin for European Waters Again

For machines where the plugin 'EU Tidal Currents' will not work I found an interim solution.

A messy workaround. Install Visual Studio 2008 Express Edition for C++. No need to register (I think!).


Visual Studio 2008 Express | Microsoft Visual Studio

Use the Visual C++ link.

The only dll needed in the OpenCPN main program folder is 'libexpat.dll'. Plugin 'EUTidalCurrents.dll' in the plugins folder as normal.

Many issues to resolve.

The plugin needs a lot of work on it to make it more responsive and take up less of the screen. Also I have to work on the VC9 compiler problem. OpenCPN and the plugin itself are compiled with VC10. Components used to make the plugin use VC9. Attached is a summary of the errors found before installing Visual Studio 2008 C++ Express. Need to compile the components with VC10 but this may take some working out!

Attached is an extract from the OpenCPN.log file when the plugin would not start and also the error text from 'Event Viewer'.

Where people have experienced problems with the KML Overlay plugin (from SethDart) the workaround described above may help.
Attached Files
File Type: txt euproblem.txt (522 Bytes, 108 views)
Rasbats is offline   Reply With Quote
Old 29-07-2012, 14:03   #14
Registered User

Join Date: May 2012
Posts: 1,205
Re: Tidal Current plugin for European Waters Again

Made some changes to the plugin code. This included recompiling URIPARSER with VS10.

EUTidalCurrents_pi.dll does not SEEM (!!!) to need any workarounds on WinXP SP3. Just 'Libexpat.dll' in the main OpenCPN folder.

Updated plugin is attached. Just remove the .pdf file extension. Tidal current folder from the previous post.

Mike
Attached Files
File Type: pdf EUTidalcurrents_pi.dll.pdf (495.0 KB, 114 views)
Rasbats is offline   Reply With Quote
Old 01-08-2012, 08:36   #15
Registered User
 
sailorF54's Avatar

Join Date: Dec 2009
Location: Perros-Guirec, France
Boat: Jeanneau Sunshine 36
Posts: 999
Re: Tidal Current plugin for European Waters Again

Seems OK now with 3.1.714 running W7.
(The icon won't show though, nor the AIS radar: let's wait for Jesperwe next release)
Attached Thumbnails
Click image for larger version

Name:	Image001.jpg
Views:	299
Size:	217.1 KB
ID:	44262  
sailorF54 is offline   Reply With Quote
Reply

Tags
current


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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Advertise Here


All times are GMT -7. The time now is 19:15.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.