What I have done.
I have installed the dependencies given here https://github.com/minetest/minetest for the Debian / Ubuntu
I have done this in the home folder of a user account on the server
git clone –depth 1 https://github.com/minetest/minetest.git
cd minetest
git clone –depth 1 https://github.com/minetest/minetest_game.git games/minetest_game
I have used this for the cmake argument:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
cmake . -DRUN_IN_PLACE=TRUE -DBUILD_SERVER=TRUE -DBUILD_CLIENT=FALSE -DBUILD_CLIENT=FALSE -DCMAKE_BUILD_TYPE=Release -DENABLE_CURL=TRUE -DENABLE_SOUND=TRUE -DENABLE_SYSTEM_GMP=TRUE
And this to make it. (The VM has to processors and 2GB of ram assigned to it)
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
make -j 2
I am launching the minetestserver with systemd. This is the service file:
[Unit]
Description=MinetestServer
After=network.target
[Service]
Type=oneshot
RemainAfterExit=true
ExecStart=/home/sten/minetest/bin/minetestserver --info --logfile /home/sten/mlog.txt
[Install]
WantedBy=multi-user.target
I have downloaded the bow mod and unzipped it in the mods folder
This is the folder structure I have
In the file world.mt I have written:
gameid = minetest
backend = sqlite3
creative_mode = false
enable_damage = true
load_mod_bows=true
This is the debug file from the minetestserver
-------------
Separator
-------------
2016-11-13 09:27:27: WARNING[Main]: BanManager: creating /home/sten/minetest/bin/../worlds/world/ipban.txt
2016-11-13 09:27:27: WARNING[Main]: NodeDefManager: Ignoring CONTENT_IGNORE redefinition
2016-11-13 09:27:28: ACTION[Main]: .__ __ __
2016-11-13 09:27:28: ACTION[Main]: _____ |__| ____ _____/ |_ ____ _______/ |_
2016-11-13 09:27:28: ACTION[Main]: / \| |/ \_/ __ \ __\/ __ \ / ___/\ __\
2016-11-13 09:27:28: ACTION[Main]: | Y Y \ | | \ ___/| | \ ___/ \___ \ | |
2016-11-13 09:27:28: ACTION[Main]: |__|_| /__|___| /\___ >__| \___ >____ > |__|
2016-11-13 09:27:28: ACTION[Main]: \/ \/ \/ \/ \/
2016-11-13 09:27:28: ACTION[Main]: World at [/home/sten/minetest/bin/../worlds/world]
2016-11-13 09:27:28: ACTION[Main]: Server for gameid="minetest" listening on 0.0.0.0:30000.
2016-11-13 09:28:38: ACTION[Server]: Sten [192.168.1.248] joins game.
2016-11-13 09:28:38: ACTION[Server]: Sten joins game. List of players: Sten
2016-11-13 09:31:26: ACTION[Server]: Sten leaves game. List of players:
I installed the mod here. And restarted the VM.
2016-11-13 09:42:04: [Main]: INFO: signal_handler(): got SIGTERM, shutting down.
-------------
Separator
-------------
2016-11-13 09:42:35: [Main]: Automatically selecting world at [/home/sten/minetest/bin/../worlds/world]
2016-11-13 09:42:35: ERROR[Main]: The following mods could not be found: "bows"
2016-11-13 09:42:35: WARNING[Main]: NodeDefManager: Ignoring CONTENT_IGNORE redefinition
2016-11-13 09:42:36: ACTION[Main]: .__ __ __
2016-11-13 09:42:36: ACTION[Main]: _____ |__| ____ _____/ |_ ____ _______/ |_
2016-11-13 09:42:36: ACTION[Main]: / \| |/ \_/ __ \ __\/ __ \ / ___/\ __\
2016-11-13 09:42:36: ACTION[Main]: | Y Y \ | | \ ___/| | \ ___/ \___ \ | |
2016-11-13 09:42:36: ACTION[Main]: |__|_| /__|___| /\___ >__| \___ >____ > |__|
2016-11-13 09:42:36: ACTION[Main]: \/ \/ \/ \/ \/
2016-11-13 09:42:36: ACTION[Main]: World at [/home/sten/minetest/bin/../worlds/world]
2016-11-13 09:42:36: ACTION[Main]: Server for gameid="minetest" listening on 0.0.0.0:30000.
And this is a screenshot for the client connecting to the server. The inventory is empty..
So my problem is this.
How I am i going to get this to work?
Can someone please give me a hint on the correct manual or the the cfg file I should have used... :)
Or what have I missed in setting up mods on a headless linux server?
Thanks on advance!