Plugin encryption (create .plugin file)

Learn here how to create and use plugins.

Moderators: Scenario Moderators, Plugin Moderators

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

Platform

Plugin encryption (create .plugin file)

#1

Post by Lobby » 05 Oct 2017, 01:55

 ! 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
User avatar
Josh
Graphic designer
Posts: 2215
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 » 05 Oct 2017, 02:02

Does it change files into a ".plugin", cool!
User avatar
Lobby
Developer
Posts: 3719
Joined: 26 Oct 2008, 12:34
Plugins: Showcase Store
Version: Beta

Platform

Re: [Beta]Plugin encryption

#3

Post by Lobby » 05 Oct 2017, 10:19

@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
Posts: 2228
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 » 05 Oct 2017, 14:36

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
Posts: 3719
Joined: 26 Oct 2008, 12:34
Plugins: Showcase Store
Version: Beta

Platform

Re: [Beta]Plugin encryption

#5

Post by Lobby » 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.
User avatar
JustAnyone
Developer
Posts: 3594
Joined: 23 Jul 2017, 12:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: [Beta]Plugin encryption

#6

Post by JustAnyone » 05 Oct 2017, 14:53

So if I encrypt it, can I decrypt it if I am plug-in creator?
User avatar
Lobby
Developer
Posts: 3719
Joined: 26 Oct 2008, 12:34
Plugins: Showcase Store
Version: Beta

Platform

Re: [Beta]Plugin encryption

#7

Post by Lobby » 05 Oct 2017, 14:56

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

Platform

Re: [Beta]Plugin encryption

#8

Post by JustAnyone » 05 Oct 2017, 15:05

So I should have a copy of .json if I will want to change it?
User avatar
Lobby
Developer
Posts: 3719
Joined: 26 Oct 2008, 12:34
Plugins: Showcase Store
Version: Beta

Platform

Re: [Beta]Plugin encryption

#9

Post by Lobby » 05 Oct 2017, 15:17

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
Posts: 3719
Joined: 26 Oct 2008, 12:34
Plugins: Showcase Store
Version: Beta

Platform

Re: [Beta]Plugin encryption

#10

Post by Lobby » 05 Oct 2017, 15:19

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
Posts: 2228
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 » 06 Oct 2017, 00:58

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
Posts: 3719
Joined: 26 Oct 2008, 12:34
Plugins: Showcase Store
Version: Beta

Platform

Re: [Beta]Plugin encryption

#12

Post by Lobby » 07 Oct 2017, 18:29

@KINGTUT10101 Are you sure that this was the error? Maybe it was tried to load it twice.
User avatar
KINGTUT10101
1,000,000 inhabitants
Posts: 2228
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 » 07 Oct 2017, 18:59

Screenshot_20171007-115818.png
Screenshot_20171007-115848.png
Screenshot_20171007-115855.png
User avatar
Lobby
Developer
Posts: 3719
Joined: 26 Oct 2008, 12:34
Plugins: Showcase Store
Version: Beta

Platform

Re: [Beta]Plugin encryption

#14

Post by Lobby » 07 Oct 2017, 19:12

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

Plugin Creator

Platform

Re: [Beta]Plugin encryption

#15

Post by CommanderABab » 08 Oct 2017, 13:45

That's an extra comma after an } before an ]
User avatar
Lobby
Developer
Posts: 3719
Joined: 26 Oct 2008, 12:34
Plugins: Showcase Store
Version: Beta

Platform

Re: [Beta]Plugin encryption

#16

Post by Lobby » 08 Oct 2017, 13:50

If I pack your plugin and move it into my plugins folder it works as intendend :?
User avatar
motomo
Small-town resident
Posts: 36
Joined: 08 Aug 2017, 07:58
Location: Easternia
Plugins: Showcase Store

Platform

Re: [Beta]Plugin encryption

#17

Post by motomo » 25 Oct 2017, 15:27

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
Posts: 3594
Joined: 23 Jul 2017, 12:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: [Beta]Plugin encryption

#18

Post by JustAnyone » 25 Oct 2017, 18:22

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

Plugin Creator

Platform

Re: [Beta]Plugin encryption

#19

Post by CommanderABab » 25 Oct 2017, 19:28

All files in named folder and its subfolders are placed in the .plugin file.
User avatar
JustAnyone
Developer
Posts: 3594
Joined: 23 Jul 2017, 12:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: [Beta]Plugin encryption

#20

Post by JustAnyone » 01 Nov 2017, 09:07

: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”