jojoa1997 wrote:Could you add source code. I would like to compile this into Ubuntu.
Well, all source is in mt_mapper.bat, which is essentially plain text. It is code for Windows though, dunno if it can be converted somehow for Linux.
EDIT:
[spoiler=A Linux Conversion]
- Code: Select all
#!/bin/bash
#
# Translated to bash by VR (vytautas)
echo "-------------------------------------------------"
echo "This program is made by DanDuncombe."
echo "Read the README before first use."
echo "Licensed under WTFPL"
echo "This is version 0.5"
echo "Please type your world name:"
read world_name
if [ -f ../worlds/${world_name} ];
then
echo "World $world_name Detected!"
echo "What do want you want to name your map?"
read map
if [ -f ${map}.png ];
then
echo "Map ${map} exists!"
#goto :new_map_name
else
echo "-------------------------------------------------"
echo "Press [1] if you want to add extra parameters"
echo "Press [2] to Map world"
echo "-------------------------------------------------"
read choice
if [ $choice == 1 ];
then
echo "Type extra params:"
read param
fi
echo "Mapping ${world_name}... (Please be patient)"
wine minetest_mapper.exe -i ../worlds/${world_name} -o ${map}.png $param
echo "Done!"
fi
else
echo "World Not Found!"
fi
This is a Linux-compatable .sh code that has a similar effect to the Windows version.