Page 1 of 2

Plugin encryption

Posted: Thu Oct 05, 2017 1:55
by Lobby
Screenshot_20171005-014645.png
Screenshot_20171005-014903.png
Screenshot_20171005-014917.png
:teach

Re: [Beta]Plugin encryption

Posted: Thu Oct 05, 2017 2:02
by Josh
Does it change files into a ".plugin", cool!

Re: [Beta]Plugin encryption

Posted: Thu Oct 05, 2017 10:19
by Lobby
@Josh Yes, it grabs all files in the provided directory and throws them into a single .plugin-file you could then distribute to players. They just have to put it in the plugins directory as usual. The same works with zip files now, too.

@KoalaGuy Did you manage to decrypt them? :bq

Re: [Beta]Plugin encryption

Posted: Thu Oct 05, 2017 14:36
by KINGTUT10101
You should make it so the .zip can be read even if the folder was zipped and not the contents of that folder.

Re: [Beta]Plugin encryption

Posted: Thu Oct 05, 2017 14:37
by Lobby
@KINGTUT10101 that should actually work, doesn't it? Internally, zip and plugin files are just extracted (with all sub directories) and threated then as any other plugin.

Re: [Beta]Plugin encryption

Posted: Thu Oct 05, 2017 14:53
by JustAnyone
So if I encrypt it, can I decrypt it if I am plug-in creator?

Re: [Beta]Plugin encryption

Posted: Thu Oct 05, 2017 14:56
by Lobby

Re: [Beta]Plugin encryption

Posted: Thu Oct 05, 2017 15:05
by JustAnyone
So I should have a copy of .json if I will want to change it?

Re: [Beta]Plugin encryption

Posted: Thu Oct 05, 2017 15:17
by Lobby
Yes, that would be appropriate :bc
The idea is that you don't use your own .plugin file, that's why it's created outside of the plugins directory.

Re: [Beta]Plugin encryption

Posted: Thu Oct 05, 2017 15:19
by Lobby
A note: You can put .plugin files into .plugin files. This way you can share common used plugins (which use the "once":true flag) without leaking their internals and bundle them in new plugins.

Re: [Beta]Plugin encryption

Posted: Fri Oct 06, 2017 0:58
by KINGTUT10101
Lobby wrote:
Thu Oct 05, 2017 14:37
@KINGTUT10101 that should actually work, doesn't it? Internally, zip and plugin files are just extracted (with all sub directories) and threated then as any other plugin.
I tried it with my elevated terrain and it didn't work. It gave me the error because the elevated terrain add-ons use a special category and it wasn't loaded

Re: [Beta]Plugin encryption

Posted: Sat Oct 07, 2017 18:29
by Lobby
@KINGTUT10101 Are you sure that this was the error? Maybe it was tried to load it twice.

Re: [Beta]Plugin encryption

Posted: Sat Oct 07, 2017 18:59
by KINGTUT10101
Screenshot_20171007-115818.png
Screenshot_20171007-115848.png
Screenshot_20171007-115855.png

Re: [Beta]Plugin encryption

Posted: Sat Oct 07, 2017 19:12
by Lobby
Looks like a ordering issue :mine

Re: [Beta]Plugin encryption

Posted: Sun Oct 08, 2017 13:45
by CommanderABab
That's an extra comma after an } before an ]

Re: [Beta]Plugin encryption

Posted: Sun Oct 08, 2017 13:50
by Lobby
If I pack your plugin and move it into my plugins folder it works as intendend :?

Re: [Beta]Plugin encryption

Posted: Wed Oct 25, 2017 15:27
by motomo
KoalaGuy wrote:
Sun Oct 08, 2017 13:22
Screenshot_20171008-132100.png
I have the same problem like this one,
and I don't know how to fix it :?

Why I always got this error message, can someone help me?

Image

Re: [Beta]Plugin encryption

Posted: Wed Oct 25, 2017 18:22
by JustAnyone
Same as me.
Question!
Does this encrypt all folders in /plugin or named folder?

Re: [Beta]Plugin encryption

Posted: Wed Oct 25, 2017 19:28
by CommanderABab
All files in named folder and its subfolders are placed in the .plugin file.

Re: [Beta]Plugin encryption

Posted: Wed Nov 01, 2017 9:07
by JustAnyone
:space