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

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: mtl_mugen-0.2.1.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.1.tar.gz
Algorithm Hash digest
SHA256 dac825873640298eab85baa7c929fde9035068f5143d4184e1bda96f74ddec72
MD5 d28cba12f99e692962ee78f72671d304
BLAKE2b-256 6e5929426be03f8a04cec116cdfcad027a47152ace6e7287de788b56cf2d0670

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mtl_mugen-0.2.1-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.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d502971c3c925ac40f84d650cdbd22c5c7bb64746207c4ec4e69f8c9bbe95834
MD5 33a41d71234370df25038a5ee883ae71
BLAKE2b-256 5f3bf22dc80470cbad18ed3b9ce9151303866eebddd2aed1defa0c493d6cceee

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