Killing Floor

Killing Floor

58 个评价
Country Tags (2025-10-04)
   
奖励
收藏
已收藏
取消收藏
标签: Mutator, Multiplayer, UI
文件大小
发表于
更新日期
10.842 MB
2019 年 7 月 4 日 下午 2:44
10 月 4 日 上午 12:34
22 项改动说明 ( 查看 )

订阅以下载
Country Tags (2025-10-04)

描述
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. (2025-10-04)
  2. Tidied up the code.
  3. 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.
  4. Added the settings to Custom Configuration Page. (Mutators --> Configure mutators)
  5. 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.

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

  1. Shift the IPs one octet to the right, i.e.: 127.0.0.1 becomes 0.127.0.0.
  2. Convert the IPs to decimal.
  3. Save the results in "CountryTagsDB.ini" file in "CountryTags.CountryTagsDatabase" section.


External link
https://mega DOT nz/file/Uksk0BDL#ugV_eFLbqA0Kb8iyKpz98FLTLobgAij7cJPv0DvOFec
52 条留言
Dazuz  [作者] 10 月 5 日 下午 11:25 
No need to, just happy to help. Reminded me to do the yearly database update!
ND4SPD 10 月 5 日 上午 6:13 
Yep that worked, it displayed 192.168.1.1 on webadmin, which is my Default Gateway in ipconfig of cmd btw. Put that into CountryTags, restarted the server and it finally displays [AUS] like it's supposed to.

Thanks so much for continuing to support this, I'll give you another Steam award. Or if you like I can make a donation somewhere?
Dazuz  [作者] 10 月 5 日 上午 5:21 
"Player List" in "Current", you need to be on the server of course to see it.
ND4SPD 10 月 5 日 上午 5:04 
Server is on the same computer right now, but it might be on LAN when I'm playing on my laptop and simultaneously hosting the server on this desktop.

What tab or whatever do I have to click on in WebAdmin to get the local IP?
Dazuz  [作者] 10 月 5 日 上午 4:52 
Assuming the server is on the same local network: HostLanIpAddr = 192.168.1.103

You can use Killing Floor's web admin control panel to see what the server sees as your IP address, that'd be guaranteed to work.
ND4SPD 10 月 5 日 上午 4:43 
Or is it my default gateway address I need there? I'm so confused, I have so many IPs and I have no idea what the differences are for any of them...
ND4SPD 10 月 5 日 上午 4:41 
I did as you instructed, set HostLanIpAddr to 127.0.0.1 and HostWanIpAddr to the IP of the server which happens to be my WAN IP as-well; 115.129.145.92. And my country tag is still [ZZZ]...

What am I doing wrong?

Does HostLanIpAddr need to be my ipconfig local IPv4 Address: 192.168.1.103
???
Dazuz  [作者] 10 月 5 日 上午 1:51 
Yes, you need to edit HostLanIpAddr and HostWanIpAddr in CountryTags.ini file if you want it to be something specific.

If you play the game on the same computer you host the server, set HostLanIpAddr to 127.0.0.1. If the server is on the same local network, you'll need you use your LAN IP address, which starts with 192.168.*.

As for HostWanIpAddr, you can either use your WAN IP address. You can of course use whatever IP you want, if you want the country tag to be something else.
ND4SPD 10 月 5 日 上午 12:33 
Now my country tag is [ZZZ], normal?
Dazuz  [作者] 10 月 4 日 下午 9:55 
Yes, everything should be updated now.