« [1.0 - Stable] Miami Land Server Source
[GAMEMODE] Python Demo
[GAMEMODE] Doomplay match 1.0 »

ysc3839

  • VC:MP Beta Tester
  • Posts: 620
[GAMEMODE] Python Demo
«  »
Introduction
This is a demo gamemode for my Python plugin. Working in progress.
https://github.com/ysc3839/vcmp-python-demo

Version 1.0 have settings system (settings.yaml) and a teleport system. Vehicles position are from vl8-pb400 and teleports position are by myself.
This script works with 04rel004-04rel006 (server version v23-v30). Tested with Python 3.6 x64 on both Windows 10 and Ubuntu 18.04.

Deploy instruction
Clone or download the source code first.

Download required binaries
Install required Python package
This project uses pipenv to manage packages.
Install pipenv and run pipenv install inside project folder to install packages.
After installing packages. Run pipenv shell and then start the server.
If you are using Windows, you need to use run_server.bat to start the server. This script sets PYTHONHOME environment variable because Python can not locate virtualenv location. This issue does not exist on Linux so you can start the server directly.

« [1.0 - Stable] Miami Land Server Source
[GAMEMODE] Doomplay match 1.0 »