All Projects → Ayuto → EventScripts-Emulator

Ayuto / EventScripts-Emulator

Licence: other
A Source.Python plugin that is able to run EventScripts addons.

Programming Languages

python
139335 projects - #7 most used programming language
ReScript
86 projects

Projects that are alternatives of or similar to EventScripts-Emulator

cresset
Template repository to build PyTorch projects from source on any version of PyTorch/CUDA/cuDNN.
Stars: ✭ 573 (+3270.59%)
Mutual labels:  source-python

EventScripts-Emulator

A Source.Python plugin that is able to run EventScripts addons.

Development status

Most of the work is already done. The following is a list of things that need to be done.

General

  1. Add the possibility to unload the emulator.
  2. Do extensive testings

Python

  1. Implement es.old_mexec()
  2. Implement es.physics('start', ...)
  3. Implement es.regexec()

ESS

  1. Implement pycmd_register

Console variables

  1. Implement mattie_eventscripts
  2. Implement eventscripts_debug_showfunctions
  3. Implement mattie_python

Installation/Usage

On Windows you might need to install the 32bit version of Visual C++ Redistributable for Visual Studio 2015 if it missing on your system: https://www.microsoft.com/en-US/download/details.aspx?id=48145

  1. Put es_emulator in ../addons/source-python/plugins/
  2. Load the EventScripts Emulator with sp plugin load es_emulator
  3. Put the EventScripts addon you would like to run in ../addons/source-python/plugins/es_emulator/eventscripts/.
  4. Run the server command ese convert <your addon name> to run the Python 2 to 3 converter.
  5. Load the addon via es_load <your addon>.

Funny side note: You can also use the EventScripts API in Source.Python plugins.

Differences

  • es.getuserid() also works with SteamID3. A possible crash has also been fixed when using handles.

Note

I took the original EventScripts libraries from the latest release and adapted them to work with Python 3. I have also removed the example addons like mugmod or slingshot to keep it simple.

Unlike EventScripts this emulator also supports CS:GO. Though, es.usermsg()/es_usermsg is not supported. Use the usermsg library directly.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].