[L4D2/CS:GO/TF2/NMRiH] VScript File Replacer (1.17) [28-Jan-2024]
27 Attachment(s)
About:
Supported Games:
Related Plugins: Thanks:
Admin Commands:
PHP Code:
ConVars: Saved to vscript_replacer.cfg in your servers \cfg\sourcemod\ folder. PHP Code:
Forward for developers:
Spoiler
Config:
Changes: Code:
1.17 (28-Jan-2024)Requirements:
Installation:
|
Re: [L4D2 & CS:GO] VScript File Replacer (1.0) [10-Aug-2019]
Amazing!, could this also apply to the final campaigns?
https://developer.valvesoftware.com/.../Custom_Finale |
Re: [L4D2 & CS:GO] VScript File Replacer (1.0) [10-Aug-2019]
Awesome stuff
|
Re: [L4D2 & CS:GO] VScript File Replacer (1.0) [10-Aug-2019]
Quote:
|
Re: [L4D2 & CS:GO] VScript File Replacer (1.0) [10-Aug-2019]
This is awesome, very nice work.
|
Re: [L4D2 & CS:GO] VScript File Replacer (1.0) [10-Aug-2019]
Good job
|
Re: [L4D2 & CS:GO] VScript File Replacer (1.1) [01-Nov-2019]
Quote:
Quote:
Code:
1.1 (01-Nov-2019) |
Re: [L4D2 & CS:GO] VScript File Replacer (1.1) [01-Nov-2019]
1 Attachment(s)
Hi Silvers, What would it be like to overwrite a finale vscript?.
for example, I added this in the cfg file: PHP Code:
pd: i tested this with sm1.9/1.10 on windows |
Re: [L4D2 & CS:GO] VScript File Replacer (1.1) [01-Nov-2019]
Should work fine. Is there a problem?
|
Re: [L4D2 & CS:GO] VScript File Replacer (1.1) [01-Nov-2019]
the problem is that the finale is buged when it's override, I just tried it with the finale of the concert and start the helicopter arrives immediately... it is as if the vscript does not read :/
|
Re: [L4D2 & CS:GO] VScript File Replacer (1.1) [01-Nov-2019]
Quote:
|
Re: [L4D2 & CS:GO] VScript File Replacer (1.2) [16-Jan-2020]
now it works perfectly ty! :D
|
Re: [L4D2 & CS:GO] VScript File Replacer (1.3) [18-Jan-2020]
Plugin updated, various plugin fixes and changes for Helms Deep config.
Code:
1.3 (18-Jan-2020) |
Re: [L4D2 & CS:GO] VScript File Replacer (1.3) [18-Jan-2020]
Is there a way to replace all vscripts in mass? (independent of the file name)
e.g.: I want to change the WitchLimit string in all vscripts, is that possible? I know that for the map there is a regex for that (".+") Btw amazing plugin, as always, seems that great things will be done with it. |
Re: [L4D2 & CS:GO] VScript File Replacer (1.3) [18-Jan-2020]
Quote:
Edit: After hours of modification everything seems to be working as expected. It's matching and editing multiple files. Note: this will copy/edit/save every matched VScript file into the /vscripts_override/ folder. This is the only way the plugin can work. This also happens on each map change to account for config and vscript modifications so shouldn't affect gameplay. Will release soon. PM me if you want to beta test. |
Re: [L4D2 & CS:GO] VScript File Replacer (1.3) [18-Jan-2020]
I have a question, Is it possible get some variables from vscripts?
like this. local var1 <- 1; int var = GetVscriptVarInt("var1"); |
Re: [L4D2 & CS:GO] VScript File Replacer (1.3) [18-Jan-2020]
Quote:
|
Re: [L4D2 & CS:GO] VScript File Replacer (1.4) [22-Jan-2020]
Code:
1.4 (22-Jan-2020) |
Re: [L4D2 & CS:GO] VScript File Replacer (1.4) [22-Jan-2020]
I use Mutant Tanks plugin by Crasher_3637 and on all finales regardless of difficulty, I have 2 tanks that always spawn.
But on the No Mercy finale, only one is allowed to spawn. There are a few other finales that I think also have the same 'issue'? I was wondering if this plugin could help solve this and how to go about it as well if someone didn't mind helping? |
Re: [L4D2 & CS:GO] VScript File Replacer (1.4) [22-Jan-2020]
I did some tests once and I could increase the tank amount by changing this line on the c8m5_rooftop_finale.nut script
PHP Code:
|
Re: [L4D2 & CS:GO] VScript File Replacer (1.4) [22-Jan-2020]
You could try:
PHP Code:
The plugin could be made more powerful by using key identifiers to surround and replace only certain parts of the string, eg "CustomFinaleValue[0-9] = {{{3}}}" and whatever is inbetween "{{{}}}" will be replaced with what you specify, but at this time it's not something I plan to add. If more people request I'll consider it. Theres also the possibility that adding such an identifier would conflict with what's written in scripts, e.g. cause false positive, however making it unique enough should suffice. Again, not a current feature and no plan to add. Use https://regex101.com/ or other equivalent to test RegEx strings. |
Re: [L4D2 & CS:GO] VScript File Replacer (1.4) [22-Jan-2020]
@DARG367
I did some tests with the regex that Silvers provided and I could make it work on finales (I'm using the latest version of the plugin [22-Jan-2020]). The finale didn't bug and I could finish the map. The snippet above will:
Notes:
Spoiler
|
Re: [L4D2 & CS:GO] VScript File Replacer (1.4) [22-Jan-2020]
Thanks, Silvers and Marttt for the information! I will definitely try these out!
|
Re: [L4D2 & CS:GO] VScript File Replacer (1.5) [03-Feb-2020]
Code:
1.5 (03-Feb-2020) |
Re: [L4D2 & CS:GO] VScript File Replacer (1.5) [03-Feb-2020]
Hello Silvers, can help please, i'm use last version.
I received this in the LOG. L 02/05/2020 - 16:38:27: SourceMod error session started L 02/05/2020 - 16:38:27: Info (map "c5m1_waterfront") (file "d:\tcafiles\users\34149\left4dead2\addons\so urcemod\logs\errors_20200205.log") L 02/05/2020 - 16:38:27: [SM] Exception reported: Script execution timed out L 02/05/2020 - 16:38:27: [SM] Blaming: vscript_replacer.smx L 02/05/2020 - 16:38:27: [SM] Call stack trace: L 02/05/2020 - 16:38:27: [SM] [1] Line 675, D:\Games e Programas\PLUGINS\sourcemod-1.10.0-git6460-windows\addons\sourcemod\scripting\vscript_re placer.sp::SaveFile L 02/05/2020 - 16:38:27: [SM] [2] Line 602, D:\Games e Programas\PLUGINS\sourcemod-1.10.0-git6460-windows\addons\sourcemod\scripting\vscript_re placer.sp::ValidateFileSave L 02/05/2020 - 16:38:27: [SM] [3] Line 575, D:\Games e Programas\PLUGINS\sourcemod-1.10.0-git6460-windows\addons\sourcemod\scripting\vscript_re placer.sp::SaveOverrides L 02/05/2020 - 16:38:27: [SM] [4] Line 429, D:\Games e Programas\PLUGINS\sourcemod-1.10.0-git6460-windows\addons\sourcemod\scripting\vscript_re placer.sp::ResetPlugin L 02/05/2020 - 16:38:27: [SM] [5] Line 375, D:\Games e Programas\PLUGINS\sourcemod-1.10.0-git6460-windows\addons\sourcemod\scripting\vscript_re placer.sp::VScriptServerCompileScript L 02/05/2020 - 16:44:23: Error log file session closed. P.S, thanks for sharing this plugin :) |
Re: [L4D2 & CS:GO] VScript File Replacer (1.5) [03-Feb-2020]
Quote:
For me it takes 0.5 seconds to dump all vscripts and make changes, so as Marttt said your RegEx maybe too complicated causing delay. |
Re: [L4D2 & CS:GO] VScript File Replacer (1.5) [03-Feb-2020]
<Bad Load> vscript_replacer.smx
vscript_replacer.smx: Unable to load plugin (no debug string table) DHooks (2.2.0-detours9): Dynamic Hooks SourceMod Version: 1.9.0.6282 SourcePawn Engine: 1.9.0.6282, jit-x86 (build 1.9.0.6282) |
Re: [L4D2 & CS:GO] VScript File Replacer (1.5) [03-Feb-2020]
Quote:
|
Re: [L4D2 & CS:GO] VScript File Replacer (1.7) [10-May-2020]
Quote:
help |
Re: [L4D2 & CS:GO] VScript File Replacer (1.7) [10-May-2020]
Please read the error.
Quote:
|
Re: [L4D2 & CS:GO] VScript File Replacer (1.7) [10-May-2020]
What do I have to do if I want command "MaxSpecials=4" is set on every map?
Do I have to create a .nut file to override or I just have to put this command in vscripts_override.cfg on some section? |
Re: [L4D2 & CS:GO] VScript File Replacer (1.7) [10-May-2020]
Editing every vscript for this doesn't make much sense. You could try creating a vscript and executing but some vscripts will probably change the value dynamically during gameplay.
It might be better to create a small plugin using Left 4 DHooks and setting the value whenever "MaxSpecials" is being read. Actually I already wrote an example of this here: https://forums.alliedmods.net/showpo...2&postcount=30 I also wrote another plugin for Left4DHooks. It "Uses the z_*_limit cvar values to limit the number of Special Infected." This overrides every other value for limiting special infected, so you can set exactly for example maximum of 2 hunters allowed at any time. Just released: https://forums.alliedmods.net/showpost.php?p=2708749 |
Re: [L4D2 & CS:GO] VScript File Replacer (1.7) [10-May-2020]
Quote:
However I am still using SM1.9 since lots of plugins of mine are relative to l4downtown, would need some time to make them compatible with your masterpiece. |
Re: [L4D2 & CS:GO] VScript File Replacer (1.8) [20-Jul-2020]
Code:
1.8 (20-Jul-2020) |
Re: [L4D2 & CS:GO] VScript File Replacer (1.8) [20-Jul-2020]
How can I edit the script for an L4d2 campaign? changing the number of tanks in final waves?
|
Re: [L4D2 & CS:GO] VScript File Replacer (1.8) [20-Jul-2020]
I didn't understand how I can create a vscript to change an end of campaign in L4D2
|
Re: [L4D2 & CS:GO] VScript File Replacer (1.8) [20-Jul-2020]
Try reading this post, maybe it helps you to understand how achieve that.
|
Re: [L4D2 & CS:GO] VScript File Replacer (1.8) [20-Jul-2020]
Quote:
PHP Code:
|
Re: [L4D2 & CS:GO] VScript File Replacer (1.8) [20-Jul-2020]
hi everyone please explain how to unlock 2 tanks on this map c6m1_riverbank_versus.nut
|
Re: [L4D2 & CS:GO] VScript File Replacer (1.8) [20-Jul-2020]
Quote:
I would also like to know how to change the number of tanks. |
| All times are GMT -4. The time now is 22:26. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.