altv-issues icon indicating copy to clipboard operation
altv-issues copied to clipboard

--justpack tries to pack serverside only ressource / skips them, but keeps dependency

Open riffy opened this issue 3 years ago • 0 comments

Description of the problem

When packing the resources with --justpack option, the program will try to pack resources that have no client-main or client-files, without finishing them (log-wise). Additionally, if this resource, that is serverside only, is a dependency for another resource, connecting players will not have the main-resource started, because the dependency is not downloaded (missing) on the cdn.

Therefore it is not contained in the cdn_upload directory.

log

Reproduction steps

  1. Create a ressource with a main file
  2. Add ressource to server.cfg
  3. run altv-server with --justpack

server_only_empty_ressource.zip

Expected behaviour

--justpack will not pack any ressource (or even try), where no client-files and client-main is provided in the resource.cfg.

Additional context

Maybe this is just a huge edge case, i resolved this issue by simply adding an empty 'index.js' and marking it as client (adding to resource.cfg:

client-main: index.js,
client-files: []

Operating system

Debian 11, Windows 10

Version

10.5-release

riffy avatar May 24 '22 11:05 riffy