[L4D2] VScript help
I don't know if it's the correct place to post this, since it is not about sourcemod.
I'm trying to modify VScript to randomly replace weapon spawns, for example this should replace pistols with molotovs with 50% chance: PHP Code:
final director_base.nut
PHP Code:
This doesn't work, error log:
Spoiler
AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE Connection to Steam servers successful. AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE VAC secure mode is activated. AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE What am I doing wrong? |
Re: [L4D2] VScript help
this doesn't per say need vscripts. just a findentitybyclassname loop on weapon_molotov_spawn and replace with said weapon. take a look at how the css weapon unlocker plugins do it.
|
Re: [L4D2] VScript help
Quote:
But now I'm just wondering what is the correct way to load vscripts? Because even if I load unmodified version, for example this file there are still errors:
Spoiler
CALLSTACK
*FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE AN ERROR HAS OCCURED [the index 'DirectorOptions' does not exist] CALLSTACK *FUNCTION [main()] InputRunScript line [1] LOCALS [vargv] ARRAY [this] TABLE |
All times are GMT -4. The time now is 19:10. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.