Skip to main content

No project description provided

Project description

MTL: MUGEN Template Language

MTL provides an extension to the CNS language, used to create characters in the fighting game engine MUGEN. The tooling in the mtl-mugen package can be used to compile and debug character code written in CNS with MTL extensions.

Some features provided by MTL include:

  • Named variables
  • Named state definitions
  • Trigger definitions (for code reuse)
  • Template definitions (for code reuse)
  • Custom type system and type checking

For more details on syntax and usage, take a look at the specification in this document.

This package provides two scripts which are related to MUGEN character development. The mtlcc script is used to compile MTL character code to CNS; the mtldbg script is used to run a character compiled by mtlcc in debugging mode. Take a look at this document for more details on how to use the debugger.

Basic Usage

In order to compile a character with mtlcc, you should prepare a .def file describing your character. Because MTL only handles character code, you must prepare the AIR, SFF, SND, commands, and constants ([Data], [Movement], etc.) in separate files as you would for a standard MUGEN character. Take a look at the .def file in this folder for an example of how this is set up.

Inside the .def file, you should specify the files for your MTL character code as you normally would (i.e. add them with keys st, st1, ... in the [Files] section). mtlcc can handle up to 1000 input state files (compared to CNS which supports up to 10 with st9). You may also specify state definitions inside your command file.

When your code is ready to compile, you can run the compiler: mtlcc <input path> <output path>. The input path should be the path to the .def file, and the output path should specify a folder to place the compiled character files into. For example, mtlcc ./sample/UnitTest/UnitTest.def ./sample/UnitTest/UnitTest.CNS/.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mtl_mugen-0.2.2.tar.gz (87.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mtl_mugen-0.2.2-py2.py3-none-any.whl (102.0 kB view details)

Uploaded Python 2Python 3

File details

Details for the file mtl_mugen-0.2.2.tar.gz.

File metadata

  • Download URL: mtl_mugen-0.2.2.tar.gz
  • Upload date:
  • Size: 87.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.6

File hashes

Hashes for mtl_mugen-0.2.2.tar.gz
Algorithm Hash digest
SHA256 d74cf2da4ba11a73e68afd237b5fd47036c6cebfc13c932d51abf499110f4857
MD5 23d142500162390ffb01994c10c4a11d
BLAKE2b-256 4bc573e9a78f9e52204d72ead5906ceafafd010440e1301f3e02fa789c0f2cb7

See more details on using hashes here.

File details

Details for the file mtl_mugen-0.2.2-py2.py3-none-any.whl.

File metadata

  • Download URL: mtl_mugen-0.2.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 102.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.6

File hashes

Hashes for mtl_mugen-0.2.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d1ea6d6946cf10370a3bbe8ab49d56286c31d48ad4a3d052400790449bdeb5d0
MD5 b67d872eb264fd02d6344a716ea2cd92
BLAKE2b-256 de34bd820bb78788b68030336885f8bb8118d5646108398a537eb0e3ea1bf2a1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page