Problems with adding mods to a server

StenArildHvidsten
New member
 
Posts: 8
Joined: Fri Jul 15, 2016 15:15

Problems with adding mods to a server

by StenArildHvidsten » Sun Nov 13, 2016 09:49

I am setting up a Minetest server on a Ubuntu server 16.04 and I am unable to get mods to work.

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

Image

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..

Image


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!
 

User avatar
kaeza
Member
 
Posts: 2141
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

Re: Problems with adding mods to a server

by kaeza » Sun Nov 13, 2016 12:12

Hello, and welcome!

The world configuration looks fine to me. You can confirm if the bows mod loaded in several ways:
  • Type `/mods` in chat and you should see "bows" somewhere.
  • Enable creative mode (set `creative_mode = true` in `world.mt`) and confirm there's a "Bow" item.
  • Try crafting a bow. Consult the mod documentation on the recipe.

The inventory is empty by default. If you want to give players items on "registration" (i.e. when they first join), you can set `give_initial_stuff = true` in `minetest.conf` and `initial_stuff` to a comma-separated list of "itemstrings" like this:
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
give_initial_stuff = true
initial_stuff = default:sand 99,default:pick_mese,bows:bow,...

You will have to consult the mods' documentation and/or code to know the names of the items.

The `initial_stuff` setting is optional; by default, it gives several useful items.

Hope that helps.

Edit: I somehow missed your big shiny red text that the mod cannot be found, and also noticed this in your folder structure:
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
sten@minetestServer:~/minetest$ ls mods
bow  mods_here.txt


Rename that to `bows`.
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal | BTC: 1DFZAa5VtNG7Levux4oP6BuUzr1e83pJK2
 

StenArildHvidsten
New member
 
Posts: 8
Joined: Fri Jul 15, 2016 15:15

Re: Problems with adding mods to a server

by StenArildHvidsten » Sun Nov 13, 2016 13:09

Thanks kaeza!

It's starting to work!

It was very nice of you to tell me about the initial_stuff. The inventory is starting to fill up.
 


Return to Minetest Servers

Who is online

Users browsing this forum: No registered users and 10 guests

cron