Killing Floor

Killing Floor

54 人が評価
Country Tags (2024-06-14)
   
アワード
お気に入り
お気に入り
お気に入りから削除
ファイルサイズ
投稿日
更新日
11.148 MB
2019年7月4日 14時44分
6月14日 10時13分
20 項目の変更履歴 ( 表示 )

サブスクライブしてダウンロード
Country Tags (2024-06-14)

解説
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 件のコメント
Jofraniac 6月14日 12時13分 
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  [作成者] 6月14日 11時55分 
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 6月14日 11時16分 
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  [作成者] 6月14日 10時15分 
Decided to update the database, hopefully I didn't mess anything up. Been so many years I don't remember everything anymore.
Dazuz  [作成者] 6月14日 9時46分 
@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月6日 17時37分 
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 2022年12月7日 7時36分 
idk why it's a thing
Dazuz  [作成者] 2020年7月20日 6時49分 
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 2020年7月20日 1時28分 
@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?
Boltte 2019年11月6日 4時34分 
: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: