(Difference between revisions)
Return to current revision
-
-
Scripting is one of the most important features of Vault-Tec Multiplayer Mod. It grants access to in-game Objects and allows to manipulate them. With the help of scripts, it is possible to customize the game experience and even create whole new gamemodes.
-
+
Scripting is one of the most important features of Vault-Tec Multiplayer Mod. It grants access to in-game [wiki="Object"]Objects[/wiki] and allows to manipulate them. With the help of scripts, it is possible to customize the game experience and even create whole new gamemodes. Scripts are executed server-side by the dedicated server of vaultmp. Users who code scripts are known as [i]scripters[/i]. They mainly use the [category=Scripting functions]scripting functions[/category] and [category=Scripting callbacks]scripting callbacks[/category] (see [category=VaultMP interface]VaultMP interface[/category]) provided by the mod to write a script. A script can be written in C / C++ or in the [url="https://www.compuphase.com/pawn/pawn.htm"]PAWN[/url] language. See the section [wiki="Dedicated server setup#Installing a script"][i]Installing a script[/i][/wiki] in the dedicated server setup guide on how to load such a script.
[h="2"] C / C++ scripting [/h]
Scripts can be written in C and C++. It allows for maximum flexibility and an extremely large set of possibilities. An example script comes with the vaultmp package. C / C++ scripts need to be compiled as dynamic-link library (shared object for Unix) files. The entry point of a C / C++ script is [wiki]exec[/wiki].
[h="2"] PAWN scripting [/h]
Scripts can be written in PAWN. With regard to the VaultMP interface, PAWN scripts can be as powerful as C / C++ ones. An example script comes with the vaultmp package. PAWN scripts need to be compiled with pawncc.exe (comes with vaultmp) and the -C64 command line option appended. The entry point of a PAWN script is [wiki]main[/wiki].
Subcategories
There are 2 subcategories in this category, which are shown below.
Pages in category "Scripting"
There are 0 pages in this section of this category.