aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-11-15 08:48:24 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-11-29 19:13:43 +0200
commite71744b918898b98ffa5ae949fbf2a1b877b254c (patch)
tree0de31e6f86d5bfb9027ca4a0eb4494b059055721
parent40e7a1a5c9155f40ed07e09658e677533cac33f9 (diff)
downloadminetest-e71744b918898b98ffa5ae949fbf2a1b877b254c.tar.gz
minetest-e71744b918898b98ffa5ae949fbf2a1b877b254c.tar.bz2
minetest-e71744b918898b98ffa5ae949fbf2a1b877b254c.zip
Modify mod and texture directory hierarchies
-rw-r--r--data/clienttextures/fontlucida.png (renamed from data/textures/fontlucida.png)bin17284 -> 17284 bytes
-rw-r--r--data/clienttextures/menulogo.png (renamed from data/textures/menulogo.png)bin498 -> 498 bytes
-rw-r--r--data/clienttextures/mud.png (renamed from data/textures/mud.png)bin1586 -> 1586 bytes
-rw-r--r--data/mods/default/init.lua (renamed from data/scripts/default.lua)4
-rw-r--r--data/mods/default/textures/apple.png (renamed from data/textures/apple.png)bin203 -> 203 bytes
-rw-r--r--data/mods/default/textures/apple_iron.png (renamed from data/textures/apple_iron.png)bin207 -> 207 bytes
-rw-r--r--data/mods/default/textures/book.png (renamed from data/textures/book.png)bin292 -> 292 bytes
-rw-r--r--data/mods/default/textures/bookshelf.png (renamed from data/textures/bookshelf.png)bin597 -> 597 bytes
-rw-r--r--data/mods/default/textures/brick.png (renamed from data/textures/brick.png)bin604 -> 604 bytes
-rw-r--r--data/mods/default/textures/cactus_side.png (renamed from data/textures/cactus_side.png)bin279 -> 279 bytes
-rw-r--r--data/mods/default/textures/cactus_top.png (renamed from data/textures/cactus_top.png)bin236 -> 236 bytes
-rw-r--r--data/mods/default/textures/chest_front.png (renamed from data/textures/chest_front.png)bin167 -> 167 bytes
-rw-r--r--data/mods/default/textures/chest_lock.png (renamed from data/textures/chest_lock.png)bin224 -> 224 bytes
-rw-r--r--data/mods/default/textures/chest_side.png (renamed from data/textures/chest_side.png)bin151 -> 151 bytes
-rw-r--r--data/mods/default/textures/chest_top.png (renamed from data/textures/chest_top.png)bin142 -> 142 bytes
-rw-r--r--data/mods/default/textures/clay.png (renamed from data/textures/clay.png)bin613 -> 613 bytes
-rw-r--r--data/mods/default/textures/clay_brick.png (renamed from data/textures/clay_brick.png)bin249 -> 249 bytes
-rw-r--r--data/mods/default/textures/cloud.png (renamed from data/textures/cloud.png)bin118 -> 118 bytes
-rw-r--r--data/mods/default/textures/cobble.png (renamed from data/textures/cobble.png)bin830 -> 830 bytes
-rw-r--r--data/mods/default/textures/cooked_rat.png (renamed from data/textures/cooked_rat.png)bin239 -> 239 bytes
-rw-r--r--data/mods/default/textures/crack.png (renamed from data/textures/crack.png)bin1076 -> 1076 bytes
-rw-r--r--data/mods/default/textures/dungeon_master.png (renamed from data/textures/dungeon_master.png)bin6636 -> 6636 bytes
-rw-r--r--data/mods/default/textures/fence.png (renamed from data/textures/fence.png)bin539 -> 539 bytes
-rw-r--r--data/mods/default/textures/fireball.png (renamed from data/textures/fireball.png)bin603 -> 603 bytes
-rw-r--r--data/mods/default/textures/firefly.png (renamed from data/textures/firefly.png)bin116 -> 116 bytes
-rw-r--r--data/mods/default/textures/furnace_front.png (renamed from data/textures/furnace_front.png)bin246 -> 246 bytes
-rw-r--r--data/mods/default/textures/furnace_side.png (renamed from data/textures/furnace_side.png)bin236 -> 236 bytes
-rw-r--r--data/mods/default/textures/glass.png (renamed from data/textures/glass.png)bin1309 -> 1309 bytes
-rw-r--r--data/mods/default/textures/grass.png (renamed from data/textures/grass.png)bin874 -> 874 bytes
-rw-r--r--data/mods/default/textures/grass_footsteps.png (renamed from data/textures/grass_footsteps.png)bin856 -> 856 bytes
-rw-r--r--data/mods/default/textures/grass_side.png (renamed from data/textures/grass_side.png)bin878 -> 878 bytes
-rw-r--r--data/mods/default/textures/gravel.png (renamed from data/textures/gravel.png)bin591 -> 591 bytes
-rw-r--r--data/mods/default/textures/heart.png (renamed from data/textures/heart.png)bin308 -> 308 bytes
-rw-r--r--data/mods/default/textures/junglegrass.png (renamed from data/textures/junglegrass.png)bin672 -> 672 bytes
-rw-r--r--data/mods/default/textures/jungletree.png (renamed from data/textures/jungletree.png)bin502 -> 502 bytes
-rw-r--r--data/mods/default/textures/jungletree_top.png (renamed from data/textures/jungletree_top.png)bin507 -> 507 bytes
-rw-r--r--data/mods/default/textures/ladder.png (renamed from data/textures/ladder.png)bin395 -> 395 bytes
-rw-r--r--data/mods/default/textures/lava.png (renamed from data/textures/lava.png)bin357 -> 357 bytes
-rw-r--r--data/mods/default/textures/leaves.png (renamed from data/textures/leaves.png)bin1689 -> 1689 bytes
-rw-r--r--data/mods/default/textures/lump_of_clay.png (renamed from data/textures/lump_of_clay.png)bin210 -> 210 bytes
-rw-r--r--data/mods/default/textures/lump_of_coal.png (renamed from data/textures/lump_of_coal.png)bin933 -> 933 bytes
-rw-r--r--data/mods/default/textures/lump_of_iron.png (renamed from data/textures/lump_of_iron.png)bin936 -> 936 bytes
-rw-r--r--data/mods/default/textures/mese.png (renamed from data/textures/mese.png)bin203 -> 203 bytes
-rw-r--r--data/mods/default/textures/mineral_coal.png (renamed from data/textures/mineral_coal.png)bin952 -> 952 bytes
-rw-r--r--data/mods/default/textures/mineral_iron.png (renamed from data/textures/mineral_iron.png)bin1614 -> 1614 bytes
-rw-r--r--data/mods/default/textures/mossycobble.png (renamed from data/textures/mossycobble.png)bin965 -> 965 bytes
-rw-r--r--data/mods/default/textures/mud.pngbin0 -> 1586 bytes
-rw-r--r--data/mods/default/textures/nc_back.png (renamed from data/textures/nc_back.png)bin303 -> 303 bytes
-rw-r--r--data/mods/default/textures/nc_front.png (renamed from data/textures/nc_front.png)bin410 -> 410 bytes
-rw-r--r--data/mods/default/textures/nc_rb.png (renamed from data/textures/nc_rb.png)bin203 -> 203 bytes
-rw-r--r--data/mods/default/textures/nc_side.png (renamed from data/textures/nc_side.png)bin260 -> 260 bytes
-rw-r--r--data/mods/default/textures/oerkki1.png (renamed from data/textures/oerkki1.png)bin250 -> 250 bytes
-rw-r--r--data/mods/default/textures/oerkki1_damaged.png (renamed from data/textures/oerkki1_damaged.png)bin341 -> 341 bytes
-rw-r--r--data/mods/default/textures/paper.png (renamed from data/textures/paper.png)bin242 -> 242 bytes
-rw-r--r--data/mods/default/textures/papyrus.png (renamed from data/textures/papyrus.png)bin366 -> 366 bytes
-rw-r--r--data/mods/default/textures/player.png (renamed from data/textures/player.png)bin212 -> 212 bytes
-rw-r--r--data/mods/default/textures/player_back.png (renamed from data/textures/player_back.png)bin201 -> 201 bytes
-rw-r--r--data/mods/default/textures/rail.png (renamed from data/textures/rail.png)bin507 -> 507 bytes
-rw-r--r--data/mods/default/textures/rail_crossing.png (renamed from data/textures/rail_crossing.png)bin555 -> 555 bytes
-rw-r--r--data/mods/default/textures/rail_curved.png (renamed from data/textures/rail_curved.png)bin545 -> 545 bytes
-rw-r--r--data/mods/default/textures/rail_t_junction.png (renamed from data/textures/rail_t_junction.png)bin542 -> 542 bytes
-rw-r--r--data/mods/default/textures/rat.png (renamed from data/textures/rat.png)bin920 -> 920 bytes
-rw-r--r--data/mods/default/textures/sand.png (renamed from data/textures/sand.png)bin1381 -> 1381 bytes
-rw-r--r--data/mods/default/textures/sandstone.png (renamed from data/textures/sandstone.png)bin772 -> 772 bytes
-rw-r--r--data/mods/default/textures/sapling.png (renamed from data/textures/sapling.png)bin502 -> 502 bytes
-rw-r--r--data/mods/default/textures/scorched_stuff.png (renamed from data/textures/scorched_stuff.png)bin233 -> 233 bytes
-rw-r--r--data/mods/default/textures/sign.png (renamed from data/textures/sign.png)bin1374 -> 1374 bytes
-rw-r--r--data/mods/default/textures/sign_back.png (renamed from data/textures/sign_back.png)bin1312 -> 1312 bytes
-rw-r--r--data/mods/default/textures/sign_wall.png (renamed from data/textures/sign_wall.png)bin489 -> 489 bytes
-rw-r--r--data/mods/default/textures/skybox1.png (renamed from data/textures/skybox1.png)bin236 -> 236 bytes
-rw-r--r--data/mods/default/textures/skybox1_dawn.png (renamed from data/textures/skybox1_dawn.png)bin598 -> 598 bytes
-rw-r--r--data/mods/default/textures/skybox1_night.png (renamed from data/textures/skybox1_night.png)bin2247 -> 2247 bytes
-rw-r--r--data/mods/default/textures/skybox2.png (renamed from data/textures/skybox2.png)bin231 -> 231 bytes
-rw-r--r--data/mods/default/textures/skybox2_dawn.png (renamed from data/textures/skybox2_dawn.png)bin199 -> 199 bytes
-rw-r--r--data/mods/default/textures/skybox2_night.png (renamed from data/textures/skybox2_night.png)bin2583 -> 2583 bytes
-rw-r--r--data/mods/default/textures/skybox3.png (renamed from data/textures/skybox3.png)bin190 -> 190 bytes
-rw-r--r--data/mods/default/textures/skybox3_dawn.png (renamed from data/textures/skybox3_dawn.png)bin190 -> 190 bytes
-rw-r--r--data/mods/default/textures/skybox3_night.png (renamed from data/textures/skybox3_night.png)bin190 -> 190 bytes
-rw-r--r--data/mods/default/textures/steel_block.png (renamed from data/textures/steel_block.png)bin219 -> 219 bytes
-rw-r--r--data/mods/default/textures/steel_ingot.png (renamed from data/textures/steel_ingot.png)bin207 -> 207 bytes
-rw-r--r--data/mods/default/textures/stick.png (renamed from data/textures/stick.png)bin182 -> 182 bytes
-rw-r--r--data/mods/default/textures/stone.png (renamed from data/textures/stone.png)bin806 -> 806 bytes
-rw-r--r--data/mods/default/textures/tnt_bottom.png (renamed from data/textures/tnt_bottom.png)bin161 -> 161 bytes
-rw-r--r--data/mods/default/textures/tnt_side.png (renamed from data/textures/tnt_side.png)bin186 -> 186 bytes
-rw-r--r--data/mods/default/textures/tnt_top.png (renamed from data/textures/tnt_top.png)bin264 -> 264 bytes
-rw-r--r--data/mods/default/textures/tool_mesepick.png (renamed from data/textures/tool_mesepick.png)bin252 -> 252 bytes
-rw-r--r--data/mods/default/textures/tool_steelaxe.png (renamed from data/textures/tool_steelaxe.png)bin927 -> 927 bytes
-rw-r--r--data/mods/default/textures/tool_steelpick.png (renamed from data/textures/tool_steelpick.png)bin271 -> 271 bytes
-rw-r--r--data/mods/default/textures/tool_steelshovel.png (renamed from data/textures/tool_steelshovel.png)bin216 -> 216 bytes
-rw-r--r--data/mods/default/textures/tool_steelsword.png (renamed from data/textures/tool_steelsword.png)bin291 -> 291 bytes
-rw-r--r--data/mods/default/textures/tool_stoneaxe.png (renamed from data/textures/tool_stoneaxe.png)bin931 -> 931 bytes
-rw-r--r--data/mods/default/textures/tool_stonepick.png (renamed from data/textures/tool_stonepick.png)bin262 -> 262 bytes
-rw-r--r--data/mods/default/textures/tool_stoneshovel.png (renamed from data/textures/tool_stoneshovel.png)bin203 -> 203 bytes
-rw-r--r--data/mods/default/textures/tool_stonesword.png (renamed from data/textures/tool_stonesword.png)bin301 -> 301 bytes
-rw-r--r--data/mods/default/textures/tool_woodaxe.png (renamed from data/textures/tool_woodaxe.png)bin927 -> 927 bytes
-rw-r--r--data/mods/default/textures/tool_woodpick.png (renamed from data/textures/tool_woodpick.png)bin245 -> 245 bytes
-rw-r--r--data/mods/default/textures/tool_woodshovel.png (renamed from data/textures/tool_woodshovel.png)bin203 -> 203 bytes
-rw-r--r--data/mods/default/textures/tool_woodsword.png (renamed from data/textures/tool_woodsword.png)bin255 -> 255 bytes
-rw-r--r--data/mods/default/textures/torch.png (renamed from data/textures/torch.png)bin925 -> 925 bytes
-rw-r--r--data/mods/default/textures/torch_on_ceiling.png (renamed from data/textures/torch_on_ceiling.png)bin913 -> 913 bytes
-rw-r--r--data/mods/default/textures/torch_on_floor.png (renamed from data/textures/torch_on_floor.png)bin917 -> 917 bytes
-rw-r--r--data/mods/default/textures/tree.png (renamed from data/textures/tree.png)bin1445 -> 1445 bytes
-rw-r--r--data/mods/default/textures/tree_top.png (renamed from data/textures/tree_top.png)bin1024 -> 1024 bytes
-rw-r--r--data/mods/default/textures/treeprop.png (renamed from data/textures/treeprop.png)bin1055 -> 1055 bytes
-rw-r--r--data/mods/default/textures/unknown_block.png (renamed from data/textures/unknown_block.png)bin582 -> 582 bytes
-rw-r--r--data/mods/default/textures/unknown_object.png (renamed from data/textures/unknown_object.png)bin489 -> 489 bytes
-rw-r--r--data/mods/default/textures/water.png (renamed from data/textures/water.png)bin518 -> 518 bytes
-rw-r--r--data/mods/default/textures/wood.png (renamed from data/textures/wood.png)bin1400 -> 1400 bytes
-rw-r--r--src/game.cpp4
-rw-r--r--src/server.cpp28
-rw-r--r--src/tile.cpp2
111 files changed, 28 insertions, 10 deletions
diff --git a/data/textures/fontlucida.png b/data/clienttextures/fontlucida.png
index c63fa02b7..c63fa02b7 100644
--- a/data/textures/fontlucida.png
+++ b/data/clienttextures/fontlucida.png
Binary files differ
diff --git a/data/textures/menulogo.png b/data/clienttextures/menulogo.png
index 76595c48d..76595c48d 100644
--- a/data/textures/menulogo.png
+++ b/data/clienttextures/menulogo.png
Binary files differ
diff --git a/data/textures/mud.png b/data/clienttextures/mud.png
index 7cb9c89a6..7cb9c89a6 100644
--- a/data/textures/mud.png
+++ b/data/clienttextures/mud.png
Binary files differ
diff --git a/data/scripts/default.lua b/data/mods/default/init.lua
index b677cefd0..a60979ff4 100644
--- a/data/scripts/default.lua
+++ b/data/mods/default/init.lua
@@ -72,6 +72,10 @@ function dump(o, dumped)
end
end
+-- Textures:
+-- Mods should prefix their textures with modname_, eg. given the mod
+-- name "foomod", a texture could be called "foomod_superfurnace.png"
+--
-- Global functions:
-- minetest.register_entity(name, prototype_table)
-- minetest.register_globalstep(func)
diff --git a/data/textures/apple.png b/data/mods/default/textures/apple.png
index 9593f28f6..9593f28f6 100644
--- a/data/textures/apple.png
+++ b/data/mods/default/textures/apple.png
Binary files differ
diff --git a/data/textures/apple_iron.png b/data/mods/default/textures/apple_iron.png
index 2dffdf014..2dffdf014 100644
--- a/data/textures/apple_iron.png
+++ b/data/mods/default/textures/apple_iron.png
Binary files differ
diff --git a/data/textures/book.png b/data/mods/default/textures/book.png
index 176fb6aa9..176fb6aa9 100644
--- a/data/textures/book.png
+++ b/data/mods/default/textures/book.png
Binary files differ
diff --git a/data/textures/bookshelf.png b/data/mods/default/textures/bookshelf.png
index 5ecc50ff3..5ecc50ff3 100644
--- a/data/textures/bookshelf.png
+++ b/data/mods/default/textures/bookshelf.png
Binary files differ
diff --git a/data/textures/brick.png b/data/mods/default/textures/brick.png
index 32d77f347..32d77f347 100644
--- a/data/textures/brick.png
+++ b/data/mods/default/textures/brick.png
Binary files differ
diff --git a/data/textures/cactus_side.png b/data/mods/default/textures/cactus_side.png
index fc479fde6..fc479fde6 100644
--- a/data/textures/cactus_side.png
+++ b/data/mods/default/textures/cactus_side.png
Binary files differ
diff --git a/data/textures/cactus_top.png b/data/mods/default/textures/cactus_top.png
index f9e68df51..f9e68df51 100644
--- a/data/textures/cactus_top.png
+++ b/data/mods/default/textures/cactus_top.png
Binary files differ
diff --git a/data/textures/chest_front.png b/data/mods/default/textures/chest_front.png
index c5628af94..c5628af94 100644
--- a/data/textures/chest_front.png
+++ b/data/mods/default/textures/chest_front.png
Binary files differ
diff --git a/data/textures/chest_lock.png b/data/mods/default/textures/chest_lock.png
index ae038fae5..ae038fae5 100644
--- a/data/textures/chest_lock.png
+++ b/data/mods/default/textures/chest_lock.png
Binary files differ
diff --git a/data/textures/chest_side.png b/data/mods/default/textures/chest_side.png
index 916dd784d..916dd784d 100644
--- a/data/textures/chest_side.png
+++ b/data/mods/default/textures/chest_side.png
Binary files differ
diff --git a/data/textures/chest_top.png b/data/mods/default/textures/chest_top.png
index 58c79674d..58c79674d 100644
--- a/data/textures/chest_top.png
+++ b/data/mods/default/textures/chest_top.png
Binary files differ
diff --git a/data/textures/clay.png b/data/mods/default/textures/clay.png
index 3557429d8..3557429d8 100644
--- a/data/textures/clay.png
+++ b/data/mods/default/textures/clay.png
Binary files differ
diff --git a/data/textures/clay_brick.png b/data/mods/default/textures/clay_brick.png
index e36648e48..e36648e48 100644
--- a/data/textures/clay_brick.png
+++ b/data/mods/default/textures/clay_brick.png
Binary files differ
diff --git a/data/textures/cloud.png b/data/mods/default/textures/cloud.png
index 24091a377..24091a377 100644
--- a/data/textures/cloud.png
+++ b/data/mods/default/textures/cloud.png
Binary files differ
diff --git a/data/textures/cobble.png b/data/mods/default/textures/cobble.png
index 7d0447419..7d0447419 100644
--- a/data/textures/cobble.png
+++ b/data/mods/default/textures/cobble.png
Binary files differ
diff --git a/data/textures/cooked_rat.png b/data/mods/default/textures/cooked_rat.png
index daad3be0d..daad3be0d 100644
--- a/data/textures/cooked_rat.png
+++ b/data/mods/default/textures/cooked_rat.png
Binary files differ
diff --git a/data/textures/crack.png b/data/mods/default/textures/crack.png
index 499783982..499783982 100644
--- a/data/textures/crack.png
+++ b/data/mods/default/textures/crack.png
Binary files differ
diff --git a/data/textures/dungeon_master.png b/data/mods/default/textures/dungeon_master.png
index 3457c8228..3457c8228 100644
--- a/data/textures/dungeon_master.png
+++ b/data/mods/default/textures/dungeon_master.png
Binary files differ
diff --git a/data/textures/fence.png b/data/mods/default/textures/fence.png
index 0b99f0eb5..0b99f0eb5 100644
--- a/data/textures/fence.png
+++ b/data/mods/default/textures/fence.png
Binary files differ
diff --git a/data/textures/fireball.png b/data/mods/default/textures/fireball.png
index 523142850..523142850 100644
--- a/data/textures/fireball.png
+++ b/data/mods/default/textures/fireball.png
Binary files differ
diff --git a/data/textures/firefly.png b/data/mods/default/textures/firefly.png
index 40df7fa1c..40df7fa1c 100644
--- a/data/textures/firefly.png
+++ b/data/mods/default/textures/firefly.png
Binary files differ
diff --git a/data/textures/furnace_front.png b/data/mods/default/textures/furnace_front.png
index 1620a27c3..1620a27c3 100644
--- a/data/textures/furnace_front.png
+++ b/data/mods/default/textures/furnace_front.png
Binary files differ
diff --git a/data/textures/furnace_side.png b/data/mods/default/textures/furnace_side.png
index 63cb162fe..63cb162fe 100644
--- a/data/textures/furnace_side.png
+++ b/data/mods/default/textures/furnace_side.png
Binary files differ
diff --git a/data/textures/glass.png b/data/mods/default/textures/glass.png
index 8598ce670..8598ce670 100644
--- a/data/textures/glass.png
+++ b/data/mods/default/textures/glass.png
Binary files differ
diff --git a/data/textures/grass.png b/data/mods/default/textures/grass.png
index 3610bb2bc..3610bb2bc 100644
--- a/data/textures/grass.png
+++ b/data/mods/default/textures/grass.png
Binary files differ
diff --git a/data/textures/grass_footsteps.png b/data/mods/default/textures/grass_footsteps.png
index 57e063d8c..57e063d8c 100644
--- a/data/textures/grass_footsteps.png
+++ b/data/mods/default/textures/grass_footsteps.png
Binary files differ
diff --git a/data/textures/grass_side.png b/data/mods/default/textures/grass_side.png
index 4f4f680be..4f4f680be 100644
--- a/data/textures/grass_side.png
+++ b/data/mods/default/textures/grass_side.png
Binary files differ
diff --git a/data/textures/gravel.png b/data/mods/default/textures/gravel.png
index f08666ad9..f08666ad9 100644
--- a/data/textures/gravel.png
+++ b/data/mods/default/textures/gravel.png
Binary files differ
diff --git a/data/textures/heart.png b/data/mods/default/textures/heart.png
index 6bc183e04..6bc183e04 100644
--- a/data/textures/heart.png
+++ b/data/mods/default/textures/heart.png
Binary files differ
diff --git a/data/textures/junglegrass.png b/data/mods/default/textures/junglegrass.png
index eea87c07c..eea87c07c 100644
--- a/data/textures/junglegrass.png
+++ b/data/mods/default/textures/junglegrass.png
Binary files differ
diff --git a/data/textures/jungletree.png b/data/mods/default/textures/jungletree.png
index ccd20ac74..ccd20ac74 100644
--- a/data/textures/jungletree.png
+++ b/data/mods/default/textures/jungletree.png
Binary files differ
diff --git a/data/textures/jungletree_top.png b/data/mods/default/textures/jungletree_top.png
index 2a9b51373..2a9b51373 100644
--- a/data/textures/jungletree_top.png
+++ b/data/mods/default/textures/jungletree_top.png
Binary files differ
diff --git a/data/textures/ladder.png b/data/mods/default/textures/ladder.png
index 11056359d..11056359d 100644
--- a/data/textures/ladder.png
+++ b/data/mods/default/textures/ladder.png
Binary files differ
diff --git a/data/textures/lava.png b/data/mods/default/textures/lava.png
index cb02ada13..cb02ada13 100644
--- a/data/textures/lava.png
+++ b/data/mods/default/textures/lava.png
Binary files differ
diff --git a/data/textures/leaves.png b/data/mods/default/textures/leaves.png
index 7a25126e9..7a25126e9 100644
--- a/data/textures/leaves.png
+++ b/data/mods/default/textures/leaves.png
Binary files differ
diff --git a/data/textures/lump_of_clay.png b/data/mods/default/textures/lump_of_clay.png
index be0bab9d7..be0bab9d7 100644
--- a/data/textures/lump_of_clay.png
+++ b/data/mods/default/textures/lump_of_clay.png
Binary files differ
diff --git a/data/textures/lump_of_coal.png b/data/mods/default/textures/lump_of_coal.png
index bad901efa..bad901efa 100644
--- a/data/textures/lump_of_coal.png
+++ b/data/mods/default/textures/lump_of_coal.png
Binary files differ
diff --git a/data/textures/lump_of_iron.png b/data/mods/default/textures/lump_of_iron.png
index edb931018..edb931018 100644
--- a/data/textures/lump_of_iron.png
+++ b/data/mods/default/textures/lump_of_iron.png
Binary files differ
diff --git a/data/textures/mese.png b/data/mods/default/textures/mese.png
index 4c876cdc5..4c876cdc5 100644
--- a/data/textures/mese.png
+++ b/data/mods/default/textures/mese.png
Binary files differ
diff --git a/data/textures/mineral_coal.png b/data/mods/default/textures/mineral_coal.png
index 3ff9692fb..3ff9692fb 100644
--- a/data/textures/mineral_coal.png
+++ b/data/mods/default/textures/mineral_coal.png
Binary files differ
diff --git a/data/textures/mineral_iron.png b/data/mods/default/textures/mineral_iron.png
index 51b15d95d..51b15d95d 100644
--- a/data/textures/mineral_iron.png
+++ b/data/mods/default/textures/mineral_iron.png
Binary files differ
diff --git a/data/textures/mossycobble.png b/data/mods/default/textures/mossycobble.png
index fad1b33ff..fad1b33ff 100644
--- a/data/textures/mossycobble.png
+++ b/data/mods/default/textures/mossycobble.png
Binary files differ
diff --git a/data/mods/default/textures/mud.png b/data/mods/default/textures/mud.png
new file mode 100644
index 000000000..7cb9c89a6
--- /dev/null
+++ b/data/mods/default/textures/mud.png
Binary files differ
diff --git a/data/textures/nc_back.png b/data/mods/default/textures/nc_back.png
index f09f41658..f09f41658 100644
--- a/data/textures/nc_back.png
+++ b/data/mods/default/textures/nc_back.png
Binary files differ
diff --git a/data/textures/nc_front.png b/data/mods/default/textures/nc_front.png
index cad9edab1..cad9edab1 100644
--- a/data/textures/nc_front.png
+++ b/data/mods/default/textures/nc_front.png
Binary files differ
diff --git a/data/textures/nc_rb.png b/data/mods/default/textures/nc_rb.png
index 7ebc9930d..7ebc9930d 100644
--- a/data/textures/nc_rb.png
+++ b/data/mods/default/textures/nc_rb.png
Binary files differ
diff --git a/data/textures/nc_side.png b/data/mods/default/textures/nc_side.png
index f954045fb..f954045fb 100644
--- a/data/textures/nc_side.png
+++ b/data/mods/default/textures/nc_side.png
Binary files differ
diff --git a/data/textures/oerkki1.png b/data/mods/default/textures/oerkki1.png
index 33cbac9e7..33cbac9e7 100644
--- a/data/textures/oerkki1.png
+++ b/data/mods/default/textures/oerkki1.png
Binary files differ
diff --git a/data/textures/oerkki1_damaged.png b/data/mods/default/textures/oerkki1_damaged.png
index 9b777387c..9b777387c 100644
--- a/data/textures/oerkki1_damaged.png
+++ b/data/mods/default/textures/oerkki1_damaged.png
Binary files differ
diff --git a/data/textures/paper.png b/data/mods/default/textures/paper.png
index ae5c06bc6..ae5c06bc6 100644
--- a/data/textures/paper.png
+++ b/data/mods/default/textures/paper.png
Binary files differ
diff --git a/data/textures/papyrus.png b/data/mods/default/textures/papyrus.png
index bf0dec7fe..bf0dec7fe 100644
--- a/data/textures/papyrus.png
+++ b/data/mods/default/textures/papyrus.png
Binary files differ
diff --git a/data/textures/player.png b/data/mods/default/textures/player.png
index 90adf9747..90adf9747 100644
--- a/data/textures/player.png
+++ b/data/mods/default/textures/player.png
Binary files differ
diff --git a/data/textures/player_back.png b/data/mods/default/textures/player_back.png
index 530aa7519..530aa7519 100644
--- a/data/textures/player_back.png
+++ b/data/mods/default/textures/player_back.png
Binary files differ
diff --git a/data/textures/rail.png b/data/mods/default/textures/rail.png
index 18176d9f3..18176d9f3 100644
--- a/data/textures/rail.png
+++ b/data/mods/default/textures/rail.png
Binary files differ
diff --git a/data/textures/rail_crossing.png b/data/mods/default/textures/rail_crossing.png
index 984640577..984640577 100644
--- a/data/textures/rail_crossing.png
+++ b/data/mods/default/textures/rail_crossing.png
Binary files differ
diff --git a/data/textures/rail_curved.png b/data/mods/default/textures/rail_curved.png
index 62afa3d2b..62afa3d2b 100644
--- a/data/textures/rail_curved.png
+++ b/data/mods/default/textures/rail_curved.png
Binary files differ
diff --git a/data/textures/rail_t_junction.png b/data/mods/default/textures/rail_t_junction.png
index 9985f63cd..9985f63cd 100644
--- a/data/textures/rail_t_junction.png
+++ b/data/mods/default/textures/rail_t_junction.png
Binary files differ
diff --git a/data/textures/rat.png b/data/mods/default/textures/rat.png
index d1a0e2ae2..d1a0e2ae2 100644
--- a/data/textures/rat.png
+++ b/data/mods/default/textures/rat.png
Binary files differ
diff --git a/data/textures/sand.png b/data/mods/default/textures/sand.png
index 15101a7eb..15101a7eb 100644
--- a/data/textures/sand.png
+++ b/data/mods/default/textures/sand.png
Binary files differ
diff --git a/data/textures/sandstone.png b/data/mods/default/textures/sandstone.png
index c4759b4d0..c4759b4d0 100644
--- a/data/textures/sandstone.png
+++ b/data/mods/default/textures/sandstone.png
Binary files differ
diff --git a/data/textures/sapling.png b/data/mods/default/textures/sapling.png
index 73f502306..73f502306 100644
--- a/data/textures/sapling.png
+++ b/data/mods/default/textures/sapling.png
Binary files differ
diff --git a/data/textures/scorched_stuff.png b/data/mods/default/textures/scorched_stuff.png
index 9ced2fbe8..9ced2fbe8 100644
--- a/data/textures/scorched_stuff.png
+++ b/data/mods/default/textures/scorched_stuff.png
Binary files differ
diff --git a/data/textures/sign.png b/data/mods/default/textures/sign.png
index 2e0b3cbef..2e0b3cbef 100644
--- a/data/textures/sign.png
+++ b/data/mods/default/textures/sign.png
Binary files differ
diff --git a/data/textures/sign_back.png b/data/mods/default/textures/sign_back.png
index 779e4bc2c..779e4bc2c 100644
--- a/data/textures/sign_back.png
+++ b/data/mods/default/textures/sign_back.png
Binary files differ
diff --git a/data/textures/sign_wall.png b/data/mods/default/textures/sign_wall.png
index 06eac1ee9..06eac1ee9 100644
--- a/data/textures/sign_wall.png
+++ b/data/mods/default/textures/sign_wall.png
Binary files differ
diff --git a/data/textures/skybox1.png b/data/mods/default/textures/skybox1.png
index 9801d5f4f..9801d5f4f 100644
--- a/data/textures/skybox1.png
+++ b/data/mods/default/textures/skybox1.png
Binary files differ
diff --git a/data/textures/skybox1_dawn.png b/data/mods/default/textures/skybox1_dawn.png
index 9711c4781..9711c4781 100644
--- a/data/textures/skybox1_dawn.png
+++ b/data/mods/default/textures/skybox1_dawn.png
Binary files differ
diff --git a/data/textures/skybox1_night.png b/data/mods/default/textures/skybox1_night.png
index 32e43a63e..32e43a63e 100644
--- a/data/textures/skybox1_night.png
+++ b/data/mods/default/textures/skybox1_night.png
Binary files differ
diff --git a/data/textures/skybox2.png b/data/mods/default/textures/skybox2.png
index a8c94b4d2..a8c94b4d2 100644
--- a/data/textures/skybox2.png
+++ b/data/mods/default/textures/skybox2.png
Binary files differ
diff --git a/data/textures/skybox2_dawn.png b/data/mods/default/textures/skybox2_dawn.png
index a761dff2d..a761dff2d 100644
--- a/data/textures/skybox2_dawn.png
+++ b/data/mods/default/textures/skybox2_dawn.png
Binary files differ
diff --git a/data/textures/skybox2_night.png b/data/mods/default/textures/skybox2_night.png
index beb07a9cf..beb07a9cf 100644
--- a/data/textures/skybox2_night.png
+++ b/data/mods/default/textures/skybox2_night.png
Binary files differ
diff --git a/data/textures/skybox3.png b/data/mods/default/textures/skybox3.png
index 2776ec712..2776ec712 100644
--- a/data/textures/skybox3.png
+++ b/data/mods/default/textures/skybox3.png
Binary files differ
diff --git a/data/textures/skybox3_dawn.png b/data/mods/default/textures/skybox3_dawn.png
index 22c8cbef5..22c8cbef5 100644
--- a/data/textures/skybox3_dawn.png
+++ b/data/mods/default/textures/skybox3_dawn.png
Binary files differ
diff --git a/data/textures/skybox3_night.png b/data/mods/default/textures/skybox3_night.png
index bb509789b..bb509789b 100644
--- a/data/textures/skybox3_night.png
+++ b/data/mods/default/textures/skybox3_night.png
Binary files differ
diff --git a/data/textures/steel_block.png b/data/mods/default/textures/steel_block.png
index 8e2020081..8e2020081 100644
--- a/data/textures/steel_block.png
+++ b/data/mods/default/textures/steel_block.png
Binary files differ
diff --git a/data/textures/steel_ingot.png b/data/mods/default/textures/steel_ingot.png
index f6c9414e7..f6c9414e7 100644
--- a/data/textures/steel_ingot.png
+++ b/data/mods/default/textures/steel_ingot.png
Binary files differ
diff --git a/data/textures/stick.png b/data/mods/default/textures/stick.png
index 2d31797f0..2d31797f0 100644
--- a/data/textures/stick.png
+++ b/data/mods/default/textures/stick.png
Binary files differ
diff --git a/data/textures/stone.png b/data/mods/default/textures/stone.png
index cad0dbe2b..cad0dbe2b 100644
--- a/data/textures/stone.png
+++ b/data/mods/default/textures/stone.png
Binary files differ
diff --git a/data/textures/tnt_bottom.png b/data/mods/default/textures/tnt_bottom.png
index 8ba2fca0b..8ba2fca0b 100644
--- a/data/textures/tnt_bottom.png
+++ b/data/mods/default/textures/tnt_bottom.png
Binary files differ
diff --git a/data/textures/tnt_side.png b/data/mods/default/textures/tnt_side.png
index d9a2bc4eb..d9a2bc4eb 100644
--- a/data/textures/tnt_side.png
+++ b/data/mods/default/textures/tnt_side.png
Binary files differ
diff --git a/data/textures/tnt_top.png b/data/mods/default/textures/tnt_top.png
index a84ffc9af..a84ffc9af 100644
--- a/data/textures/tnt_top.png
+++ b/data/mods/default/textures/tnt_top.png
Binary files differ
diff --git a/data/textures/tool_mesepick.png b/data/mods/default/textures/tool_mesepick.png
index a1f3812e0..a1f3812e0 100644
--- a/data/textures/tool_mesepick.png
+++ b/data/mods/default/textures/tool_mesepick.png
Binary files differ
diff --git a/data/textures/tool_steelaxe.png b/data/mods/default/textures/tool_steelaxe.png
index 0ad23c93b..0ad23c93b 100644
--- a/data/textures/tool_steelaxe.png
+++ b/data/mods/default/textures/tool_steelaxe.png
Binary files differ
diff --git a/data/textures/tool_steelpick.png b/data/mods/default/textures/tool_steelpick.png
index 7982dafeb..7982dafeb 100644
--- a/data/textures/tool_steelpick.png
+++ b/data/mods/default/textures/tool_steelpick.png
Binary files differ
diff --git a/data/textures/tool_steelshovel.png b/data/mods/default/textures/tool_steelshovel.png
index ed8413846..ed8413846 100644
--- a/data/textures/tool_steelshovel.png
+++ b/data/mods/default/textures/tool_steelshovel.png
Binary files differ
diff --git a/data/textures/tool_steelsword.png b/data/mods/default/textures/tool_steelsword.png
index a74581238..a74581238 100644
--- a/data/textures/tool_steelsword.png
+++ b/data/mods/default/textures/tool_steelsword.png
Binary files differ
diff --git a/data/textures/tool_stoneaxe.png b/data/mods/default/textures/tool_stoneaxe.png
index 698ac918f..698ac918f 100644
--- a/data/textures/tool_stoneaxe.png
+++ b/data/mods/default/textures/tool_stoneaxe.png
Binary files differ
diff --git a/data/textures/tool_stonepick.png b/data/mods/default/textures/tool_stonepick.png
index b34de6f32..b34de6f32 100644
--- a/data/textures/tool_stonepick.png
+++ b/data/mods/default/textures/tool_stonepick.png
Binary files differ
diff --git a/data/textures/tool_stoneshovel.png b/data/mods/default/textures/tool_stoneshovel.png
index ba5243101..ba5243101 100644
--- a/data/textures/tool_stoneshovel.png
+++ b/data/mods/default/textures/tool_stoneshovel.png
Binary files differ
diff --git a/data/textures/tool_stonesword.png b/data/mods/default/textures/tool_stonesword.png
index 8f8191f92..8f8191f92 100644
--- a/data/textures/tool_stonesword.png
+++ b/data/mods/default/textures/tool_stonesword.png
Binary files differ
diff --git a/data/textures/tool_woodaxe.png b/data/mods/default/textures/tool_woodaxe.png
index 3daa4af72..3daa4af72 100644
--- a/data/textures/tool_woodaxe.png
+++ b/data/mods/default/textures/tool_woodaxe.png
Binary files differ
diff --git a/data/textures/tool_woodpick.png b/data/mods/default/textures/tool_woodpick.png
index ea728cca3..ea728cca3 100644
--- a/data/textures/tool_woodpick.png
+++ b/data/mods/default/textures/tool_woodpick.png
Binary files differ
diff --git a/data/textures/tool_woodshovel.png b/data/mods/default/textures/tool_woodshovel.png
index 649ab4c38..649ab4c38 100644
--- a/data/textures/tool_woodshovel.png
+++ b/data/mods/default/textures/tool_woodshovel.png
Binary files differ
diff --git a/data/textures/tool_woodsword.png b/data/mods/default/textures/tool_woodsword.png
index d6c6be325..d6c6be325 100644
--- a/data/textures/tool_woodsword.png
+++ b/data/mods/default/textures/tool_woodsword.png
Binary files differ
diff --git a/data/textures/torch.png b/data/mods/default/textures/torch.png
index 7a953c222..7a953c222 100644
--- a/data/textures/torch.png
+++ b/data/mods/default/textures/torch.png
Binary files differ
diff --git a/data/textures/torch_on_ceiling.png b/data/mods/default/textures/torch_on_ceiling.png
index 6965d380e..6965d380e 100644
--- a/data/textures/torch_on_ceiling.png
+++ b/data/mods/default/textures/torch_on_ceiling.png
Binary files differ
diff --git a/data/textures/torch_on_floor.png b/data/mods/default/textures/torch_on_floor.png
index 76d1dd5ac..76d1dd5ac 100644
--- a/data/textures/torch_on_floor.png
+++ b/data/mods/default/textures/torch_on_floor.png
Binary files differ
diff --git a/data/textures/tree.png b/data/mods/default/textures/tree.png
index 65abfc243..65abfc243 100644
--- a/data/textures/tree.png
+++ b/data/mods/default/textures/tree.png
Binary files differ
diff --git a/data/textures/tree_top.png b/data/mods/default/textures/tree_top.png
index 2cdd94f80..2cdd94f80 100644
--- a/data/textures/tree_top.png
+++ b/data/mods/default/textures/tree_top.png
Binary files differ
diff --git a/data/textures/treeprop.png b/data/mods/default/textures/treeprop.png
index 77ea4d6d4..77ea4d6d4 100644
--- a/data/textures/treeprop.png
+++ b/data/mods/default/textures/treeprop.png
Binary files differ
diff --git a/data/textures/unknown_block.png b/data/mods/default/textures/unknown_block.png
index a27cb8ca9..a27cb8ca9 100644
--- a/data/textures/unknown_block.png
+++ b/data/mods/default/textures/unknown_block.png
Binary files differ
diff --git a/data/textures/unknown_object.png b/data/mods/default/textures/unknown_object.png
index 4d6a98d56..4d6a98d56 100644
--- a/data/textures/unknown_object.png
+++ b/data/mods/default/textures/unknown_object.png
Binary files differ
diff --git a/data/textures/water.png b/data/mods/default/textures/water.png
index e5f8cdc25..e5f8cdc25 100644
--- a/data/textures/water.png
+++ b/data/mods/default/textures/water.png
Binary files differ
diff --git a/data/textures/wood.png b/data/mods/default/textures/wood.png
index 57c1d7c12..57c1d7c12 100644
--- a/data/textures/wood.png
+++ b/data/mods/default/textures/wood.png
Binary files differ
diff --git a/src/game.cpp b/src/game.cpp
index 6c75863c0..fc87deb29 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -256,9 +256,9 @@ void draw_hotbar(video::IVideoDriver *driver, gui::IGUIFont *font,
/*
Draw hearts
*/
+ video::ITexture *heart_texture = tsrc->getTextureRaw("heart.png");
+ if(heart_texture)
{
- video::ITexture *heart_texture =
- driver->getTexture(getTexturePath("heart.png").c_str());
v2s32 p = pos + v2s32(0, -20);
for(s32 i=0; i<halfheartcount/2; i++)
{
diff --git a/src/server.cpp b/src/server.cpp
index ee5e301f1..9a7f1e972 100644
--- a/src/server.cpp
+++ b/src/server.cpp
@@ -997,13 +997,27 @@ Server::Server(
// Export API
scriptapi_export(m_lua, this);
// Load and run scripts
- std::string defaultscript = porting::path_data + DIR_DELIM
- + "scripts" + DIR_DELIM + "default.lua";
- bool success = script_load(m_lua, defaultscript.c_str());
- if(!success){
- errorstream<<"Server: Failed to load and run "
- <<defaultscript<<std::endl;
- assert(0);
+ core::list<std::string> modspaths;
+ modspaths.push_back(porting::path_data + DIR_DELIM + "mods");
+ for(core::list<std::string>::Iterator i = modspaths.begin();
+ i != modspaths.end(); i++){
+ std::string modspath = *i;
+ std::vector<fs::DirListNode> dirlist = fs::GetDirListing(modspath);
+ for(u32 j=0; j<dirlist.size(); j++){
+ if(!dirlist[j].dir)
+ continue;
+ std::string modname = dirlist[j].name;
+ infostream<<"Server: Loading mod \""<<modname<<"\" script..."
+ <<std::endl;
+ std::string scriptpath = modspath + DIR_DELIM + modname
+ + DIR_DELIM + "init.lua";
+ bool success = script_load(m_lua, scriptpath.c_str());
+ if(!success){
+ errorstream<<"Server: Failed to load and run "
+ <<scriptpath<<std::endl;
+ assert(0);
+ }
+ }
}
// Initialize Environment
diff --git a/src/tile.cpp b/src/tile.cpp
index c8fffffa7..eb3616f02 100644
--- a/src/tile.cpp
+++ b/src/tile.cpp
@@ -132,7 +132,7 @@ std::string getTexturePath(const std::string &filename)
*/
if(fullpath == "")
{
- std::string rel_path = std::string("textures")+DIR_DELIM+filename;
+ std::string rel_path = std::string("clienttextures")+DIR_DELIM+filename;
std::string testpath = porting::path_data + DIR_DELIM + rel_path;
// Check all filename extensions. Returns "" if not found.
fullpath = getImagePath(testpath);