Killing Floor

Killing Floor

54 ratings
Country Tags (2024-06-14)
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
11.148 MB
4 Jul, 2019 @ 2:44pm
14 Jun @ 10:13am
20 Change Notes ( view )

Subscribe to download
Country Tags (2024-06-14)

Description
Mandatory notes
Based on KEKTAGON's (CountryTags) improved version of Marco's original Country tags[forums.tripwireinteractive.com] mutator.

All credits go to the people above and IP2Location[lite.ip2location.com] for the actual database.

The class name is: CountryTags.CountryTags


Changelog
  1. Updated database. (2024-06-14)
  2. High precision matching. Uses the whole IP address, instead of only the first three octets.
  3. Tidied up the code.
  4. Moved country abbreviations from script file to the database file. This makes the database update progress a lot easier. You no longer need to edit the actual script.
  5. Added the settings to Custom Configuration Page. (Mutators --> Configure mutators)
  6. Changed GroupName to KF-CountryTags so that the mutator appears in the mutator list.


Perk progression
Not whitelisted. This will disable perk progression on listen servers, on dedicated it works fine.


Config
You can find the settings from CountryTags.ini in system folder.
  • CountryTagParsing
    This is the naming format. %tag is the country tag, and %name is the player's name.

  • bShortTags
    When true, two letter country tags are used, instead of three.

  • HostLanIpAddr & HostWanIpAddr
    You only need to touch these if you host the server on your computer or local network.

    If the server is on the same computer you play on, HostLanIpAddr should be 127.0.0.1. If the server is on the same local network, it should be your LAN IP address.

    HostWanIpAddr is your WAN (wide area network/public) IP address, or whatever IP address you want to pretend to be.

    Note: this won't work with listen server, and there's nothing you can do to fix it.


Updating the database manually
If for whatever reason you want to update the database, or I stop updating it, here's the basics. If you aren't computer savvy, you should just forget about it.

You need to split the database (CountryTagsDB.ini) into three sections:
  • CountryTags.CountryTagsLow: first octet range from 0 to 99:
    octet1*256^3+octet2*256^2+octet3*256+octet4
  • CountryTags.CountryTagsMid: first octet range from 100 to 199:
    (octet1-100)*256^3+octet2*256^2+octet3*256+octet4
  • CountryTags.CountryTagsHigh: first octet range from 200 to 255:
    (octet1-200)*256^3+octet2*256^2+octet3*256+octet4

The format is: C=(S=<starting decimal>,E=<ending decimal>,C="<two letter country tag>",L="<three letter country tag>")


External link
https://mega DOT nz/file/4500TIrB#rdhR2veZE_Bo2tnULO3MsReR44QMnTupjeoiUZTBj80
35 Comments
Jofraniac 14 Jun @ 12:13pm 
I understand. It's a shame, really, because your version has been periodically updated and seems to work better than Marco's version which has never seen any update.
Dazuz  [author] 14 Jun @ 11:55am 
Ah, never mind then. I just remember there being a "Dedicated" button in game when hosting a game, which could have been confusing things.

I have no idea if the perk progression has ever worked on else's server, but it did on my server for my two friends and I. Not sure why anything would be any different, or changed.

I remember anything that modified the client side disabling perk progression, unless the mutator was whitelisted. Anything on the server side was fine, though. This one is 100% server side, so not sure what's going on.

Unfortunately as far as I know, or can remember, all the other country tags mutators have the database included in the .u file(s), so there's no way to update them without breaking the whitelisting. And there's no way to whitelist new mutators anymore.
Jofraniac 14 Jun @ 11:16am 
Hi, Dazuz. Sorry, but I don't understand what you mean by "dedicated button". My server is really of the dedicated sort, hosted on a headless server, it's not running on the same machine I play the game on. I also used that official guide to install it. I don't know if that problem only occurs on my setup.
Dazuz  [author] 14 Jun @ 10:15am 
Decided to update the database, hopefully I didn't mess anything up. Been so many years I don't remember everything anymore.
Dazuz  [author] 14 Jun @ 9:46am 
@Jofraniac it's been couple of years since I played, but I remember the game itself having a "dedicated" button. If you're using that, the mutator probably disables perk progression.

This is the way I did it, and it worked for me: https://wiki.tripwireinteractive.com/index.php/Dedicated_Server_%28KillingFloor%29
Jofraniac 6 Jun @ 5:37pm 
Unfortunately, this updated version disables perk progression and achievements on my dedicated server. Only the original version by Marco doesn't cause those issues, but that old version's database hasn't been updated for ages and can't correctly detect a considerable ammount of players' locations.
_⁧⁧Koytar 7 Dec, 2022 @ 7:36am 
idk why it's a thing
Dazuz  [author] 20 Jul, 2020 @ 6:49am 
I have actually no idea, never looked into the logic behind the original code.

I would assume that would be the original purpose of it, but it does seem somewhat pointless.
Essence 20 Jul, 2020 @ 1:28am 
@Dazuz, what about CountryTagsV3?)
https://mega DOT nz/file/G0dSgQhY#gmpzANubltfSzi5R60K27yibUTXMTmzkSSdB_HCHsMU
I have one question, in ClientHandler: SetTimer(2 + FRand(), true);
Why bLoop is true?
This is to prevent the player's name from being changed using the command SetName?
SG 6 Nov, 2019 @ 4:34am 
:Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh::Dosh: