CamBam

Resources => Scripts and Plugins => Topic started by: GeoffreyGRoy on July 27, 2018, 10:06:06 am



Title: CamBam Plugin MX (Manager)
Post by: GeoffreyGRoy on July 27, 2018, 10:06:06 am
I have experimenting with developing a workable plugin manager following the earlier proposal at (http://www.cambam.co.uk/forum/index.php?topic=4961.0).

In this case I am focusing on the  local installing/uninstalling of individual plugins, rather than automating the download process. It provides a local library (folder) where the plugin dlls are stored, then copied to and from the plugins folder as required.  I have tired to contact BaNoBi with no success, as some of his code may be of use.

So, pushing on, here is my first attempt.  It is not a CamBam plugin, it is a separate application, and needs to be run when CamBam is not running - as it can alter the content of the "plugins" folder.

The multi language support is still rudimentary - needs to be hard coded.  I was not sure if I could use the CamBam translation files in a separate application - please advise.

Any ideas, suggestions, bugs, are most welcome.  Use with caution as plugin dlls in the plugins folder can be deleted, after a confirmation prompt.

Geoff

The French and German translations have been done (thanks to David and Ralf).   I have also made the Plugin web site (default) so it points to the correct language version.

Geoff


Title: Re: CamBam Plugin MX (Manager)
Post by: EddyCurrent on July 27, 2018, 11:06:42 am
Geoff,

The files from BaNoBi's plugin can be opened using ILSpy;

https://github.com/icsharpcode/ILSpy/releases

code in both the .dll and .exe can be viewed and saved.

Once opened in ILSpy select, File->Save Code and choose 'C# project'
You will probably have to hand edit some code in Visual Studio but you should be able to work it out.

Of course this works for almost all plugins here.


Title: Re: CamBam Plugin MX (Manager)
Post by: GeoffreyGRoy on July 28, 2018, 01:32:07 am
Thanks, I will try it out.
Geoff


Title: Re: CamBam Plugin MX (Manager)
Post by: pixelmaker on July 30, 2018, 22:56:27 pm
I will translate the User Guide into German in the next few days. I will then also send the translations for the program interface in German.
It'll take a few days. Because of nice high temperatures (about 40°C) I work early in the morning and in the evening. So I won't get to write anything about it until midnight.

For years I have been working with two plugin folders for activating / deactivating the plugins.
This program gives me a better overview. Thank you very much for that.

Ralf


Title: Re: CamBam Plugin MX (Manager)
Post by: GeoffreyGRoy on July 31, 2018, 00:10:31 am
Dear Ralf

As I indicated the UI translations are a bit simple at the moment, but I can provide (after a rebuild) alternative language support.  This is done in a Class (Params).  I am attaching this file below.  It should quite clear how to add the translated text elements.  I would greatly appreciate a German translation - that I can rebuild and circulate.

Once any initial bugs are sorted I will circulate the full code.

Geoff


Title: Re: CamBam Plugin MX (Manager)
Post by: dh42 on July 31, 2018, 01:12:36 am
Hello Geoff

I'll give you the French translations soon ;)

++
David


Title: Re: CamBam Plugin MX (Manager)
Post by: GeoffreyGRoy on July 31, 2018, 09:28:55 am
Thanks David, Geoff


Title: Re: CamBam Plugin MX (Manager)
Post by: dh42 on July 31, 2018, 23:21:17 pm
Hello

translated  ;) ; maybe you need to change the position of the \n in some texts ... (it's a carriage return if I well remember C ?)

++
David


Title: Re: CamBam Plugin MX (Manager)
Post by: lloydsp on July 31, 2018, 23:42:36 pm
No, "new line" (a line-feed).  A carriage return is "\r".

Lloyd


Title: Re: CamBam Plugin MX (Manager)
Post by: GeoffreyGRoy on August 01, 2018, 01:13:51 am
Dear David,

Many thanks, when I get the German translation I will release a new version.

Geoff


Title: Re: CamBam Plugin MX (Manager)
Post by: pixelmaker on August 01, 2018, 19:27:13 pm
Hello Geoff
here is the German translation.
I set them the way it was in the French text.
Under "public static string websiteURL" is the link to the english plugin page.
But this seems to be a static text that is not exchanged for language. Of course, it would also make sense to fill this variable from according to the language used.

ralf


Title: Re: CamBam Plugin MX (Manager)
Post by: GeoffreyGRoy on August 02, 2018, 01:58:22 am
Dear Ralf

Many thanks, I had not fully appreciated the websiteURL (language version) issue, I will update the next version to insert the associated language version URL when the language is changed.

Apart from EN, FR and DE are there any other language version web sites for plugins?

Geoff


Title: Re: CamBam Plugin MX (Manager)
Post by: dh42 on August 02, 2018, 03:23:50 am
Hello

Quote
Apart from EN, FR and DE are there any other language version web sites for plugins?

I never heard about other  ...

++
David