For now, don't compile plugin source code with newer version of compiler (because this is old plugin code).
- Download *.smx file from
Get Plugin link from first post.
- Download translation file
- Before you load plugin in server, remove GeoIP.dat from your server folder (...sourcemod/configs/geoip/)
Because it is outdated.
- Add new geoip file
GeoLite2-Country.mmdb in same folder
- Reboot server, this way it load properly.
This is what I got:
Code:
Network: IP x mode MP, dedicated Yes, ports 27015 SV / 27005 CL
Initializing Steam libraries for secure Internet server
No account token specified; logging into anonymous game server account. (Use sv_setsteamaccount to login to a persistent account.)
L 11/20/2022 - 15:13:23: [GEOIP] GeoIP2 database loaded: GeoLite2-Country (2022-11-17 16:41:44 UTC) (G:\server\counter-strike source\cstrike\addons\sourcemod\configs\geoip\GeoLite2-Country.mmdb)
L 11/20/2022 - 15:13:23: [GEOIP] GeoIP2 supported languages: de en es fr ja pt-BR ru zh-CN
Executing dedicated server config file server.cfg
Using map cycle file 'cfg/mapcycle_default.txt'. ('cfg\mapcycle.txt' was not found.)
Set motd from file 'cfg/motd_default.txt'. ('cfg/motd.txt' was not found.)
Set motd_text from file 'cfg/motd_text_default.txt'. ('cfg/motd_text.txt' was not found.)
SV_ActivateServer: setting tickrate to 66.7
Connection to Steam servers successful.
Public IP is x.
Assigned anonymous gameserver Steam ID [A:1:978032648:21905].
Connection to Steam servers lost. (Result = 3)
Connection to Steam servers lost. (Result = 3)
Connection to Steam servers successful.
Public IP is x
Assigned anonymous gameserver Steam ID [A:1:978032648:21905].
VAC secure mode is activated.
sm exts list
[SM] Displaying 11 extensions:
[01] Automatic Updater (1.11.0.6911): Updates SourceMod gamedata files
[02] Webternet (1.11.0.6911): Extension for interacting with URLs
[03] CS Tools (1.11.0.6911): CS extended functionality
[04] BinTools (1.11.0.6911): Low-level C/C++ Calling API
[05] SDK Tools (1.11.0.6911): Source SDK Tools
[06] Top Menus (1.11.0.6911): Creates sorted nested menus
[07] Client Preferences (1.11.0.6911): Saves client preference settings
[08] SQLite (1.11.0.6911): SQLite Driver
[09] GeoIP (1.11.0.6911): Geographical IP information
[10] DHooks (1.11.0.6911): Dynamic Hooks
[11] SDK Hooks (1.11.0.6911): Source SDK Hooks
sm plugins list
[SM] Listing 23 plugins:
01 "Admin File Reader" (1.11.0.6911) by AlliedModders LLC
02 "Admin Help" (1.11.0.6911) by AlliedModders LLC
03 "Admin Menu" (1.11.0.6911) by AlliedModders LLC
04 "Anti-Flood" (1.11.0.6911) by AlliedModders LLC
05 "Basic Ban Commands" (1.11.0.6911) by AlliedModders LLC
06 "Basic Chat" (1.11.0.6911) by AlliedModders LLC
07 "Basic Comm Control" (1.11.0.6911) by AlliedModders LLC
08 "Basic Commands" (1.11.0.6911) by AlliedModders LLC
09 "Basic Info Triggers" (1.11.0.6911) by AlliedModders LLC
10 "Basic Votes" (1.11.0.6911) by AlliedModders LLC
11 "Client Preferences" (1.11.0.6911) by AlliedModders LLC
12 "Country Filter 2nd Edition" (2.0.4) by Bacardi
13 "Delay or disable server hibernate" (13.3.2021) by Bacardi
14 "Fun Commands" (1.11.0.6911) by AlliedModders LLC
15 "Fun Votes" (1.11.0.6911) by AlliedModders LLC
16 "kickplayers.smx"
17 "kill_all_bots.smx"
18 "ListIdtest.smx"
19 "Nextmap" (1.11.0.6911) by AlliedModders LLC
20 "Player Commands" (1.11.0.6911) by AlliedModders LLC
21 "Reserved Slots" (1.11.0.6911) by AlliedModders LLC
22 "Sound Commands" (1.11.0.6911) by AlliedModders LLC
23 "test.smx"
Quote:
Originally Posted by JustNO
Wy do i get this error, if I want to compile the sp file.? I tried that because since the change to use the GeoLite2-Country.mmdb the plugin doesn't work. I don't get any errors on my end, and I'm using the latest GeoLite2-Country.mmdb. The plugin worked fine with the GeoIP.dat until a few weeks ago. Uninstalled and installed everything several times, but the country filter no longer works.
Your plugin failed to compile! Read the errors below:
SourcePawn Compiler 1.11
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2021 AlliedModders LLC
/home/groups/sourcemod/upload_tmp/phpXGIHWg.sp(155) : error 047: array sizes do not match, or destination array is too small
1 Error.
Could you look into it?
|
Not sure has this change happen from this:
*nope. It has to be in compiler, not in geoip extension.
github commit
Code:
pCtx->StringToLocal(params[2], 3, ccode ? ccode : "");
to
pCtx->StringToLocalUTF8(params[2], 3, ccode, NULL);
Has mentioned here
https://github.com/alliedmodders/sou...g-1.11.md#L148
Before
https://sm.alliedmods.net/new-api/geoip/GeoipCode2 accept string variable bigger size than required.
But after change string has to exactly
right size. Can not use oversize string variable.
__________________