Plugin encryption (create .plugin file)

Learn here how to create and use plugins.

Moderator: Plugin Moderators

User avatar
Lobby
Developer
Reactions:
Posts: 3705
Joined: 26 Oct 2008, 12:34
Plugins: Showcase Store
Version: Beta

Platform

Plugin encryption (create .plugin file)

#1

Post by Lobby »

Screenshot_20171005-014645.png
Screenshot_20171005-014903.png
Screenshot_20171005-014917.png
:teach

User avatar
Josh
Graphic designer
Reactions:
Posts: 2214
Joined: 11 Mar 2017, 19:20
Location: The Netherlands
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: [Beta]Plugin encryption

#2

Post by Josh »

Does it change files into a ".plugin", cool!

User avatar
Lobby
Developer
Reactions:
Posts: 3705
Joined: 26 Oct 2008, 12:34
Plugins: Showcase Store
Version: Beta

Platform

Re: [Beta]Plugin encryption

#3

Post 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

User avatar
KINGTUT10101
1,000,000 inhabitants
Reactions:
Posts: 2220
Joined: 07 Jul 2016, 22:50
Location: 'Merica
Plugins: Showcase Store
Version: Beta
Contact:

Plugin Creator

Platform

Re: [Beta]Plugin encryption

#4

Post 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.

User avatar
Lobby
Developer
Reactions:
Posts: 3705
Joined: 26 Oct 2008, 12:34
Plugins: Showcase Store
Version: Beta

Platform

Re: [Beta]Plugin encryption

#5

Post 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.

User avatar
JustAnyone
Developer
Reactions:
Posts: 3474
Joined: 23 Jul 2017, 12:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: [Beta]Plugin encryption

#6

Post by JustAnyone »

So if I encrypt it, can I decrypt it if I am plug-in creator?

User avatar
Lobby
Developer
Reactions:
Posts: 3705
Joined: 26 Oct 2008, 12:34
Plugins: Showcase Store
Version: Beta

Platform

Re: [Beta]Plugin encryption

#7

Post by Lobby »


User avatar
JustAnyone
Developer
Reactions:
Posts: 3474
Joined: 23 Jul 2017, 12:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: [Beta]Plugin encryption

#8

Post by JustAnyone »

So I should have a copy of .json if I will want to change it?

User avatar
Lobby
Developer
Reactions:
Posts: 3705
Joined: 26 Oct 2008, 12:34
Plugins: Showcase Store
Version: Beta

Platform

Re: [Beta]Plugin encryption

#9

Post 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.

User avatar
Lobby
Developer
Reactions:
Posts: 3705
Joined: 26 Oct 2008, 12:34
Plugins: Showcase Store
Version: Beta

Platform

Re: [Beta]Plugin encryption

#10

Post 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.

User avatar
KINGTUT10101
1,000,000 inhabitants
Reactions:
Posts: 2220
Joined: 07 Jul 2016, 22:50
Location: 'Merica
Plugins: Showcase Store
Version: Beta
Contact:

Plugin Creator

Platform

Re: [Beta]Plugin encryption

#11

Post by KINGTUT10101 »

Lobby wrote:
05 Oct 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

User avatar
Lobby
Developer
Reactions:
Posts: 3705
Joined: 26 Oct 2008, 12:34
Plugins: Showcase Store
Version: Beta

Platform

Re: [Beta]Plugin encryption

#12

Post by Lobby »

@KINGTUT10101 Are you sure that this was the error? Maybe it was tried to load it twice.

User avatar
KINGTUT10101
1,000,000 inhabitants
Reactions:
Posts: 2220
Joined: 07 Jul 2016, 22:50
Location: 'Merica
Plugins: Showcase Store
Version: Beta
Contact:

Plugin Creator

Platform

Re: [Beta]Plugin encryption

#13

Post by KINGTUT10101 »

Screenshot_20171007-115818.png
Screenshot_20171007-115848.png
Screenshot_20171007-115855.png

User avatar
Lobby
Developer
Reactions:
Posts: 3705
Joined: 26 Oct 2008, 12:34
Plugins: Showcase Store
Version: Beta

Platform

Re: [Beta]Plugin encryption

#14

Post by Lobby »

Looks like a ordering issue :mine

User avatar
CommanderABab
AB
Reactions:
Posts: 11086
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: [Beta]Plugin encryption

#15

Post by CommanderABab »

That's an extra comma after an } before an ]

User avatar
Lobby
Developer
Reactions:
Posts: 3705
Joined: 26 Oct 2008, 12:34
Plugins: Showcase Store
Version: Beta

Platform

Re: [Beta]Plugin encryption

#16

Post by Lobby »

If I pack your plugin and move it into my plugins folder it works as intendend :?

User avatar
motomo
Small-town resident
Reactions:
Posts: 36
Joined: 08 Aug 2017, 07:58
Location: Easternia
Plugins: Showcase Store

Platform

Re: [Beta]Plugin encryption

#17

Post by motomo »

KoalaGuy wrote:
08 Oct 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

User avatar
JustAnyone
Developer
Reactions:
Posts: 3474
Joined: 23 Jul 2017, 12:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: [Beta]Plugin encryption

#18

Post by JustAnyone »

Same as me.
Question!
Does this encrypt all folders in /plugin or named folder?

User avatar
CommanderABab
AB
Reactions:
Posts: 11086
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: [Beta]Plugin encryption

#19

Post by CommanderABab »

All files in named folder and its subfolders are placed in the .plugin file.

User avatar
JustAnyone
Developer
Reactions:
Posts: 3474
Joined: 23 Jul 2017, 12:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: [Beta]Plugin encryption

#20

Post by JustAnyone »

:space
Attachments
Screenshot_2017-11-01-09-05-01-331_info.flowersoft.theotown.theotown.png

Post Reply Previous topicNext topic

Return to “Tutorials and Documentation”