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.0.tar.gz (86.6 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.0-py2.py3-none-any.whl (101.7 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: mtl_mugen-0.2.0.tar.gz
  • Upload date:
  • Size: 86.6 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.0.tar.gz
Algorithm Hash digest
SHA256 f34c455954b58efdbb01555f1057888a68c7ab8a1c4da6c16d2bdcad3251f418
MD5 0582736eb63e2dec5b5ed7d4ac1dddd8
BLAKE2b-256 63d7b336752fcbfb3506e7479238e997db316c92096f32b4101f3c9a7ff9c0b4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mtl_mugen-0.2.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 101.7 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.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b92730f0aac514c6806e9bf007e5895428843366a4b4e5ebab7d5e80085c7e2c
MD5 b6279e7aa175d9390b38176a59e75726
BLAKE2b-256 96e61b25b5a4ccd5a461ba9f6288e6e13da109fd9f7ba761209e30a9d67c7efc

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