aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--share/client/textures/fontlucida.png (renamed from data/clienttextures/fontlucida.png)bin17284 -> 17284 bytes
-rw-r--r--share/client/textures/menubg.png (renamed from data/clienttextures/menubg.png)bin1586 -> 1586 bytes
-rw-r--r--share/client/textures/menulogo.png (renamed from data/clienttextures/menulogo.png)bin498 -> 498 bytes
-rw-r--r--share/client/textures/smoke_puff.png (renamed from data/clienttextures/smoke_puff.png)bin2182 -> 2182 bytes
-rw-r--r--share/client/textures/unknown_block.png (renamed from data/clienttextures/unknown_block.png)bin582 -> 582 bytes
-rw-r--r--share/client/textures/unknown_item.png (renamed from data/clienttextures/unknown_item.png)bin710 -> 710 bytes
-rw-r--r--share/client/textures/unknown_object.png (renamed from data/clienttextures/unknown_object.png)bin489 -> 489 bytes
-rw-r--r--share/server/builtin.lua (renamed from data/builtin.lua)0
-rw-r--r--share/server/games/mesetint/mods/bucket/depends.txt (renamed from data/mods/bucket/depends.txt)0
-rw-r--r--share/server/games/mesetint/mods/bucket/init.lua (renamed from data/mods/bucket/init.lua)0
-rw-r--r--share/server/games/mesetint/mods/bucket/textures/bucket.png (renamed from data/mods/bucket/textures/bucket.png)bin329 -> 329 bytes
-rw-r--r--share/server/games/mesetint/mods/bucket/textures/bucket_lava.png (renamed from data/mods/bucket/textures/bucket_lava.png)bin363 -> 363 bytes
-rw-r--r--share/server/games/mesetint/mods/bucket/textures/bucket_water.png (renamed from data/mods/bucket/textures/bucket_water.png)bin369 -> 369 bytes
-rw-r--r--share/server/games/mesetint/mods/default/init.lua (renamed from data/mods/default/init.lua)0
-rw-r--r--share/server/games/mesetint/mods/default/textures/crack.png (renamed from data/mods/default/textures/crack.png)bin1076 -> 1076 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_apple.png (renamed from data/mods/default/textures/default_apple.png)bin203 -> 203 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_book.png (renamed from data/mods/default/textures/default_book.png)bin292 -> 292 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_bookshelf.png (renamed from data/mods/default/textures/default_bookshelf.png)bin597 -> 597 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_brick.png (renamed from data/mods/default/textures/default_brick.png)bin604 -> 604 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_cactus_side.png (renamed from data/mods/default/textures/default_cactus_side.png)bin279 -> 279 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_cactus_top.png (renamed from data/mods/default/textures/default_cactus_top.png)bin236 -> 236 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_chest_front.png (renamed from data/mods/default/textures/default_chest_front.png)bin167 -> 167 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_chest_lock.png (renamed from data/mods/default/textures/default_chest_lock.png)bin224 -> 224 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_chest_side.png (renamed from data/mods/default/textures/default_chest_side.png)bin151 -> 151 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_chest_top.png (renamed from data/mods/default/textures/default_chest_top.png)bin142 -> 142 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_clay.png (renamed from data/mods/default/textures/default_clay.png)bin613 -> 613 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_clay_brick.png (renamed from data/mods/default/textures/default_clay_brick.png)bin249 -> 249 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_clay_lump.png (renamed from data/mods/default/textures/default_clay_lump.png)bin210 -> 210 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_cloud.png (renamed from data/mods/default/textures/default_cloud.png)bin118 -> 118 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_coal_lump.png (renamed from data/mods/default/textures/default_coal_lump.png)bin933 -> 933 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_cobble.png (renamed from data/mods/default/textures/default_cobble.png)bin830 -> 830 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_dirt.png (renamed from data/mods/default/textures/default_dirt.png)bin1586 -> 1586 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_fence.png (renamed from data/mods/default/textures/default_fence.png)bin539 -> 539 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_furnace_front.png (renamed from data/mods/default/textures/default_furnace_front.png)bin246 -> 246 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_furnace_side.png (renamed from data/mods/default/textures/default_furnace_side.png)bin236 -> 236 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_glass.png (renamed from data/mods/default/textures/default_glass.png)bin978 -> 978 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_grass.png (renamed from data/mods/default/textures/default_grass.png)bin874 -> 874 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_grass_footsteps.png (renamed from data/mods/default/textures/default_grass_footsteps.png)bin856 -> 856 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_grass_side.png (renamed from data/mods/default/textures/default_grass_side.png)bin878 -> 878 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_gravel.png (renamed from data/mods/default/textures/default_gravel.png)bin591 -> 591 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_iron_lump.png (renamed from data/mods/default/textures/default_iron_lump.png)bin936 -> 936 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_junglegrass.png (renamed from data/mods/default/textures/default_junglegrass.png)bin672 -> 672 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_jungletree.png (renamed from data/mods/default/textures/default_jungletree.png)bin502 -> 502 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_jungletree_top.png (renamed from data/mods/default/textures/default_jungletree_top.png)bin507 -> 507 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_ladder.png (renamed from data/mods/default/textures/default_ladder.png)bin395 -> 395 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_lava.png (renamed from data/mods/default/textures/default_lava.png)bin357 -> 357 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_leaves.png (renamed from data/mods/default/textures/default_leaves.png)bin1689 -> 1689 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_mese.png (renamed from data/mods/default/textures/default_mese.png)bin203 -> 203 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_mineral_coal.png (renamed from data/mods/default/textures/default_mineral_coal.png)bin952 -> 952 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_mineral_iron.png (renamed from data/mods/default/textures/default_mineral_iron.png)bin1614 -> 1614 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_mossycobble.png (renamed from data/mods/default/textures/default_mossycobble.png)bin965 -> 965 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_nc_back.png (renamed from data/mods/default/textures/default_nc_back.png)bin303 -> 303 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_nc_front.png (renamed from data/mods/default/textures/default_nc_front.png)bin410 -> 410 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_nc_rb.png (renamed from data/mods/default/textures/default_nc_rb.png)bin203 -> 203 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_nc_side.png (renamed from data/mods/default/textures/default_nc_side.png)bin260 -> 260 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_paper.png (renamed from data/mods/default/textures/default_paper.png)bin242 -> 242 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_papyrus.png (renamed from data/mods/default/textures/default_papyrus.png)bin366 -> 366 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_rail.png (renamed from data/mods/default/textures/default_rail.png)bin507 -> 507 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_rail_crossing.png (renamed from data/mods/default/textures/default_rail_crossing.png)bin555 -> 555 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_rail_curved.png (renamed from data/mods/default/textures/default_rail_curved.png)bin545 -> 545 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_rail_t_junction.png (renamed from data/mods/default/textures/default_rail_t_junction.png)bin542 -> 542 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_sand.png (renamed from data/mods/default/textures/default_sand.png)bin1381 -> 1381 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_sandstone.png (renamed from data/mods/default/textures/default_sandstone.png)bin772 -> 772 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_sapling.png (renamed from data/mods/default/textures/default_sapling.png)bin502 -> 502 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_scorched_stuff.png (renamed from data/mods/default/textures/default_scorched_stuff.png)bin233 -> 233 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_sign.png (renamed from data/mods/default/textures/default_sign.png)bin1374 -> 1374 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_sign_back.png (renamed from data/mods/default/textures/default_sign_back.png)bin1312 -> 1312 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_sign_wall.png (renamed from data/mods/default/textures/default_sign_wall.png)bin489 -> 489 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_steel_block.png (renamed from data/mods/default/textures/default_steel_block.png)bin219 -> 219 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_steel_ingot.png (renamed from data/mods/default/textures/default_steel_ingot.png)bin207 -> 207 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_stick.png (renamed from data/mods/default/textures/default_stick.png)bin182 -> 182 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_stone.png (renamed from data/mods/default/textures/default_stone.png)bin806 -> 806 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_tnt_bottom.png (renamed from data/mods/default/textures/default_tnt_bottom.png)bin161 -> 161 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_tnt_side.png (renamed from data/mods/default/textures/default_tnt_side.png)bin186 -> 186 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_tnt_top.png (renamed from data/mods/default/textures/default_tnt_top.png)bin264 -> 264 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_tool_mesepick.png (renamed from data/mods/default/textures/default_tool_mesepick.png)bin252 -> 252 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_tool_steelaxe.png (renamed from data/mods/default/textures/default_tool_steelaxe.png)bin927 -> 927 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_tool_steelpick.png (renamed from data/mods/default/textures/default_tool_steelpick.png)bin271 -> 271 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_tool_steelshovel.png (renamed from data/mods/default/textures/default_tool_steelshovel.png)bin216 -> 216 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_tool_steelsword.png (renamed from data/mods/default/textures/default_tool_steelsword.png)bin291 -> 291 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_tool_stoneaxe.png (renamed from data/mods/default/textures/default_tool_stoneaxe.png)bin931 -> 931 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_tool_stonepick.png (renamed from data/mods/default/textures/default_tool_stonepick.png)bin262 -> 262 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_tool_stoneshovel.png (renamed from data/mods/default/textures/default_tool_stoneshovel.png)bin203 -> 203 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_tool_stonesword.png (renamed from data/mods/default/textures/default_tool_stonesword.png)bin301 -> 301 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_tool_woodaxe.png (renamed from data/mods/default/textures/default_tool_woodaxe.png)bin927 -> 927 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_tool_woodpick.png (renamed from data/mods/default/textures/default_tool_woodpick.png)bin245 -> 245 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_tool_woodshovel.png (renamed from data/mods/default/textures/default_tool_woodshovel.png)bin203 -> 203 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_tool_woodsword.png (renamed from data/mods/default/textures/default_tool_woodsword.png)bin255 -> 255 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_torch.png (renamed from data/mods/default/textures/default_torch.png)bin925 -> 925 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_torch_on_ceiling.png (renamed from data/mods/default/textures/default_torch_on_ceiling.png)bin913 -> 913 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_torch_on_floor.png (renamed from data/mods/default/textures/default_torch_on_floor.png)bin917 -> 917 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_tree.png (renamed from data/mods/default/textures/default_tree.png)bin1445 -> 1445 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_tree_top.png (renamed from data/mods/default/textures/default_tree_top.png)bin1024 -> 1024 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_water.png (renamed from data/mods/default/textures/default_water.png)bin518 -> 518 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/default_wood.png (renamed from data/mods/default/textures/default_wood.png)bin1400 -> 1400 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/heart.png (renamed from data/mods/default/textures/heart.png)bin308 -> 308 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/player.png (renamed from data/mods/default/textures/player.png)bin212 -> 212 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/player_back.png (renamed from data/mods/default/textures/player_back.png)bin201 -> 201 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/skybox1.png (renamed from data/mods/default/textures/skybox1.png)bin236 -> 236 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/skybox1_dawn.png (renamed from data/mods/default/textures/skybox1_dawn.png)bin598 -> 598 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/skybox1_night.png (renamed from data/mods/default/textures/skybox1_night.png)bin2247 -> 2247 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/skybox2.png (renamed from data/mods/default/textures/skybox2.png)bin231 -> 231 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/skybox2_dawn.png (renamed from data/mods/default/textures/skybox2_dawn.png)bin199 -> 199 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/skybox2_night.png (renamed from data/mods/default/textures/skybox2_night.png)bin2583 -> 2583 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/skybox3.png (renamed from data/mods/default/textures/skybox3.png)bin190 -> 190 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/skybox3_dawn.png (renamed from data/mods/default/textures/skybox3_dawn.png)bin190 -> 190 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/skybox3_night.png (renamed from data/mods/default/textures/skybox3_night.png)bin190 -> 190 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/treeprop.png (renamed from data/mods/default/textures/treeprop.png)bin1055 -> 1055 bytes
-rw-r--r--share/server/games/mesetint/mods/default/textures/wieldhand.png (renamed from data/mods/default/textures/wieldhand.png)bin384 -> 384 bytes
-rw-r--r--share/server/games/mesetint/mods/experimental/depends.txt (renamed from data/mods/experimental/depends.txt)0
-rw-r--r--share/server/games/mesetint/mods/experimental/init.lua (renamed from data/mods/experimental/init.lua)0
-rw-r--r--share/server/games/mesetint/mods/experimental/textures/experimental_dummyball.png (renamed from data/mods/experimental/textures/experimental_dummyball.png)bin838 -> 838 bytes
-rw-r--r--share/server/games/mesetint/mods/give_initial_stuff/depends.txt (renamed from data/mods/give_initial_stuff/depends.txt)0
-rw-r--r--share/server/games/mesetint/mods/give_initial_stuff/init.lua (renamed from data/mods/give_initial_stuff/init.lua)0
-rw-r--r--share/server/games/mesetint/mods/legacy/depends.txt (renamed from data/mods/legacy/depends.txt)0
-rw-r--r--share/server/games/mesetint/mods/legacy/init.lua (renamed from data/mods/legacy/init.lua)0
-rw-r--r--share/server/games/mesetint/mods/legacy/textures/apple_iron.png (renamed from data/mods/legacy/textures/apple_iron.png)bin207 -> 207 bytes
-rw-r--r--share/server/games/mesetint/mods/legacy/textures/cooked_rat.png (renamed from data/mods/legacy/textures/cooked_rat.png)bin239 -> 239 bytes
-rw-r--r--share/server/games/mesetint/mods/legacy/textures/dungeon_master.png (renamed from data/mods/legacy/textures/dungeon_master.png)bin6636 -> 6636 bytes
-rw-r--r--share/server/games/mesetint/mods/legacy/textures/fireball.png (renamed from data/mods/legacy/textures/fireball.png)bin603 -> 603 bytes
-rw-r--r--share/server/games/mesetint/mods/legacy/textures/firefly.png (renamed from data/mods/legacy/textures/firefly.png)bin116 -> 116 bytes
-rw-r--r--share/server/games/mesetint/mods/legacy/textures/oerkki1.png (renamed from data/mods/legacy/textures/oerkki1.png)bin250 -> 250 bytes
-rw-r--r--share/server/games/mesetint/mods/legacy/textures/oerkki1_damaged.png (renamed from data/mods/legacy/textures/oerkki1_damaged.png)bin341 -> 341 bytes
-rw-r--r--share/server/games/mesetint/mods/legacy/textures/rat.png (renamed from data/mods/legacy/textures/rat.png)bin920 -> 920 bytes
-rw-r--r--src/client.cpp2
-rw-r--r--src/game.cpp2
-rw-r--r--src/guiPauseMenu.cpp4
-rw-r--r--src/main.cpp28
-rw-r--r--src/porting.cpp61
-rw-r--r--src/porting.h6
-rw-r--r--src/server.cpp65
-rw-r--r--src/server.h24
-rw-r--r--src/servermain.cpp38
-rw-r--r--src/tile.cpp7
134 files changed, 136 insertions, 101 deletions
diff --git a/data/clienttextures/fontlucida.png b/share/client/textures/fontlucida.png
index c63fa02b7..c63fa02b7 100644
--- a/data/clienttextures/fontlucida.png
+++ b/share/client/textures/fontlucida.png
Binary files differ
diff --git a/data/clienttextures/menubg.png b/share/client/textures/menubg.png
index 7cb9c89a6..7cb9c89a6 100644
--- a/data/clienttextures/menubg.png
+++ b/share/client/textures/menubg.png
Binary files differ
diff --git a/data/clienttextures/menulogo.png b/share/client/textures/menulogo.png
index 76595c48d..76595c48d 100644
--- a/data/clienttextures/menulogo.png
+++ b/share/client/textures/menulogo.png
Binary files differ
diff --git a/data/clienttextures/smoke_puff.png b/share/client/textures/smoke_puff.png
index e346d204c..e346d204c 100644
--- a/data/clienttextures/smoke_puff.png
+++ b/share/client/textures/smoke_puff.png
Binary files differ
diff --git a/data/clienttextures/unknown_block.png b/share/client/textures/unknown_block.png
index a27cb8ca9..a27cb8ca9 100644
--- a/data/clienttextures/unknown_block.png
+++ b/share/client/textures/unknown_block.png
Binary files differ
diff --git a/data/clienttextures/unknown_item.png b/share/client/textures/unknown_item.png
index 35cabf0ad..35cabf0ad 100644
--- a/data/clienttextures/unknown_item.png
+++ b/share/client/textures/unknown_item.png
Binary files differ
diff --git a/data/clienttextures/unknown_object.png b/share/client/textures/unknown_object.png
index 4d6a98d56..4d6a98d56 100644
--- a/data/clienttextures/unknown_object.png
+++ b/share/client/textures/unknown_object.png
Binary files differ
diff --git a/data/builtin.lua b/share/server/builtin.lua
index 351cf3bb0..351cf3bb0 100644
--- a/data/builtin.lua
+++ b/share/server/builtin.lua
diff --git a/data/mods/bucket/depends.txt b/share/server/games/mesetint/mods/bucket/depends.txt
index 3a7daa1d7..3a7daa1d7 100644
--- a/data/mods/bucket/depends.txt
+++ b/share/server/games/mesetint/mods/bucket/depends.txt
diff --git a/data/mods/bucket/init.lua b/share/server/games/mesetint/mods/bucket/init.lua
index 8ed9da522..8ed9da522 100644
--- a/data/mods/bucket/init.lua
+++ b/share/server/games/mesetint/mods/bucket/init.lua
diff --git a/data/mods/bucket/textures/bucket.png b/share/server/games/mesetint/mods/bucket/textures/bucket.png
index f165fd209..f165fd209 100644
--- a/data/mods/bucket/textures/bucket.png
+++ b/share/server/games/mesetint/mods/bucket/textures/bucket.png
Binary files differ
diff --git a/data/mods/bucket/textures/bucket_lava.png b/share/server/games/mesetint/mods/bucket/textures/bucket_lava.png
index 7cf27cd1f..7cf27cd1f 100644
--- a/data/mods/bucket/textures/bucket_lava.png
+++ b/share/server/games/mesetint/mods/bucket/textures/bucket_lava.png
Binary files differ
diff --git a/data/mods/bucket/textures/bucket_water.png b/share/server/games/mesetint/mods/bucket/textures/bucket_water.png
index f220ec51e..f220ec51e 100644
--- a/data/mods/bucket/textures/bucket_water.png
+++ b/share/server/games/mesetint/mods/bucket/textures/bucket_water.png
Binary files differ
diff --git a/data/mods/default/init.lua b/share/server/games/mesetint/mods/default/init.lua
index 2fdfdb39c..2fdfdb39c 100644
--- a/data/mods/default/init.lua
+++ b/share/server/games/mesetint/mods/default/init.lua
diff --git a/data/mods/default/textures/crack.png b/share/server/games/mesetint/mods/default/textures/crack.png
index 499783982..499783982 100644
--- a/data/mods/default/textures/crack.png
+++ b/share/server/games/mesetint/mods/default/textures/crack.png
Binary files differ
diff --git a/data/mods/default/textures/default_apple.png b/share/server/games/mesetint/mods/default/textures/default_apple.png
index 9593f28f6..9593f28f6 100644
--- a/data/mods/default/textures/default_apple.png
+++ b/share/server/games/mesetint/mods/default/textures/default_apple.png
Binary files differ
diff --git a/data/mods/default/textures/default_book.png b/share/server/games/mesetint/mods/default/textures/default_book.png
index 176fb6aa9..176fb6aa9 100644
--- a/data/mods/default/textures/default_book.png
+++ b/share/server/games/mesetint/mods/default/textures/default_book.png
Binary files differ
diff --git a/data/mods/default/textures/default_bookshelf.png b/share/server/games/mesetint/mods/default/textures/default_bookshelf.png
index 5ecc50ff3..5ecc50ff3 100644
--- a/data/mods/default/textures/default_bookshelf.png
+++ b/share/server/games/mesetint/mods/default/textures/default_bookshelf.png
Binary files differ
diff --git a/data/mods/default/textures/default_brick.png b/share/server/games/mesetint/mods/default/textures/default_brick.png
index 32d77f347..32d77f347 100644
--- a/data/mods/default/textures/default_brick.png
+++ b/share/server/games/mesetint/mods/default/textures/default_brick.png
Binary files differ
diff --git a/data/mods/default/textures/default_cactus_side.png b/share/server/games/mesetint/mods/default/textures/default_cactus_side.png
index fc479fde6..fc479fde6 100644
--- a/data/mods/default/textures/default_cactus_side.png
+++ b/share/server/games/mesetint/mods/default/textures/default_cactus_side.png
Binary files differ
diff --git a/data/mods/default/textures/default_cactus_top.png b/share/server/games/mesetint/mods/default/textures/default_cactus_top.png
index f9e68df51..f9e68df51 100644
--- a/data/mods/default/textures/default_cactus_top.png
+++ b/share/server/games/mesetint/mods/default/textures/default_cactus_top.png
Binary files differ
diff --git a/data/mods/default/textures/default_chest_front.png b/share/server/games/mesetint/mods/default/textures/default_chest_front.png
index c5628af94..c5628af94 100644
--- a/data/mods/default/textures/default_chest_front.png
+++ b/share/server/games/mesetint/mods/default/textures/default_chest_front.png
Binary files differ
diff --git a/data/mods/default/textures/default_chest_lock.png b/share/server/games/mesetint/mods/default/textures/default_chest_lock.png
index ae038fae5..ae038fae5 100644
--- a/data/mods/default/textures/default_chest_lock.png
+++ b/share/server/games/mesetint/mods/default/textures/default_chest_lock.png
Binary files differ
diff --git a/data/mods/default/textures/default_chest_side.png b/share/server/games/mesetint/mods/default/textures/default_chest_side.png
index 916dd784d..916dd784d 100644
--- a/data/mods/default/textures/default_chest_side.png
+++ b/share/server/games/mesetint/mods/default/textures/default_chest_side.png
Binary files differ
diff --git a/data/mods/default/textures/default_chest_top.png b/share/server/games/mesetint/mods/default/textures/default_chest_top.png
index 58c79674d..58c79674d 100644
--- a/data/mods/default/textures/default_chest_top.png
+++ b/share/server/games/mesetint/mods/default/textures/default_chest_top.png
Binary files differ
diff --git a/data/mods/default/textures/default_clay.png b/share/server/games/mesetint/mods/default/textures/default_clay.png
index 3557429d8..3557429d8 100644
--- a/data/mods/default/textures/default_clay.png
+++ b/share/server/games/mesetint/mods/default/textures/default_clay.png
Binary files differ
diff --git a/data/mods/default/textures/default_clay_brick.png b/share/server/games/mesetint/mods/default/textures/default_clay_brick.png
index e36648e48..e36648e48 100644
--- a/data/mods/default/textures/default_clay_brick.png
+++ b/share/server/games/mesetint/mods/default/textures/default_clay_brick.png
Binary files differ
diff --git a/data/mods/default/textures/default_clay_lump.png b/share/server/games/mesetint/mods/default/textures/default_clay_lump.png
index be0bab9d7..be0bab9d7 100644
--- a/data/mods/default/textures/default_clay_lump.png
+++ b/share/server/games/mesetint/mods/default/textures/default_clay_lump.png
Binary files differ
diff --git a/data/mods/default/textures/default_cloud.png b/share/server/games/mesetint/mods/default/textures/default_cloud.png
index 24091a377..24091a377 100644
--- a/data/mods/default/textures/default_cloud.png
+++ b/share/server/games/mesetint/mods/default/textures/default_cloud.png
Binary files differ
diff --git a/data/mods/default/textures/default_coal_lump.png b/share/server/games/mesetint/mods/default/textures/default_coal_lump.png
index bad901efa..bad901efa 100644
--- a/data/mods/default/textures/default_coal_lump.png
+++ b/share/server/games/mesetint/mods/default/textures/default_coal_lump.png
Binary files differ
diff --git a/data/mods/default/textures/default_cobble.png b/share/server/games/mesetint/mods/default/textures/default_cobble.png
index 7d0447419..7d0447419 100644
--- a/data/mods/default/textures/default_cobble.png
+++ b/share/server/games/mesetint/mods/default/textures/default_cobble.png
Binary files differ
diff --git a/data/mods/default/textures/default_dirt.png b/share/server/games/mesetint/mods/default/textures/default_dirt.png
index 7cb9c89a6..7cb9c89a6 100644
--- a/data/mods/default/textures/default_dirt.png
+++ b/share/server/games/mesetint/mods/default/textures/default_dirt.png
Binary files differ
diff --git a/data/mods/default/textures/default_fence.png b/share/server/games/mesetint/mods/default/textures/default_fence.png
index 0b99f0eb5..0b99f0eb5 100644
--- a/data/mods/default/textures/default_fence.png
+++ b/share/server/games/mesetint/mods/default/textures/default_fence.png
Binary files differ
diff --git a/data/mods/default/textures/default_furnace_front.png b/share/server/games/mesetint/mods/default/textures/default_furnace_front.png
index 1620a27c3..1620a27c3 100644
--- a/data/mods/default/textures/default_furnace_front.png
+++ b/share/server/games/mesetint/mods/default/textures/default_furnace_front.png
Binary files differ
diff --git a/data/mods/default/textures/default_furnace_side.png b/share/server/games/mesetint/mods/default/textures/default_furnace_side.png
index 63cb162fe..63cb162fe 100644
--- a/data/mods/default/textures/default_furnace_side.png
+++ b/share/server/games/mesetint/mods/default/textures/default_furnace_side.png
Binary files differ
diff --git a/data/mods/default/textures/default_glass.png b/share/server/games/mesetint/mods/default/textures/default_glass.png
index ade0196fe..ade0196fe 100644
--- a/data/mods/default/textures/default_glass.png
+++ b/share/server/games/mesetint/mods/default/textures/default_glass.png
Binary files differ
diff --git a/data/mods/default/textures/default_grass.png b/share/server/games/mesetint/mods/default/textures/default_grass.png
index 3610bb2bc..3610bb2bc 100644
--- a/data/mods/default/textures/default_grass.png
+++ b/share/server/games/mesetint/mods/default/textures/default_grass.png
Binary files differ
diff --git a/data/mods/default/textures/default_grass_footsteps.png b/share/server/games/mesetint/mods/default/textures/default_grass_footsteps.png
index 57e063d8c..57e063d8c 100644
--- a/data/mods/default/textures/default_grass_footsteps.png
+++ b/share/server/games/mesetint/mods/default/textures/default_grass_footsteps.png
Binary files differ
diff --git a/data/mods/default/textures/default_grass_side.png b/share/server/games/mesetint/mods/default/textures/default_grass_side.png
index 4f4f680be..4f4f680be 100644
--- a/data/mods/default/textures/default_grass_side.png
+++ b/share/server/games/mesetint/mods/default/textures/default_grass_side.png
Binary files differ
diff --git a/data/mods/default/textures/default_gravel.png b/share/server/games/mesetint/mods/default/textures/default_gravel.png
index f08666ad9..f08666ad9 100644
--- a/data/mods/default/textures/default_gravel.png
+++ b/share/server/games/mesetint/mods/default/textures/default_gravel.png
Binary files differ
diff --git a/data/mods/default/textures/default_iron_lump.png b/share/server/games/mesetint/mods/default/textures/default_iron_lump.png
index edb931018..edb931018 100644
--- a/data/mods/default/textures/default_iron_lump.png
+++ b/share/server/games/mesetint/mods/default/textures/default_iron_lump.png
Binary files differ
diff --git a/data/mods/default/textures/default_junglegrass.png b/share/server/games/mesetint/mods/default/textures/default_junglegrass.png
index eea87c07c..eea87c07c 100644
--- a/data/mods/default/textures/default_junglegrass.png
+++ b/share/server/games/mesetint/mods/default/textures/default_junglegrass.png
Binary files differ
diff --git a/data/mods/default/textures/default_jungletree.png b/share/server/games/mesetint/mods/default/textures/default_jungletree.png
index ccd20ac74..ccd20ac74 100644
--- a/data/mods/default/textures/default_jungletree.png
+++ b/share/server/games/mesetint/mods/default/textures/default_jungletree.png
Binary files differ
diff --git a/data/mods/default/textures/default_jungletree_top.png b/share/server/games/mesetint/mods/default/textures/default_jungletree_top.png
index 2a9b51373..2a9b51373 100644
--- a/data/mods/default/textures/default_jungletree_top.png
+++ b/share/server/games/mesetint/mods/default/textures/default_jungletree_top.png
Binary files differ
diff --git a/data/mods/default/textures/default_ladder.png b/share/server/games/mesetint/mods/default/textures/default_ladder.png
index 11056359d..11056359d 100644
--- a/data/mods/default/textures/default_ladder.png
+++ b/share/server/games/mesetint/mods/default/textures/default_ladder.png
Binary files differ
diff --git a/data/mods/default/textures/default_lava.png b/share/server/games/mesetint/mods/default/textures/default_lava.png
index cb02ada13..cb02ada13 100644
--- a/data/mods/default/textures/default_lava.png
+++ b/share/server/games/mesetint/mods/default/textures/default_lava.png
Binary files differ
diff --git a/data/mods/default/textures/default_leaves.png b/share/server/games/mesetint/mods/default/textures/default_leaves.png
index 7a25126e9..7a25126e9 100644
--- a/data/mods/default/textures/default_leaves.png
+++ b/share/server/games/mesetint/mods/default/textures/default_leaves.png
Binary files differ
diff --git a/data/mods/default/textures/default_mese.png b/share/server/games/mesetint/mods/default/textures/default_mese.png
index 4c876cdc5..4c876cdc5 100644
--- a/data/mods/default/textures/default_mese.png
+++ b/share/server/games/mesetint/mods/default/textures/default_mese.png
Binary files differ
diff --git a/data/mods/default/textures/default_mineral_coal.png b/share/server/games/mesetint/mods/default/textures/default_mineral_coal.png
index 3ff9692fb..3ff9692fb 100644
--- a/data/mods/default/textures/default_mineral_coal.png
+++ b/share/server/games/mesetint/mods/default/textures/default_mineral_coal.png
Binary files differ
diff --git a/data/mods/default/textures/default_mineral_iron.png b/share/server/games/mesetint/mods/default/textures/default_mineral_iron.png
index 51b15d95d..51b15d95d 100644
--- a/data/mods/default/textures/default_mineral_iron.png
+++ b/share/server/games/mesetint/mods/default/textures/default_mineral_iron.png
Binary files differ
diff --git a/data/mods/default/textures/default_mossycobble.png b/share/server/games/mesetint/mods/default/textures/default_mossycobble.png
index fad1b33ff..fad1b33ff 100644
--- a/data/mods/default/textures/default_mossycobble.png
+++ b/share/server/games/mesetint/mods/default/textures/default_mossycobble.png
Binary files differ
diff --git a/data/mods/default/textures/default_nc_back.png b/share/server/games/mesetint/mods/default/textures/default_nc_back.png
index f09f41658..f09f41658 100644
--- a/data/mods/default/textures/default_nc_back.png
+++ b/share/server/games/mesetint/mods/default/textures/default_nc_back.png
Binary files differ
diff --git a/data/mods/default/textures/default_nc_front.png b/share/server/games/mesetint/mods/default/textures/default_nc_front.png
index cad9edab1..cad9edab1 100644
--- a/data/mods/default/textures/default_nc_front.png
+++ b/share/server/games/mesetint/mods/default/textures/default_nc_front.png
Binary files differ
diff --git a/data/mods/default/textures/default_nc_rb.png b/share/server/games/mesetint/mods/default/textures/default_nc_rb.png
index 7ebc9930d..7ebc9930d 100644
--- a/data/mods/default/textures/default_nc_rb.png
+++ b/share/server/games/mesetint/mods/default/textures/default_nc_rb.png
Binary files differ
diff --git a/data/mods/default/textures/default_nc_side.png b/share/server/games/mesetint/mods/default/textures/default_nc_side.png
index f954045fb..f954045fb 100644
--- a/data/mods/default/textures/default_nc_side.png
+++ b/share/server/games/mesetint/mods/default/textures/default_nc_side.png
Binary files differ
diff --git a/data/mods/default/textures/default_paper.png b/share/server/games/mesetint/mods/default/textures/default_paper.png
index ae5c06bc6..ae5c06bc6 100644
--- a/data/mods/default/textures/default_paper.png
+++ b/share/server/games/mesetint/mods/default/textures/default_paper.png
Binary files differ
diff --git a/data/mods/default/textures/default_papyrus.png b/share/server/games/mesetint/mods/default/textures/default_papyrus.png
index bf0dec7fe..bf0dec7fe 100644
--- a/data/mods/default/textures/default_papyrus.png
+++ b/share/server/games/mesetint/mods/default/textures/default_papyrus.png
Binary files differ
diff --git a/data/mods/default/textures/default_rail.png b/share/server/games/mesetint/mods/default/textures/default_rail.png
index 18176d9f3..18176d9f3 100644
--- a/data/mods/default/textures/default_rail.png
+++ b/share/server/games/mesetint/mods/default/textures/default_rail.png
Binary files differ
diff --git a/data/mods/default/textures/default_rail_crossing.png b/share/server/games/mesetint/mods/default/textures/default_rail_crossing.png
index 984640577..984640577 100644
--- a/data/mods/default/textures/default_rail_crossing.png
+++ b/share/server/games/mesetint/mods/default/textures/default_rail_crossing.png
Binary files differ
diff --git a/data/mods/default/textures/default_rail_curved.png b/share/server/games/mesetint/mods/default/textures/default_rail_curved.png
index 62afa3d2b..62afa3d2b 100644
--- a/data/mods/default/textures/default_rail_curved.png
+++ b/share/server/games/mesetint/mods/default/textures/default_rail_curved.png
Binary files differ
diff --git a/data/mods/default/textures/default_rail_t_junction.png b/share/server/games/mesetint/mods/default/textures/default_rail_t_junction.png
index 9985f63cd..9985f63cd 100644
--- a/data/mods/default/textures/default_rail_t_junction.png
+++ b/share/server/games/mesetint/mods/default/textures/default_rail_t_junction.png
Binary files differ
diff --git a/data/mods/default/textures/default_sand.png b/share/server/games/mesetint/mods/default/textures/default_sand.png
index 15101a7eb..15101a7eb 100644
--- a/data/mods/default/textures/default_sand.png
+++ b/share/server/games/mesetint/mods/default/textures/default_sand.png
Binary files differ
diff --git a/data/mods/default/textures/default_sandstone.png b/share/server/games/mesetint/mods/default/textures/default_sandstone.png
index c4759b4d0..c4759b4d0 100644
--- a/data/mods/default/textures/default_sandstone.png
+++ b/share/server/games/mesetint/mods/default/textures/default_sandstone.png
Binary files differ
diff --git a/data/mods/default/textures/default_sapling.png b/share/server/games/mesetint/mods/default/textures/default_sapling.png
index 73f502306..73f502306 100644
--- a/data/mods/default/textures/default_sapling.png
+++ b/share/server/games/mesetint/mods/default/textures/default_sapling.png
Binary files differ
diff --git a/data/mods/default/textures/default_scorched_stuff.png b/share/server/games/mesetint/mods/default/textures/default_scorched_stuff.png
index 9ced2fbe8..9ced2fbe8 100644
--- a/data/mods/default/textures/default_scorched_stuff.png
+++ b/share/server/games/mesetint/mods/default/textures/default_scorched_stuff.png
Binary files differ
diff --git a/data/mods/default/textures/default_sign.png b/share/server/games/mesetint/mods/default/textures/default_sign.png
index 2e0b3cbef..2e0b3cbef 100644
--- a/data/mods/default/textures/default_sign.png
+++ b/share/server/games/mesetint/mods/default/textures/default_sign.png
Binary files differ
diff --git a/data/mods/default/textures/default_sign_back.png b/share/server/games/mesetint/mods/default/textures/default_sign_back.png
index 779e4bc2c..779e4bc2c 100644
--- a/data/mods/default/textures/default_sign_back.png
+++ b/share/server/games/mesetint/mods/default/textures/default_sign_back.png
Binary files differ
diff --git a/data/mods/default/textures/default_sign_wall.png b/share/server/games/mesetint/mods/default/textures/default_sign_wall.png
index 06eac1ee9..06eac1ee9 100644
--- a/data/mods/default/textures/default_sign_wall.png
+++ b/share/server/games/mesetint/mods/default/textures/default_sign_wall.png
Binary files differ
diff --git a/data/mods/default/textures/default_steel_block.png b/share/server/games/mesetint/mods/default/textures/default_steel_block.png
index 8e2020081..8e2020081 100644
--- a/data/mods/default/textures/default_steel_block.png
+++ b/share/server/games/mesetint/mods/default/textures/default_steel_block.png
Binary files differ
diff --git a/data/mods/default/textures/default_steel_ingot.png b/share/server/games/mesetint/mods/default/textures/default_steel_ingot.png
index f6c9414e7..f6c9414e7 100644
--- a/data/mods/default/textures/default_steel_ingot.png
+++ b/share/server/games/mesetint/mods/default/textures/default_steel_ingot.png
Binary files differ
diff --git a/data/mods/default/textures/default_stick.png b/share/server/games/mesetint/mods/default/textures/default_stick.png
index 2d31797f0..2d31797f0 100644
--- a/data/mods/default/textures/default_stick.png
+++ b/share/server/games/mesetint/mods/default/textures/default_stick.png
Binary files differ
diff --git a/data/mods/default/textures/default_stone.png b/share/server/games/mesetint/mods/default/textures/default_stone.png
index cad0dbe2b..cad0dbe2b 100644
--- a/data/mods/default/textures/default_stone.png
+++ b/share/server/games/mesetint/mods/default/textures/default_stone.png
Binary files differ
diff --git a/data/mods/default/textures/default_tnt_bottom.png b/share/server/games/mesetint/mods/default/textures/default_tnt_bottom.png
index 8ba2fca0b..8ba2fca0b 100644
--- a/data/mods/default/textures/default_tnt_bottom.png
+++ b/share/server/games/mesetint/mods/default/textures/default_tnt_bottom.png
Binary files differ
diff --git a/data/mods/default/textures/default_tnt_side.png b/share/server/games/mesetint/mods/default/textures/default_tnt_side.png
index d9a2bc4eb..d9a2bc4eb 100644
--- a/data/mods/default/textures/default_tnt_side.png
+++ b/share/server/games/mesetint/mods/default/textures/default_tnt_side.png
Binary files differ
diff --git a/data/mods/default/textures/default_tnt_top.png b/share/server/games/mesetint/mods/default/textures/default_tnt_top.png
index a84ffc9af..a84ffc9af 100644
--- a/data/mods/default/textures/default_tnt_top.png
+++ b/share/server/games/mesetint/mods/default/textures/default_tnt_top.png
Binary files differ
diff --git a/data/mods/default/textures/default_tool_mesepick.png b/share/server/games/mesetint/mods/default/textures/default_tool_mesepick.png
index a1f3812e0..a1f3812e0 100644
--- a/data/mods/default/textures/default_tool_mesepick.png
+++ b/share/server/games/mesetint/mods/default/textures/default_tool_mesepick.png
Binary files differ
diff --git a/data/mods/default/textures/default_tool_steelaxe.png b/share/server/games/mesetint/mods/default/textures/default_tool_steelaxe.png
index 0ad23c93b..0ad23c93b 100644
--- a/data/mods/default/textures/default_tool_steelaxe.png
+++ b/share/server/games/mesetint/mods/default/textures/default_tool_steelaxe.png
Binary files differ
diff --git a/data/mods/default/textures/default_tool_steelpick.png b/share/server/games/mesetint/mods/default/textures/default_tool_steelpick.png
index 7982dafeb..7982dafeb 100644
--- a/data/mods/default/textures/default_tool_steelpick.png
+++ b/share/server/games/mesetint/mods/default/textures/default_tool_steelpick.png
Binary files differ
diff --git a/data/mods/default/textures/default_tool_steelshovel.png b/share/server/games/mesetint/mods/default/textures/default_tool_steelshovel.png
index ed8413846..ed8413846 100644
--- a/data/mods/default/textures/default_tool_steelshovel.png
+++ b/share/server/games/mesetint/mods/default/textures/default_tool_steelshovel.png
Binary files differ
diff --git a/data/mods/default/textures/default_tool_steelsword.png b/share/server/games/mesetint/mods/default/textures/default_tool_steelsword.png
index a74581238..a74581238 100644
--- a/data/mods/default/textures/default_tool_steelsword.png
+++ b/share/server/games/mesetint/mods/default/textures/default_tool_steelsword.png
Binary files differ
diff --git a/data/mods/default/textures/default_tool_stoneaxe.png b/share/server/games/mesetint/mods/default/textures/default_tool_stoneaxe.png
index 698ac918f..698ac918f 100644
--- a/data/mods/default/textures/default_tool_stoneaxe.png
+++ b/share/server/games/mesetint/mods/default/textures/default_tool_stoneaxe.png
Binary files differ
diff --git a/data/mods/default/textures/default_tool_stonepick.png b/share/server/games/mesetint/mods/default/textures/default_tool_stonepick.png
index b34de6f32..b34de6f32 100644
--- a/data/mods/default/textures/default_tool_stonepick.png
+++ b/share/server/games/mesetint/mods/default/textures/default_tool_stonepick.png
Binary files differ
diff --git a/data/mods/default/textures/default_tool_stoneshovel.png b/share/server/games/mesetint/mods/default/textures/default_tool_stoneshovel.png
index ba5243101..ba5243101 100644
--- a/data/mods/default/textures/default_tool_stoneshovel.png
+++ b/share/server/games/mesetint/mods/default/textures/default_tool_stoneshovel.png
Binary files differ
diff --git a/data/mods/default/textures/default_tool_stonesword.png b/share/server/games/mesetint/mods/default/textures/default_tool_stonesword.png
index 8f8191f92..8f8191f92 100644
--- a/data/mods/default/textures/default_tool_stonesword.png
+++ b/share/server/games/mesetint/mods/default/textures/default_tool_stonesword.png
Binary files differ
diff --git a/data/mods/default/textures/default_tool_woodaxe.png b/share/server/games/mesetint/mods/default/textures/default_tool_woodaxe.png
index 3daa4af72..3daa4af72 100644
--- a/data/mods/default/textures/default_tool_woodaxe.png
+++ b/share/server/games/mesetint/mods/default/textures/default_tool_woodaxe.png
Binary files differ
diff --git a/data/mods/default/textures/default_tool_woodpick.png b/share/server/games/mesetint/mods/default/textures/default_tool_woodpick.png
index ea728cca3..ea728cca3 100644
--- a/data/mods/default/textures/default_tool_woodpick.png
+++ b/share/server/games/mesetint/mods/default/textures/default_tool_woodpick.png
Binary files differ
diff --git a/data/mods/default/textures/default_tool_woodshovel.png b/share/server/games/mesetint/mods/default/textures/default_tool_woodshovel.png
index 649ab4c38..649ab4c38 100644
--- a/data/mods/default/textures/default_tool_woodshovel.png
+++ b/share/server/games/mesetint/mods/default/textures/default_tool_woodshovel.png
Binary files differ
diff --git a/data/mods/default/textures/default_tool_woodsword.png b/share/server/games/mesetint/mods/default/textures/default_tool_woodsword.png
index d6c6be325..d6c6be325 100644
--- a/data/mods/default/textures/default_tool_woodsword.png
+++ b/share/server/games/mesetint/mods/default/textures/default_tool_woodsword.png
Binary files differ
diff --git a/data/mods/default/textures/default_torch.png b/share/server/games/mesetint/mods/default/textures/default_torch.png
index 7a953c222..7a953c222 100644
--- a/data/mods/default/textures/default_torch.png
+++ b/share/server/games/mesetint/mods/default/textures/default_torch.png
Binary files differ
diff --git a/data/mods/default/textures/default_torch_on_ceiling.png b/share/server/games/mesetint/mods/default/textures/default_torch_on_ceiling.png
index 6965d380e..6965d380e 100644
--- a/data/mods/default/textures/default_torch_on_ceiling.png
+++ b/share/server/games/mesetint/mods/default/textures/default_torch_on_ceiling.png
Binary files differ
diff --git a/data/mods/default/textures/default_torch_on_floor.png b/share/server/games/mesetint/mods/default/textures/default_torch_on_floor.png
index 76d1dd5ac..76d1dd5ac 100644
--- a/data/mods/default/textures/default_torch_on_floor.png
+++ b/share/server/games/mesetint/mods/default/textures/default_torch_on_floor.png
Binary files differ
diff --git a/data/mods/default/textures/default_tree.png b/share/server/games/mesetint/mods/default/textures/default_tree.png
index 65abfc243..65abfc243 100644
--- a/data/mods/default/textures/default_tree.png
+++ b/share/server/games/mesetint/mods/default/textures/default_tree.png
Binary files differ
diff --git a/data/mods/default/textures/default_tree_top.png b/share/server/games/mesetint/mods/default/textures/default_tree_top.png
index 2cdd94f80..2cdd94f80 100644
--- a/data/mods/default/textures/default_tree_top.png
+++ b/share/server/games/mesetint/mods/default/textures/default_tree_top.png
Binary files differ
diff --git a/data/mods/default/textures/default_water.png b/share/server/games/mesetint/mods/default/textures/default_water.png
index e5f8cdc25..e5f8cdc25 100644
--- a/data/mods/default/textures/default_water.png
+++ b/share/server/games/mesetint/mods/default/textures/default_water.png
Binary files differ
diff --git a/data/mods/default/textures/default_wood.png b/share/server/games/mesetint/mods/default/textures/default_wood.png
index 57c1d7c12..57c1d7c12 100644
--- a/data/mods/default/textures/default_wood.png
+++ b/share/server/games/mesetint/mods/default/textures/default_wood.png
Binary files differ
diff --git a/data/mods/default/textures/heart.png b/share/server/games/mesetint/mods/default/textures/heart.png
index 6bc183e04..6bc183e04 100644
--- a/data/mods/default/textures/heart.png
+++ b/share/server/games/mesetint/mods/default/textures/heart.png
Binary files differ
diff --git a/data/mods/default/textures/player.png b/share/server/games/mesetint/mods/default/textures/player.png
index 90adf9747..90adf9747 100644
--- a/data/mods/default/textures/player.png
+++ b/share/server/games/mesetint/mods/default/textures/player.png
Binary files differ
diff --git a/data/mods/default/textures/player_back.png b/share/server/games/mesetint/mods/default/textures/player_back.png
index 530aa7519..530aa7519 100644
--- a/data/mods/default/textures/player_back.png
+++ b/share/server/games/mesetint/mods/default/textures/player_back.png
Binary files differ
diff --git a/data/mods/default/textures/skybox1.png b/share/server/games/mesetint/mods/default/textures/skybox1.png
index 9801d5f4f..9801d5f4f 100644
--- a/data/mods/default/textures/skybox1.png
+++ b/share/server/games/mesetint/mods/default/textures/skybox1.png
Binary files differ
diff --git a/data/mods/default/textures/skybox1_dawn.png b/share/server/games/mesetint/mods/default/textures/skybox1_dawn.png
index 9711c4781..9711c4781 100644
--- a/data/mods/default/textures/skybox1_dawn.png
+++ b/share/server/games/mesetint/mods/default/textures/skybox1_dawn.png
Binary files differ
diff --git a/data/mods/default/textures/skybox1_night.png b/share/server/games/mesetint/mods/default/textures/skybox1_night.png
index 32e43a63e..32e43a63e 100644
--- a/data/mods/default/textures/skybox1_night.png
+++ b/share/server/games/mesetint/mods/default/textures/skybox1_night.png
Binary files differ
diff --git a/data/mods/default/textures/skybox2.png b/share/server/games/mesetint/mods/default/textures/skybox2.png
index a8c94b4d2..a8c94b4d2 100644
--- a/data/mods/default/textures/skybox2.png
+++ b/share/server/games/mesetint/mods/default/textures/skybox2.png
Binary files differ
diff --git a/data/mods/default/textures/skybox2_dawn.png b/share/server/games/mesetint/mods/default/textures/skybox2_dawn.png
index a761dff2d..a761dff2d 100644
--- a/data/mods/default/textures/skybox2_dawn.png
+++ b/share/server/games/mesetint/mods/default/textures/skybox2_dawn.png
Binary files differ
diff --git a/data/mods/default/textures/skybox2_night.png b/share/server/games/mesetint/mods/default/textures/skybox2_night.png
index beb07a9cf..beb07a9cf 100644
--- a/data/mods/default/textures/skybox2_night.png
+++ b/share/server/games/mesetint/mods/default/textures/skybox2_night.png
Binary files differ
diff --git a/data/mods/default/textures/skybox3.png b/share/server/games/mesetint/mods/default/textures/skybox3.png
index 2776ec712..2776ec712 100644
--- a/data/mods/default/textures/skybox3.png
+++ b/share/server/games/mesetint/mods/default/textures/skybox3.png
Binary files differ
diff --git a/data/mods/default/textures/skybox3_dawn.png b/share/server/games/mesetint/mods/default/textures/skybox3_dawn.png
index 22c8cbef5..22c8cbef5 100644
--- a/data/mods/default/textures/skybox3_dawn.png
+++ b/share/server/games/mesetint/mods/default/textures/skybox3_dawn.png
Binary files differ
diff --git a/data/mods/default/textures/skybox3_night.png b/share/server/games/mesetint/mods/default/textures/skybox3_night.png
index bb509789b..bb509789b 100644
--- a/data/mods/default/textures/skybox3_night.png
+++ b/share/server/games/mesetint/mods/default/textures/skybox3_night.png
Binary files differ
diff --git a/data/mods/default/textures/treeprop.png b/share/server/games/mesetint/mods/default/textures/treeprop.png
index 77ea4d6d4..77ea4d6d4 100644
--- a/data/mods/default/textures/treeprop.png
+++ b/share/server/games/mesetint/mods/default/textures/treeprop.png
Binary files differ
diff --git a/data/mods/default/textures/wieldhand.png b/share/server/games/mesetint/mods/default/textures/wieldhand.png
index c4549e5ed..c4549e5ed 100644
--- a/data/mods/default/textures/wieldhand.png
+++ b/share/server/games/mesetint/mods/default/textures/wieldhand.png
Binary files differ
diff --git a/data/mods/experimental/depends.txt b/share/server/games/mesetint/mods/experimental/depends.txt
index 3a7daa1d7..3a7daa1d7 100644
--- a/data/mods/experimental/depends.txt
+++ b/share/server/games/mesetint/mods/experimental/depends.txt
diff --git a/data/mods/experimental/init.lua b/share/server/games/mesetint/mods/experimental/init.lua
index 1ee3fdc2e..1ee3fdc2e 100644
--- a/data/mods/experimental/init.lua
+++ b/share/server/games/mesetint/mods/experimental/init.lua
diff --git a/data/mods/experimental/textures/experimental_dummyball.png b/share/server/games/mesetint/mods/experimental/textures/experimental_dummyball.png
index 084676552..084676552 100644
--- a/data/mods/experimental/textures/experimental_dummyball.png
+++ b/share/server/games/mesetint/mods/experimental/textures/experimental_dummyball.png
Binary files differ
diff --git a/data/mods/give_initial_stuff/depends.txt b/share/server/games/mesetint/mods/give_initial_stuff/depends.txt
index 3a7daa1d7..3a7daa1d7 100644
--- a/data/mods/give_initial_stuff/depends.txt
+++ b/share/server/games/mesetint/mods/give_initial_stuff/depends.txt
diff --git a/data/mods/give_initial_stuff/init.lua b/share/server/games/mesetint/mods/give_initial_stuff/init.lua
index 9cf6b51b5..9cf6b51b5 100644
--- a/data/mods/give_initial_stuff/init.lua
+++ b/share/server/games/mesetint/mods/give_initial_stuff/init.lua
diff --git a/data/mods/legacy/depends.txt b/share/server/games/mesetint/mods/legacy/depends.txt
index 3a7daa1d7..3a7daa1d7 100644
--- a/data/mods/legacy/depends.txt
+++ b/share/server/games/mesetint/mods/legacy/depends.txt
diff --git a/data/mods/legacy/init.lua b/share/server/games/mesetint/mods/legacy/init.lua
index 7f9088ce0..7f9088ce0 100644
--- a/data/mods/legacy/init.lua
+++ b/share/server/games/mesetint/mods/legacy/init.lua
diff --git a/data/mods/legacy/textures/apple_iron.png b/share/server/games/mesetint/mods/legacy/textures/apple_iron.png
index 2dffdf014..2dffdf014 100644
--- a/data/mods/legacy/textures/apple_iron.png
+++ b/share/server/games/mesetint/mods/legacy/textures/apple_iron.png
Binary files differ
diff --git a/data/mods/legacy/textures/cooked_rat.png b/share/server/games/mesetint/mods/legacy/textures/cooked_rat.png
index daad3be0d..daad3be0d 100644
--- a/data/mods/legacy/textures/cooked_rat.png
+++ b/share/server/games/mesetint/mods/legacy/textures/cooked_rat.png
Binary files differ
diff --git a/data/mods/legacy/textures/dungeon_master.png b/share/server/games/mesetint/mods/legacy/textures/dungeon_master.png
index 3457c8228..3457c8228 100644
--- a/data/mods/legacy/textures/dungeon_master.png
+++ b/share/server/games/mesetint/mods/legacy/textures/dungeon_master.png
Binary files differ
diff --git a/data/mods/legacy/textures/fireball.png b/share/server/games/mesetint/mods/legacy/textures/fireball.png
index 523142850..523142850 100644
--- a/data/mods/legacy/textures/fireball.png
+++ b/share/server/games/mesetint/mods/legacy/textures/fireball.png
Binary files differ
diff --git a/data/mods/legacy/textures/firefly.png b/share/server/games/mesetint/mods/legacy/textures/firefly.png
index 40df7fa1c..40df7fa1c 100644
--- a/data/mods/legacy/textures/firefly.png
+++ b/share/server/games/mesetint/mods/legacy/textures/firefly.png
Binary files differ
diff --git a/data/mods/legacy/textures/oerkki1.png b/share/server/games/mesetint/mods/legacy/textures/oerkki1.png
index 33cbac9e7..33cbac9e7 100644
--- a/data/mods/legacy/textures/oerkki1.png
+++ b/share/server/games/mesetint/mods/legacy/textures/oerkki1.png
Binary files differ
diff --git a/data/mods/legacy/textures/oerkki1_damaged.png b/share/server/games/mesetint/mods/legacy/textures/oerkki1_damaged.png
index 9b777387c..9b777387c 100644
--- a/data/mods/legacy/textures/oerkki1_damaged.png
+++ b/share/server/games/mesetint/mods/legacy/textures/oerkki1_damaged.png
Binary files differ
diff --git a/data/mods/legacy/textures/rat.png b/share/server/games/mesetint/mods/legacy/textures/rat.png
index d1a0e2ae2..d1a0e2ae2 100644
--- a/data/mods/legacy/textures/rat.png
+++ b/share/server/games/mesetint/mods/legacy/textures/rat.png
Binary files differ
diff --git a/src/client.cpp b/src/client.cpp
index bc303bc4b..72cd28b18 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -40,7 +40,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
static std::string getTextureCacheDir()
{
- return porting::path_userdata + DIR_DELIM + "cache" + DIR_DELIM + "texture";
+ return porting::path_user + DIR_DELIM + "cache" + DIR_DELIM + "textures";
}
struct TextureRequest
diff --git a/src/game.cpp b/src/game.cpp
index a69942e61..0d09e335e 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -726,7 +726,7 @@ void the_game(
if(address == ""){
draw_load_screen(L"Creating server...", driver, font);
infostream<<"Creating server"<<std::endl;
- server = new Server(map_dir, configpath);
+ server = new Server(map_dir, configpath, "mesetint");
server->start(port);
}
diff --git a/src/guiPauseMenu.cpp b/src/guiPauseMenu.cpp
index 3cd572387..3b1861b3d 100644
--- a/src/guiPauseMenu.cpp
+++ b/src/guiPauseMenu.cpp
@@ -174,7 +174,7 @@ void GUIPauseMenu::regenerateGui(v2u32 screensize)
SWPRINTF_CHARSTRING
,
BUILD_INFO,
- porting::path_userdata.c_str()
+ porting::path_user.c_str()
);*/
std::ostringstream os;
@@ -182,7 +182,7 @@ void GUIPauseMenu::regenerateGui(v2u32 screensize)
os<<"by Perttu Ahola and contributors\n";
os<<"celeron55@gmail.com\n";
os<<BUILD_INFO<<"\n";
- os<<"ud_path = "<<wrap_rows(porting::path_userdata, 20)<<"\n";
+ os<<"path_user = "<<wrap_rows(porting::path_user, 20)<<"\n";
Environment->addStaticText(narrow_to_wide(os.str()).c_str(), rect, false, true, this, 259);
}
diff --git a/src/main.cpp b/src/main.cpp
index ec999c530..322d84e9e 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1157,19 +1157,18 @@ int main(int argc, char *argv[])
porting::signal_handler_init();
bool &kill = *porting::signal_handler_killstatus();
- // Initialize porting::path_data and porting::path_userdata
porting::initializePaths();
// Create user data directory
- fs::CreateDir(porting::path_userdata);
+ fs::CreateDir(porting::path_user);
- init_gettext((porting::path_data+DIR_DELIM+".."+DIR_DELIM+"locale").c_str());
+ init_gettext((porting::path_share+DIR_DELIM+".."+DIR_DELIM+"locale").c_str());
// Initialize debug streams
#ifdef RUN_IN_PLACE
std::string debugfile = DEBUGFILE;
#else
- std::string debugfile = porting::path_userdata+DIR_DELIM+DEBUGFILE;
+ std::string debugfile = porting::path_user+DIR_DELIM+DEBUGFILE;
#endif
debugstreams_init(disable_stderr, debugfile.c_str());
// Initialize debug stacks
@@ -1221,10 +1220,12 @@ int main(int argc, char *argv[])
else
{
core::array<std::string> filenames;
- filenames.push_back(porting::path_userdata +
+ filenames.push_back(porting::path_user +
DIR_DELIM + "minetest.conf");
#ifdef RUN_IN_PLACE
- filenames.push_back(porting::path_userdata +
+ // Try also from a lower level (to aid having the same configuration
+ // for many RUN_IN_PLACE installs)
+ filenames.push_back(porting::path_user +
DIR_DELIM + ".." + DIR_DELIM + "minetest.conf");
#endif
@@ -1278,11 +1279,22 @@ int main(int argc, char *argv[])
port = 30000;
// Map directory
- std::string map_dir = porting::path_userdata+DIR_DELIM+"world";
+ std::string map_dir = porting::path_user + DIR_DELIM + "server" + DIR_DELIM + "worlds" + DIR_DELIM + "world";
if(cmd_args.exists("map-dir"))
map_dir = cmd_args.get("map-dir");
else if(g_settings->exists("map-dir"))
map_dir = g_settings->get("map-dir");
+ else{
+ // No map-dir option was specified.
+ // Check if the world is found from the default directory, and if
+ // not, see if the legacy world directory exists.
+ std::string legacy_map_dir = porting::path_user+DIR_DELIM+".."+DIR_DELIM+"world";
+ if(!fs::PathExists(map_dir) && fs::PathExists(legacy_map_dir)){
+ errorstream<<"Warning: Using legacy world directory \""
+ <<legacy_map_dir<<"\""<<std::endl;
+ map_dir = legacy_map_dir;
+ }
+ }
// Run dedicated server if asked to
if(cmd_args.getFlag("server"))
@@ -1293,7 +1305,7 @@ int main(int argc, char *argv[])
g_timegetter = new SimpleTimeGetter();
// Create server
- Server server(map_dir.c_str(), configpath);
+ Server server(map_dir, configpath, "mesetint");
server.start(port);
// Run server
diff --git a/src/porting.cpp b/src/porting.cpp
index 0adc955a9..edf950635 100644
--- a/src/porting.cpp
+++ b/src/porting.cpp
@@ -124,12 +124,12 @@ void signal_handler_init(void)
Path mangler
*/
-std::string path_data = ".." DIR_DELIM "data";
-std::string path_userdata = "..";
+std::string path_share = ".." DIR_DELIM "share";
+std::string path_user = ".." DIR_DELIM "user";
std::string getDataPath(const char *subpath)
{
- return path_data + DIR_DELIM + subpath;
+ return path_share + DIR_DELIM + subpath;
}
void pathRemoveFile(char *path, char delim)
@@ -163,16 +163,13 @@ void initializePaths()
char buf[buflen];
DWORD len;
- // Find path of executable and set path_data relative to it
+ // Find path of executable and set path_share relative to it
len = GetModuleFileName(GetModuleHandle(NULL), buf, buflen);
assert(len < buflen);
pathRemoveFile(buf, '\\');
- // Use "./bin/../data"
- path_data = std::string(buf) + DIR_DELIM ".." DIR_DELIM "data";
-
- // Use "./bin/.."
- path_userdata = std::string(buf) + DIR_DELIM "..";
+ path_share = std::string(buf) + "\\..\\share";
+ path_user = std::string(buf) + "\\..\\user";
/*
Linux
@@ -187,11 +184,8 @@ void initializePaths()
pathRemoveFile(buf, '/');
- // Use "./bin/../data"
- path_data = std::string(buf) + "/../data";
-
- // Use "./bin/../"
- path_userdata = std::string(buf) + "/..";
+ path_share = std::string(buf) + "/../share";
+ path_user = std::string(buf) + "/../user";
/*
OS X
@@ -201,8 +195,8 @@ void initializePaths()
//TODO: Get path of executable. This assumes working directory is bin/
dstream<<"WARNING: Relative path not properly supported on OS X and FreeBSD"
<<std::endl;
- path_data = std::string("../data");
- path_userdata = std::string("..");
+ path_share = std::string("../share");
+ path_user = std::string("../user");
#endif
@@ -224,19 +218,18 @@ void initializePaths()
char buf[buflen];
DWORD len;
- // Find path of executable and set path_data relative to it
+ // Find path of executable and set path_share relative to it
len = GetModuleFileName(GetModuleHandle(NULL), buf, buflen);
assert(len < buflen);
pathRemoveFile(buf, '\\');
- // Use "./bin/../data"
- path_data = std::string(buf) + DIR_DELIM ".." DIR_DELIM "data";
- //path_data = std::string(buf) + "/../share/" + PROJECT_NAME;
+ // Use ".\bin\..\share"
+ path_share = std::string(buf) + "\\..\\share";
// Use "C:\Documents and Settings\user\Application Data\<PROJECT_NAME>"
len = GetEnvironmentVariable("APPDATA", buf, buflen);
assert(len < buflen);
- path_userdata = std::string(buf) + DIR_DELIM + PROJECT_NAME;
+ path_user = std::string(buf) + DIR_DELIM + PROJECT_NAME;
/*
Linux
@@ -251,15 +244,15 @@ void initializePaths()
pathRemoveFile(buf, '/');
- path_data = std::string(buf) + "/../share/" + PROJECT_NAME;
- //path_data = std::string(INSTALL_PREFIX) + "/share/" + PROJECT_NAME;
- if (!fs::PathExists(path_data)) {
- dstream<<"WARNING: data path " << path_data << " not found!";
- path_data = std::string(buf) + "/../data";
- dstream<<" Trying " << path_data << std::endl;
+ path_share = std::string(buf) + "/../share/" + PROJECT_NAME;
+ //path_share = std::string(INSTALL_PREFIX) + "/share/" + PROJECT_NAME;
+ if (!fs::PathExists(path_share)) {
+ dstream<<"WARNING: data path " << path_share << " not found!";
+ path_share = std::string(buf) + "/../data";
+ dstream<<" Trying " << path_share << std::endl;
}
- path_userdata = std::string(getenv("HOME")) + "/." + PROJECT_NAME;
+ path_user = std::string(getenv("HOME")) + "/." + PROJECT_NAME;
/*
OS X
@@ -276,7 +269,7 @@ void initializePaths()
{
dstream<<"Bundle resource path: "<<path<<std::endl;
//chdir(path);
- path_data = std::string(path) + "/data";
+ path_share = std::string(path) + "/share";
}
else
{
@@ -285,19 +278,19 @@ void initializePaths()
}
CFRelease(resources_url);
- path_userdata = std::string(getenv("HOME")) + "/Library/Application Support/" + PROJECT_NAME;
+ path_user = std::string(getenv("HOME")) + "/Library/Application Support/" + PROJECT_NAME;
#elif defined(__FreeBSD__)
- path_data = std::string(INSTALL_PREFIX) + "/share/" + PROJECT_NAME;
- path_userdata = std::string(getenv("HOME")) + "/." + PROJECT_NAME;
+ path_share = std::string(INSTALL_PREFIX) + "/share/" + PROJECT_NAME;
+ path_user = std::string(getenv("HOME")) + "/." + PROJECT_NAME;
#endif
#endif // RUN_IN_PLACE
- dstream<<"path_data = "<<path_data<<std::endl;
- dstream<<"path_userdata = "<<path_userdata<<std::endl;
+ dstream<<"path_share = "<<path_share<<std::endl;
+ dstream<<"path_user = "<<path_user<<std::endl;
}
} //namespace porting
diff --git a/src/porting.h b/src/porting.h
index 4970a8478..05a6ae0c4 100644
--- a/src/porting.h
+++ b/src/porting.h
@@ -59,7 +59,7 @@ bool * signal_handler_killstatus(void);
/*
Path of static data directory.
*/
-extern std::string path_data;
+extern std::string path_share;
/*
Directory for storing user data. Examples:
@@ -67,7 +67,7 @@ extern std::string path_data;
Linux: "~/.<PROJECT_NAME>"
Mac: "~/Library/Application Support/<PROJECT_NAME>"
*/
-extern std::string path_userdata;
+extern std::string path_user;
/*
Get full path of stuff in data directory.
@@ -76,7 +76,7 @@ extern std::string path_userdata;
std::string getDataPath(const char *subpath);
/*
- Initialize path_data and path_userdata.
+ Initialize path_share and path_user.
*/
void initializePaths();
diff --git a/src/server.cpp b/src/server.cpp
index 899624633..69f655e6a 100644
--- a/src/server.cpp
+++ b/src/server.cpp
@@ -843,13 +843,17 @@ u32 PIChecksum(core::list<PlayerInfo> &l)
*/
Server::Server(
- std::string mapsavedir,
- std::string configpath
+ std::string path_world,
+ std::string path_config,
+ std::string gamename
):
+ m_gamename(gamename),
+ m_path_world(path_world),
+ m_path_config(path_config),
m_env(NULL),
m_con(PROTOCOL_ID, 512, CONNECTION_TIMEOUT, this),
- m_authmanager(mapsavedir+DIR_DELIM+"auth.txt"),
- m_banmanager(mapsavedir+DIR_DELIM+"ipban.txt"),
+ m_authmanager(path_world+DIR_DELIM+"auth.txt"),
+ m_banmanager(path_world+DIR_DELIM+"ipban.txt"),
m_lua(NULL),
m_itemdef(createItemDefManager()),
m_nodedef(createNodeDefManager()),
@@ -859,12 +863,15 @@ Server::Server(
m_time_counter(0),
m_time_of_day_send_timer(0),
m_uptime(0),
- m_mapsavedir(mapsavedir),
- m_configpath(configpath),
m_shutdown_requested(false),
m_ignore_map_edit_events(false),
m_ignore_map_edit_events_peer_id(0)
{
+ infostream<<"Server created."<<std::endl;
+ infostream<<"- path_world = "<<path_world<<std::endl;
+ infostream<<"- path_config = "<<path_config<<std::endl;
+ infostream<<"- gamename = "<<gamename<<std::endl;
+
m_liquid_transform_timer = 0.0;
m_print_info_timer = 0.0;
m_objectdata_timer = 0.0;
@@ -876,27 +883,35 @@ Server::Server(
m_step_dtime_mutex.Init();
m_step_dtime = 0.0;
- JMutexAutoLock envlock(m_env_mutex);
- JMutexAutoLock conlock(m_con_mutex);
+ // Figure out some paths
+ m_path_share = porting::path_share + DIR_DELIM + "server";
+ m_path_game = m_path_share + DIR_DELIM + "games" + DIR_DELIM + m_gamename;
// Path to builtin.lua
- std::string builtinpath = porting::path_data + DIR_DELIM + "builtin.lua";
+ std::string builtinpath = m_path_share + DIR_DELIM + "builtin.lua";
// Add default global mod search path
- m_modspaths.push_front(porting::path_data + DIR_DELIM + "mods");
+ m_modspaths.push_front(m_path_game + DIR_DELIM "mods");
// Add world mod search path
- m_modspaths.push_front(mapsavedir + DIR_DELIM + "worldmods");
- // Add user mod search path
- m_modspaths.push_front(porting::path_userdata + DIR_DELIM + "usermods");
+ m_modspaths.push_front(m_path_world + DIR_DELIM + "worldmods");
+ // Add addon mod search path
+ for(std::set<std::string>::const_iterator i = m_path_addons.begin();
+ i != m_path_addons.end(); i++){
+ m_modspaths.push_front((*i) + DIR_DELIM + "mods");
+ }
// Print out mod search paths
- infostream<<"Mod search paths:"<<std::endl;
+ infostream<<"- mod search paths:"<<std::endl;
for(core::list<std::string>::Iterator i = m_modspaths.begin();
i != m_modspaths.end(); i++){
std::string modspath = *i;
infostream<<" "<<modspath<<std::endl;
}
+ // Lock environment
+ JMutexAutoLock envlock(m_env_mutex);
+ JMutexAutoLock conlock(m_con_mutex);
+
// Initialize scripting
infostream<<"Server: Initializing scripting"<<std::endl;
@@ -936,7 +951,7 @@ Server::Server(
// Initialize Environment
- m_env = new ServerEnvironment(new ServerMap(mapsavedir, this), m_lua,
+ m_env = new ServerEnvironment(new ServerMap(path_world, this), m_lua,
this, this);
// Give environment reference to scripting api
@@ -946,15 +961,15 @@ Server::Server(
m_env->getMap().addEventReceiver(this);
// If file exists, load environment metadata
- if(fs::PathExists(m_mapsavedir+DIR_DELIM+"env_meta.txt"))
+ if(fs::PathExists(m_path_world+DIR_DELIM+"env_meta.txt"))
{
infostream<<"Server: Loading environment metadata"<<std::endl;
- m_env->loadMeta(m_mapsavedir);
+ m_env->loadMeta(m_path_world);
}
// Load players
infostream<<"Server: Loading players"<<std::endl;
- m_env->deSerializePlayers(m_mapsavedir);
+ m_env->deSerializePlayers(m_path_world);
/*
Add some test ActiveBlockModifiers to environment
@@ -1002,13 +1017,13 @@ Server::~Server()
Save players
*/
infostream<<"Server: Saving players"<<std::endl;
- m_env->serializePlayers(m_mapsavedir);
+ m_env->serializePlayers(m_path_world);
/*
Save environment metadata
*/
infostream<<"Server: Saving environment metadata"<<std::endl;
- m_env->saveMeta(m_mapsavedir);
+ m_env->saveMeta(m_path_world);
}
/*
@@ -1065,7 +1080,7 @@ void Server::start(unsigned short port)
m_thread.setRun(true);
m_thread.Start();
- infostream<<"Server: Started on port "<<port<<std::endl;
+ infostream<<"Server started on port "<<port<<"."<<std::endl;
}
void Server::stop()
@@ -1803,10 +1818,10 @@ void Server::AsyncRunStep()
m_env->getMap().save(MOD_STATE_WRITE_NEEDED);
// Save players
- m_env->serializePlayers(m_mapsavedir);
+ m_env->serializePlayers(m_path_world);
// Save environment metadata
- m_env->saveMeta(m_mapsavedir);
+ m_env->saveMeta(m_path_world);
}
}
}
@@ -4110,8 +4125,8 @@ void Server::setPlayerPassword(const std::string &name, const std::wstring &pass
// Saves g_settings to configpath given at initialization
void Server::saveConfig()
{
- if(m_configpath != "")
- g_settings->updateConfigFile(m_configpath.c_str());
+ if(m_path_config != "")
+ g_settings->updateConfigFile(m_path_config.c_str());
}
void Server::notifyPlayer(const char *name, const std::wstring msg)
diff --git a/src/server.h b/src/server.h
index 04bd61a87..50cd5b285 100644
--- a/src/server.h
+++ b/src/server.h
@@ -392,6 +392,7 @@ public:
*/
Server(
+ std::string gamename,
std::string mapsavedir,
std::string configpath
);
@@ -526,7 +527,7 @@ public:
const ModSpec* getModSpec(const std::string &modname);
- std::string getWorldPath(){ return m_mapsavedir; }
+ std::string getWorldPath(){ return m_path_world; }
private:
@@ -631,6 +632,21 @@ private:
Variables
*/
+ // Game name
+ std::string m_gamename;
+ // World directory
+ std::string m_path_world;
+ // Path to user's configuration file ("" = no configuration file)
+ std::string m_path_config;
+
+ // Equivalent of /usr/share/minetest/server
+ std::string m_path_share;
+ // Equivalent of /usr/share/minetest/server/games/gamename
+ std::string m_path_game;
+ // Equivalent of /usr/share/minetest/server/addons/gamename
+ // and ~/.minetest/server/addons/gamename
+ std::set<std::string> m_path_addons;
+
// Some timers
float m_liquid_transform_timer;
float m_print_info_timer;
@@ -724,12 +740,6 @@ private:
/*
Random stuff
*/
-
- // Map directory
- std::string m_mapsavedir;
-
- // Configuration path ("" = no configuration file)
- std::string m_configpath;
// Mod parent directory paths
core::list<std::string> m_modspaths;
diff --git a/src/servermain.cpp b/src/servermain.cpp
index 4194faaaa..5eb5162ae 100644
--- a/src/servermain.cpp
+++ b/src/servermain.cpp
@@ -163,17 +163,16 @@ int main(int argc, char *argv[])
porting::signal_handler_init();
bool &kill = *porting::signal_handler_killstatus();
- // Initialize porting::path_data and porting::path_userdata
porting::initializePaths();
// Create user data directory
- fs::CreateDir(porting::path_userdata);
+ fs::CreateDir(porting::path_user);
// Initialize debug streams
#ifdef RUN_IN_PLACE
std::string debugfile = DEBUGFILE;
#else
- std::string debugfile = porting::path_userdata+DIR_DELIM+DEBUGFILE;
+ std::string debugfile = porting::path_user+DIR_DELIM+DEBUGFILE;
#endif
debugstreams_init(disable_stderr, debugfile.c_str());
// Initialize debug stacks
@@ -283,10 +282,12 @@ int main(int argc, char *argv[])
else
{
core::array<std::string> filenames;
- filenames.push_back(porting::path_userdata +
+ filenames.push_back(porting::path_user +
DIR_DELIM + "minetest.conf");
#ifdef RUN_IN_PLACE
- filenames.push_back(porting::path_userdata +
+ // Try also from a lower level (to aid having the same configuration
+ // for many RUN_IN_PLACE installs)
+ filenames.push_back(porting::path_user +
DIR_DELIM + ".." + DIR_DELIM + "minetest.conf");
#endif
@@ -334,28 +335,31 @@ int main(int argc, char *argv[])
// Port?
u16 port = 30000;
if(cmd_args.exists("port") && cmd_args.getU16("port") != 0)
- {
port = cmd_args.getU16("port");
- }
else if(g_settings->exists("port") && g_settings->getU16("port") != 0)
- {
port = g_settings->getU16("port");
- }
- else
- {
- dstream<<"Please specify port (in config or on command line)"
- <<std::endl;
- }
- // Figure out path to map
- std::string map_dir = porting::path_userdata+DIR_DELIM+"world";
+ // Map directory
+ std::string map_dir = porting::path_user + DIR_DELIM + "server" + DIR_DELIM + "worlds" + DIR_DELIM + "world";
if(cmd_args.exists("map-dir"))
map_dir = cmd_args.get("map-dir");
else if(g_settings->exists("map-dir"))
map_dir = g_settings->get("map-dir");
+ else{
+ // No map-dir option was specified.
+ // Check if the world is found from the default directory, and if
+ // not, see if the legacy world directory exists.
+ std::string legacy_map_dir = porting::path_user+DIR_DELIM+".."+DIR_DELIM+"world";
+ if(!fs::PathExists(map_dir) && fs::PathExists(legacy_map_dir)){
+ errorstream<<"Warning: Using legacy world directory \""
+ <<legacy_map_dir<<"\""<<std::endl;
+ map_dir = legacy_map_dir;
+ }
+ }
+
// Create server
- Server server(map_dir.c_str(), configpath);
+ Server server(map_dir, configpath, "mesetint");
server.start(port);
// Run server
diff --git a/src/tile.cpp b/src/tile.cpp
index c39a65511..5ef469944 100644
--- a/src/tile.cpp
+++ b/src/tile.cpp
@@ -132,8 +132,9 @@ std::string getTexturePath(const std::string &filename)
*/
if(fullpath == "")
{
- std::string rel_path = std::string("clienttextures")+DIR_DELIM+filename;
- std::string testpath = porting::path_data + DIR_DELIM + rel_path;
+ std::string rel_path = std::string("client")
+ + DIR_DELIM + "textures" + DIR_DELIM + filename;
+ std::string testpath = porting::path_share + DIR_DELIM + rel_path;
// Check all filename extensions. Returns "" if not found.
fullpath = getImagePath(testpath);
}
@@ -997,7 +998,7 @@ void TextureSource::buildMainAtlas(class IGameDef *gamedef)
/*
Write image to file so that it can be inspected
*/
- /*std::string atlaspath = porting::path_userdata
+ /*std::string atlaspath = porting::path_user
+ DIR_DELIM + "generated_texture_atlas.png";
infostream<<"Removing and writing texture atlas for inspection to "
<<atlaspath<<std::endl;