Raised This Month: $ Target: $400
 0% 

[L4D2/CS:GO/TF2/NMRiH] VScript File Replacer (1.17) [28-Jan-2024]


Post New Thread Reply   
 
Thread Tools Display Modes
FroGeX
Senior Member
Join Date: Aug 2020
Old 08-31-2020 , 12:50   Re: [L4D2 & CS:GO] VScript File Replacer (1.8) [20-Jul-2020]
Reply With Quote #41

Dont work OVERRIDE on CSGO map jb_augment_v2

Code:
sm_vs_list
=============================
===== VSCRIPT OVERRIDES =====
=============================
1) "/scripts/vscripts/change_folder_name_later/guesstheangle" with "guesstheangle"
2) "/scripts/vscripts/change_folder_name_later/snake" with "snake"
3) "/scripts/vscripts/change_folder_name_later/toolbox" with "toolbox"
=============================
I try this path but dont work
Code:
sm_vs_list
=============================
===== VSCRIPT OVERRIDES =====
=============================
1) "change_folder_name_later/guesstheangle" with "guesstheangle"
2) "change_folder_name_later/snake" with "snake"
3) "change_folder_name_later/toolbox" with "toolbox"
=============================
scripts are in map.bsp

Last edited by FroGeX; 08-31-2020 at 12:51.
FroGeX is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 08-31-2020 , 16:14   Re: [L4D2 & CS:GO] VScript File Replacer (1.8) [20-Jul-2020]
Reply With Quote #42

I didn't found that file you guys are asking for help:
c6m1_riverbank_versus

Can @Voevoda or @rtokuda paste the .nut code generated by the script on the dumps folder? (sm_vs_dump)

-------------------------

@FroGeX you must also change the config at "data/vscripts_override.cfg" to read the path
and also add it to the "/vscripts/vscripts_custom" folder
Or is this problem specific to this map?

I don't have CSGO to help you, but I know that in L4D2 works perfectly.
__________________

Last edited by Marttt; 08-31-2020 at 16:19.
Marttt is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 09-01-2020 , 13:14   Re: [L4D2 & CS:GO] VScript File Replacer (1.8) [20-Jul-2020]
Reply With Quote #43

Quote:
Originally Posted by FroGeX View Post
Dont work OVERRIDE on CSGO map jb_augment_v2
Suggest running the command "sm_vs_listen" and monitoring the scripts being executed and you could try running "sm_vs_exec change_folder_name_later/guesstheangle" to see what happens. Make sure your new "guesstheangle.nut" is inside the /scripts/vscripts/vscripts_custom/ folder. You could also add Msg("EXECUTING NEW guesstheangle FILE"); to the vscript at the top to see if that prints to server console when executed.

It shouldn't matter where the original script is stored or executed from, seems most likely a problem with paths, however there are several FileExist checks so it should have logged an error if the paths are wrong/files missing. Verify your custom scripts were created in the /scripts/vscripts/vscripts_override/ folder.
__________________
Silvers is offline
FroGeX
Senior Member
Join Date: Aug 2020
Old 09-02-2020 , 00:53   Re: [L4D2 & CS:GO] VScript File Replacer (1.8) [20-Jul-2020]
Reply With Quote #44

Still not work i changed vscripts via stripper but thanks for help
FroGeX is offline
ur5efj
Member
Join Date: Jan 2006
Old 09-24-2020 , 18:09   Re: [L4D2 & CS:GO] VScript File Replacer (1.8) [20-Jul-2020]
Reply With Quote #45

After update
Code:
L 09/25/2020 - 00:04:04: SourceMod error session started
L 09/25/2020 - 00:04:04: Info (map "c14m1_junkyard") (file "C:\SteamCMD\SteamApps\common\Left 4 Dead 2 Dedicated Server\left4dead2\addons\sourcemod\logs\errors_20200925.log")
L 09/25/2020 - 00:04:04: [SM] Exception reported: read_count (284425) is greater than buffer size (204800)
L 09/25/2020 - 00:04:04: [SM] Blaming: vscript_replacer.smx
L 09/25/2020 - 00:04:04: [SM] Call stack trace:
L 09/25/2020 - 00:04:04: [SM]   [0] File.ReadString
L 09/25/2020 - 00:04:04: [SM]   [1] Line 757, vscript_replacer.sp::SaveFile
L 09/25/2020 - 00:04:04: [SM]   [2] Line 266, vscript_replacer.sp::CmdDump
L 09/25/2020 - 00:14:01: Error log file session closed.
Quote:
// To read/write entire files with char[] buffer via SDKCall for ICE enc/dec (removed before release).
// Without this server receives: "[SM] Exception reported: Instruction contained invalid parameter".
// The largest Valve VScript file I've seen was below 70 KB. The largest I've seen from a 3rd party map was ~180 KB.
// If you require more please notify me, increase and recompile.
// This is 200 KB (200 * 1024)
#define MAX_BUFFER 204800

Last edited by ur5efj; 09-24-2020 at 18:18.
ur5efj is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 09-24-2020 , 18:31   Re: [L4D2 & CS:GO] VScript File Replacer (1.8) [20-Jul-2020]
Reply With Quote #46

