Raised This Month: $ Target: $400
 0% 

[L4D2 & CS:GO] VScript File Replacer (1.9) [30-Sep-2020]


Post New Thread Reply   
 
Thread Tools Display Modes
Silvers
AlliedModders Donor
Join Date: Aug 2010
Location: SpaceX
Old 01-16-2020 , 13:18   Re: [L4D2 & CS:GO] VScript File Replacer (1.1) [01-Nov-2019]
Reply With Quote #11

Quote:
Originally Posted by xZk View Post
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.
__________________

Last edited by Silvers; 01-16-2020 at 16:57.
Silvers is offline
xZk
Senior Member
Join Date: Nov 2017
Location: cl
Old 01-16-2020 , 23:16   Re: [L4D2 & CS:GO] VScript File Replacer (1.2) [16-Jan-2020]
Reply With Quote #12

now it works perfectly ty!
xZk is offline
Silvers
AlliedModders Donor
Join Date: Aug 2010
Location: SpaceX
Old 01-18-2020 , 09:59   Re: [L4D2 & CS:GO] VScript File Replacer (1.3) [18-Jan-2020]
Reply With Quote #13

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.
__________________
Silvers is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 01-20-2020 , 14:11   Re: [L4D2 & CS:GO] VScript File Replacer (1.3) [18-Jan-2020]
Reply With Quote #14

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.
__________________
Marttt is offline
Silvers
AlliedModders Donor
Join Date: Aug 2010
Location: SpaceX
Old 01-20-2020 , 14:28   Re: [L4D2 & CS:GO] VScript File Replacer (1.3) [18-Jan-2020]
Reply With Quote #15

Quote:
Originally Posted by Marttt View Post
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.
__________________

Last edited by Silvers; 01-21-2020 at 18:10.
Silvers is offline
Kxnrl
AlliedModders Donor
Join Date: May 2015
Old 01-20-2020 , 15:18   Re: [L4D2 & CS:GO] VScript File Replacer (1.3) [18-Jan-2020]
Reply With Quote #16

I have a question, Is it possible get some variables from vscripts?

like this.
local var1 <- 1;
int var = GetVscriptVarInt("var1");
__________________
Kxnrl is offline
Silvers
AlliedModders Donor
Join Date: Aug 2010
Location: SpaceX
Old 01-20-2020 , 15:20   Re: [L4D2 & CS:GO] VScript File Replacer (1.3) [18-Jan-2020]
Reply With Quote #17

Quote:
Originally Posted by Kxnrl View Post
I have a question, Is it possible get some variables from vscripts?
Get and show where? [L4D2 / CSGO / ANY] Execute Vscript Get Return
__________________
Silvers is offline
Silvers
AlliedModders Donor
Join Date: Aug 2010
Location: SpaceX
Old 01-22-2020 , 16:15   Re: [L4D2 & CS:GO] VScript File Replacer (1.4) [22-Jan-2020]
Reply With Quote #18

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.
__________________
Silvers is offline
DARG367
AlliedModders Donor
Join Date: Aug 2018
Location: Vancouver, British Colum
Old 01-30-2020 , 23:37   Re: [L4D2 & CS:GO] VScript File Replacer (1.4) [22-Jan-2020]
Reply With Quote #19

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?
__________________

Last edited by DARG367; 01-30-2020 at 23:45.
DARG367 is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 01-30-2020 , 23:59   Re: [L4D2 & CS:GO] VScript File Replacer (1.4) [22-Jan-2020]
Reply With Quote #20

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.
__________________

Last edited by Marttt; 01-31-2020 at 00:02.
Marttt is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:28.


Powered by vBulletin®
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Theme made by Freecode