View Single Post
Author Message
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 01-14-2022 , 13:47   [ANY] Map Slots Locker
Reply With Quote #1

Author: Dragokas (idea by rin-ale).

Description:
  • Prevents to join the server via temporarily locking the slots down to 1 on specified maps.
  • Specially designed to "walkaround/bypass" L4D custom maps "missing stringtable" crash*, happened when somebody join the map in the middle-game.
    * Also known in crash logs as:
    Quote:
    Host_Error: Overflow error writing string table baseline Scenes
  • You can use this plugin for developer purposes as well by locking the server via admin commands (slots aren't unlocked automatically in such case on map change).

Map list is stored here (add new map names to lock the slots on them):
  • data/maplocker_list.txt

Specific:
  • Only transitioned players are allowed to start playing that specific maps. Other players can no longer join the server until the map finishes.
  • Slots are hooked in a way preventing other plugins to change the value until map finishes.
  • You can find more information about the crash in the topic: https://github.com/ValveSoftware/Sou...es/issues/3451 | https://forums.alliedmods.net/showthread.php?t=305123
  • Bugged map names could be found in crash logs. See example in above topics.
  • At the moment list contains 23 L4D1 maps.
  • Please, report map names with a such bug to populate the list.

TODO
  • There are more TODOs, intended for security improvements... not listed here for safe.

Settings (ConVars):
cfg/sourcemod/sm_maplocker.cfg:
PHP Code:
// Enable this plugin? (1 - Yes, 0 - No)
sm_maplocker_enable "1" 
Commands: ("z" flag)
PHP Code:
// Lock the map
sm_maplock

// Unlock the map
sm_mapunlock 
Installation
- Unpack and copy everything to addons/sourcemod/
ChangeLog:
Spoiler


Donate
Donates are very appreciated and welcomed for further inspiration, make me happy, and make next updates came out more often:
- Patreon (Paypal)
- BitCoin
- Ю.Money
Attached Files
File Type: zip MapLocker.zip (10.1 KB, 131 views)
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

Last edited by Dragokas; 05-12-2022 at 04:09.
Dragokas is offline