forked from axiom-team/astrXbian
ENH: Remplacement du mod startanode par un monde fixe (point de spawn identique pour tous)
This commit is contained in:
parent
5cf75a496d
commit
4fd2655c4d
Binary file not shown.
|
@ -40,10 +40,6 @@ default_privs = interact, shout, fly, fast
|
||||||
# type: string
|
# type: string
|
||||||
basic_privs = interact, shout, fly, fast
|
basic_privs = interact, shout, fly, fast
|
||||||
|
|
||||||
# If this is set, players will always (re)spawn at the given position.
|
|
||||||
# type: string
|
|
||||||
static_spawnpoint = (0, 24, 0)
|
|
||||||
|
|
||||||
# Where the map generator stops.
|
# Where the map generator stops.
|
||||||
# Please note:
|
# Please note:
|
||||||
# - Limited to 31000 (setting above has no effect)
|
# - Limited to 31000 (setting above has no effect)
|
||||||
|
@ -51,8 +47,17 @@ static_spawnpoint = (0, 24, 0)
|
||||||
# - Those groups have an offset of -32, -32 nodes from the origin.
|
# - Those groups have an offset of -32, -32 nodes from the origin.
|
||||||
# - Only groups which are within the map_generation_limit are generated
|
# - Only groups which are within the map_generation_limit are generated
|
||||||
# type: int min: 0 max: 31000
|
# type: int min: 0 max: 31000
|
||||||
mapgen_limit = 216
|
#mapgen_limit = 216
|
||||||
|
mapgen_limit = 31000
|
||||||
|
|
||||||
|
# If this is set, players will always (re)spawn at the given position.
|
||||||
|
# type: string
|
||||||
|
static_spawnpoint = (0, 0, 0)
|
||||||
|
|
||||||
|
# magpen flags
|
||||||
mg_flags = trees,decorations
|
mg_flags = trees,decorations
|
||||||
|
|
||||||
|
# mapgen v6
|
||||||
mgv6_spflags = jungles,biomeblend,mudflow,snowbiomes,noflat,trees
|
mgv6_spflags = jungles,biomeblend,mudflow,snowbiomes,noflat,trees
|
||||||
mgv6_freq_desert = 0.05
|
mgv6_freq_desert = 0.05
|
||||||
mgv6_freq_beach = 0.95
|
mgv6_freq_beach = 0.95
|
||||||
|
|
|
@ -8,6 +8,7 @@ rm -R $WORLD_PATH
|
||||||
|
|
||||||
mkdir $WORLD_PATH
|
mkdir $WORLD_PATH
|
||||||
|
|
||||||
|
cp map.sqlite $WORLD_PATH/
|
||||||
|
|
||||||
echo "
|
echo "
|
||||||
gameid = minetest
|
gameid = minetest
|
||||||
|
@ -17,7 +18,7 @@ backend = sqlite3
|
||||||
" > $WORLD_PATH/world.mt
|
" > $WORLD_PATH/world.mt
|
||||||
|
|
||||||
cd ~/.zen/astrXbian/minetest
|
cd ~/.zen/astrXbian/minetest
|
||||||
cat ./minetest-common.conf > ./minetest.conf
|
cat ./minetest-common.conf > /home/pi/.minetest/worlds/astroport/minetest.conf
|
||||||
echo "
|
echo "
|
||||||
|
|
||||||
server_name = Astroport "$XZUID"
|
server_name = Astroport "$XZUID"
|
||||||
|
@ -43,14 +44,14 @@ server_announce = false
|
||||||
# Network port to listen (UDP).
|
# Network port to listen (UDP).
|
||||||
# This value will be overridden when starting from the main menu.
|
# This value will be overridden when starting from the main menu.
|
||||||
# type: int
|
# type: int
|
||||||
port = 30010
|
port = 30001
|
||||||
|
|
||||||
# The network interface that the server listens on.
|
# The network interface that the server listens on.
|
||||||
# type: string
|
# type: string
|
||||||
# bind_address =
|
# bind_address =
|
||||||
|
|
||||||
|
|
||||||
" >> ./minetest.conf
|
" >> /home/pi/.minetest/worlds/astroport/minetest.conf
|
||||||
|
|
||||||
mkdir $WORLD_PATH/worldmods
|
mkdir $WORLD_PATH/worldmods
|
||||||
|
|
||||||
|
@ -73,41 +74,41 @@ fi
|
||||||
|
|
||||||
|
|
||||||
## startanode
|
## startanode
|
||||||
|
#
|
||||||
if [ ! -d $MINETEST_PATH/mods/startanode-master ]; then
|
# if [ ! -d $MINETEST_PATH/mods/startanode-master ]; then
|
||||||
|
#
|
||||||
if [ ! -f $MINETEST_PATH/mods/startanode.zip ]; then
|
# if [ ! -f $MINETEST_PATH/mods/startanode.zip ]; then
|
||||||
wget https://github.com/minetest-mods/startanode/archive/refs/heads/master.zip -O $MINETEST_PATH/mods/startanode.zip
|
# wget https://github.com/minetest-mods/startanode/archive/refs/heads/master.zip -O $MINETEST_PATH/mods/startanode.zip
|
||||||
fi
|
# fi
|
||||||
|
#
|
||||||
unzip $MINETEST_PATH/mods/startanode.zip -d $MINETEST_PATH/mods
|
# unzip $MINETEST_PATH/mods/startanode.zip -d $MINETEST_PATH/mods
|
||||||
fi
|
# fi
|
||||||
|
#
|
||||||
cp -r $MINETEST_PATH/mods/startanode-master $WORLD_PATH/worldmods
|
# cp -r $MINETEST_PATH/mods/startanode-master $WORLD_PATH/worldmods
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# ## Spawnbuilder
|
## Spawnbuilder
|
||||||
#
|
#
|
||||||
# spawnBuilderLocation=`find $MINETEST_PATH/mods -type d -name spawnbuilder`
|
# spawnBuilderLocation=`find $MINETEST_PATH/mods -type d -name spawnbuilder`
|
||||||
# if [ -z $spawnBuilderLocation ]; then
|
# if [ -z $spawnBuilderLocation ]; then
|
||||||
#
|
#
|
||||||
# if [ ! -f $MINETEST_PATH/mods/spawnbuilder.zip ]; then
|
# if [ ! -f $MINETEST_PATH/mods/spawnbuilder.zip ]; then
|
||||||
# wget https://repo.or.cz/minetest_spawnbuilder.git/snapshot/1.1.0.zip -O $MINETEST_PATH/mods/spawnbuilder.zip
|
# wget https://repo.or.cz/minetest_spawnbuilder.git/snapshot/1.1.0.zip -O $MINETEST_PATH/mods/spawnbuilder.zip
|
||||||
# fi
|
# fi
|
||||||
#
|
#
|
||||||
# unzip $MINETEST_PATH/mods/spawnbuilder.zip -d $MINETEST_PATH/mods/spawnbuilder/
|
# unzip $MINETEST_PATH/mods/spawnbuilder.zip -d $MINETEST_PATH/mods/spawnbuilder/
|
||||||
# fi
|
# fi
|
||||||
#
|
#
|
||||||
# mkdir $WORLD_PATH/worldmods/spawnbuilder
|
# mkdir $WORLD_PATH/worldmods/spawnbuilder
|
||||||
# cp -r $MINETEST_PATH/mods/spawnbuilder/minetest_spawnbuilder-*/* $WORLD_PATH/worldmods/spawnbuilder
|
# cp -r $MINETEST_PATH/mods/spawnbuilder/minetest_spawnbuilder-*/* $WORLD_PATH/worldmods/spawnbuilder
|
||||||
#
|
#
|
||||||
# echo "
|
# echo "
|
||||||
# #Side length of the surface area of the spawn platform
|
# #Side length of the surface area of the spawn platform
|
||||||
# #If the number is odd, the platform will be centered at spawn.
|
# #If the number is odd, the platform will be centered at spawn.
|
||||||
# #Using a width lower than 3 is not recommended.
|
# #Using a width lower than 3 is not recommended.
|
||||||
# spawnbuilder_width (Spawn platform width) int 5 1
|
# spawnbuilder_width (Spawn platform width) int 5 1
|
||||||
# " > $WORLD_PATH/worldmods/spawnbuilder/mod.conf
|
# " > $WORLD_PATH/worldmods/spawnbuilder/mod.conf
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
/usr/lib/minetest/minetestserver --port 30010 --world /home/pi/.minetest/worlds/astroport --config /home/pi/.zen/astrXbian/minetest/minetest.conf
|
/usr/lib/minetest/minetestserver --port 30001 --world /home/pi/.minetest/worlds/astroport --config /home/pi/.minetest/worlds/astroport/minetest.conf
|
||||||
|
|
Loading…
Reference in New Issue