Plugin encryption (create .plugin file)

Learn here how to create and use plugins.

Moderator: Plugin Moderators

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

#21

Post by CommanderABab »

It only encrypts folders in the root plugin directory.

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

Platform

Re: [Beta]Plugin encryption

#22

Post by Lobby »

Please send me your files als well as your plugin file so I can test it myself.

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

Platform

Re: [Beta]Plugin encryption

#23

Post by Lobby »

Please try to match the case (of letters) of image names in your plugins. Otherwise they might not be found...
Will be fixed.

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

Platform

Re: [Beta]Plugin encryption

#24

Post by Lobby »

From ZipInputStream.available() Java Documentation:
Returns 0 after EOF has reached for the current entry data, otherwise always return 1.
Programs should not count on this method to return the actual number of bytes that could be read without blocking.
So this method should return a value >0 if there're data available to be read. Unfortunately it looks as if some implementations don't follow this documentation and return always 0. That's why it couldn't extract plugin files properly on some devices.

The fix is to ignore available() and just try to read the data :teach

User avatar
SenyaBell
Bell
Reactions:
Posts: 867
Joined: 02 Oct 2020, 11:18
Location: Saratov
Plugins: Showcase Store
Version: Beta
Contact:

Plugin Creator

Platform

Re: Plugin encryption (create .plugin file)

#25

Post by SenyaBell »

Screenshot_20171005-014903.png
Screenshot_20171005-014903.png (63.11 KiB) Viewed 2436 times
export:{dir:"text"}

User avatar
Yakka
Inhabitant of a Conurbation
Reactions:
Posts: 413
Joined: 06 Jan 2020, 09:57
Location: Java-indonesia
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Plugin encryption (create .plugin file)

#26

Post by Yakka »

Lobby wrote:
05 Oct 2017, 01:55
Screenshot_20171005-014645.pngScreenshot_20171005-014903.pngScreenshot_20171005-014917.png

:teach
Thanks

User avatar
Wepf
Inhabitant of a Megacity
Reactions:
Posts: 285
Joined: 14 Oct 2021, 10:19
Location: Your lucid dream
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Plugin encryption (create .plugin file)

#27

Post by Wepf »

This is very usefull expecially when your plugun have privilege function code in json

User avatar
Bevise
Micy's Assistant
Reactions:
Posts: 502
Joined: 27 Feb 2020, 15:39
Location: Phu Quoc Island, Vietnam
Plugins: Showcase Store
Version: Beta
Contact:

Plugin Creator

Platform

Re: Plugin encryption (create .plugin file)

#28

Post by Bevise »

Can the game load a *.zip plugin file with a password?🤔
They won't be able to get a hand on my privileged key without my password as well.

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

Platform

Re: Plugin encryption (create .plugin file)

#29

Post by JustAnyone »

No.

User avatar
TheFennekin
Neighborhood fox
Reactions:
Posts: 2728
Joined: 24 Aug 2017, 11:17
Location: Wandering around
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Plugin encryption (create .plugin file)

#30

Post by TheFennekin »

Why can't you upload .plugin files to the store? I tried this before (forgot to ask here) but it says that it doesn't have the json or graphics in it. I think it was a plugin with my privileged code so I encrypted it 🤔

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

Plugin Creator

Platform

Re: Plugin encryption (create .plugin file)

#31

Post by CommanderABab »

As far as I know, you can. The preview image will have to be separate.

User avatar
TheFennekin
Neighborhood fox
Reactions:
Posts: 2728
Joined: 24 Aug 2017, 11:17
Location: Wandering around
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Plugin encryption (create .plugin file)

#32

Post by TheFennekin »

Hmm, will try again once my new project is done to test it

Post Reply Previous topicNext topic

Return to “Tutorials and Documentation”