Plugin encryption (create .plugin file)

Learn here how to create and use plugins.

Moderator: Plugin Moderators

User avatar
CommanderABab
AB
Posts: 11193
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
Posts: 3714
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
Posts: 3714
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
Posts: 3714
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
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 6684 times
export:{dir:"text"}
User avatar
Yakka
Inhabitant of a Conurbation
Posts: 416
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
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
Posts: 504
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
Posts: 3541
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
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
Posts: 11193
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
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
User avatar
Armin Hpj
Villager
Posts: 8
Joined: 11 Jan 2024, 09:47

Plugin Creator

Platform

Re: Plugin encryption (create .plugin file)

#33

Post by Armin Hpj »

Hey Lobby. Can't create .plugin file
Post Reply Previous topicNext topic

Return to “Tutorials and Documentation”