Plugin encryption (create .plugin file)

Learn here how to create and use plugins.

Moderator: Plugin Moderators

User avatar
CommanderABab
AB
Reactions:
Posts: 8984
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: [Beta]Plugin encryption

#21

Post by CommanderABab »

It only encrypts folders in the root plugin directory.
Image

User avatar
Lobby
Developer
Reactions:
Posts: 3612
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
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: 3612
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
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: 3612
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
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: 621
Joined: Fri Oct 02, 2020 11:18
Location: Saratov
Plugins: Show
Version: Beta
Contact:

Platform

Plugin Creator

Re: Plugin encryption (create .plugin file)

#25

Post by SenyaBell »

Screenshot_20171005-014903.png
Screenshot_20171005-014903.png (63.11 KiB) Viewed 52 times
export:{dir:"text"}
 ! Message from: SenyaBell
Фокус Покус

Post Reply Previous topicNext topic

Return to “Tutorials and Documentation”