Raised This Month: $12 Target: $400
 3% 

Country Filter 2nd Edition


Post New Thread Reply   
 
Thread Tools Display Modes
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 11-27-2022 , 05:04   Re: Country Filter 2nd Edition
Reply With Quote #111

Ok, would you do it again.
But this time you not edit ouput text.
You not post config file.
Use those server commands what I posted.

What we need to see is version numbers.
Current cvar values set on plugin.

Thank you.
__________________
Do not Private Message @me
Bacardi is offline
JustNO
Member
Join Date: Jul 2020
Old 11-27-2022 , 11:42   Re: Country Filter 2nd Edition
Reply With Quote #112

For some reason you have numbers in front of all plugins. I don't have that numbers.

yours

Code:
sm exts list
[SM] Displaying 12 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
mine

Code:
] sm exts
 "Automatic Updater" (1.11.0.6917) by AlliedModders LLC: Updates SourceMod gamedata files
 "Webternet" (1.11.0.6917) by AlliedModders LLC: Extension for interacting with URLs
 "[L4D2] 8+ Players BugFixes" (1.0.2) by V10: This extension try fix some bugs on server have more than 8 players
 "SDK Tools" (1.11.0.6917) by AlliedModders LLC: Source SDK Tools
 "BinTools" (1.11.0.6917) by AlliedModders LLC: Low-level C/C++ Calling API
 "DHooks" (1.11.0.6917) by AlliedModders LLC: Dynamic Hooks
 "SDK Hooks" (1.11.0.6917) by AlliedModders LLC: Source SDK Hooks
 "GeoIP2" (1.1.1) by Accelerator, AlliedModders LLC: Geographical IP information
 "Top Menus" (1.11.0.6917) by AlliedModders: Creates sorted nested menus


Edit: Screenshot > https://ibb.co/f0dCVLp

^^

Last edited by JustNO; 11-27-2022 at 12:25. Reason: Screenshot
JustNO is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 11-27-2022 , 13:19   Re: Country Filter 2nd Edition
Reply With Quote #113

You need execute commands at server console.

You do know how use rcon (remote control) and you are running SRCDS (Source Dedicated Server) ?

I remember, you mentioned before
Quote:
Originally Posted by JustNO
...
I run over 12 years servers now, and never have had problems fixing things, ...
I count on you

*edit
By the way, if you read this part also.

Have you test, block your own "country" ? And make sure you have admin immunity disabled.

Last edited by Bacardi; 11-27-2022 at 13:30.
Bacardi is offline
JustNO
Member
Join Date: Jul 2020
Old 11-28-2022 , 06:04   Re: Country Filter 2nd Edition
Reply With Quote #114

That's a quote from a private message. I rent dedicated servers directly in data centers in several places in the world, so everything is under my own management. Several Linux 20.04 lts, and 1 server run 22.04 lts, to test if L4D2 run ok. All L4D2 servers run with steamcmd installer.

I was under the assumption that you just ran the sm commands via your dev console, thought it was strange, so will check via server console later today.

Yes, I had of course also entered my own country code as a block, and admin was turned off. I had already tested many other ways. The strange thing is, it worked fine the old way with Geoip.dat, so when this changed I started looking for a solution every day. I completely reinstalled one of the servers to make sure there were no traces of old configuration left.

Ill pop info asap, thx for your time.
JustNO is offline
JustNO
Member
Join Date: Jul 2020
Old 11-28-2022 , 07:05   Re: Country Filter 2nd Edition
Reply With Quote #115

If all goes well, I have now collected all the information you wanted.

Code:
sm exts list                                                                                                                                                            [SM] Displaying 15 extensions:

[01] Automatic Updater (1.11.0.6917): Updates SourceMod gamedata files
[02] Webternet (1.11.0.6917): Extension for interacting with URLs
[03] [L4D2] 8+ Players BugFixes (1.0.2): This extension try fix some bugs on server have more than 8 players
[04] SDK Tools (1.11.0.6917): Source SDK Tools
[05] BinTools (1.11.0.6917): Low-level C/C++ Calling API
[06] DHooks (1.11.0.6917): Dynamic Hooks
[07] SDK Hooks (1.11.0.6917): Source SDK Hooks
[08] <OPTIONAL> file "connect.ext.so": /home/steam/Steam/steamapps/common/Left 4 Dead 2 Dedicated Server/left4dead2/addons/sourcemod/extensions/connect.ext.so: cannot open shared object file: No such file or directory
[09] GeoIP2 (1.1.1): Geographical IP information
[10] Top Menus (1.11.0.6917): Creates sorted nested menus
[11] Regex (1.11.0.6917): Provides regex natives for plugins
[12] Client Preferences (1.11.0.6917): Saves client preference settings
[13] SQLite (1.11.0.6917): SQLite Driver
[14] <OPTIONAL> file "curl.ext.so": /home/steam/Steam/steamapps/common/Left 4 Dead 2 Dedicated Server/left4dead2/addons/sourcemod/extensions/curl.ext.so: cannot open shared object file: No such file or directory
[15] MySQL-DBI (1.11.0.6917): MySQL driver implementation for DBI


