AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D2] Helms Deep Patch (VPK Maker) (1.5) [10-May-2020] (https://forums.alliedmods.net/showthread.php?t=318094)

Silvers 08-14-2019 05:30

[L4D2] Helms Deep Patch (VPK Maker) (1.5) [10-May-2020]
 
10 Attachment(s)
NOT REQUIRED - WHEN USING "Helm's Deep -Fixed-" VERSION BY JAiZ


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.
  • Let me make this very clear, SeriouS_Samurai is not the original creator of the Helms Deep map and has stolen the map removing all credit to Team Chivalry. What a disgusting individual. YouTube by JAiZ.
  • 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 create new VPKs allowing for any changes to your configs. The maximum size for each file added is 64 KB, to increase change MAX_FILE_SIZE and recompile.
  • 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.
  • Recommended Plugin: VScript File Replacer to fix more stuff with Helms Deep.


Related Plugins:

Thanks:
  • GoD-Tony - CRC-32 code
  • Lux - Support
  • Xanaguy - Support


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
  • Fixes Valve files:
    Spoiler



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.5 (10-May-2020)
    - Various changes to tidy up code.
    - Plugin no longer required while the addon is private on workshop.
    - Community third party map uploaded without malicious content.
    - Kept here to demonstrate creating VPK via SourcePawn and in case anything changes and required again.

1.4 (27-Jan-2020)
    - Added the ton of new files from (20-Jan-2020) Helms Deep update attempt to overwrite them.
    - Increased MAX_FILE_SIZE to 64 KB for packaging.
    - Kicks all Helms Deep contributers on joining your server.
    - VScript Replacer - vscripts_override.cfg also updated.

1.3 (18-Jan-2020)
    - Added new files from (27-Dec-2019) Helms Deep update attempt to overwrite them.

1.2 (11-Nov-2019)
    - Can now write binary files to VPK.

1.1 (11-Nov-2019)
    - Added new files from (10-Nov-2019) Helms Deep update attempt to overwrite them.
    - Now always detects when "addonlist.txt" order is incorrect and fixes.
    - Warns to restart server for loading addons in the correct order.
    - @SeriouS_Samurai: GTFO stupid noob. Your malware doesn't work.

    Also note:
    - "VScript File Replacer" plugin: changes to "vscripts_override.cfg" for Helms Deep.

1.0.4 (24-Aug-2019)
    - Added check to prevent errors when VPK 2 is inaccessible.

1.0.3 (18-Aug-2019)
    - Increased MAX_FILE_SIZE to 32 KB for packaging.

1.0.2 (16-Aug-2019)
    - Added "cfg/banned_user.cfg" to list of fixes.
    - Converted source to use MethodMaps.

1.0.1 (14-Aug-2019)
    - Added "host.txt" and "motd.txt" to list of fixes. Thanks to "Xanaguy" for reporting.

1.0 (14-Aug-2019)
    - Initial release.



Requirements
  • This plugin is only required if your server has "Helms Deep" map installed.


Installation
  1. Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder.
  2. Refresh your plugins to generate the VPKs and restart the server to load the patch. Or restart your server twice.
  3. Recommended Plugin: VScript File Replacer to fix more stuff with Helms Deep.


Uninstalling
  1. Delete the plugin from your servers \addons\sourcemod\plugins\ folder.
  2. Delete sm_helms_patch1.vpk and sm_helms_patch2.vpk from your servers \addons\ folder.
  3. Restart the server.

Xanaguy 08-14-2019 05:34

Re: [L4D2] Helms Deep Patch (VPK Maker) (1.0) [14-Aug-2019]
 
I need to discuss a serious matter with you. Find me on steam or discord.

Silvers 08-14-2019 05:36

Re: [L4D2] Helms Deep Patch (VPK Maker) (1.0) [14-Aug-2019]
 
@SeriouS_Samurai: We'll always reverse your malicious scripting.

@Everyone: if theres anything else which needs restoring or blocking please let me know. I'll be monitoring for future changes to the map and updating VScript Replacer config and this plugin as required. Think we got him nailed in.

Mr. Man 08-14-2019 10:58

Re: [L4D2] Helms Deep Patch (VPK Maker) (1.0.1) [14-Aug-2019]
 
Silvers bringing the actual bants!

ricksfishin 08-15-2019 14:44

Re: [L4D2] Helms Deep Patch (VPK Maker) (1.0.1) [14-Aug-2019]
 
sourcemod-1.10.0-6434

Error log:
Missing file: Cannot find VScript "scripts/vscripts/helms_deep_.+_survival.nut" to override.

Xanaguy 08-15-2019 15:24

Re: [L4D2] Helms Deep Patch (VPK Maker) (1.0.1) [14-Aug-2019]
 
You need to have the helm's deep reborn addon in order to override the script

ricksfishin 08-15-2019 17:30

Re: [L4D2] Helms Deep Patch (VPK Maker) (1.0.1) [14-Aug-2019]
 
Guess i need a link to helm's deep reborn addon.
Is it workshop subscribe or vpk download?
Had no luck with either. Thanks

Silvers 08-15-2019 17:52

Re: [L4D2] Helms Deep Patch (VPK Maker) (1.0.1) [14-Aug-2019]
 
Quote:

Originally Posted by ricksfishin (Post 2663420)
Guess i need a link to helm's deep reborn addon.
Is it workshop subscribe or vpk download?
Had no luck with either. Thanks

Quote:

Originally Posted by Silvers (Post 2663156)
Requirements
  • This plugin is only required if your server has "Helms Deep" map installed.

For the VScript Replacer (where that errors from) you can delete the "helms_deep" { } section as it's not required if you don't have the map.

Silvers 08-24-2019 12:52

Re: [L4D2] Helms Deep Patch (VPK Maker) (1.0.4) [24-Aug-2019]
 
Updated.

Also bump for anyone who uses this map and hasn't fixed the malicious additions.

moekai 08-24-2019 20:50

Re: [L4D2] Helms Deep Patch (VPK Maker) (1.0.4) [24-Aug-2019]
 
I installed this plugin and VScript File Replacer and Helms Deep Sourcemod Enabler and got this messages in the consoles and I can't spawn any custom weapon. Any idea why?

Quote:

weapon_melee_spawn specifying an invalid melee weapon ( for this campaign? ) : small_knife
weapon_melee_spawn failed to spawn a melee weapon - using string 'small_knife'
weapon_melee_spawn specifying an invalid melee weapon ( for this campaign? ) : helms_sword_and_shield
weapon_melee_spawn failed to spawn a melee weapon - using string 'helms_sword_and_shield'
weapon_melee_spawn specifying an invalid melee weapon ( for this campaign? ) : helms_hatchet
weapon_melee_spawn failed to spawn a melee weapon - using string 'helms_hatchet'
weapon_melee_spawn specifying an invalid melee weapon ( for this campaign? ) : helms_sting
weapon_melee_spawn failed to spawn a melee weapon - using string 'helms_sting'
weapon_melee_spawn specifying an invalid melee weapon ( for this campaign? ) : helms_anduril
weapon_melee_spawn failed to spawn a melee weapon - using string 'helms_anduril'

Xanaguy 08-24-2019 21:36

Re: [L4D2] Helms Deep Patch (VPK Maker) (1.0.4) [24-Aug-2019]
 
The old Sourcemod Enabler may be incompatible with this plugin. It may be inhibiting any non-malicious, yet vital parts such as custom melee weapons.

moekai 08-24-2019 22:13

Re: [L4D2] Helms Deep Patch (VPK Maker) (1.0.4) [24-Aug-2019]
 
Quote:

Originally Posted by moekai (Post 2664614)
I installed this plugin and VScript File Replacer and Helms Deep Sourcemod Enabler and got this messages in the consoles and I can't spawn any custom weapon. Any idea why?

Actually, I found the culprit for the errors message in the console and what prevent the custom weapon to spawn. It was this plugin that cause it. The melee spawn in that plugin that might have conflict with the map or the Sourcemod Enabler. After disable it, I can spawn custom weapons with vpk patch, vscript replacer and sourcemod enabler together.

Xanaguy 08-24-2019 22:35

Re: [L4D2] Helms Deep Patch (VPK Maker) (1.0.4) [24-Aug-2019]
 
That's... Fair enough. I didn't consider that. Thanks.

Silvers 08-25-2019 01:57

Re: [L4D2] Helms Deep Patch (VPK Maker) (1.0.4) [24-Aug-2019]
 
Quote:

Originally Posted by moekai (Post 2664614)
I installed this plugin and VScript File Replacer and Helms Deep Sourcemod Enabler and got this messages in the consoles and I can't spawn any custom weapon. Any idea why?

VScript File Replacer supersedes "Helms Deep Sourcemod Enabler", it does the same and more.



This happens because the mission.txt is restored from the games default file.

You should be able to fix by installing Mission and Weapons - Info Editor and adding the following to the data/l4d_info_editor_mission.cfg
Edit: I have now included this by default in the mission config of that plugin.

PHP Code:

    "helms_deep"
    
{
        
"meleeweapons"        "fireaxe;frying_pan;machete;baseball_bat;crowbar;cricket_bat;tonfa;katana;electric_guitar;knife;golfclub;small_knife;helms_sword_and_shield;helms_hatchet;helms_sting;helms_anduril"
    



moekai 09-04-2019 00:37

Re: [L4D2] Helms Deep Patch (VPK Maker) (1.0.4) [24-Aug-2019]
 
Just a new tiny problem. After the new Helm Deep September 1 update, I got baseban error log. To fix it, I deleted the 2 vpks and restart the server, there were no longer error. Everything else still working perfectly fine.

Silvers 09-05-2019 17:54

Re: [L4D2] Helms Deep Patch (VPK Maker) (1.0.4) [24-Aug-2019]
 
Quote:

Originally Posted by moekai (Post 2665778)
Just a new tiny problem. After the new Helm Deep September 1 update, I got baseban error log. To fix it, I deleted the 2 vpks and restart the server, there were no longer error. Everything else still working perfectly fine.

The VPKs fix the baseban error.

Edit: Ignore my previous message. That error means the VPKs were not loaded, another server restart should fix it.

moekai 09-06-2019 11:08

Re: [L4D2] Helms Deep Patch (VPK Maker) (1.0.4) [24-Aug-2019]
 
It did generated new 2 vpk and it's working fine without any error, is what I mean.

Silvers 11-10-2019 21:47

Re: [L4D2] Helms Deep Patch (VPK Maker) (1.1) [11-Nov-2019]
 
Quote:

1.1 (11-Nov-2019)
- Added new files from (10-Nov-2019) Helms Deep update attempt to overwrite them.
- Now always detects when "addonlist.txt" order is incorrect and fixes.
- Warns to restart server for loading addons in the correct order.
- @SeriouS_Samurai: GTFO stupid noob. Your malware doesn't work.

Also note:
- VScript File Replacer plugin changes to "vscripts_override.cfg" for Helms Deep.
Link to VScript File Replacer. Added blocking of all convars it attempts to set. Optional to only block it setting "sv_password" and some others.

tRololo312312 11-11-2019 09:44

Re: [L4D2] Helms Deep Patch (VPK Maker) (1.2) [11-Nov-2019]
 
Latest helm update added "sv_downloadfilter none" in their vscripts, meaning servers with server downloads will suffer because anyone who hosted helms deep locally, will have their downloads disabled without their knowing...

Silvers 11-11-2019 10:25

Re: [L4D2] Helms Deep Patch (VPK Maker) (1.2) [11-Nov-2019]
 
Quote:

Originally Posted by tRololo312312 (Post 2672632)
Latest helm update added "sv_downloadfilter none" in their vscripts, meaning servers with server downloads will suffer because anyone who hosted helms deep locally, will have their downloads disabled without their knowing...

Which VScript? I don't see it anywhere. Anyway can be patched out with VScript File Replacer plugin.

tRololo312312 11-11-2019 17:50

Re: [L4D2] Helms Deep Patch (VPK Maker) (1.2) [11-Nov-2019]
 
OOPS i meant cl_downloadfilter... and i wasnt talking about dedicated servers, i was talking about local games.

Silvers 11-11-2019 18:05

Re: [L4D2] Helms Deep Patch (VPK Maker) (1.2) [11-Nov-2019]
 
Quote:

Originally Posted by tRololo312312 (Post 2672672)
OOPS i meant cl_downloadfilter... and i wasnt talking about dedicated servers, i was talking about local games.

PHP Code:

    "sv_consistency"        "gtfo"
    "sv_password"           "gtfo"
    "sv_steamgroup"         "gtfo"
    "cl_downloadfilter"     "gtfo"
   
    
// Block all attempts to set cvars.
    
"Convars.SetValue"      "// Convars.SetValue" 

You can use Vscript Replacer to either disable Helms Deep setting any cvars or just the specified ones. Default config blocks Helms Deep changing any cvars.

tRololo312312 12-07-2019 06:28

Re: [L4D2] Helms Deep Patch (VPK Maker) (1.2) [11-Nov-2019]
 
but thats not the problem, cl_downloadfilter is an archive cvar, meaning any player that hosted the map in local server once, can never again download stuff from servers unless they manually enable server content downloads back from Multiplayer options.

Silvers 12-11-2019 06:53

Re: [L4D2] Helms Deep Patch (VPK Maker) (1.2) [11-Nov-2019]
 
Quote:

Originally Posted by tRololo312312 (Post 2676009)
but thats not the problem, cl_downloadfilter is an archive cvar, meaning any player that hosted the map in local server once, can never again download stuff from servers unless they manually enable server content downloads back from Multiplayer options.

Complain to Valve to fix the exploits or ban this slow hacking mod. Damage already done though. Listen servers have always been advised against. Server admins should take more care to understand what they're adding to the server.

Black_Wolf 12-12-2019 17:27

Re: [L4D2] Helms Deep Patch (VPK Maker) (1.2) [11-Nov-2019]
 
Thanks for this Silvers, you are awesome!

I'm happy to see that the community is still actively trying to stop that ******* by gaining what he doesn't deserve, keep it up!

Silvers 01-27-2020 17:16

Re: [L4D2] Helms Deep Patch (VPK Maker) (1.4) [27-Jan-2020]
 
New version, I suggest updating, also VScript Replacer plugins vscripts_override.cfg:

Code:

1.4 (27-Jan-2020)
    - Added the ton of new files from (20-Jan-2020) Helms Deep update attempt to overwrite them.
    - Increased MAX_FILE_SIZE to 64 KB for packaging.
    - Kicks all Helms Deep contributers on joining your server.
    - VScript Replacer - vscripts_override.cfg also updated.


Alex101192 07-22-2020 14:39

Re: [L4D2] Helms Deep Patch (VPK Maker) (1.5) [10-May-2020]
 
Silver is this plugin not necessary anymore since jaiz released the "clean version"?

Silvers 07-22-2020 14:43

Re: [L4D2] Helms Deep Patch (VPK Maker) (1.5) [10-May-2020]
 
Code:

1.5 (10-May-2020)
    - Various changes to tidy up code.
    - Plugin no longer required while the addon is private on workshop.
    - Community third party map uploaded without malicious content.
    - Kept here to demonstrate creating VPK via SourcePawn and in case anything changes and required again.


Alex101192 07-22-2020 17:20

Re: [L4D2] Helms Deep Patch (VPK Maker) (1.5) [10-May-2020]
 
Quote:

Originally Posted by Silvers (Post 2711183)
Code:

1.5 (10-May-2020)
    - Various changes to tidy up code.
    - Plugin no longer required while the addon is private on workshop.
    - Community third party map uploaded without malicious content.
    - Kept here to demonstrate creating VPK via SourcePawn and in case anything changes and required again.


Thanks.


All times are GMT -4. The time now is 22:08.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.