Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
this is where you can find most of in-game events. this website is old and there are some missing game events. if you want to get every func events you can extract gameevents.res in pak01_dir
https://wiki.alliedmods.net/Left_4_dead_2_events
this is where you can find director scripts that used in director table
https://developer.valvesoftware.com/wiki/L4D2_Director_Scripts
this is example of vscript writing
https://developer.valvesoftware.com/wiki/L4D2_Vscript_Examples
for mod template you can use any of vscript mod. to open vpk file you'll need programe GCFScape. extract everything inside vpk file to your newly created folder. you can name it anything such as MyFirstVscript. then open scripts/vscripts you should see vscript files with .nut extension, open it with any text program Notepad++ is recommended for newbie friendly with clean UI
you can find GCFScape and Notepad++ from google.
My first guide i ever read over was the VSLIB developer guide my Rayman trying to understand the basic hierachy and idea off coding as a beginner.
One off my first mentors understanding code was Everice even who commented above.
Now if you want to learn yourself , you can do so trying to understand basic vscript files and code , just experiment a bit and eventually by trial and error you will find out exactly what is wrong.
VSLIB Library
https://steamcommunity.com/workshop/filedetails/?id=2402581049
Guides VSlib:
https://www.gamemaps.com/guide/16
https://www.gamemaps.com/guide/24
Edit: Feel free to add me , in case you need help.
I started by looking at ChimiChamo's old simple VScript add-ons, it wasn't that hard to understand since I got some similar logic functions familiarity in other programming languages.
Then I discovered VSLib and list of script functions in VDC.
https://developer.valvesoftware.com/wiki/Left_4_Dead_2/Script_Functions
And got into trial-and-error spree with those functions, originally I wanted to use VSLib for my add-ons, then I realized it uses so many functions and enables scripted mode which can only be allowed once in all VScripts, so I try to avoid it as much as I can, though it allows multiple scripted mode scripts to be run at the same time. I mostly use it only for finding documentation on unfamiliar functions.
And that's what I did until today and discover a lot of possibilities in VScript. Huge thanks to devlos for being one of my mentor which is the guy above me.
As for my suggestion, if you don't have any knowledge in logic programming, I would suggest familiarize yourself with those logic functions such as if statements, variables, data types, loops, classes and more. After that, you can try to understand Squirrel's syntax, which is the language that squirrel uses.
This playlist explains them really well.
https://www.youtube.com/watch?v=nN976yuV8iQ&list=PLTsWR3-f6-rCamvtaQreqm7fyCJDMEQGO
After that, try unpacking other people's simple add-on to see what they do, like ChimiChamo's older add-ons. And try look for the function that they use in the VDC.
https://developer.valvesoftware.com/wiki/Left_4_Dead_2/Script_Functions
Then just familiarize yourself with other functions in the VDC. You can check for errors in the console too.
Other than Notepad++, you can also try Visual Studio Code with extensions to make coding a lot easier but it really depends on you.
Hope that it helped you and good luck!