Welcome to the Liar's Bar Anti-Cheat Mod! This is an anti-cheat mod designed to enhance the integrity and fairness of the Liar's Bar game by preventing and mitigating the most common cheats.
As a fresh, brand-new game that has just recently been released, Liar's Bar is still in the process of refining its security measures. The game developers are working diligently to address these issues and enhance the overall gameplay experience.
However, with the game's current P2P setup, it is unfortunately easy for players to cheat. This mod aims to address these issues by providing robust anti-cheat mechanisms.
-
Players' Cards Obfuscation: Prevent cheaters from seeing other players' cards by obfuscating everyone's cards to 5 jokers.
-
Thrown Cards Obfuscation: Prevent cheaters from seeing the cards that got played onto the table by obfuscating the played cards into all joker cards.
-
Bullet Position Obfuscation: Prevent cheaters from seeing your (host) bullet position by obfuscating your bullet position to the last chamber and only revealing your real bullet position when you are about to die.
-
Auto-Kick for Cheating:
- Auto-kick cheaters attempting to play cards that they don't have in their hand.
- Auto-kick cheaters attempting to change their bullet positions mid-game.
- Auto-kick cheaters trying to place their bullet into an invalid revolver chamber.
- Auto-kick cheaters that illegally modify their revolver shot counter (e.g., decrease the shot counter).
- Auto-kick cheaters (or modders) that modify the chat messages in an illegal way (e.g., impersonating someone else, hiding their player name, changing the name color, etc.).
-
Bullet Position Obfuscation for All Players: Prevent cheaters from seeing other players' bullet positions by obfuscating everyone's bullet position to the last chamber and only revealing the real bullet position when the player is supposed to die.
-
Bullet Rigging Prevention: Prevent cheaters from rigging their bullet at the start of the game (currently, the bullet position is dictated on the client side and relayed to the server).
-
Movement Mod Prevention: Prevent modders from using harmless but disruptive mods such as illegal head movements or player body movement.
-
Compatibility Support: Ensure compatibility with other mods that will (hopefully) start to appear.
-
Install BepInEx (see BepInEx Installation Guide)
-
Launch Liar's Bar once with BepInEx installed to generate necessary mod folders and files
-
Navigate to your Liar's Bar game directory and go to
./BepInEx/plugins
- The
BepInEx
andplugins
folder should have been generated in the previous step - Example:
C:\Program Files\Steam\steamapps\common\Liar's Bar\BepInEx\plugins
- The
-
Download the Anti-Cheat mod from the Nexus Mods
-
Copy the downloaded DLL file (ex.
LiarsAntiCheat.dll
) to theplugins
folder -
Launch the Liar's Bar game and enjoy your new Anti-Cheat mod :)
Please note that this anti-cheat mod works only if you are the host of the lobby and hosting the game. If you join someone else's lobby, none of the anti-cheat features will work, as it all depends on having server authority.
However, you can still join other players' lobbies just fine, and it won't have any impact on your ability to play the game.
This Anti-Cheat mod was a weekend project, so the code might be a little
messy due to the rapid development focus. In line with Donald Knuth's
philosophy that early optimization is the root of all evil
, the initial aim
was functionality rather than optimization.
Your feedback for improving and optimizing the code is warmly welcomed.
I am primarily active on Discord, but my DMs are closed. The most effective way to get in touch with me is via a Discord Server support ticket.
To find the most up-to-date invite link to the Discord server, please visit my Twitter/X profile: @Tyzeron.
I serve as a System Administrator
on the Discord server and am highly active
there. I have decided to take this approach as it allows me to keep my focus on
mod development, without the added responsibility of owning and maintaining my
own Discord server.
© Copyright 2024 Tyzeron
This mod is not authorized for posting on Steam, except under the Steam account named Tyzeron