Skip to content

Stanbroek/BakkesModSDK-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Language grade: Python

BakkesModSDK - Python

This plugin adds python bindings to the bakkesmod sdk through pybind11.
Inspired by BakkesPython made by @Martinii89.

Generate bindings (optional):

  • Make sure the BAKKESMODSDK_DIR value in generate_sdk.py is set to the correct folder.
  • Generate the bindings with for example generate_sdk.py bakkesmodplugin.cpp -o out -pybind11-module
  • Fix all the errors, most of them should be detailed in bindings.cpp.

Compile plugin:

Usage:

  • Change the plugin directory by changing pp_plugin_dir, default is ${BakkesModFolder}/py.
  • Load plugins with pplugin load ${plugin_name}.

Examples: