matesetr.blogg.se

Bzflag source
Bzflag source










This programing layer provides the interface to the BZFS application. The config directory is where the BZFlag config.cfg file is located, and the global plug-ins directory is $(prefix)/lib/bzflag/.Īll plug-ins are linked to the BZFS API. This allows the plug-in to perform additional actions on these events, or if need be, alter the results of the default logic of the server.īZFS searches for plug-ins in two standard locations: the config directory and the global plug-ins directory.

#Bzflag source install

On load, plug-ins install a number of callbacks and event handlers with the hosting BZFS that are called when specific events happen. Parameters can not have spaces, due to the way BZFS parses command line options and / commands. To pass a parameter to a plug-in, simply add a ',' after the plug-in name or path, and then add the parameter. This is often a numeric value, or a path to a file. Some plug-ins take parameters that are passed to the plug-in on load. While playing, all plug-ins loaded onto the server are visible with the /listplugins command. Using a valid path to the plug-in on load is highly recommended. If the full path to the plug-in is not specified, then BZFS will search a number of known sub directories for the plug-in as it attempts to load it. Plug-ins are loaded at startup by the -loadplugin option, or at run time with the /loadplugin command. On Linux and other Unix-like systems they are built as.

bzflag source bzflag source

On Microsoft Windows they are built as DLL files.

bzflag source

Plug-ins are compiled dynamic link libraries, that are built for the same OS/RuntimeEnvironment as the BZFS server that hosts them.










Bzflag source