Page 1 of 1

Server mods

PostPosted: Thu Mar 23, 2017 16:31
by Tenr
Hello.
How to install mods on server?
I can install any mod, or only mods developed to work in multilayer?

Re: Server mods

PostPosted: Thu Mar 23, 2017 16:56
by rubenwardy
Nearly all mods will support multiplayer, due to how Minetest is designed. All games are actually multiplayer from the code's point of view, it's just that singleplayer only allows one player to join (with the name of "singleplayer")

Re: Server mods

PostPosted: Thu Mar 23, 2017 17:20
by Tenr
rubenwardy wrote:Nearly all mods will support multiplayer, due to how Minetest is designed. All games are actually multiplayer from the code's point of view, it's just that singleplayer only allows one player to join (with the name of "singleplayer")

Okay, then how to install mods on server?

Re: Server mods

PostPosted: Thu Mar 23, 2017 17:30
by rubenwardy
the exact same way as on a client, except you'll need to manually enable them by adding:

load_mod_modname = true

to the world.mt of the server's world

Re: Server mods

PostPosted: Thu Mar 23, 2017 17:40
by Tenr
rubenwardy wrote:the exact same way as on a client, except you'll need to manually enable them by adding:

load_mod_modname = true

to the world.mt of the server's world

On client I have directory "mods", but linux package minetest-server have following 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
/.
/etc
/etc/init.d
/etc/init.d/minetest-server
/etc/logrotate.d
/etc/logrotate.d/minetest-server
/etc/minetest
/etc/minetest/minetest.conf
/lib
/lib/systemd
/lib/systemd/system
/lib/systemd/system/minetest-server.service
/lib/systemd/system/minetest-server@.service
/usr
/usr/games
/usr/games/minetestserver
/usr/lib
/usr/lib/minetest
/usr/lib/minetest/minetestserver
/usr/share
/usr/share/doc
/usr/share/doc/minetest-server
/usr/share/doc/minetest-server/README.Debian
/usr/share/doc/minetest-server/changelog.Debian.gz
/usr/share/doc/minetest-server/changelog.gz
/usr/share/doc/minetest-server/copyright
/usr/share/man
/usr/share/man/man6
/usr/share/man/man6/minetestserver.6.gz

And directory with server map have
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
map_meta.txt
rollback.sqlite
map.sqlite
auth.txt
force_loaded.txt
world.mt
config.cfg
ipban.txt
players
env_meta.txt

Where I need to put mods?

Re: Server mods

PostPosted: Thu Mar 23, 2017 17:45
by rubenwardy
/home/username/.minetest/mods

note that .minetest is a hidden directory

Re: Server mods

PostPosted: Thu Mar 23, 2017 18:31
by Tenr
Thanks, it works.
I also hear that I can install textures on server, and client automatically download and use them. Can I do that?

Re: Server mods

PostPosted: Thu Mar 23, 2017 21:06
by cHyper
Tenr wrote:Thanks, it works.
I also hear that I can install textures on server, and client automatically download and use them. Can I do that?


i use /home/<username>/.minetest/textures folder for singleplayer gaming,
maybe it works for servers also?!!

Re: Server mods

PostPosted: Fri Mar 24, 2017 19:59
by Tenr
cHyper wrote:i use /home/<username>/.minetest/textures folder for singleplayer gaming,
maybe it works for servers also?!!

Maybe, but how to set this in config file?