Thanks for the tip that did the trick. However when I launch the plugin the screen comes up and remains empty, GE is launched automatically. Ive tried different settings and none seem to render a GE image in the separate pane. What is further interesting is that when i close the screen by pressing the icon and then zoom to a different position or scale and try to relaunch the viewer, it fails to start GE. Both GE and OPCN are latest release running on native XPSP3. Same effect on vitural machine under linux.
sailias,
looks like the same problem Gilletarom was reporting. I can't reproduce it on any machine available here.
Try to send me your logfile, maybe I will get some clue what's up. Address in the OCPN Authors tab.
Course-up mode does not work as expected (Dave, what's PlugIn_ViewPort.rotation? Thought it will be degrees from north-up, but never get anything outside -5/+5 range as far as I can tell...)
In the PlugIn_ViewPort structure, the rotation parameter is specified in radians. Saves a little math with the trig functions you will be using....
I'm curious if you've decided how to tackle the com/memory consumption problem.
In MMG I ended up embedding a web server. I think this might be your best bet. I used the standar python webserver, but perhaps mongoose could work for you. If you were developing for Mac/Linux exclusively, you could just use a file placed in memory(/dev/shm). You could use a file in Windows but you'll be writing to disk excessively.
Anyhow, this is a really cool plugin idea. Are the sources available publicly?
Once this plugin is working well, I think it could be useful in cross referencing how the geo-referencing of questionable charts. Especially if an option is added to track the position of the cursor instead of the boat.
I'm curious if you've decided how to tackle the com/memory consumption problem.
At least in GE 6, the <NetworkLink> can point to local files - that's how google itself implemented the GPStracking in GE - it is a separate process writing a KML file GE opens periodically while instructed so with another KML file containing a <NetworkLink> element.
I took exactly the same approach for the upcoming 0.6.
GE has enormous problems regarding performance and resources consumption when you want it to do something fast (I would say an action 5 times a second is it's limit to be at least a little reliable - it still crashes at times though)
I create the file once a second right now (and am thinking of reducing the frequency further), so it's not that costly once you are rich enough to waste the resources to run GE itself
Anything in the log? Does at least the GE splashscreen appear (may be hidden under OCPN window - should be visible in the taskbar though) when you try to use the plugin? You have GE installed and it runs when used normally, right? It's version?
Sorry for asking such a stupid questions, but in the area of COM, one never knows...
sailias,
looks like the same problem Gilletarom was reporting. I can't reproduce it on any machine available here.
Pavel
I have not yet Yoruk's response to whether he can reproduce the problem but it will come.
From my side, here are my latest experiences.
On a ASUS 1001 HA, XP, SP3, normally we are 1024X600 but it is possible to adjust at any time in 1024 X 728. In this case, part of the screen is invisible but can be up or down the screen at will without any problem.
Moreover, it is possible to change, at will, at 1024X728 1024 X600 without any problems at any time and vice versa.
First : With 1024X600
GE normally does not work correctly. A message appears when you launch GE. See Attachment "first". But on my machine, in reality, it poses no problem except with GE2KP of Phiggins and with the plug-in GE OpenCPN.
If I insist, I have the screen "Second ".
Second : With 1024X728
If I go 1024X728 before tournament start the plug-in, then everything works fine. See the screen "B".
Third : With 1024X600 after 1024x728.
If I start in 1024X728, then I spend in 1024X600 after launching the plug-in GE, all perfectly continuous. See the screen "C".
I hope my English is clear enough for your understanding.
Join here : 4 jpg and a .doc but the .doc is a .zip and in the .zip there is my last .log. (because the .log is very big)
Gilletarom...
Bingo! This is clear - I totally forgot, that you have to get rid of that warning dialog as it clearly breaks everything and there's nothing we can do about it on plugin's side - To "repair" it once and for all, just run GE at 1024x600 and before clicking OK, check that checkbox on the left. That will prevent that dialog to show at the start-up of GE for the future. Will add it to the installation instructions...
Gilletarom...
Bingo! This is clear - I totally forgot, that you have to get rid of that warning dialog as it clearly breaks everything and there's nothing we can do about it on plugin's side - To "repair" it once and for all, just run GE at 1024x600 and before clicking OK, check that checkbox on the left. That
Pavel
I have try with checking "Do not alert me" on GE alert message for the size of the screen. And then all is OK with 1024X600 on initial size.
Anything in the log? Does at least the GE splashscreen appear (may be hidden under OCPN window - should be visible in the taskbar though) when you try to use the plugin? You have GE installed and it runs when used normally, right? It's version?
Sorry for asking such a stupid questions, but in the area of COM, one never knows...
Pavel
Hi Pavel,
Could not find the log. No GE splashscreen appears. GE version 6.0.1.2032 beta runs normally.
I've tried it with GE running and not running first.