sm exts info 09

 File: geoip.ext.so
 Loaded: Yes (version 1.1.1)
 Name: GeoIP2 (Geographical IP information)
 Author: Accelerator, AlliedModders LLC (https://github.com/Accelerator74/GeoIP2)
 Binary info: API version 8 (compiled Oct 21 2018)
 Method: Loaded by SourceMod

sm plugins list 

  44 "Sound Commands" (1.11.0.6917) by AlliedModders LLC
  45 "Country Filter 2nd Edition" (2.0.4) by Bacardi
  46 "Jockey jump" (1.0.3) by Die Teetasse, NO

sm cvars 45

[SM] Listing 8 convars for: Country Filter 2nd Edition
  [Name]                           [Value]
  cf_adminimmunity                 0
  cf_allowlan                      0
  cf_allowunidentified             0
  cf_alphacode                     2
  cf_chatannouncements             1
  cf_chatusecode                   0
  cf_countries
  cf_mode                          0
 
=
JustNO is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 11-28-2022 , 09:20   Re: Country Filter 2nd Edition
Reply With Quote #116

Thank you.
I can see now, you have different version of GeoIP2 extension.
Accelerator74

I recommend you to upgrade SM files, use GeoIP extension what comes inside SM.

*edit
Also, plugin can not read your country_filter_2nd_edition.cfg file.
You mentioned you have OS Linux ?

So, you need give CHMOD permission to that file, "read".

Another thing could be from text format, what screw text new line.
Could you post your actual cfg file ?
You can "attach" that file in your post (Go Advanced in your post)

*like this
Attached Files
File Type: cfg country_filter_2nd_edition.cfg (1.8 KB, 22 views)
__________________
Do not Private Message @me

Last edited by Bacardi; 11-28-2022 at 15:15.
Bacardi is offline
JustNO
Member
Join Date: Jul 2020
Old 11-29-2022 , 04:59   Re: Country Filter 2nd Edition
Reply With Quote #117

Ok I checked everything again. I found that, after replacing the GeoIP2, another plugin stopped working. (cannounce). I then removed everything from both cannounce and countryfilter. So also databases, .inc files, everything. Then main server reboot. Then installed everything from country filter correctly. Then I get this output.

Code:
==

sm exts list
[SM] Displaying 15 extensions:
[01] Automatic Updater (1.11.0.6917): Updates SourceMod gamedata files
[02] Webternet (1.11.0.6917): Extension for interacting with URLs
[03] [L4D2] 8+ Players BugFixes (1.0.2): This extension try fix some bugs on server have more than 8 players
[04] SDK Tools (1.11.0.6917): Source SDK Tools
[05] BinTools (1.11.0.6917): Low-level C/C++ Calling API
[06] DHooks (1.11.0.6917): Dynamic Hooks
[07] SDK Hooks (1.11.0.6917): Source SDK Hooks
[08] <OPTIONAL> file "connect.ext.so": /home/steam/Steam/steamapps/common/Left 4 Dead 2 Dedicated Server/left4dead2/addons/sourcemod/extensions/connect.ext.so: cannot open shared object file: No such file or directory
[09] Top Menus (1.11.0.6917): Creates sorted nested menus
[10] Regex (1.11.0.6917): Provides regex natives for plugins
[11] Client Preferences (1.11.0.6917): Saves client preference settings
[12] SQLite (1.11.0.6917): SQLite Driver
[13] GeoIP (1.11.0.6919): Geographical IP information
[14] <OPTIONAL> file "curl.ext.so": /home/steam/Steam/steamapps/common/Left 4 Dead 2 Dedicated Server/left4dead2/addons/sourcemod/extensions/curl.ext.so: cannot open shared object file: No such file or directory
[15] MySQL-DBI (1.11.0.6917): MySQL driver implementation for DBI


sm exts info 13
 File: geoip.ext.so
 Loaded: Yes (version 1.11.0.6919)
 Name: GeoIP (Geographical IP information)
 Author: AlliedModders LLC (http://www.sourcemod.net/)
 Binary info: API version 8 (compiled Nov 25 2022 12:03:02)
 Method: Loaded by SourceMod

sm plugins list 
  43 "Sound Commands" (1.11.0.6917) by AlliedModders LLC
  44 "Country Filter 2nd Edition" (2.0.4) by Bacardi
  45 "Jockey jump" (1.0.3) by Die Teetasse, NO
  
sm cvars 44
[SM] Listing 8 convars for: Country Filter 2nd Edition
  [Name]                           [Value]
  cf_adminimmunity                 0
  cf_allowlan                      0
  cf_allowunidentified             0
  cf_alphacode                     2
  cf_chatannouncements             1
  cf_chatusecode                   0
  cf_countries
  cf_mode                          0
  
==
I let the plugin generate the cfg itself, and then modified it. ( Of course it's set on reading xD ) Then a main server reboot, then started the L4D2 server. I can see players enter server, and it show me their country. It does not block / remove players from country's i added. Yes i did try my own country.

Attached Files
File Type: cfg country_filter_2nd_edition.cfg (1.7 KB, 17 views)

Last edited by JustNO; 11-29-2022 at 05:01. Reason: Add cfg
JustNO is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 11-29-2022 , 05:20   Re: Country Filter 2nd Edition
Reply With Quote #118

Use admin command or rcon, and do not reload plugin or change map.

rcon cf_countries "HK CN"

check cvar values again

sm cvars 44


after this, chage map.

look cvars again.
sm cvars 44

What it show now ?


*problem maybe is, when plugin create cfg itsel in OS Linux, it can not read file because it not have permission.

You could give that permission.
Or delete file and create file yourself.
And add cvars with value what you need.
__________________
Do not Private Message @me

Last edited by Bacardi; 11-29-2022 at 05:29.
Bacardi is offline
JustNO
Member
Join Date: Jul 2020
Old 11-29-2022 , 11:20   Re: Country Filter 2nd Edition
Reply With Quote #119

I re-installed linux (20.04 lts) on the server and the problem is solved. So there must have been something wrong with the Linux installation. I have several dedicated servers with the same setup, and had already tried a full copy of one of those servers. When that didn't help I decided to reinstall the whole machine.

I want to thank you very much for the time and effort you put into it to help me out.

Edit

PS: If you are looking for someone with dedicated Linux servers in both the western EU and the USA, to test new ideas or adjustments, feel free to send a pm. I would like to help you.

Last edited by JustNO; 11-29-2022 at 11:26. Reason: Edit Help
JustNO is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 11-29-2022 , 14:48   Re: Country Filter 2nd Edition
Reply With Quote #120

Good that you got solved.
__________________
Do not Private Message @me
Bacardi is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:46.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode