RSSy MYGO.pl Opublikowano Sierpień 14, 2019 o 09:30 RSSy Udostępnij Opublikowano Sierpień 14, 2019 o 09:30 About: The latest "Helms Deep" map updates added various (mostly blank) SourceMod and Valve configuration files, overwriting their functionality. Malicious scripting attempts from a megalomaniac (SeriouS_Samurai) who wants to remove SourceMod and MetaMod from running with his map. Thanks to Valve the .cfg files do not work (obviously he didn't know): "February 21, 2017: Configuration files are no longer loaded from addon vpks. These configuration values were sometimes used for malicious purposes". This plugin fixes various files he's attempted to overwrite, restoring BaseBans plugin and other things. I've included the .cfg files anyway just in case. Each time the server is started it will generate and load new VPKs allowing for any changes to your configs. I chose this method to learn VPK creation via SourceMod. It also prevents modifying the maps VPK and any legal infringements. Couldn't detour functions to block overwriting files. What This Does: Modifies AddonList.txt to load the VPKs. This is required otherwise only some of the restored files are loaded. Creates two identical VPK addons (sm_helms_patch1.vpk and sm_helms_patch2.vpk) with the following files. Fixes BaseBans plugin. Fixes SourceMod files: Spoiler addons/sourcemod/configs/admin_groups.cfg addons/sourcemod/configs/admin_levels.cfg addons/sourcemod/configs/admin_overrides.cfg addons/sourcemod/configs/adminmenu_cfgs.txt addons/sourcemod/configs/adminmenu_custom.txt addons/sourcemod/configs/adminmenu_grouping.txt addons/sourcemod/configs/adminmenu_sorting.txt addons/sourcemod/configs/admins.cfg addons/sourcemod/configs/admins_simple.ini addons/sourcemod/configs/banreasons.txt addons/sourcemod/configs/core.cfg addons/sourcemod/configs/databases.cfg addons/sourcemod/configs/languages.cfg addons/sourcemod/configs/maplists.cfg cfg/sourcemod/sm_warmode_off.cfg cfg/sourcemod/sm_warmode_on.cfg cfg/sourcemod/sourcemod.cfg Fixes Valve mission files: Spoiler missions/holdoutchallenge.txt missions/holdouttraining.txt missions/parishdash.txt missions/shootzones.txt cfg/listenserver.cfg Admin Commands: Requires "z" - ADMFLAG_ROOT flag PHP Code: sm_vpk // Unloads all VPK addons, creates the Helms Deep Patch VPKs and reloads VPK addons. sm_vpkb // Prints the valve file system and local file system versions of sourcemod/configs/banreasons.txt. sm_vpks // Shows the VPK addon load order. Shorter wrapper command to show_addon_load_order. ConVars: PHP Code: // Helms Deep Patch plugin version. sm_helms_patch_version Changes: Code: 1.0 (14-Aug-2019) - Initial release. Requirements This plugin is only required if your server has "Helms Deep" map installed. Installation Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder. Refresh your plugins to generate the VPKs and restart the server to load the patch. Or restart your server twice. Uninstalling Delete the plugin from your servers \addons\sourcemod\plugins\ folder. Delete sm_helms_patch1.vpk and sm_helms_patch2.vpk from your servers \addons\ folder. Restart the server. Attached Files Get Plugin or Get Source (l4d2_helms_deep_patch.sp - 21.1 KB) Wyświetl pełny artykuł Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi
Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto
Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.
Zarejestruj nowe konto
Załóż nowe konto. To bardzo proste!
Zarejestruj sięZaloguj się
Posiadasz już konto? Zaloguj się poniżej.
Zaloguj się