Southclaws / sampctl

The Swiss Army Knife of SA:MP - vital tools for any server owner or library maintainer.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cannot read from file: "a_mysql"

Pok4 opened this issue · comments

commented

Guys, i'm newbie and i have this error..

My pawn.json:

{
	"user": "pok4",
	"repo": "vip",
	"tag": "0.0.1",
	"entry": "filterscripts\\JAdmin.pwn",
	"output": "gamemodes/filterscripts\\JAdmin.amx",
	"dependencies": [
		"pawn-lang/samp-stdlib",
		"maddinat0r/sscanf",
		"pawn-lang/YSI-Includes"
	]
}

Filterscript: https://pastebin.com/raw/WP8TASvN
in dependencies folder i don't have such file...

--verbose:

INFO: failed to open repo as git repository: repository does not exist
INFO: pok4/vip read package from directory C:\Users\dedih\Desktop\samp
INFO: pok4/vip building dependency tree and ensuring cached copies
INFO: |- pok4/vip is parent
INFO: |- iterating 3 dependencies of pok4/vip
INFO: |-|- github.com/pawn-lang/samp-stdlib ensured
INFO: |-|- iterating 1 dependencies of sampctl/samp-stdlib
INFO: |-|-|- github.com/pawn-lang/pawn-stdlib ensured
INFO: |-|-|- iterating 0 dependencies of sampctl/pawn-stdlib
INFO: |-|- github.com/maddinat0r/sscanf ensured
INFO: |-|- ignoring platform mismatch linux
INFO: |-|- added target path for resource includes: C:\Users\dedih\Desktop\samp\dependencies\.resources\sscanf-019253
INFO: |-|- github.com/maddinat0r/sscanf is a plugin
INFO: |-|- iterating 0 dependencies of maddinat0r/sscanf
INFO: |-|- github.com/pawn-lang/YSI-Includes ensured
INFO: |-|- iterating 5 dependencies of pawn-lang/YSI-Includes
INFO: |-|-|- github.com/oscar-broman/md-sort ensured
INFO: |-|-|- iterating 1 dependencies of oscar-broman/md-sort
INFO: |-|-|- already visited github.com/sampctl/samp-stdlib
INFO: |-|- already visited github.com/sampctl/samp-stdlib
INFO: |-|-|- github.com/Y-Less/code-parse.inc ensured
INFO: |-|-|- iterating 0 dependencies of Y-Less/code-parse.inc
INFO: |-|-|- github.com/Y-Less/indirection ensured
INFO: |-|-|- iterating 2 dependencies of Y-Less/indirection
INFO: |-|-|- already visited github.com/sampctl/samp-stdlib
INFO: |-|-|-|- github.com/Zeex/amx_assembly ensured
INFO: |-|-|-|- iterating 0 dependencies of Zeex/amx_assembly
INFO: |-|- already visited github.com/Zeex/amx_assembly
INFO: pok4/vip flattened dependencies to 8 leaves
INFO: Checking for cached package pawn-v3.10.10-windows.zip in C:\Users\dedih\AppData\Roaming\sampctl
INFO: Using cached package pawn-v3.10.10-windows.zip
INFO: using include path C:\Users\test1\Desktop\samp
INFO: using include path C:\Users\test1\Desktop\samp\dependencies\samp-stdlib
INFO: using include path C:\Users\test1\Desktop\samp\dependencies\pawn-stdlib
INFO: using include path C:\Users\test1\Desktop\samp\dependencies\YSI-Includes
INFO: using include path C:\Users\test1\Desktop\samp\dependencies\md-sort
INFO: using include path C:\Users\test1\Desktop\samp\dependencies\code-parse.inc
INFO: using include path C:\Users\test1\Desktop\samp\dependencies\indirection
INFO: using include path C:\Users\test1\Desktop\samp\dependencies\amx_assembly
INFO: using include path C:\Users\test1\Desktop\samp\dependencies\.resources\sscanf-019253
INFO: running pre-build commands
INFO: building pok4/vip with 3.10.10
INFO: executing compiler in C:\Users\test1\Desktop\samp\filterscripts as [LD_LIBRARY_PATH=C:\Users\test1\AppData\Roaming\sampctl\pawn\3.10.10 DYLD_LIBRARY_PATH=C:\Users\test1\AppData\Roaming\sampctl\pawn\3.10.10] [C:\Users\test1\AppData\Roaming\sampctl\pawn\3.10.10\pawncc.exe C:\Users\test1\Desktop\samp\filterscripts\JAdmin.pwn -DC:\Users\test1\Desktop\samp\filterscripts -oC:\Users\test\Desktop\samp\gamemodes\filterscripts\JAdmin.amx -d3 -;+ -(+ -\+ -Z+ -iC:\Users\test1\Desktop\samp -iC:\Users\test1\Desktop\samp\dependencies\samp-stdlib -iC:\Users\test1\Desktop\samp\dependencies\pawn-stdlib -iC:\Users\test1\Desktop\samp\dependencies\YSI-Includes -iC:\Users\test1\Desktop\samp\dependencies\md-sort -iC:\Users\test1\Desktop\samp\dependencies\code-parse.inc -iC:\Users\test1\Desktop\samp\dependencies\indirection -iC:\Users\test1\Desktop\samp\dependencies\amx_assembly -iC:\Users\test1\Desktop\samp\dependencies\.resources\sscanf-019253]
C:\Users\test1\Desktop\samp\filterscripts\JAdmin.pwn:9 (fatal) cannot read from file: "a_mysql"
INFO: running post-build commands
failed to prepare package for running: build failed, can not run

I'm using the latest version.

This is not a sampctl issue. However it seems you need to add the mysql dependency: https://github.com/pBlueG/SA-MP-MySQL

commented

Thank you. I installed the package, but now i'm having a next error:
10 (fatal) cannot read from file: "kickbanfix"

I installed this package again, the dependencies look like this now:
"dependencies": [
"pawn-lang/samp-stdlib",
"maddinat0r/sscanf",
"pawn-lang/YSI-Includes",
"pBlueG/SA-MP-MySQL:R39-6",
"falle3n/DelayKickBan:v1.1"
],

but i'm still getting this error...
In filterscript include for kickban is:
#include <kickbanfix>

img: https://i.ibb.co/84DhDzj/44.png

The folder have following structure:
C:\Users\test1\Desktop\samp\dependencies\DelayKickBan\pawno\include
and files inside is:
KickBanFix.
DelayKickBan

what to do ?

Well you need to find the dependencies for all of those includes and add them to sampctl. I can't tell you where kickbanfix comes from, so you'll have to figure it out.

commented

Ok, thank you for the replies :)