Plugin encryption (create .plugin file)

Find tutorials, documentation, and resources for creating and using TheoTown plugins.
User avatar
Lobby
Inhabitant of a Supercluster
Reactions:
Posts: 3759
Joined: 26 Oct 2008, 10:34
Plugins: Showcase Store

Plugin encryption (create .plugin file)

Post by Lobby »

 ! Message from: TheoTown
The presented way of packaging plugins is deprecated. We are using .ttplugin files now which can be generated here.
Screenshot_20171005-014645.png
Screenshot_20171005-014903.png
Screenshot_20171005-014917.png
:teach
You do not have the required permissions to view the files attached to this post.
User avatar
Josh
Inhabitant of a Galaxy
Reactions:
Posts: 2213
Joined: 11 Mar 2017, 17:20
Location: The Netherlands
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: [Beta]Plugin encryption

Post by Josh »

Does it change files into a ".plugin", cool!
TheoTown player since update 1.1.50

Creator of Aldorria, Covinton Empire, West Country, Sunnydale
User avatar
Lobby
Inhabitant of a Supercluster
Reactions:
Posts: 3759
Joined: 26 Oct 2008, 10:34
Plugins: Showcase Store

Re: [Beta]Plugin encryption

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: 2211
Joined: 07 Jul 2016, 20:50
Location: 'Merica
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: [Beta]Plugin encryption

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
Inhabitant of a Supercluster
Reactions:
Posts: 3759
Joined: 26 Oct 2008, 10:34
Plugins: Showcase Store

Re: [Beta]Plugin encryption

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
Honorary Contributor
Reactions:
Posts: 3666
Joined: 23 Jul 2017, 10:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: [Beta]Plugin encryption

Post by JustAnyone »

So if I encrypt it, can I decrypt it if I am plug-in creator?
:pickle:
User avatar
Lobby
Inhabitant of a Supercluster
Reactions:
Posts: 3759
Joined: 26 Oct 2008, 10:34
Plugins: Showcase Store

Re: [Beta]Plugin encryption

Post by Lobby »

User avatar
JustAnyone
Honorary Contributor
Reactions:
Posts: 3666
Joined: 23 Jul 2017, 10:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: [Beta]Plugin encryption

Post by JustAnyone »

So I should have a copy of .json if I will want to change it?
:pickle:
User avatar
Lobby
Inhabitant of a Supercluster
Reactions:
Posts: 3759
Joined: 26 Oct 2008, 10:34
Plugins: Showcase Store

Re: [Beta]Plugin encryption

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
Inhabitant of a Supercluster
Reactions:
Posts: 3759
Joined: 26 Oct 2008, 10:34
Plugins: Showcase Store

Re: [Beta]Plugin encryption

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: 2211
Joined: 07 Jul 2016, 20:50
Location: 'Merica
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: [Beta]Plugin encryption

Post by KINGTUT10101 »

Lobby wrote: 05 Oct 2017, 12: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
Inhabitant of a Supercluster
Reactions:
Posts: 3759
Joined: 26 Oct 2008, 10:34
Plugins: Showcase Store

Re: [Beta]Plugin encryption

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: 2211
Joined: 07 Jul 2016, 20:50
Location: 'Merica
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: [Beta]Plugin encryption

Post by KINGTUT10101 »

Screenshot_20171007-115818.png
Screenshot_20171007-115848.png
Screenshot_20171007-115855.png
You do not have the required permissions to view the files attached to this post.
User avatar
Lobby
Inhabitant of a Supercluster
Reactions:
Posts: 3759
Joined: 26 Oct 2008, 10:34
Plugins: Showcase Store

Re: [Beta]Plugin encryption

Post by Lobby »

Looks like a ordering issue :mine
User avatar
CommanderABab
AB
Reactions:
Posts: 11269
Joined: 07 Jun 2016, 19:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: [Beta]Plugin encryption

Post by CommanderABab »

That's an extra comma after an } before an ]
my avatar:
User avatar
Lobby
Inhabitant of a Supercluster
Reactions:
Posts: 3759
Joined: 26 Oct 2008, 10:34
Plugins: Showcase Store

Re: [Beta]Plugin encryption

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, 05:58
Location: Easternia
Plugins: Showcase Store

Platform

Re: [Beta]Plugin encryption

Post by motomo »

KoalaGuy wrote: 08 Oct 2017, 11: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
Honorary Contributor
Reactions:
Posts: 3666
Joined: 23 Jul 2017, 10:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: [Beta]Plugin encryption

Post by JustAnyone »

Same as me.
Question!
Does this encrypt all folders in /plugin or named folder?
:pickle:
User avatar
CommanderABab
AB
Reactions:
Posts: 11269
Joined: 07 Jun 2016, 19:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: [Beta]Plugin encryption

Post by CommanderABab »

All files in named folder and its subfolders are placed in the .plugin file.
my avatar:
User avatar
JustAnyone
Honorary Contributor
Reactions:
Posts: 3666
Joined: 23 Jul 2017, 10:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: [Beta]Plugin encryption

Post by JustAnyone »

:space
You do not have the required permissions to view the files attached to this post.
:pickle: