Hello,?
So I switched to ubuntu 16.04 bc of my job and now I decided to move whole project on to sampctl because of its included linux compiler, now i installed all packages, setted the whole project up, and when i run
sampctl package build
the amx of 0 bytes is generated but nothing happens, i get nothing in the terminal it looks like its running but I don't believe that it's supposed to take this long especially with the machine im running it on
(2019-05-27, 02:41 PM)6cadilab9 Wrote: Hello,?
So I switched to ubuntu 16.04 bc of my job and now I decided to move whole project on to sampctl because of its included linux compiler, now i installed all packages, setted the whole project up, and when i run
sampctl package build
the amx of 0 bytes is generated but nothing happens, i get nothing in the terminal it looks like its running but I don't believe that it's supposed to take this long especially with the machine im running it on
Hi, please provide the `pawn.json` file from your sampctl setup.
Remember to always refer to J0sh as `J0sh...`
@ Networks/Servers
San Andreas Gaming Network (Owner/Founder)
San Andreas Gaming (Owner/Founder)
Grand Theft Cop's n Robber's (Owner)
Britannia Roleplay (Owner/Founder) [Retired]
Alpine RP (Owner/Founder)
Aluminium Network (Maintainer) [Disbanded]
AlphaDM (Tech Support) [Disbanded]
# Services
forum.open.mp (Forum Manager) (Formerly Burgershot.gg)
open.mp (Member)
~ Languages/Frameworks
Pawn, C, C, C#, Javascript, Typescript, Lua, Python, Go, Rust, PHP, SQL,
Angular, React, Vue, Svelte, Laravel, Rocket
Here it is
PHP Code: {
"user": "hidden",
"repo": "bucommunity",
"entry": "gamemodes/balkan-underground.pwn",
"output": "gamemodes/balkan-underground.amx",
"dependencies": [
"sampctl/samp-stdlib",
"pBlueG/SA-MP-MySQL:R41-4",
"samp-incognito/samp-streamer-plugin:v2.9.4",
"maddinat0r/sscanf",
"urShadow/Pawn.CMD",
"Southclaws/samp-plugin-mapandreas:v1.2.2",
"pawn-lang/YSI-Includes",
"oscar-broman/strlib",
"KashCherry/Timer-Fix-plugin",
"urShadow/Pawn.Regex",
"Open-GTO/zvehcomp"
],
"runtime": {
"version": "0.3.7",
"mode": "server",
"echo": "-",
"rcon_password": "password",
"port": 7777,
"hostname": "SA-MP Server",
"maxplayers": 50,
"language": "",
"mapname": "San Andreas",
"weburl": "www.sa-mp.com",
"gamemodetext": "Unknown",
"announce": true,
"lanmode": false,
"query": true,
"rcon": false,
"logqueries": false,
"sleep": 5,
"maxnpc": 0,
"stream_rate": 1000,
"stream_distance": 200,
"onfoot_rate": 30,
"incar_rate": 30,
"weapon_rate": 30,
"chatlogging": true,
"timestamp": true,
"messageholelimit": 3000,
"messageslimit": 500,
"ackslimit": 3000,
"playertimeout": 10000,
"minconnectiontime": 0,
"lagcompmode": 1,
"connseedtime": 300000,
"db_logging": false,
"db_log_queries": false,
"conncookies": true,
"cookielogging": false,
"output": true
}
}
Are you sure no errors are thrown? Cause if any errors are thrown the `.amx` file will either be removed or contain 0 bytes.
Also just an added extra, you need to add `"local": true` under output and above dependencies (this tells sampctl that it is a local gamemode and not a remote script/library)
Remember to always refer to J0sh as `J0sh...`
@ Networks/Servers
San Andreas Gaming Network (Owner/Founder)
San Andreas Gaming (Owner/Founder)
Grand Theft Cop's n Robber's (Owner)
Britannia Roleplay (Owner/Founder) [Retired]
Alpine RP (Owner/Founder)
Aluminium Network (Maintainer) [Disbanded]
AlphaDM (Tech Support) [Disbanded]
# Services
forum.open.mp (Forum Manager) (Formerly Burgershot.gg)
open.mp (Member)
~ Languages/Frameworks
Pawn, C, C, C#, Javascript, Typescript, Lua, Python, Go, Rust, PHP, SQL,
Angular, React, Vue, Svelte, Laravel, Rocket
I'm pretty sure, i ran the command to build and it's been 10 minutes now, still nothing
https://i.imgur.com/88v50nd.png
2019-05-27, 05:37 PM
(This post was last modified: 2019-05-27, 05:48 PM by JustMichael.)
Are you able to compile this normally with the compiler?
If this is the first time using the community compiler (included with sampctl) it maybe that the updates within the community compiler are causing issues.
You can enable compatibility mode by passing either the `-Z` flag with the compiler options or add `#pragma option -Z` to the top of your gamemode
Remember to always refer to J0sh as `J0sh...`
@ Networks/Servers
San Andreas Gaming Network (Owner/Founder)
San Andreas Gaming (Owner/Founder)
Grand Theft Cop's n Robber's (Owner)
Britannia Roleplay (Owner/Founder) [Retired]
Alpine RP (Owner/Founder)
Aluminium Network (Maintainer) [Disbanded]
AlphaDM (Tech Support) [Disbanded]
# Services
forum.open.mp (Forum Manager) (Formerly Burgershot.gg)
open.mp (Member)
~ Languages/Frameworks
Pawn, C, C, C#, Javascript, Typescript, Lua, Python, Go, Rust, PHP, SQL,
Angular, React, Vue, Svelte, Laravel, Rocket
Tried with the compatibility mode still the same, been running over an hour now..
Can you run sampctl with the `--verbose` flag and show us the output?
Remember to always refer to J0sh as `J0sh...`
@ Networks/Servers
San Andreas Gaming Network (Owner/Founder)
San Andreas Gaming (Owner/Founder)
Grand Theft Cop's n Robber's (Owner)
Britannia Roleplay (Owner/Founder) [Retired]
Alpine RP (Owner/Founder)
Aluminium Network (Maintainer) [Disbanded]
AlphaDM (Tech Support) [Disbanded]
# Services
forum.open.mp (Forum Manager) (Formerly Burgershot.gg)
open.mp (Member)
~ Languages/Frameworks
Pawn, C, C, C#, Javascript, Typescript, Lua, Python, Go, Rust, PHP, SQL,
Angular, React, Vue, Svelte, Laravel, Rocket
Sure, here it is
PHP Code: INFO: failed to get version information: reference not found
INFO: Package does not have any tags, consider versioning your code with: `sampctl package release`
INFO: hidden/bucommunity read package from directory /home/hidden/Cadilab/BU Community
INFO: hidden/bucommunity building dependency tree and ensuring cached copies
INFO: |- hidden/bucommunity is parent
INFO: |- iterating 11 dependencies of hidden/bucommunity
INFO: |-|- github.com/sampctl/samp-stdlib ensured
INFO: |-|- iterating 1 dependencies of sampctl/samp-stdlib
INFO: |-|-|- github.com/sampctl/pawn-stdlib ensured
INFO: |-|-|- iterating 0 dependencies of sampctl/pawn-stdlib
INFO: |-|- github.com/pBlueG/SA-MP-MySQL:R41-4 ensured
INFO: |-|- added target path for resource includes: /home/hidden/Cadilab/BU Community/dependencies/.resources/SA-MP-MySQL-5f509e
INFO: |-|- ignoring platform mismatch windows
INFO: |-|- github.com/pBlueG/SA-MP-MySQL:R41-4 is a plugin
INFO: |-|- iterating 0 dependencies of pBlueG/SA-MP-MySQL
INFO: |-|- github.com/samp-incognito/samp-streamer-plugin:v2.9.4 ensured
INFO: |-|- added target path for resource includes: /home/hidden/Cadilab/BU Community/dependencies/.resources/samp-streamer-plugin-7c00b9
INFO: |-|- ignoring platform mismatch windows
INFO: |-|- github.com/samp-incognito/samp-streamer-plugin:v2.9.4 is a plugin
INFO: |-|- iterating 0 dependencies of samp-incognito/samp-streamer-plugin
INFO: |-|- github.com/maddinat0r/sscanf ensured
INFO: |-|- added target path for resource includes: /home/hidden/Cadilab/BU Community/dependencies/.resources/sscanf-7b5726
INFO: |-|- ignoring platform mismatch windows
INFO: |-|- github.com/maddinat0r/sscanf is a plugin
INFO: |-|- iterating 0 dependencies of maddinat0r/sscanf
INFO: |-|- github.com/urShadow/Pawn.CMD ensured
INFO: |-|- ignoring platform mismatch windows
INFO: |-|- github.com/urShadow/Pawn.CMD is a plugin
INFO: |-|- iterating 0 dependencies of urShadow/Pawn.CMD
INFO: |-|- github.com/Southclaws/samp-plugin-mapandreas:v1.2.2 ensured
INFO: |-|- added target path for resource includes: /home/hidden/Cadilab/BU Community/dependencies/.resources/samp-plugin-mapandreas-d742d9
INFO: |-|- ignoring platform mismatch windows
INFO: |-|- github.com/Southclaws/samp-plugin-mapandreas:v1.2.2 is a plugin
INFO: |-|- iterating 1 dependencies of Southclaws/samp-plugin-mapandreas
INFO: |-|- already visited github.com/Southclaws/samp-stdlib
INFO: |-|- github.com/pawn-lang/YSI-Includes ensured
INFO: |-|- iterating 2 dependencies of pawn-lang/YSI-Includes
INFO: |-|- already visited github.com/sampctl/samp-stdlib
INFO: |-|-|- github.com/Zeex/amx_assembly ensured
INFO: |-|-|- iterating 0 dependencies of Zeex/amx_assembly
INFO: |-|- github.com/oscar-broman/strlib ensured
INFO: |-|- iterating 1 dependencies of oscar-broman/strlib
INFO: |-|- already visited github.com/sampctl/samp-stdlib
INFO: |-|- github.com/KashCherry/Timer-Fix-plugin ensured
INFO: |-|- ignoring platform mismatch windows
INFO: |-|- added target path for resource includes: /home/hidden/Cadilab/BU Community/dependencies/.resources/Timer-Fix-plugin-b083b9
INFO: |-|- github.com/KashCherry/Timer-Fix-plugin is a plugin
INFO: |-|- iterating 0 dependencies of KashCherry/Timer-Fix-plugin
INFO: |-|- github.com/urShadow/Pawn.Regex ensured
INFO: |-|- ignoring platform mismatch windows
INFO: |-|- github.com/urShadow/Pawn.Regex is a plugin
INFO: |-|- iterating 0 dependencies of urShadow/Pawn.Regex
INFO: |-|- github.com/Open-GTO/zvehcomp ensured
INFO: |-|- iterating 1 dependencies of /
INFO: |-|- already visited github.com/sampctl/samp-stdlib
INFO: hidden/bucommunity flattened dependencies to 13 leaves
INFO: github.com/pBlueG/SA-MP-MySQL:R41-4 error while loading: no package definition file (pawn.{json|yaml|toml}) using cached copy for include path checking
INFO: Checking for cached package pawn-v3.10.9-linux.tgz in /home/hidden/.samp
INFO: Using cached package pawn-v3.10.9-linux.tgz
INFO: using include path /home/hidden/Cadilab/BU Community/dependencies/samp-stdlib
INFO: using include path /home/hidden/Cadilab/BU Community/dependencies/pawn-stdlib
INFO: using include path /home/hidden/Cadilab/BU Community/dependencies/Pawn.CMD/src
INFO: using include path /home/hidden/Cadilab/BU Community/dependencies/YSI-Includes
INFO: using include path /home/hidden/Cadilab/BU Community/dependencies/amx_assembly
INFO: using include path /home/hidden/Cadilab/BU Community/dependencies/strlib
INFO: using include path /home/hidden/Cadilab/BU Community/dependencies/Pawn.Regex/src
INFO: using include path /home/hidden/Cadilab/BU Community/dependencies/zvehcomp
INFO: using include path /home/hidden/Cadilab/BU Community/dependencies/.resources/SA-MP-MySQL-5f509e
INFO: using include path /home/hidden/Cadilab/BU Community/dependencies/.resources/samp-streamer-plugin-7c00b9
INFO: using include path /home/hidden/Cadilab/BU Community/dependencies/.resources/sscanf-7b5726
INFO: using include path /home/hidden/Cadilab/BU Community/dependencies/.resources/samp-plugin-mapandreas-d742d9
INFO: using include path /home/hidden/Cadilab/BU Community/dependencies/.resources/Timer-Fix-plugin-b083b9
INFO: building hidden/bucommunity with 3.10.9
INFO: executing compiler in /home/hidden/Cadilab/BU Community/gamemodes as [LD_LIBRARY_PATH=/home/hidden/.samp/pawn/3.10.9 DYLD_LIBRARY_PATH=/home/hidden/.samp/pawn/3.10.9] [/home/hidden/.samp/pawn/3.10.9/pawncc /home/hidden/Cadilab/BU Community/gamemodes/balkan-underground.pwn -D/home/hidden/Cadilab/BU Community/gamemodes -o/home/hidden/Cadilab/BU Community/gamemodes/balkan-underground.amx -d3 -; -( -\ -Z -i/home/hidden/Cadilab/BU Community/dependencies/samp-stdlib -i/home/hidden/Cadilab/BU Community/dependencies/pawn-stdlib -i/home/hidden/Cadilab/BU Community/dependencies/Pawn.CMD/src -i/home/hidden/Cadilab/BU Community/dependencies/YSI-Includes -i/home/hidden/Cadilab/BU Community/dependencies/amx_assembly -i/home/hidden/Cadilab/BU Community/dependencies/strlib -i/home/hidden/Cadilab/BU Community/dependencies/Pawn.Regex/src -i/home/hidden/Cadilab/BU Community/dependencies/zvehcomp -i/home/hidden/Cadilab/BU Community/dependencies/.resources/SA-MP-MySQL-5f509e -i/home/hidden/Cadilab/BU Community/dependencies/.resources/samp-streamer-plugin-7c00b9 -i/home/hidden/Cadilab/BU Community/dependencies/.resources/sscanf-7b5726 -i/home/hidden/Cadilab/BU Community/dependencies/.resources/samp-plugin-mapandreas-d742d9 -i/home/hidden/Cadilab/BU Community/dependencies/.resources/Timer-Fix-plugin-b083b
try something for me, and try rename your path from `BU Community` to `BU_Community` and tell me if that makes any difference for you?
Remember to always refer to J0sh as `J0sh...`
@ Networks/Servers
San Andreas Gaming Network (Owner/Founder)
San Andreas Gaming (Owner/Founder)
Grand Theft Cop's n Robber's (Owner)
Britannia Roleplay (Owner/Founder) [Retired]
Alpine RP (Owner/Founder)
Aluminium Network (Maintainer) [Disbanded]
AlphaDM (Tech Support) [Disbanded]
# Services
forum.open.mp (Forum Manager) (Formerly Burgershot.gg)
open.mp (Member)
~ Languages/Frameworks
Pawn, C, C, C#, Javascript, Typescript, Lua, Python, Go, Rust, PHP, SQL,
Angular, React, Vue, Svelte, Laravel, Rocket
Same :/
Weird thing is if i were to for example include something that I don't have i would get an error
/home/hidden/Cadilab/BU/gamemodes/balkan-underground.pwn:16 (fatal) cannot read from file: "non_existing_include_name_here"
Build encountered fatal error
2019-05-28, 10:55 AM
(This post was last modified: 2019-05-28, 11:00 AM by JustMichael.)
Okay, I already know the issue and I can't believe it took me this long to realise it. The problem is you are using the latest version of sampctl, which by default includes the community compiler 3.10.9 which doesn't work with sampctl for some reason. So what you need to do is set a build context and specify the version 3.10.8.
Code: "builds": [
{
"name": "development",
"version": "3.10.8",
"args": ["-d3", "-;", "-(", "-Z"],
"constants": {
"DEVELOPMENT": "true"
}
}
],
Put this code inside your pawn.json after the "dependencies" context
Remember to always refer to J0sh as `J0sh...`
@ Networks/Servers
San Andreas Gaming Network (Owner/Founder)
San Andreas Gaming (Owner/Founder)
Grand Theft Cop's n Robber's (Owner)
Britannia Roleplay (Owner/Founder) [Retired]
Alpine RP (Owner/Founder)
Aluminium Network (Maintainer) [Disbanded]
AlphaDM (Tech Support) [Disbanded]
# Services
forum.open.mp (Forum Manager) (Formerly Burgershot.gg)
open.mp (Member)
~ Languages/Frameworks
Pawn, C, C, C#, Javascript, Typescript, Lua, Python, Go, Rust, PHP, SQL,
Angular, React, Vue, Svelte, Laravel, Rocket
Yes it works now, thanks dude you're a life saver!
No Worries, glad you got it working ;)
Remember to always refer to J0sh as `J0sh...`
@ Networks/Servers
San Andreas Gaming Network (Owner/Founder)
San Andreas Gaming (Owner/Founder)
Grand Theft Cop's n Robber's (Owner)
Britannia Roleplay (Owner/Founder) [Retired]
Alpine RP (Owner/Founder)
Aluminium Network (Maintainer) [Disbanded]
AlphaDM (Tech Support) [Disbanded]
# Services
forum.open.mp (Forum Manager) (Formerly Burgershot.gg)
open.mp (Member)
~ Languages/Frameworks
Pawn, C, C, C#, Javascript, Typescript, Lua, Python, Go, Rust, PHP, SQL,
Angular, React, Vue, Svelte, Laravel, Rocket
|