diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-11-15 08:48:24 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-11-29 19:13:43 +0200 |
commit | e71744b918898b98ffa5ae949fbf2a1b877b254c (patch) | |
tree | 0de31e6f86d5bfb9027ca4a0eb4494b059055721 | |
parent | 40e7a1a5c9155f40ed07e09658e677533cac33f9 (diff) | |
download | minetest-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) | bin | 17284 -> 17284 bytes | |||
-rw-r--r-- | data/clienttextures/menulogo.png (renamed from data/textures/menulogo.png) | bin | 498 -> 498 bytes | |||
-rw-r--r-- | data/clienttextures/mud.png (renamed from data/textures/mud.png) | bin | 1586 -> 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) | bin | 203 -> 203 bytes | |||
-rw-r--r-- | data/mods/default/textures/apple_iron.png (renamed from data/textures/apple_iron.png) | bin | 207 -> 207 bytes | |||
-rw-r--r-- | data/mods/default/textures/book.png (renamed from data/textures/book.png) | bin | 292 -> 292 bytes | |||
-rw-r--r-- | data/mods/default/textures/bookshelf.png (renamed from data/textures/bookshelf.png) | bin | 597 -> 597 bytes | |||
-rw-r--r-- | data/mods/default/textures/brick.png (renamed from data/textures/brick.png) | bin | 604 -> 604 bytes | |||
-rw-r--r-- | data/mods/default/textures/cactus_side.png (renamed from data/textures/cactus_side.png) | bin | 279 -> 279 bytes | |||
-rw-r--r-- | data/mods/default/textures/cactus_top.png (renamed from data/textures/cactus_top.png) | bin | 236 -> 236 bytes | |||
-rw-r--r-- | data/mods/default/textures/chest_front.png (renamed from data/textures/chest_front.png) | bin | 167 -> 167 bytes | |||
-rw-r--r-- | data/mods/default/textures/chest_lock.png (renamed from data/textures/chest_lock.png) | bin | 224 -> 224 bytes | |||
-rw-r--r-- | data/mods/default/textures/chest_side.png (renamed from data/textures/chest_side.png) | bin | 151 -> 151 bytes | |||
-rw-r--r-- | data/mods/default/textures/chest_top.png (renamed from data/textures/chest_top.png) | bin | 142 -> 142 bytes | |||
-rw-r--r-- | data/mods/default/textures/clay.png (renamed from data/textures/clay.png) | bin | 613 -> 613 bytes | |||
-rw-r--r-- | data/mods/default/textures/clay_brick.png (renamed from data/textures/clay_brick.png) | bin | 249 -> 249 bytes | |||
-rw-r--r-- | data/mods/default/textures/cloud.png (renamed from data/textures/cloud.png) | bin | 118 -> 118 bytes | |||
-rw-r--r-- | data/mods/default/textures/cobble.png (renamed from data/textures/cobble.png) | bin | 830 -> 830 bytes | |||
-rw-r--r-- | data/mods/default/textures/cooked_rat.png (renamed from data/textures/cooked_rat.png) | bin | 239 -> 239 bytes | |||
-rw-r--r-- | data/mods/default/textures/crack.png (renamed from data/textures/crack.png) | bin | 1076 -> 1076 bytes | |||
-rw-r--r-- | data/mods/default/textures/dungeon_master.png (renamed from data/textures/dungeon_master.png) | bin | 6636 -> 6636 bytes | |||
-rw-r--r-- | data/mods/default/textures/fence.png (renamed from data/textures/fence.png) | bin | 539 -> 539 bytes | |||
-rw-r--r-- | data/mods/default/textures/fireball.png (renamed from data/textures/fireball.png) | bin | 603 -> 603 bytes | |||
-rw-r--r-- | data/mods/default/textures/firefly.png (renamed from data/textures/firefly.png) | bin | 116 -> 116 bytes | |||
-rw-r--r-- | data/mods/default/textures/furnace_front.png (renamed from data/textures/furnace_front.png) | bin | 246 -> 246 bytes | |||
-rw-r--r-- | data/mods/default/textures/furnace_side.png (renamed from data/textures/furnace_side.png) | bin | 236 -> 236 bytes | |||
-rw-r--r-- | data/mods/default/textures/glass.png (renamed from data/textures/glass.png) | bin | 1309 -> 1309 bytes | |||
-rw-r--r-- | data/mods/default/textures/grass.png (renamed from data/textures/grass.png) | bin | 874 -> 874 bytes | |||
-rw-r--r-- | data/mods/default/textures/grass_footsteps.png (renamed from data/textures/grass_footsteps.png) | bin | 856 -> 856 bytes | |||
-rw-r--r-- | data/mods/default/textures/grass_side.png (renamed from data/textures/grass_side.png) | bin | 878 -> 878 bytes | |||
-rw-r--r-- | data/mods/default/textures/gravel.png (renamed from data/textures/gravel.png) | bin | 591 -> 591 bytes | |||
-rw-r--r-- | data/mods/default/textures/heart.png (renamed from data/textures/heart.png) | bin | 308 -> 308 bytes | |||
-rw-r--r-- | data/mods/default/textures/junglegrass.png (renamed from data/textures/junglegrass.png) | bin | 672 -> 672 bytes | |||
-rw-r--r-- | data/mods/default/textures/jungletree.png (renamed from data/textures/jungletree.png) | bin | 502 -> 502 bytes | |||
-rw-r--r-- | data/mods/default/textures/jungletree_top.png (renamed from data/textures/jungletree_top.png) | bin | 507 -> 507 bytes | |||
-rw-r--r-- | data/mods/default/textures/ladder.png (renamed from data/textures/ladder.png) | bin | 395 -> 395 bytes | |||
-rw-r--r-- | data/mods/default/textures/lava.png (renamed from data/textures/lava.png) | bin | 357 -> 357 bytes | |||
-rw-r--r-- | data/mods/default/textures/leaves.png (renamed from data/textures/leaves.png) | bin | 1689 -> 1689 bytes | |||
-rw-r--r-- | data/mods/default/textures/lump_of_clay.png (renamed from data/textures/lump_of_clay.png) | bin | 210 -> 210 bytes | |||
-rw-r--r-- | data/mods/default/textures/lump_of_coal.png (renamed from data/textures/lump_of_coal.png) | bin | 933 -> 933 bytes | |||
-rw-r--r-- | data/mods/default/textures/lump_of_iron.png (renamed from data/textures/lump_of_iron.png) | bin | 936 -> 936 bytes | |||
-rw-r--r-- | data/mods/default/textures/mese.png (renamed from data/textures/mese.png) | bin | 203 -> 203 bytes | |||
-rw-r--r-- | data/mods/default/textures/mineral_coal.png (renamed from data/textures/mineral_coal.png) | bin | 952 -> 952 bytes | |||
-rw-r--r-- | data/mods/default/textures/mineral_iron.png (renamed from data/textures/mineral_iron.png) | bin | 1614 -> 1614 bytes | |||
-rw-r--r-- | data/mods/default/textures/mossycobble.png (renamed from data/textures/mossycobble.png) | bin | 965 -> 965 bytes | |||
-rw-r--r-- | data/mods/default/textures/mud.png | bin | 0 -> 1586 bytes | |||
-rw-r--r-- | data/mods/default/textures/nc_back.png (renamed from data/textures/nc_back.png) | bin | 303 -> 303 bytes | |||
-rw-r--r-- | data/mods/default/textures/nc_front.png (renamed from data/textures/nc_front.png) | bin | 410 -> 410 bytes | |||
-rw-r--r-- | data/mods/default/textures/nc_rb.png (renamed from data/textures/nc_rb.png) | bin | 203 -> 203 bytes | |||
-rw-r--r-- | data/mods/default/textures/nc_side.png (renamed from data/textures/nc_side.png) | bin | 260 -> 260 bytes | |||
-rw-r--r-- | data/mods/default/textures/oerkki1.png (renamed from data/textures/oerkki1.png) | bin | 250 -> 250 bytes | |||
-rw-r--r-- | data/mods/default/textures/oerkki1_damaged.png (renamed from data/textures/oerkki1_damaged.png) | bin | 341 -> 341 bytes | |||
-rw-r--r-- | data/mods/default/textures/paper.png (renamed from data/textures/paper.png) | bin | 242 -> 242 bytes | |||
-rw-r--r-- | data/mods/default/textures/papyrus.png (renamed from data/textures/papyrus.png) | bin | 366 -> 366 bytes | |||
-rw-r--r-- | data/mods/default/textures/player.png (renamed from data/textures/player.png) | bin | 212 -> 212 bytes | |||
-rw-r--r-- | data/mods/default/textures/player_back.png (renamed from data/textures/player_back.png) | bin | 201 -> 201 bytes | |||
-rw-r--r-- | data/mods/default/textures/rail.png (renamed from data/textures/rail.png) | bin | 507 -> 507 bytes | |||
-rw-r--r-- | data/mods/default/textures/rail_crossing.png (renamed from data/textures/rail_crossing.png) | bin | 555 -> 555 bytes | |||
-rw-r--r-- | data/mods/default/textures/rail_curved.png (renamed from data/textures/rail_curved.png) | bin | 545 -> 545 bytes | |||
-rw-r--r-- | data/mods/default/textures/rail_t_junction.png (renamed from data/textures/rail_t_junction.png) | bin | 542 -> 542 bytes | |||
-rw-r--r-- | data/mods/default/textures/rat.png (renamed from data/textures/rat.png) | bin | 920 -> 920 bytes | |||
-rw-r--r-- | data/mods/default/textures/sand.png (renamed from data/textures/sand.png) | bin | 1381 -> 1381 bytes | |||
-rw-r--r-- | data/mods/default/textures/sandstone.png (renamed from data/textures/sandstone.png) | bin | 772 -> 772 bytes | |||
-rw-r--r-- | data/mods/default/textures/sapling.png (renamed from data/textures/sapling.png) | bin | 502 -> 502 bytes | |||
-rw-r--r-- | data/mods/default/textures/scorched_stuff.png (renamed from data/textures/scorched_stuff.png) | bin | 233 -> 233 bytes | |||
-rw-r--r-- | data/mods/default/textures/sign.png (renamed from data/textures/sign.png) | bin | 1374 -> 1374 bytes | |||
-rw-r--r-- | data/mods/default/textures/sign_back.png (renamed from data/textures/sign_back.png) | bin | 1312 -> 1312 bytes | |||
-rw-r--r-- | data/mods/default/textures/sign_wall.png (renamed from data/textures/sign_wall.png) | bin | 489 -> 489 bytes | |||
-rw-r--r-- | data/mods/default/textures/skybox1.png (renamed from data/textures/skybox1.png) | bin | 236 -> 236 bytes | |||
-rw-r--r-- | data/mods/default/textures/skybox1_dawn.png (renamed from data/textures/skybox1_dawn.png) | bin | 598 -> 598 bytes | |||
-rw-r--r-- | data/mods/default/textures/skybox1_night.png (renamed from data/textures/skybox1_night.png) | bin | 2247 -> 2247 bytes | |||
-rw-r--r-- | data/mods/default/textures/skybox2.png (renamed from data/textures/skybox2.png) | bin | 231 -> 231 bytes | |||
-rw-r--r-- | data/mods/default/textures/skybox2_dawn.png (renamed from data/textures/skybox2_dawn.png) | bin | 199 -> 199 bytes | |||
-rw-r--r-- | data/mods/default/textures/skybox2_night.png (renamed from data/textures/skybox2_night.png) | bin | 2583 -> 2583 bytes | |||
-rw-r--r-- | data/mods/default/textures/skybox3.png (renamed from data/textures/skybox3.png) | bin | 190 -> 190 bytes | |||
-rw-r--r-- | data/mods/default/textures/skybox3_dawn.png (renamed from data/textures/skybox3_dawn.png) | bin | 190 -> 190 bytes | |||
-rw-r--r-- | data/mods/default/textures/skybox3_night.png (renamed from data/textures/skybox3_night.png) | bin | 190 -> 190 bytes | |||
-rw-r--r-- | data/mods/default/textures/steel_block.png (renamed from data/textures/steel_block.png) | bin | 219 -> 219 bytes | |||
-rw-r--r-- | data/mods/default/textures/steel_ingot.png (renamed from data/textures/steel_ingot.png) | bin | 207 -> 207 bytes | |||
-rw-r--r-- | data/mods/default/textures/stick.png (renamed from data/textures/stick.png) | bin | 182 -> 182 bytes | |||
-rw-r--r-- | data/mods/default/textures/stone.png (renamed from data/textures/stone.png) | bin | 806 -> 806 bytes | |||
-rw-r--r-- | data/mods/default/textures/tnt_bottom.png (renamed from data/textures/tnt_bottom.png) | bin | 161 -> 161 bytes | |||
-rw-r--r-- | data/mods/default/textures/tnt_side.png (renamed from data/textures/tnt_side.png) | bin | 186 -> 186 bytes | |||
-rw-r--r-- | data/mods/default/textures/tnt_top.png (renamed from data/textures/tnt_top.png) | bin | 264 -> 264 bytes | |||
-rw-r--r-- | data/mods/default/textures/tool_mesepick.png (renamed from data/textures/tool_mesepick.png) | bin | 252 -> 252 bytes | |||
-rw-r--r-- | data/mods/default/textures/tool_steelaxe.png (renamed from data/textures/tool_steelaxe.png) | bin | 927 -> 927 bytes | |||
-rw-r--r-- | data/mods/default/textures/tool_steelpick.png (renamed from data/textures/tool_steelpick.png) | bin | 271 -> 271 bytes | |||
-rw-r--r-- | data/mods/default/textures/tool_steelshovel.png (renamed from data/textures/tool_steelshovel.png) | bin | 216 -> 216 bytes | |||
-rw-r--r-- | data/mods/default/textures/tool_steelsword.png (renamed from data/textures/tool_steelsword.png) | bin | 291 -> 291 bytes | |||
-rw-r--r-- | data/mods/default/textures/tool_stoneaxe.png (renamed from data/textures/tool_stoneaxe.png) | bin | 931 -> 931 bytes | |||
-rw-r--r-- | data/mods/default/textures/tool_stonepick.png (renamed from data/textures/tool_stonepick.png) | bin | 262 -> 262 bytes | |||
-rw-r--r-- | data/mods/default/textures/tool_stoneshovel.png (renamed from data/textures/tool_stoneshovel.png) | bin | 203 -> 203 bytes | |||
-rw-r--r-- | data/mods/default/textures/tool_stonesword.png (renamed from data/textures/tool_stonesword.png) | bin | 301 -> 301 bytes | |||
-rw-r--r-- | data/mods/default/textures/tool_woodaxe.png (renamed from data/textures/tool_woodaxe.png) | bin | 927 -> 927 bytes | |||
-rw-r--r-- | data/mods/default/textures/tool_woodpick.png (renamed from data/textures/tool_woodpick.png) | bin | 245 -> 245 bytes | |||
-rw-r--r-- | data/mods/default/textures/tool_woodshovel.png (renamed from data/textures/tool_woodshovel.png) | bin | 203 -> 203 bytes | |||
-rw-r--r-- | data/mods/default/textures/tool_woodsword.png (renamed from data/textures/tool_woodsword.png) | bin | 255 -> 255 bytes | |||
-rw-r--r-- | data/mods/default/textures/torch.png (renamed from data/textures/torch.png) | bin | 925 -> 925 bytes | |||
-rw-r--r-- | data/mods/default/textures/torch_on_ceiling.png (renamed from data/textures/torch_on_ceiling.png) | bin | 913 -> 913 bytes | |||
-rw-r--r-- | data/mods/default/textures/torch_on_floor.png (renamed from data/textures/torch_on_floor.png) | bin | 917 -> 917 bytes | |||
-rw-r--r-- | data/mods/default/textures/tree.png (renamed from data/textures/tree.png) | bin | 1445 -> 1445 bytes | |||
-rw-r--r-- | data/mods/default/textures/tree_top.png (renamed from data/textures/tree_top.png) | bin | 1024 -> 1024 bytes | |||
-rw-r--r-- | data/mods/default/textures/treeprop.png (renamed from data/textures/treeprop.png) | bin | 1055 -> 1055 bytes | |||
-rw-r--r-- | data/mods/default/textures/unknown_block.png (renamed from data/textures/unknown_block.png) | bin | 582 -> 582 bytes | |||
-rw-r--r-- | data/mods/default/textures/unknown_object.png (renamed from data/textures/unknown_object.png) | bin | 489 -> 489 bytes | |||
-rw-r--r-- | data/mods/default/textures/water.png (renamed from data/textures/water.png) | bin | 518 -> 518 bytes | |||
-rw-r--r-- | data/mods/default/textures/wood.png (renamed from data/textures/wood.png) | bin | 1400 -> 1400 bytes | |||
-rw-r--r-- | src/game.cpp | 4 | ||||
-rw-r--r-- | src/server.cpp | 28 | ||||
-rw-r--r-- | src/tile.cpp | 2 |
111 files changed, 28 insertions, 10 deletions
diff --git a/data/textures/fontlucida.png b/data/clienttextures/fontlucida.png Binary files differindex c63fa02b7..c63fa02b7 100644 --- a/data/textures/fontlucida.png +++ b/data/clienttextures/fontlucida.png diff --git a/data/textures/menulogo.png b/data/clienttextures/menulogo.png Binary files differindex 76595c48d..76595c48d 100644 --- a/data/textures/menulogo.png +++ b/data/clienttextures/menulogo.png diff --git a/data/textures/mud.png b/data/clienttextures/mud.png Binary files differindex 7cb9c89a6..7cb9c89a6 100644 --- a/data/textures/mud.png +++ b/data/clienttextures/mud.png 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 Binary files differindex 9593f28f6..9593f28f6 100644 --- a/data/textures/apple.png +++ b/data/mods/default/textures/apple.png diff --git a/data/textures/apple_iron.png b/data/mods/default/textures/apple_iron.png Binary files differindex 2dffdf014..2dffdf014 100644 --- a/data/textures/apple_iron.png +++ b/data/mods/default/textures/apple_iron.png diff --git a/data/textures/book.png b/data/mods/default/textures/book.png Binary files differindex 176fb6aa9..176fb6aa9 100644 --- a/data/textures/book.png +++ b/data/mods/default/textures/book.png diff --git a/data/textures/bookshelf.png b/data/mods/default/textures/bookshelf.png Binary files differindex 5ecc50ff3..5ecc50ff3 100644 --- a/data/textures/bookshelf.png +++ b/data/mods/default/textures/bookshelf.png diff --git a/data/textures/brick.png b/data/mods/default/textures/brick.png Binary files differindex 32d77f347..32d77f347 100644 --- a/data/textures/brick.png +++ b/data/mods/default/textures/brick.png diff --git a/data/textures/cactus_side.png b/data/mods/default/textures/cactus_side.png Binary files differindex fc479fde6..fc479fde6 100644 --- a/data/textures/cactus_side.png +++ b/data/mods/default/textures/cactus_side.png diff --git a/data/textures/cactus_top.png b/data/mods/default/textures/cactus_top.png Binary files differindex f9e68df51..f9e68df51 100644 --- a/data/textures/cactus_top.png +++ b/data/mods/default/textures/cactus_top.png diff --git a/data/textures/chest_front.png b/data/mods/default/textures/chest_front.png Binary files differindex c5628af94..c5628af94 100644 --- a/data/textures/chest_front.png +++ b/data/mods/default/textures/chest_front.png diff --git a/data/textures/chest_lock.png b/data/mods/default/textures/chest_lock.png Binary files differindex ae038fae5..ae038fae5 100644 --- a/data/textures/chest_lock.png +++ b/data/mods/default/textures/chest_lock.png diff --git a/data/textures/chest_side.png b/data/mods/default/textures/chest_side.png Binary files differindex 916dd784d..916dd784d 100644 --- a/data/textures/chest_side.png +++ b/data/mods/default/textures/chest_side.png diff --git a/data/textures/chest_top.png b/data/mods/default/textures/chest_top.png Binary files differindex 58c79674d..58c79674d 100644 --- a/data/textures/chest_top.png +++ b/data/mods/default/textures/chest_top.png diff --git a/data/textures/clay.png b/data/mods/default/textures/clay.png Binary files differindex 3557429d8..3557429d8 100644 --- a/data/textures/clay.png +++ b/data/mods/default/textures/clay.png diff --git a/data/textures/clay_brick.png b/data/mods/default/textures/clay_brick.png Binary files differindex e36648e48..e36648e48 100644 --- a/data/textures/clay_brick.png +++ b/data/mods/default/textures/clay_brick.png diff --git a/data/textures/cloud.png b/data/mods/default/textures/cloud.png Binary files differindex 24091a377..24091a377 100644 --- a/data/textures/cloud.png +++ b/data/mods/default/textures/cloud.png diff --git a/data/textures/cobble.png b/data/mods/default/textures/cobble.png Binary files differindex 7d0447419..7d0447419 100644 --- a/data/textures/cobble.png +++ b/data/mods/default/textures/cobble.png diff --git a/data/textures/cooked_rat.png b/data/mods/default/textures/cooked_rat.png Binary files differindex daad3be0d..daad3be0d 100644 --- a/data/textures/cooked_rat.png +++ b/data/mods/default/textures/cooked_rat.png diff --git a/data/textures/crack.png b/data/mods/default/textures/crack.png Binary files differindex 499783982..499783982 100644 --- a/data/textures/crack.png +++ b/data/mods/default/textures/crack.png diff --git a/data/textures/dungeon_master.png b/data/mods/default/textures/dungeon_master.png Binary files differindex 3457c8228..3457c8228 100644 --- a/data/textures/dungeon_master.png +++ b/data/mods/default/textures/dungeon_master.png diff --git a/data/textures/fence.png b/data/mods/default/textures/fence.png Binary files differindex 0b99f0eb5..0b99f0eb5 100644 --- a/data/textures/fence.png +++ b/data/mods/default/textures/fence.png diff --git a/data/textures/fireball.png b/data/mods/default/textures/fireball.png Binary files differindex 523142850..523142850 100644 --- a/data/textures/fireball.png +++ b/data/mods/default/textures/fireball.png diff --git a/data/textures/firefly.png b/data/mods/default/textures/firefly.png Binary files differindex 40df7fa1c..40df7fa1c 100644 --- a/data/textures/firefly.png +++ b/data/mods/default/textures/firefly.png diff --git a/data/textures/furnace_front.png b/data/mods/default/textures/furnace_front.png Binary files differindex 1620a27c3..1620a27c3 100644 --- a/data/textures/furnace_front.png +++ b/data/mods/default/textures/furnace_front.png diff --git a/data/textures/furnace_side.png b/data/mods/default/textures/furnace_side.png Binary files differindex 63cb162fe..63cb162fe 100644 --- a/data/textures/furnace_side.png +++ b/data/mods/default/textures/furnace_side.png diff --git a/data/textures/glass.png b/data/mods/default/textures/glass.png Binary files differindex 8598ce670..8598ce670 100644 --- a/data/textures/glass.png +++ b/data/mods/default/textures/glass.png diff --git a/data/textures/grass.png b/data/mods/default/textures/grass.png Binary files differindex 3610bb2bc..3610bb2bc 100644 --- a/data/textures/grass.png +++ b/data/mods/default/textures/grass.png diff --git a/data/textures/grass_footsteps.png b/data/mods/default/textures/grass_footsteps.png Binary files differindex 57e063d8c..57e063d8c 100644 --- a/data/textures/grass_footsteps.png +++ b/data/mods/default/textures/grass_footsteps.png diff --git a/data/textures/grass_side.png b/data/mods/default/textures/grass_side.png Binary files differindex 4f4f680be..4f4f680be 100644 --- a/data/textures/grass_side.png +++ b/data/mods/default/textures/grass_side.png diff --git a/data/textures/gravel.png b/data/mods/default/textures/gravel.png Binary files differindex f08666ad9..f08666ad9 100644 --- a/data/textures/gravel.png +++ b/data/mods/default/textures/gravel.png diff --git a/data/textures/heart.png b/data/mods/default/textures/heart.png Binary files differindex 6bc183e04..6bc183e04 100644 --- a/data/textures/heart.png +++ b/data/mods/default/textures/heart.png diff --git a/data/textures/junglegrass.png b/data/mods/default/textures/junglegrass.png Binary files differindex eea87c07c..eea87c07c 100644 --- a/data/textures/junglegrass.png +++ b/data/mods/default/textures/junglegrass.png diff --git a/data/textures/jungletree.png b/data/mods/default/textures/jungletree.png Binary files differindex ccd20ac74..ccd20ac74 100644 --- a/data/textures/jungletree.png +++ b/data/mods/default/textures/jungletree.png diff --git a/data/textures/jungletree_top.png b/data/mods/default/textures/jungletree_top.png Binary files differindex 2a9b51373..2a9b51373 100644 --- a/data/textures/jungletree_top.png +++ b/data/mods/default/textures/jungletree_top.png diff --git a/data/textures/ladder.png b/data/mods/default/textures/ladder.png Binary files differindex 11056359d..11056359d 100644 --- a/data/textures/ladder.png +++ b/data/mods/default/textures/ladder.png diff --git a/data/textures/lava.png b/data/mods/default/textures/lava.png Binary files differindex cb02ada13..cb02ada13 100644 --- a/data/textures/lava.png +++ b/data/mods/default/textures/lava.png diff --git a/data/textures/leaves.png b/data/mods/default/textures/leaves.png Binary files differindex 7a25126e9..7a25126e9 100644 --- a/data/textures/leaves.png +++ b/data/mods/default/textures/leaves.png diff --git a/data/textures/lump_of_clay.png b/data/mods/default/textures/lump_of_clay.png Binary files differindex be0bab9d7..be0bab9d7 100644 --- a/data/textures/lump_of_clay.png +++ b/data/mods/default/textures/lump_of_clay.png diff --git a/data/textures/lump_of_coal.png b/data/mods/default/textures/lump_of_coal.png Binary files differindex bad901efa..bad901efa 100644 --- a/data/textures/lump_of_coal.png +++ b/data/mods/default/textures/lump_of_coal.png diff --git a/data/textures/lump_of_iron.png b/data/mods/default/textures/lump_of_iron.png Binary files differindex edb931018..edb931018 100644 --- a/data/textures/lump_of_iron.png +++ b/data/mods/default/textures/lump_of_iron.png diff --git a/data/textures/mese.png b/data/mods/default/textures/mese.png Binary files differindex 4c876cdc5..4c876cdc5 100644 --- a/data/textures/mese.png +++ b/data/mods/default/textures/mese.png diff --git a/data/textures/mineral_coal.png b/data/mods/default/textures/mineral_coal.png Binary files differindex 3ff9692fb..3ff9692fb 100644 --- a/data/textures/mineral_coal.png +++ b/data/mods/default/textures/mineral_coal.png diff --git a/data/textures/mineral_iron.png b/data/mods/default/textures/mineral_iron.png Binary files differindex 51b15d95d..51b15d95d 100644 --- a/data/textures/mineral_iron.png +++ b/data/mods/default/textures/mineral_iron.png diff --git a/data/textures/mossycobble.png b/data/mods/default/textures/mossycobble.png Binary files differindex fad1b33ff..fad1b33ff 100644 --- a/data/textures/mossycobble.png +++ b/data/mods/default/textures/mossycobble.png diff --git a/data/mods/default/textures/mud.png b/data/mods/default/textures/mud.png Binary files differnew file mode 100644 index 000000000..7cb9c89a6 --- /dev/null +++ b/data/mods/default/textures/mud.png diff --git a/data/textures/nc_back.png b/data/mods/default/textures/nc_back.png Binary files differindex f09f41658..f09f41658 100644 --- a/data/textures/nc_back.png +++ b/data/mods/default/textures/nc_back.png diff --git a/data/textures/nc_front.png b/data/mods/default/textures/nc_front.png Binary files differindex cad9edab1..cad9edab1 100644 --- a/data/textures/nc_front.png +++ b/data/mods/default/textures/nc_front.png diff --git a/data/textures/nc_rb.png b/data/mods/default/textures/nc_rb.png Binary files differindex 7ebc9930d..7ebc9930d 100644 --- a/data/textures/nc_rb.png +++ b/data/mods/default/textures/nc_rb.png diff --git a/data/textures/nc_side.png b/data/mods/default/textures/nc_side.png Binary files differindex f954045fb..f954045fb 100644 --- a/data/textures/nc_side.png +++ b/data/mods/default/textures/nc_side.png diff --git a/data/textures/oerkki1.png b/data/mods/default/textures/oerkki1.png Binary files differindex 33cbac9e7..33cbac9e7 100644 --- a/data/textures/oerkki1.png +++ b/data/mods/default/textures/oerkki1.png diff --git a/data/textures/oerkki1_damaged.png b/data/mods/default/textures/oerkki1_damaged.png Binary files differindex 9b777387c..9b777387c 100644 --- a/data/textures/oerkki1_damaged.png +++ b/data/mods/default/textures/oerkki1_damaged.png diff --git a/data/textures/paper.png b/data/mods/default/textures/paper.png Binary files differindex ae5c06bc6..ae5c06bc6 100644 --- a/data/textures/paper.png +++ b/data/mods/default/textures/paper.png diff --git a/data/textures/papyrus.png b/data/mods/default/textures/papyrus.png Binary files differindex bf0dec7fe..bf0dec7fe 100644 --- a/data/textures/papyrus.png +++ b/data/mods/default/textures/papyrus.png diff --git a/data/textures/player.png b/data/mods/default/textures/player.png Binary files differindex 90adf9747..90adf9747 100644 --- a/data/textures/player.png +++ b/data/mods/default/textures/player.png diff --git a/data/textures/player_back.png b/data/mods/default/textures/player_back.png Binary files differindex 530aa7519..530aa7519 100644 --- a/data/textures/player_back.png +++ b/data/mods/default/textures/player_back.png diff --git a/data/textures/rail.png b/data/mods/default/textures/rail.png Binary files differindex 18176d9f3..18176d9f3 100644 --- a/data/textures/rail.png +++ b/data/mods/default/textures/rail.png diff --git a/data/textures/rail_crossing.png b/data/mods/default/textures/rail_crossing.png Binary files differindex 984640577..984640577 100644 --- a/data/textures/rail_crossing.png +++ b/data/mods/default/textures/rail_crossing.png diff --git a/data/textures/rail_curved.png b/data/mods/default/textures/rail_curved.png Binary files differindex 62afa3d2b..62afa3d2b 100644 --- a/data/textures/rail_curved.png +++ b/data/mods/default/textures/rail_curved.png diff --git a/data/textures/rail_t_junction.png b/data/mods/default/textures/rail_t_junction.png Binary files differindex 9985f63cd..9985f63cd 100644 --- a/data/textures/rail_t_junction.png +++ b/data/mods/default/textures/rail_t_junction.png diff --git a/data/textures/rat.png b/data/mods/default/textures/rat.png Binary files differindex d1a0e2ae2..d1a0e2ae2 100644 --- a/data/textures/rat.png +++ b/data/mods/default/textures/rat.png diff --git a/data/textures/sand.png b/data/mods/default/textures/sand.png Binary files differindex 15101a7eb..15101a7eb 100644 --- a/data/textures/sand.png +++ b/data/mods/default/textures/sand.png diff --git a/data/textures/sandstone.png b/data/mods/default/textures/sandstone.png Binary files differindex c4759b4d0..c4759b4d0 100644 --- a/data/textures/sandstone.png +++ b/data/mods/default/textures/sandstone.png diff --git a/data/textures/sapling.png b/data/mods/default/textures/sapling.png Binary files differindex 73f502306..73f502306 100644 --- a/data/textures/sapling.png +++ b/data/mods/default/textures/sapling.png diff --git a/data/textures/scorched_stuff.png b/data/mods/default/textures/scorched_stuff.png Binary files differindex 9ced2fbe8..9ced2fbe8 100644 --- a/data/textures/scorched_stuff.png +++ b/data/mods/default/textures/scorched_stuff.png diff --git a/data/textures/sign.png b/data/mods/default/textures/sign.png Binary files differindex 2e0b3cbef..2e0b3cbef 100644 --- a/data/textures/sign.png +++ b/data/mods/default/textures/sign.png diff --git a/data/textures/sign_back.png b/data/mods/default/textures/sign_back.png Binary files differindex 779e4bc2c..779e4bc2c 100644 --- a/data/textures/sign_back.png +++ b/data/mods/default/textures/sign_back.png diff --git a/data/textures/sign_wall.png b/data/mods/default/textures/sign_wall.png Binary files differindex 06eac1ee9..06eac1ee9 100644 --- a/data/textures/sign_wall.png +++ b/data/mods/default/textures/sign_wall.png diff --git a/data/textures/skybox1.png b/data/mods/default/textures/skybox1.png Binary files differindex 9801d5f4f..9801d5f4f 100644 --- a/data/textures/skybox1.png +++ b/data/mods/default/textures/skybox1.png diff --git a/data/textures/skybox1_dawn.png b/data/mods/default/textures/skybox1_dawn.png Binary files differindex 9711c4781..9711c4781 100644 --- a/data/textures/skybox1_dawn.png +++ b/data/mods/default/textures/skybox1_dawn.png diff --git a/data/textures/skybox1_night.png b/data/mods/default/textures/skybox1_night.png Binary files differindex 32e43a63e..32e43a63e 100644 --- a/data/textures/skybox1_night.png +++ b/data/mods/default/textures/skybox1_night.png diff --git a/data/textures/skybox2.png b/data/mods/default/textures/skybox2.png Binary files differindex a8c94b4d2..a8c94b4d2 100644 --- a/data/textures/skybox2.png +++ b/data/mods/default/textures/skybox2.png diff --git a/data/textures/skybox2_dawn.png b/data/mods/default/textures/skybox2_dawn.png Binary files differindex a761dff2d..a761dff2d 100644 --- a/data/textures/skybox2_dawn.png +++ b/data/mods/default/textures/skybox2_dawn.png diff --git a/data/textures/skybox2_night.png b/data/mods/default/textures/skybox2_night.png Binary files differindex beb07a9cf..beb07a9cf 100644 --- a/data/textures/skybox2_night.png +++ b/data/mods/default/textures/skybox2_night.png diff --git a/data/textures/skybox3.png b/data/mods/default/textures/skybox3.png Binary files differindex 2776ec712..2776ec712 100644 --- a/data/textures/skybox3.png +++ b/data/mods/default/textures/skybox3.png diff --git a/data/textures/skybox3_dawn.png b/data/mods/default/textures/skybox3_dawn.png Binary files differindex 22c8cbef5..22c8cbef5 100644 --- a/data/textures/skybox3_dawn.png +++ b/data/mods/default/textures/skybox3_dawn.png diff --git a/data/textures/skybox3_night.png b/data/mods/default/textures/skybox3_night.png Binary files differindex bb509789b..bb509789b 100644 --- a/data/textures/skybox3_night.png +++ b/data/mods/default/textures/skybox3_night.png diff --git a/data/textures/steel_block.png b/data/mods/default/textures/steel_block.png Binary files differindex 8e2020081..8e2020081 100644 --- a/data/textures/steel_block.png +++ b/data/mods/default/textures/steel_block.png diff --git a/data/textures/steel_ingot.png b/data/mods/default/textures/steel_ingot.png Binary files differindex f6c9414e7..f6c9414e7 100644 --- a/data/textures/steel_ingot.png +++ b/data/mods/default/textures/steel_ingot.png diff --git a/data/textures/stick.png b/data/mods/default/textures/stick.png Binary files differindex 2d31797f0..2d31797f0 100644 --- a/data/textures/stick.png +++ b/data/mods/default/textures/stick.png diff --git a/data/textures/stone.png b/data/mods/default/textures/stone.png Binary files differindex cad0dbe2b..cad0dbe2b 100644 --- a/data/textures/stone.png +++ b/data/mods/default/textures/stone.png diff --git a/data/textures/tnt_bottom.png b/data/mods/default/textures/tnt_bottom.png Binary files differindex 8ba2fca0b..8ba2fca0b 100644 --- a/data/textures/tnt_bottom.png +++ b/data/mods/default/textures/tnt_bottom.png diff --git a/data/textures/tnt_side.png b/data/mods/default/textures/tnt_side.png Binary files differindex d9a2bc4eb..d9a2bc4eb 100644 --- a/data/textures/tnt_side.png +++ b/data/mods/default/textures/tnt_side.png diff --git a/data/textures/tnt_top.png b/data/mods/default/textures/tnt_top.png Binary files differindex a84ffc9af..a84ffc9af 100644 --- a/data/textures/tnt_top.png +++ b/data/mods/default/textures/tnt_top.png diff --git a/data/textures/tool_mesepick.png b/data/mods/default/textures/tool_mesepick.png Binary files differindex a1f3812e0..a1f3812e0 100644 --- a/data/textures/tool_mesepick.png +++ b/data/mods/default/textures/tool_mesepick.png diff --git a/data/textures/tool_steelaxe.png b/data/mods/default/textures/tool_steelaxe.png Binary files differindex 0ad23c93b..0ad23c93b 100644 --- a/data/textures/tool_steelaxe.png +++ b/data/mods/default/textures/tool_steelaxe.png diff --git a/data/textures/tool_steelpick.png b/data/mods/default/textures/tool_steelpick.png Binary files differindex 7982dafeb..7982dafeb 100644 --- a/data/textures/tool_steelpick.png +++ b/data/mods/default/textures/tool_steelpick.png diff --git a/data/textures/tool_steelshovel.png b/data/mods/default/textures/tool_steelshovel.png Binary files differindex ed8413846..ed8413846 100644 --- a/data/textures/tool_steelshovel.png +++ b/data/mods/default/textures/tool_steelshovel.png diff --git a/data/textures/tool_steelsword.png b/data/mods/default/textures/tool_steelsword.png Binary files differindex a74581238..a74581238 100644 --- a/data/textures/tool_steelsword.png +++ b/data/mods/default/textures/tool_steelsword.png diff --git a/data/textures/tool_stoneaxe.png b/data/mods/default/textures/tool_stoneaxe.png Binary files differindex 698ac918f..698ac918f 100644 --- a/data/textures/tool_stoneaxe.png +++ b/data/mods/default/textures/tool_stoneaxe.png diff --git a/data/textures/tool_stonepick.png b/data/mods/default/textures/tool_stonepick.png Binary files differindex b34de6f32..b34de6f32 100644 --- a/data/textures/tool_stonepick.png +++ b/data/mods/default/textures/tool_stonepick.png diff --git a/data/textures/tool_stoneshovel.png b/data/mods/default/textures/tool_stoneshovel.png Binary files differindex ba5243101..ba5243101 100644 --- a/data/textures/tool_stoneshovel.png +++ b/data/mods/default/textures/tool_stoneshovel.png diff --git a/data/textures/tool_stonesword.png b/data/mods/default/textures/tool_stonesword.png Binary files differindex 8f8191f92..8f8191f92 100644 --- a/data/textures/tool_stonesword.png +++ b/data/mods/default/textures/tool_stonesword.png diff --git a/data/textures/tool_woodaxe.png b/data/mods/default/textures/tool_woodaxe.png Binary files differindex 3daa4af72..3daa4af72 100644 --- a/data/textures/tool_woodaxe.png +++ b/data/mods/default/textures/tool_woodaxe.png diff --git a/data/textures/tool_woodpick.png b/data/mods/default/textures/tool_woodpick.png Binary files differindex ea728cca3..ea728cca3 100644 --- a/data/textures/tool_woodpick.png +++ b/data/mods/default/textures/tool_woodpick.png diff --git a/data/textures/tool_woodshovel.png b/data/mods/default/textures/tool_woodshovel.png Binary files differindex 649ab4c38..649ab4c38 100644 --- a/data/textures/tool_woodshovel.png +++ b/data/mods/default/textures/tool_woodshovel.png diff --git a/data/textures/tool_woodsword.png b/data/mods/default/textures/tool_woodsword.png Binary files differindex d6c6be325..d6c6be325 100644 --- a/data/textures/tool_woodsword.png +++ b/data/mods/default/textures/tool_woodsword.png diff --git a/data/textures/torch.png b/data/mods/default/textures/torch.png Binary files differindex 7a953c222..7a953c222 100644 --- a/data/textures/torch.png +++ b/data/mods/default/textures/torch.png diff --git a/data/textures/torch_on_ceiling.png b/data/mods/default/textures/torch_on_ceiling.png Binary files differindex 6965d380e..6965d380e 100644 --- a/data/textures/torch_on_ceiling.png +++ b/data/mods/default/textures/torch_on_ceiling.png diff --git a/data/textures/torch_on_floor.png b/data/mods/default/textures/torch_on_floor.png Binary files differindex 76d1dd5ac..76d1dd5ac 100644 --- a/data/textures/torch_on_floor.png +++ b/data/mods/default/textures/torch_on_floor.png diff --git a/data/textures/tree.png b/data/mods/default/textures/tree.png Binary files differindex 65abfc243..65abfc243 100644 --- a/data/textures/tree.png +++ b/data/mods/default/textures/tree.png diff --git a/data/textures/tree_top.png b/data/mods/default/textures/tree_top.png Binary files differindex 2cdd94f80..2cdd94f80 100644 --- a/data/textures/tree_top.png +++ b/data/mods/default/textures/tree_top.png diff --git a/data/textures/treeprop.png b/data/mods/default/textures/treeprop.png Binary files differindex 77ea4d6d4..77ea4d6d4 100644 --- a/data/textures/treeprop.png +++ b/data/mods/default/textures/treeprop.png diff --git a/data/textures/unknown_block.png b/data/mods/default/textures/unknown_block.png Binary files differindex a27cb8ca9..a27cb8ca9 100644 --- a/data/textures/unknown_block.png +++ b/data/mods/default/textures/unknown_block.png diff --git a/data/textures/unknown_object.png b/data/mods/default/textures/unknown_object.png Binary files differindex 4d6a98d56..4d6a98d56 100644 --- a/data/textures/unknown_object.png +++ b/data/mods/default/textures/unknown_object.png diff --git a/data/textures/water.png b/data/mods/default/textures/water.png Binary files differindex e5f8cdc25..e5f8cdc25 100644 --- a/data/textures/water.png +++ b/data/mods/default/textures/water.png diff --git a/data/textures/wood.png b/data/mods/default/textures/wood.png Binary files differindex 57c1d7c12..57c1d7c12 100644 --- a/data/textures/wood.png +++ b/data/mods/default/textures/wood.png 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); |