Killing Floor 2

Killing Floor 2

30 ratings
Admin Auto Login
   
Award
Favorite
Favorited
Unfavorite
Maps and Mods: Mutators, Gamemodes
File Size
Posted
Updated
21.887 KB
Aug 14, 2022 @ 2:14am
Mar 8, 2024 @ 5:42am
6 Change Notes ( view )

Subscribe to download
Admin Auto Login

Description


📋 Description
Small server-side mutator that allows specified players to automatically login as an admin.

❌ Whitelisted?
No. This mod is not whitelisted and will de-rank your server. Any XP earned will not be saved.

But I hope that it will be whitelisted - I submitted whitelist request here:
https://forums.tripwireinteractive.com/index.php?threads/whitelisting-mods-and-mutators.120340/post-2353666

🖥️ Usage (server)
Note: If this is unclear, first read: Dedicated Server Guide (KF2 wiki)[wiki.killingfloor2.com]
  1. Open PCServer-KFEngine.ini / LinuxServer-KFEngine.ini.
  2. Find [IpDrv.TcpNetDriver] section and ensure line exists (add if missing):
    DownloadManagers=OnlineSubsystemSteamworks.SteamWorkshopDownload
    (If there are several DownloadManagers then the line above should be the first)
  3. Add the following string to the [OnlineSubsystemSteamworks.KFWorkshopSteamworks] section (create one if it doesn't exist):
    ServerSubscribedWorkshopItems=2848836389
  4. Start server and wait for mutator download.
  5. When the download is complete, stop the server.
  6. Create a file (*):
    <kf2-server>\KFGame\Config\KFAAL.ini
    with content:
    [AAL.AAL] Version=0
  7. Add mutator to server start parameters:
    ?Mutator=AAL.Mut
    and start the server (this will generate the default KFAAL.ini content).
  8. Stop the server and configure the mutator (see ⚙️ Setup (KFAAL.ini) below).
  9. Start the server.

🐞 (*) Buggy config initialization
This mutator (like many others) relies on UnrealScript's default values (0 for int type) to detect first-time use and generate a config.
However, the game contains a bug that initializes unset values to random data, which can lead to incorrect settings or missing configs.

As a workaround, I recommend explicitly setting Version=0 in the config during the first initialization.

Unfortunately, I can't fix this issue because it's a game engine problem (not the mutator's fault).

⚙️ Setup (KFAAL.ini)
  • Use AdminId to set the list of admins, you can use UniqueID or SteamID. The default config contains example UniqueID and SteamID entries - replace them with the values ​​you need or delete them, but don’t leave it as is.
  • Set bAutoEnableCheats=True to automatically enable cheats for admins.

🔎 Getting IDs
You can view the Steam ID and UniqueID in WebAdmin on the PLAYERS tab:


But don't try to use the SteamID from here for EGS players - it won't work. SteamID is for Steam players only. UniqueID is suitable for all platforms.

SteamID can also be obtained from the player's profile, look at the URL:


If a player uses a nickname in a link to their profile, then add this to the profile url: ?xml=1


🌍 Credits
  • The cat on the cover is Meawbin (original character by Cotton Valent[x.com]).

☑️ Status: Completed
✔️ The mutator works with the current version of the game (v1150) and I have implemented everything I planned.
⛔️ Development has stopped: I no longer have the time or motivation to maintain this mod. No further updates or bug fixes are planned.

📜 Sources
https://github.com/GenZmeY/KF2-AdminAutoLogin (GNU GPLv3)