sampctl
sampctl copied to clipboard
Fails to ensure filterscripts
sampctl fails to ensure "filterscripts" while the compiled pawn modules exist in the filterscripts directory.
How to reproduce this bug:
- Clone https://github.com/sampctl/filterscripts.git
- Go to
./filterscripts/filterscripts/admin-system/
- Ensure packages and build with sampctl
- Go to
../../
- Ensure packages and build with sampctl
- Run sampctl package
Output:
failed to ensure scripts: filterscript 'admin-system' is missing its .amx file from the filterscripts directory
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.
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.