Southclaws / sampctl

The Swiss Army Knife of SA:MP - vital tools for any server owner or library maintainer.
GNU General Public License v3.0
243 stars 34 forks source link

Fails to ensure filterscripts #338

Open BigETI opened 4 years ago

BigETI commented 4 years ago

sampctl fails to ensure "filterscripts" while the compiled pawn modules exist in the filterscripts directory.

How to reproduce this bug:

  1. Clone https://github.com/sampctl/filterscripts.git
  2. Go to ./filterscripts/filterscripts/admin-system/
  3. Ensure packages and build with sampctl
  4. Go to ../../
  5. Ensure packages and build with sampctl
  6. Run sampctl package

Output:

failed to ensure scripts: filterscript 'admin-system' is missing its .amx file from the filterscripts directory
ADRFranklin commented 4 years ago

Make sure to add "local": true" to your pawn.json file and it will work.

{
    "user": "Southclaws",
    "repo": "gamemode",
    "entry": "gamemodes/gm.pwn",
    "output": "gamemodes/gm.amx",
    "local": true,
    "dependencies": [
        "sampctl/samp-stdlib"
    ],
    "runtime": {
        "version": "0.3.7",
        "mode": "server",
        "echo": "Loading configuration...",
        "rcon_password": "password",
        "port": 7777,
        "filterscripts": [
            "admin-system"
        ],      
        "hostname": "test",
        "maxplayers": 32,
        "language": ""
    }
}

EDIT: Github just bugged out and closed this issue.

BigETI commented 4 years ago

This seems to be an inherit design issue how "filterscripts" are handled in sampctl. However telling sampctl to look at the local filterscripts directory works, of course.