sampctl icon indicating copy to clipboard operation
sampctl copied to clipboard

Fails to ensure filterscripts

Open BigETI opened this issue 4 years ago • 2 comments

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

BigETI avatar Apr 22 '20 03:04 BigETI

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.

ADRFranklin avatar Apr 22 '20 03:04 ADRFranklin

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.

BigETI avatar Apr 22 '20 03:04 BigETI