Thank you, seems largest is now ~277 KB. Will increased buffer to 300 KB in future update. Can just recompile changing to "#define MAX_BUFFER 307200" e.g.
__________________
Silvers is offline
lemeshovich
Member
Join Date: Jun 2011
Old 03-01-2021 , 05:35   Re: [L4D2 & CS:GO] VScript File Replacer (1.9) [30-Sep-2020]
Reply With Quote #47

looks like not working on CSGO
trying to change embedded .nut script of aim_rogue_inferno map

i changed config at "data/vscripts_override.cfg", restarted server
a new changed script file appears at "scripts/vscripts/vscripts_override/", all my changes looks correctly
but still default map script is using

i tried to duplicate changed script to "scripts/vscripts/vscripts_custom/", i added Msg("EXECUTED!"); on the first line like @Silvers suggested then i run sm_vs_exec "coop/rogue", output:
Quote:
--- VSCRIPT: Overriding script: <coop/rogue> <vscripts_override/coop/rogue>
EXECUTED!
still default map script is using, not changed one

sm_vs_list:
Quote:
=============================
===== VSCRIPT OVERRIDES =====
=============================
1) "coop/rogue"
=============================

Last edited by lemeshovich; 03-01-2021 at 05:54.
lemeshovich is offline
jeremyvillanueva
AlliedModders Donor
Join Date: Jan 2021
Location: dcord:Jeremy333#7632
Old 03-04-2021 , 00:26   Re: [L4D2 & CS:GO] VScript File Replacer (1.9) [30-Sep-2020]
Reply With Quote #48

Hi @Silvers,

I want to share my fork of your plugin,
https://github.com/jeremyvillanuevar...pt_replacer.sp

I think this is an advancement for all the L4D2 Server development
And maybe there is a chance some admin or mod on the site could add
a Forum for VScripting, because there is one for SourcePawn

@lemeshovich, I suggest you use my fork,
I added debug log messages, configurable by a constant DEBUG,
and also I added two features,
1 it recognizes the case on the files
2 whenever a script is included in an override script, that script would be check for override files by removing its extension
jeremyvillanueva is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 03-04-2021 , 01:52   Re: [L4D2 & CS:GO] VScript File Replacer (1.9) [30-Sep-2020]
Reply With Quote #49

Quote:
Originally Posted by lemeshovich View Post
looks like not working on CSGO
trying to change embedded .nut script of aim_rogue_inferno map

i changed config at "data/vscripts_override.cfg", restarted server
a new changed script file appears at "scripts/vscripts/vscripts_override/", all my changes looks correctly
but still default map script is using

i tried to duplicate changed script to "scripts/vscripts/vscripts_custom/", i added Msg("EXECUTED!"); on the first line like @Silvers suggested then i run sm_vs_exec "coop/rogue", output:

still default map script is using, not changed one

sm_vs_list:
I cannot test on CS:GO, but if you're running the command "sm_vs_exec "coop/rogue"" and getting output from that, I don't see why it wouldn't work when the game executes the scripts. When I tested before everything was fine, and I've tested again in L4D2 modifying the games scripts and they are being changed correctly. Verify you're using the latest version of the plugin. You could test by using sm_vs_listen to see which scripts are being executed.



Quote:
Originally Posted by jeremyvillanueva View Post
Hi @Silvers,

I want to share my fork of your plugin
Hi,

Case sensitive filenames are bad and cause issues, that's why I made it use lower case filenames. I can add a cvar for debugging with some options such as printing to server or to chat, and verbose debugging instead of having to recompile the plugin as you made it. I disagree with some of the changes you made, why would you remove the "auto generated" message for example?

Code:
1.10 (04-Mar-2020)
    - Added ConVar "vscript_replacer_debug" to enable debugging with options for verbose debugging and printing to chat or server.
    - ConVar config is saved as "vscript_replacer.cfg" filename in your servers standard "cfg/sourcemods" folder.
__________________

Last edited by Silvers; 03-04-2021 at 03:30.
Silvers is offline
lemeshovich
Member
Join Date: Jun 2011
Old 03-04-2021 , 07:03   Re: [L4D2 & CS:GO] VScript File Replacer (1.9) [30-Sep-2020]
Reply With Quote #50

Quote:
Originally Posted by Silvers View Post
Verify you're using the latest version of the plugin.
Code:
] rcon sm plugins list
...
33 "[L4D2 & CS:GO] VScript File Replacer" (1.9) by SilverShot
Quote:
Originally Posted by Silvers View Post
You could test by using sm_vs_listen to see which scripts are being executed.
i think you mean sm_vs_list instead of sm_vs_listen and its output is in my previous post
because sm_vs_listen give me that:
Code:
] rcon sm_vs_listen 
--- VSCRIPT: Listening started.
Quote:
Originally Posted by Silvers View Post
I cannot test on CS:GO
csgo is free for now

UPD. just updated to 1.10 version and for now looks like everything works great, thanks

Last edited by lemeshovich; 03-04-2021 at 07:31.
lemeshovich is offline
Reply



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 23:42.


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