Generate block images from textures
58
README.md
|
@ -1,8 +1,8 @@
|
|||
Minetest MTS Editor
|
||||
===================
|
||||
|
||||
This is a simple editor for [Minetest](https://www.minetest.net) Schematic files
|
||||
([MTS](https://gitlab.com/bztsrc/mtsedit/blob/master/docs/mts_format.md))
|
||||
<img src="https://gitlab.com/bztsrc/mtsedit/blob/master/etc/mtsedit.png"> This is a simple editor for
|
||||
[Minetest](https://www.minetest.net) Schematic files ([MTS](https://gitlab.com/bztsrc/mtsedit/blob/master/docs/mts_format.md))
|
||||
|
||||
```
|
||||
MineTest Schematics Editor by bzt Copyright (C) 2019 MIT license
|
||||
|
@ -26,8 +26,8 @@ MineTest Schematics Editor by bzt Copyright (C) 2019 MIT license
|
|||
Batch Mode
|
||||
----------
|
||||
|
||||
You can convert MTS files and generate preview images for them from a script with this tool.
|
||||
[Read more](https://gitlab.com/bztsrc/mtsedit/blob/master/docs/batch.md).
|
||||
You can convert MTS files and generate preview images for them from a script with this tool. You can also generate the block
|
||||
images for the editor. [Read more](https://gitlab.com/bztsrc/mtsedit/blob/master/docs/batch.md).
|
||||
|
||||
Interactive Mode
|
||||
----------------
|
||||
|
@ -46,10 +46,54 @@ and capable of generating the blocks.csv for you.
|
|||
|
||||
<img src="https://gitlab.com/bztsrc/mtsedit/raw/master/docs/mtseditmod.png">
|
||||
|
||||
You can install this Minetest mod by running
|
||||
Installation
|
||||
------------
|
||||
|
||||
### Under Linux
|
||||
|
||||
1. download [mtsedit-x86_64-linux.tgz](https://gitlab.com/bztsrc/mtsedit/raw/master/mtsedit-x86_64-linux.tgz)
|
||||
2. as root, extract it to "/" (if you don't trust it, check the tarball first): "sudo tar -C / -xzvf mtsedit-x86_64-linux.tgz"
|
||||
3. I guess you know your distro enough to assign a program to an extension. There are many ways, but if your desktop environment
|
||||
recognizes the MTSEdit application from the installed .desktop file, then file assosiation has already taken care for you.
|
||||
4. if the MTSEdit application appears in the application menu, but .mts files are not recognized, then as root add the
|
||||
```
|
||||
model/vnd.mts mts schematic
|
||||
```
|
||||
line to "/etc/mime.types".
|
||||
|
||||
### Under Windows
|
||||
|
||||
1. download [mtsedit-i686-win.zip](https://gitlab.com/bztsrc/mtsedit/raw/master/mtsedit-i686-win.zip)
|
||||
2. unpack it into "C:\\Program Files (x86)"
|
||||
3. open My Computer, from the "Tools" menu, select "Folder Options"
|
||||
4. click on "File Types" tab
|
||||
5. scroll down to "MTS" (if you can't find it, click on "New" button and add it)
|
||||
6. click on "Change" button
|
||||
7. click on "Browse..." button
|
||||
8. choose "C:\\Program Files (x86)\\MTSEdit\\mtsedit.exe"
|
||||
9. check "Always use the selected program to open this kind of file"
|
||||
10. click on "Ok" button
|
||||
|
||||
### Under MacOSX
|
||||
|
||||
1. download [mtsedit-intel-macosx.zip](https://gitlab.com/bztsrc/mtsedit/raw/master/mtsedit-intel-macosx.zip)
|
||||
2. unpack it into "/Applications"
|
||||
3. in the Finder, find an .mts file
|
||||
4. pull down the "File" menu and select "Get info" or press <kbd>Command</kbd>+<kbd>I</kbd>
|
||||
5. expand the "Open With" submenu
|
||||
6. choose "MTSEdit.app"
|
||||
7. click on "Change All..." button
|
||||
|
||||
### Installing the Minetest mod (common to all OS)
|
||||
|
||||
To install the Minetest mod, you can run the following command using your Minetest mods directory as parameter, for example:
|
||||
```
|
||||
./mtsedit -i ~/.minetest/mods
|
||||
```
|
||||
or
|
||||
```
|
||||
mtsedit.exe -i C:\\Program Files (x86)\Minetest\mods
|
||||
```
|
||||
|
||||
Compilation
|
||||
-----------
|
||||
|
@ -90,6 +134,8 @@ Known Bugs
|
|||
Zooming can be slow, because it scales blocks in run-time. Using a cache would require double the memory footprint. I suggest
|
||||
to edit on 100% zoom, as that's using a different, fast blitting function.
|
||||
|
||||
Rotations are not handled properly, only the first four, 0 - 3 meaning North, West, South, East.
|
||||
Rotations are not handled properly, only the first four, 0 - 3 meaning North, West, South, East. Others are only used if there's
|
||||
a block image for that rotaion, and then they are picked numerically, not necessarily in rotation order (but you can set all
|
||||
rotations, and they will be saved correctly, it's just you might have to click more to get the one you want).
|
||||
|
||||
bzt
|
||||
|
|
Before Width: | Height: | Size: 596 B After Width: | Height: | Size: 652 B |
Before Width: | Height: | Size: 652 B After Width: | Height: | Size: 596 B |
Before Width: | Height: | Size: 648 B After Width: | Height: | Size: 671 B |
Before Width: | Height: | Size: 671 B After Width: | Height: | Size: 648 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 786 B After Width: | Height: | Size: 890 B |
Before Width: | Height: | Size: 890 B After Width: | Height: | Size: 786 B |
Before Width: | Height: | Size: 851 B After Width: | Height: | Size: 919 B |
Before Width: | Height: | Size: 919 B After Width: | Height: | Size: 851 B |
Before Width: | Height: | Size: 873 B After Width: | Height: | Size: 872 B |
Before Width: | Height: | Size: 872 B After Width: | Height: | Size: 873 B |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1023 B |
Before Width: | Height: | Size: 1023 B After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 889 B After Width: | Height: | Size: 925 B |
Before Width: | Height: | Size: 925 B After Width: | Height: | Size: 889 B |
Before Width: | Height: | Size: 984 B After Width: | Height: | Size: 982 B |
Before Width: | Height: | Size: 982 B After Width: | Height: | Size: 984 B |
Before Width: | Height: | Size: 642 B After Width: | Height: | Size: 655 B |
Before Width: | Height: | Size: 655 B After Width: | Height: | Size: 642 B |
Before Width: | Height: | Size: 635 B After Width: | Height: | Size: 653 B |
Before Width: | Height: | Size: 653 B After Width: | Height: | Size: 635 B |
Before Width: | Height: | Size: 1003 B After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1003 B |
Before Width: | Height: | Size: 477 B After Width: | Height: | Size: 499 B |
Before Width: | Height: | Size: 499 B After Width: | Height: | Size: 477 B |
Before Width: | Height: | Size: 470 B After Width: | Height: | Size: 490 B |
Before Width: | Height: | Size: 490 B After Width: | Height: | Size: 470 B |
Before Width: | Height: | Size: 611 B After Width: | Height: | Size: 638 B |
Before Width: | Height: | Size: 638 B After Width: | Height: | Size: 611 B |
Before Width: | Height: | Size: 661 B After Width: | Height: | Size: 712 B |
Before Width: | Height: | Size: 712 B After Width: | Height: | Size: 661 B |
Before Width: | Height: | Size: 782 B After Width: | Height: | Size: 841 B |
Before Width: | Height: | Size: 841 B After Width: | Height: | Size: 782 B |
Before Width: | Height: | Size: 741 B After Width: | Height: | Size: 805 B |
Before Width: | Height: | Size: 805 B After Width: | Height: | Size: 741 B |
Before Width: | Height: | Size: 683 B After Width: | Height: | Size: 732 B |
Before Width: | Height: | Size: 732 B After Width: | Height: | Size: 683 B |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 908 B After Width: | Height: | Size: 908 B |
Before Width: | Height: | Size: 908 B After Width: | Height: | Size: 908 B |
Before Width: | Height: | Size: 728 B After Width: | Height: | Size: 758 B |
Before Width: | Height: | Size: 758 B After Width: | Height: | Size: 728 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 589 B After Width: | Height: | Size: 636 B |
Before Width: | Height: | Size: 636 B After Width: | Height: | Size: 589 B |
Before Width: | Height: | Size: 604 B After Width: | Height: | Size: 695 B |
Before Width: | Height: | Size: 695 B After Width: | Height: | Size: 604 B |
Before Width: | Height: | Size: 572 B After Width: | Height: | Size: 617 B |
Before Width: | Height: | Size: 617 B After Width: | Height: | Size: 572 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 954 B After Width: | Height: | Size: 981 B |
Before Width: | Height: | Size: 981 B After Width: | Height: | Size: 954 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 801 B After Width: | Height: | Size: 864 B |
Before Width: | Height: | Size: 864 B After Width: | Height: | Size: 801 B |
Before Width: | Height: | Size: 801 B After Width: | Height: | Size: 864 B |
Before Width: | Height: | Size: 864 B After Width: | Height: | Size: 801 B |
Before Width: | Height: | Size: 511 B After Width: | Height: | Size: 520 B |
Before Width: | Height: | Size: 520 B After Width: | Height: | Size: 511 B |
Before Width: | Height: | Size: 614 B After Width: | Height: | Size: 653 B |
Before Width: | Height: | Size: 653 B After Width: | Height: | Size: 614 B |
Before Width: | Height: | Size: 654 B After Width: | Height: | Size: 754 B |
Before Width: | Height: | Size: 754 B After Width: | Height: | Size: 654 B |
Before Width: | Height: | Size: 202 B After Width: | Height: | Size: 207 B |
Before Width: | Height: | Size: 207 B After Width: | Height: | Size: 202 B |
Before Width: | Height: | Size: 447 B After Width: | Height: | Size: 472 B |
Before Width: | Height: | Size: 472 B After Width: | Height: | Size: 447 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 633 B After Width: | Height: | Size: 649 B |
Before Width: | Height: | Size: 649 B After Width: | Height: | Size: 633 B |
Before Width: | Height: | Size: 682 B After Width: | Height: | Size: 731 B |
Before Width: | Height: | Size: 731 B After Width: | Height: | Size: 682 B |
Before Width: | Height: | Size: 702 B After Width: | Height: | Size: 754 B |
Before Width: | Height: | Size: 754 B After Width: | Height: | Size: 702 B |
Before Width: | Height: | Size: 678 B After Width: | Height: | Size: 722 B |
Before Width: | Height: | Size: 722 B After Width: | Height: | Size: 678 B |
Before Width: | Height: | Size: 742 B After Width: | Height: | Size: 808 B |
Before Width: | Height: | Size: 808 B After Width: | Height: | Size: 742 B |
Before Width: | Height: | Size: 996 B After Width: | Height: | Size: 1018 B |
Before Width: | Height: | Size: 1018 B After Width: | Height: | Size: 996 B |
Before Width: | Height: | Size: 624 B After Width: | Height: | Size: 661 B |
Before Width: | Height: | Size: 661 B After Width: | Height: | Size: 624 B |
Before Width: | Height: | Size: 718 B After Width: | Height: | Size: 792 B |
Before Width: | Height: | Size: 792 B After Width: | Height: | Size: 718 B |
Before Width: | Height: | Size: 990 B After Width: | Height: | Size: 1015 B |
Before Width: | Height: | Size: 1015 B After Width: | Height: | Size: 990 B |
Before Width: | Height: | Size: 473 B After Width: | Height: | Size: 506 B |
Before Width: | Height: | Size: 506 B After Width: | Height: | Size: 473 B |
Before Width: | Height: | Size: 616 B After Width: | Height: | Size: 669 B |