thexyz wrote:iqualfragile: set up some http server, make it accessible from the web, put its url (like http://minetest.ru/data/) in minetest.conf's remote_media
https://github.com/celeron55/minetest/blob/master/minetest.conf.example#L242RAPHAEL wrote:thexyz wrote:iqualfragile: set up some http server, make it accessible from the web, put its url (like http://minetest.ru/data/) in minetest.conf's remote_media
So for clarification, what is put into that webserver? The media folder (cache)? All the mods on the server (including default)? What structure is expected by the server?
If I can figure out how this is used I will attempt to write up some documentation for it (I'm no document writer but I'll try lol).
PilzAdam wrote:https://github.com/celeron55/minetest/blob/master/minetest.conf.example#L242RAPHAEL wrote:thexyz wrote:iqualfragile: set up some http server, make it accessible from the web, put its url (like http://minetest.ru/data/) in minetest.conf's remote_media
So for clarification, what is put into that webserver? The media folder (cache)? All the mods on the server (including default)? What structure is expected by the server?
If I can figure out how this is used I will attempt to write up some documentation for it (I'm no document writer but I'll try lol).
RAPHAEL wrote:PilzAdam wrote:https://github.com/celeron55/minetest/blob/master/minetest.conf.example#L242RAPHAEL wrote:
So for clarification, what is put into that webserver? The media folder (cache)? All the mods on the server (including default)? What structure is expected by the server?
If I can figure out how this is used I will attempt to write up some documentation for it (I'm no document writer but I'll try lol).
That still doesn't answer the question I had. WHAT is to be put on the remote server? Mods? Cache? Other? (I presume cache but would like verification).
RAPHAEL wrote:PilzAdam wrote:https://github.com/celeron55/minetest/blob/master/minetest.conf.example#L242RAPHAEL wrote:
So for clarification, what is put into that webserver? The media folder (cache)? All the mods on the server (including default)? What structure is expected by the server?
If I can figure out how this is used I will attempt to write up some documentation for it (I'm no document writer but I'll try lol).
That still doesn't answer the question I had. WHAT is to be put on the remote server? Mods? Cache? Other? (I presume cache but would like verification).
#!/bin/bash
# Edit to your liking
MODS="/some/path/minetest/mods/minetest"
DEFMODS="/some/path/minetest/games/minetest_game/mods"
DEST="/some/path/minetest/media"
# Uncomment next two lines if you want to clean out media folder first
#rm -Rf "$DEST"
#mkdir "$DEST"
# Copy files over
find "$MODS" -type f -name '*.png' -exec cp {} "$DEST" \;
find "$MODS" -type f -name '*.ogg' -exec cp {} "$DEST" \;
find "$MODS" -type f -name '*.xcf' -exec cp {} "$DEST" \;
find "$MODS" -type f -name '*.blend' -exec cp {} "$DEST" \;
find "$MODS" -type f -name '*.x' -exec cp {} "$DEST" \;
find "$DEFMODS" -type f -name '*.png' -exec cp {} "$DEST" \;
find "$DEFMODS" -type f -name '*.ogg' -exec cp {} "$DEST" \;
find "$DEFMODS" -type f -name '*.xcf' -exec cp {} "$DEST" \;
find "$DEFMODS" -type f -name '*.blend' -exec cp {} "$DEST" \;
find "$DEFMODS" -type f -name '*.x' -exec cp {} "$DEST" \;
Users browsing this forum: No registered users and 81 guests