Southclaws / sampctl

The Swiss Army Knife of SA:MP - vital tools for any server owner or library maintainer.
GNU General Public License v3.0
242 stars 33 forks source link

Server Plugins not loading properly? #371

Closed ghost closed 4 years ago

ghost commented 4 years ago

I'm new to SAMPCTL, and as it seems, pretty noob-ish. So, I'm trying to run my server with sscanf-v2.8.2. I've configured everything properly, and then tried to run my server with sampctl p run, only to realize that it won't show up in the SA-MP Browser list. So, I tried to run it with *sampctl s run**, it will run, but unfortunately sscanf won't work, so my gamemode won't run at all.

Error: Function not registered: 'SSCANF_Init' Error: Function not registered: 'SSCANF_IsConnected' Error: Function not registered: 'SSCANF_Join' Error: Function not registered: 'SSCANF_Leave' Error: Function not registered: 'cache_get_value_name' Error: Function not registered: 'sscanf' Script[gamemodes/test.amx]: Run time error 19: "File or function is not found"`

"dependencies": [ "sampctl/samp-stdlib", "samp-incognito/samp-streamer-plugin", "YashasSamaga/I-ZCMD", "pBlueG/SA-MP-MySQL", "karimcambridge/samp-foreach", "oscar-broman/strlib", "maddinat0r/sscanf:v2.8.2" ],

ADRFranklin commented 4 years ago

Please post your full pawn.json/yaml file so we can better help you. Most of the time this happens, because it failed to pull the plugin from the repo and couldn't copy it to the plugins folder.

Southclaws commented 4 years ago

sampctl server/s commands are deprecated, so package/p is the correct one.

Not showing in the browser list may be caused by a number of things, either the announce.exe binary not being executable or the machine it's running on not being accessible.

ghost commented 4 years ago

Thanks for the help guys, I appreciate it! Fortunately, I've fixed my issue just a bit over 2 hours ago, seems like SAMPCTL for some reason hasn't automatically updated the plugins just like the includes.

So, for anyone else who happens to be in a situation like mine with some plugin issues, what I did was:

  1. Remove all the plugins from the /plugins folder, fully re-structure the Server folder (I first had my server running without sampctl). - re-init server and packages.
  2. Write down the plugins needed in server.json with "plugins:" [ "XX" ] with XX being the repo, or the plugin name (you'll have to manually place it in the /plugins folder if it's not configured for sampctl), and MAKE SURE TO PROPERLY ORDER THEM, JUST LIKE YOU WOULD IN Regular SERVER.CFG

Or, what you can do is: Just step 2 from above.

Southclaws commented 4 years ago

--forceUpdate should also solve this.