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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mtl_mugen-0.1.6.tar.gz.
File metadata
- Download URL: mtl_mugen-0.1.6.tar.gz
- Upload date:
- Size: 76.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e5dab773a1028d7f3e80778bbf190ec2c3b5d87483411a575f08b185fd8cf5d
|
|
| MD5 |
6452b52f37f7a3a8b5d518cc789fbd3b
|
|
| BLAKE2b-256 |
c6ff68b9d182a7393f3e3cc4588a7efa8106c5843d6a48780b9ce1cf6d0dbb55
|
File details
Details for the file mtl_mugen-0.1.6-py2.py3-none-any.whl.
File metadata
- Download URL: mtl_mugen-0.1.6-py2.py3-none-any.whl
- Upload date:
- Size: 86.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
480bbdbc8b04036991137ab31a4d509e98cfd1ad261fc27774dd876894beb4a7
|
|
| MD5 |
b62b715911b03dbb1e9f8b80ef4d72d0
|
|
| BLAKE2b-256 |
4be8c5ca33527b8c9c6888d12bdea545207d194032531a6446a5a79854ee69ff
|