AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D2/CS:GO/TF2/NMRiH] VScript File Replacer (1.17) [28-Jan-2024] (https://forums.alliedmods.net/showthread.php?t=318024)

Silvers 01-16-2020 12:18

Re: [L4D2 & CS:GO] VScript File Replacer (1.1) [01-Nov-2019]
 
Quote:

Originally Posted by xZk (Post 2680439)
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 :/

Thanks. It was expecting an identically named file in the /custom/ folder as the one it's overriding instead of a custom named file. Have fixed it to work as expected.

xZk 01-16-2020 22:16

Re: [L4D2 & CS:GO] VScript File Replacer (1.2) [16-Jan-2020]
 
now it works perfectly ty! :D

Silvers 01-18-2020 08:59

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)
    - Changed command "sm_vs_exec" to use a logic_script instead, due to script_execute requiring sv_cheats.
    - Fixed not loading scripts where the filename is matched using regex.
    - Fixed error when reporting duplicate keys in config.
    - Updated "data/vscript_replacer.cfg" to fix Helms Deep patches and added various critical cvars being changed.

1.2 (16-Jan-2020)
    - Added command "sm_vs_exec" to execute a VScript file. This is a wrapper to the function "script_execute".
    - Fixed not using the specified "override" filename. Thanks to "xZk" for reporting.


Marttt 01-20-2020 13:11

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.

Silvers 01-20-2020 13:28

Re: [L4D2 & CS:GO] VScript File Replacer (1.3) [18-Jan-2020]
 
Quote:

Originally Posted by Marttt (Post 2681028)
Is there a way to replace all vscripts in mass? (independent of the file name)

The whole regex system inside this script would need to be changed to support multiple files

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.

Kxnrl 01-20-2020 14:18

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");

Silvers 01-20-2020 14:20

Re: [L4D2 & CS:GO] VScript File Replacer (1.3) [18-Jan-2020]
 
Quote:

Originally Posted by Kxnrl (Post 2681040)
I have a question, Is it possible get some variables from vscripts?

Get and show where? [L4D2 / CSGO / ANY] Execute Vscript Get Return

Silvers 01-22-2020 15:15

Re: [L4D2 & CS:GO] VScript File Replacer (1.4) [22-Jan-2020]
 
Code:

1.4 (22-Jan-2020)
    - Added RegEx support for matching multiple script names.
    - Updated "data/vscript_replacer.cfg" to fix Helms Deep patches. All working now.

This is quite heavily modified from previous versions, I tried testing everything and it all seems to work as expected, but please let me know if there are any problems.

DARG367 01-30-2020 22:37

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?

Marttt 01-30-2020 22:59

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:

    A_CustomFinale3         TANK
    A_CustomFinaleValue3     


But since I don't know much of regex, it would be necessary to check the files that contain *CustomFinale* string = TANK and then increase (or maybe remove?) the next attribute. But it can bug the finale as well, didn't make a full test, was just playing around.


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

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