|
| 1 | + |
1 | 2 | # springrts_smf_compiler
|
2 | 3 | This tool allows the compilation and decompilation of image files to SpringRTS's binary SMF (Spring Map Format) map format.
|
3 | 4 |
|
4 | 5 | https://springrts.com/
|
5 | 6 |
|
6 | 7 | To use the tool, place it in your /maps folder and launch pymapconv.py or start pymapconv.exe
|
7 | 8 |
|
8 |
| -Miraculously self documenting, with one caveat: dont use absolute paths in MAP NAME. |
| 9 | +Miraculously self documenting. |
9 | 10 |
|
10 | 11 | 
|
11 | 12 |
|
| 13 | +## NEW FEATURES: |
12 | 14 |
|
13 |
| -#### 2019 UPDATE: Windows EXE available, pymapconv.exe works as long as nvdxt.exe is next to it :) |
14 |
| - |
15 |
| -The windows build is 64 bit, thus allowing the compilation of maps up 64x64 size! |
16 |
| - |
17 |
| - |
18 |
| -#### 2014 Outdated: Under Windows, you will need the following to make this work: |
| 15 | +### Version 3.1 |
| 16 | +- Heightmaps same size as the diffuse texture are supported, and resized intelligently to get pixel-perfect heightmaps (solves the X to X/8 + 1 image interpolation problem) |
| 17 | +- Grass map is resized with nearest neighbour |
| 18 | +- Metal map is resized with bilinear filtering |
| 19 | +- More verbose and informative output |
| 20 | +- Works from anywhere (it is no longer required to copy into the maps working directory) |
19 | 21 |
|
20 |
| -Dowload the precompiled version from here |
21 |
| -https://springrts.com/phpbb/viewtopic.php?f=56&t=34378&start=20 |
| 22 | +## Windows usage: |
22 | 23 |
|
23 |
| -OR |
| 24 | +Dowload and use the precompiled version in pymapconv.exe in this repository |
| 25 | +The windows build is 64 bit, thus allowing the compilation of maps up 64x64 size! |
| 26 | +Ensure that nvdxt.exe is next to it. |
24 | 27 |
|
| 28 | +### Windows development: |
25 | 29 |
|
26 | 30 | Python 2.7, 32bit - https://www.python.org/downloads/
|
27 | 31 |
|
28 | 32 | PIL (Python Image Library) -http://www.pythonware.com/products/pil/
|
29 | 33 |
|
30 | 34 | PyQt4 - https://riverbankcomputing.com/software/pyqt/download (note: PyQt no longer provides Windows binaries, but you can obtain slightly old and suitable ones from https://sourceforge.net/projects/pyqt/files/PyQt4/PyQt-4.11.4/)
|
31 | 35 |
|
32 |
| -#### Under Linux (e.g. Ubuntu 14.04 and up), it requires: |
| 36 | +## Linux (e.g. Ubuntu 14.04 and up), or for development it requires: |
33 | 37 | Youre a big boy, go get the libs:
|
34 | 38 | Python 2.7
|
35 | 39 | Pillow (sudo pip install Pillow)
|
36 | 40 | PyQt4 (sudo apt-get install python-Qt4)
|
37 | 41 | ImageMagick (sudo apt-get install imagemagick)
|
38 | 42 |
|
| 43 | +## by Beherith |
0 commit comments