Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to ensure filterscripts #338

Open
BigETI opened this issue Apr 22, 2020 · 2 comments
Open

Fails to ensure filterscripts #338

BigETI opened this issue Apr 22, 2020 · 2 comments
Labels

Comments

@BigETI
Copy link

BigETI commented Apr 22, 2020

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
Copy link
Collaborator

ADRFranklin commented Apr 22, 2020

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
Copy link
Author

BigETI commented Apr 22, 2020

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.

@ADRFranklin ADRFranklin added bug v2 and removed v2 labels May 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants