You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Add zip/archive compress and decompress functions to native level callable by lua.
Benefit of this is client can download zip/archive files from server and then extract/decompress locally.
That way you can save bandwith, especially with large files and recent IMG archive container support.
Describe the solution you'd like
callable from lua client (server as well if really needed)
compress(string filename, string compressMethod, table with additional info like format, level, dict/word size)
decompress(string filename)
both return true on success, false otherwise
Describe alternatives you've considered
Theres no real alternative unless doing it on lua itself which is very very slow and likely abort due to infinite running script.
Additional context
This would benefit large files initiated manually via downloadFile as we could significantly reduce bandwith usage.
Security Policy
I have read and understood the Security Policy and this issue is not about a cheat or security vulnerability.
The text was updated successfully, but these errors were encountered:
Its best to replace current zip implementation with more... friendly and performant implementation.
From there exposing relevant functions is not that hard (#3057 was my attempt but there are few zip libraries that could be easily implemented into mta)
Is your feature request related to a problem? Please describe.
Add zip/archive compress and decompress functions to native level callable by lua.
Benefit of this is client can download zip/archive files from server and then extract/decompress locally.
That way you can save bandwith, especially with large files and recent IMG archive container support.
Describe the solution you'd like
callable from lua client (server as well if really needed)
compress(string filename, string compressMethod, table with additional info like format, level, dict/word size)
decompress(string filename)
both return true on success, false otherwise
Describe alternatives you've considered
Theres no real alternative unless doing it on lua itself which is very very slow and likely abort due to infinite running script.
Additional context
This would benefit large files initiated manually via downloadFile as we could significantly reduce bandwith usage.
Security Policy
The text was updated successfully, but these errors were encountered: