oweals/minetest.git
12 years agoMerge branch 'master' into sapier_experimental
sapier [Tue, 7 Feb 2012 19:52:20 +0000 (20:52 +0100)]
Merge branch 'master' into sapier_experimental

12 years agoMerge branch 'object_object_collision' into sapier_experimental
sapier [Tue, 7 Feb 2012 16:04:32 +0000 (17:04 +0100)]
Merge branch 'object_object_collision' into sapier_experimental

12 years agoadded changes missing in last commit
sapier [Tue, 7 Feb 2012 16:01:04 +0000 (17:01 +0100)]
added changes missing in last commit

12 years agoMerge remote branch 'upstream_kahrl/collision_allow_stairs_v2' into object_object_col...
sapier [Tue, 7 Feb 2012 15:57:36 +0000 (16:57 +0100)]
Merge remote branch 'upstream_kahrl/collision_allow_stairs_v2' into object_object_collision

12 years agomove getCollisionBox from ActiveObject to interface class Collidableobject
sapier [Tue, 7 Feb 2012 15:52:32 +0000 (16:52 +0100)]
move getCollisionBox from ActiveObject to interface class Collidableobject

12 years agoFix rail's selection box and tweak the logic that computes pointedthing.node_abovesur...
Kahrl [Tue, 7 Feb 2012 02:05:15 +0000 (03:05 +0100)]
Fix rail's selection box and tweak the logic that computes pointedthing.node_abovesurface -- you no longer can place torches above each other, or do similar placement with other nodes with non-full selection box.

12 years agoTune brightness stuff and fog color
Perttu Ahola [Fri, 3 Feb 2012 12:50:49 +0000 (14:50 +0200)]
Tune brightness stuff and fog color

12 years agoSet default maximum viewing range to a bit more than default server send range to...
Perttu Ahola [Fri, 3 Feb 2012 00:24:36 +0000 (02:24 +0200)]
Set default maximum viewing range to a bit more than default server send range to make fog work well

12 years agoFix calculating if block is in viewing range; fix fog and default minimum accordingly
Perttu Ahola [Mon, 6 Feb 2012 15:26:48 +0000 (17:26 +0200)]
Fix calculating if block is in viewing range; fix fog and default minimum accordingly

12 years agoMerge branch 'object_object_collision' into sapier_experimental
sapier [Sun, 5 Feb 2012 19:35:54 +0000 (20:35 +0100)]
Merge branch 'object_object_collision' into sapier_experimental

12 years agoAdded object <-> object collision handling (player + luaentity support only)
sapier [Sun, 5 Feb 2012 16:23:08 +0000 (17:23 +0100)]
Added object <-> object collision handling (player + luaentity support only)

12 years agodisabled optimization for debug build to enable step by step debugging in gdb
sapier [Sun, 5 Feb 2012 11:47:10 +0000 (12:47 +0100)]
disabled optimization for debug build to enable step by step debugging in gdb

12 years agoMerge remote branch 'upstream_kahrl/collision_allow_stairs_v2' into object_object_col...
sapier [Sun, 5 Feb 2012 11:41:01 +0000 (12:41 +0100)]
Merge remote branch 'upstream_kahrl/collision_allow_stairs_v2' into object_object_collision

12 years agoPlayers stay in environment even when dead, damage flash and fall damage fixes
Kahrl [Mon, 23 Jan 2012 23:00:26 +0000 (00:00 +0100)]
Players stay in environment even when dead, damage flash and fall damage fixes

Don't set m_removed on dead players (dead players are indicated by hp == 0). Local
damage flash is shown whatever the cause was (even from Lua set_hp). PlayerCAO
damage flash matches duration of local damage flash. Fall damage is dealt much more consistently (this is done by disallowing jumping when speed.Y is very negative, up to now jumping could sometimes negate fall damage)

12 years agoModify light values to work a bit better with non-smooth lighting
Perttu Ahola [Sun, 5 Feb 2012 10:02:40 +0000 (12:02 +0200)]
Modify light values to work a bit better with non-smooth lighting

12 years agoadded drawallfaces to luaentities 20120204_luaentity_allfaces
sapier [Sat, 4 Feb 2012 17:08:25 +0000 (18:08 +0100)]
added drawallfaces to luaentities

12 years agoMerge remote branch 'upstream/master' into sapier_experimental
sapier [Sat, 4 Feb 2012 11:41:25 +0000 (12:41 +0100)]
Merge remote branch 'upstream/master' into sapier_experimental

Conflicts:
src/scriptapi.cpp

12 years agoAdd groups = {} to item definition
Perttu Ahola [Sat, 4 Feb 2012 00:20:05 +0000 (02:20 +0200)]
Add groups = {} to item definition

12 years agoNDT_NODEBOX, collision code rewrite with step height, stairs mod -- rebased after...
Kahrl [Thu, 2 Feb 2012 18:20:46 +0000 (19:20 +0100)]
NDT_NODEBOX, collision code rewrite with step height, stairs mod -- rebased after itemdef

12 years agoSet better visual light levels
Perttu Ahola [Thu, 26 Jan 2012 17:57:21 +0000 (19:57 +0200)]
Set better visual light levels

12 years agoFix some warnings on some compilers
Giuseppe Bilotta [Mon, 23 Jan 2012 19:23:56 +0000 (20:23 +0100)]
Fix some warnings on some compilers

ItemStack is a struct, not a class
CollisionInfo is a struct, not a class
InventoryAction is abstract and it needs a virtual destructor

12 years agoMerge remote-tracking branch 'kahrl/hidehud'
Perttu Ahola [Thu, 2 Feb 2012 12:35:18 +0000 (14:35 +0200)]
Merge remote-tracking branch 'kahrl/hidehud'

12 years agoFix server hang when stepping a furnace with a huge dtime
Kahrl [Tue, 31 Jan 2012 19:42:49 +0000 (20:42 +0100)]
Fix server hang when stepping a furnace with a huge dtime

12 years agoPage up/down: don't display the old value, it was a little confusing
Kahrl [Wed, 1 Feb 2012 01:37:01 +0000 (02:37 +0100)]
Page up/down: don't display the old value, it was a little confusing

12 years agoPage up and down change the minimum viewing range
Kahrl [Wed, 1 Feb 2012 01:24:55 +0000 (02:24 +0100)]
Page up and down change the minimum viewing range

12 years agoShow the top line too when only chat, but not HUD is shown
Kahrl [Wed, 1 Feb 2012 00:36:59 +0000 (01:36 +0100)]
Show the top line too when only chat, but not HUD is shown

12 years agoF1 toggles HUD, F2 toggles chat, F5 toggles debug info, F6 toggles profiler pages
Kahrl [Tue, 31 Jan 2012 23:56:30 +0000 (00:56 +0100)]
F1 toggles HUD, F2 toggles chat, F5 toggles debug info, F6 toggles profiler pages

12 years agoFix craftresult_is_preview flood in log and remove unnecessary debug output
Kahrl [Mon, 23 Jan 2012 14:28:57 +0000 (15:28 +0100)]
Fix craftresult_is_preview flood in log and remove unnecessary debug output

12 years agoRemove unnecessary delays from large data transfer unit test
Perttu Ahola [Tue, 24 Jan 2012 10:50:10 +0000 (12:50 +0200)]
Remove unnecessary delays from large data transfer unit test

12 years agoSet default number of maximum users to 100 instead of 20
Perttu Ahola [Tue, 24 Jan 2012 10:02:40 +0000 (12:02 +0200)]
Set default number of maximum users to 100 instead of 20

12 years agoAdd EnvRef:set_timeofday(0...1) and EnvRef:get_timeofday()
Perttu Ahola [Tue, 24 Jan 2012 10:01:59 +0000 (12:01 +0200)]
Add EnvRef:set_timeofday(0...1) and EnvRef:get_timeofday()

12 years agoCall this 0.4.dev-20120122-1 0.4.dev-20120122-1
Perttu Ahola [Sun, 22 Jan 2012 21:05:36 +0000 (23:05 +0200)]
Call this 0.4.dev-20120122-1

12 years agoFix "illegal escape sequence" in MSVC (actually not illegal)
Perttu Ahola [Sun, 22 Jan 2012 18:40:14 +0000 (20:40 +0200)]
Fix "illegal escape sequence" in MSVC (actually not illegal)

12 years agoFix give_initial_stuff mod; experimental mod: dug_item -> drop; scriptapi.cpp: drops...
Kahrl [Sun, 22 Jan 2012 14:57:49 +0000 (15:57 +0100)]
Fix give_initial_stuff mod; experimental mod: dug_item -> drop; scriptapi.cpp: drops -> drop

12 years agotool and ToolItem apply item aliases
Kahrl [Sun, 22 Jan 2012 14:13:00 +0000 (15:13 +0100)]
tool and ToolItem apply item aliases

12 years agoCleanup (some stuff went wrong when reverting 4-byte mapnodes); fix legacy_wallmounted
Kahrl [Sun, 22 Jan 2012 13:55:55 +0000 (14:55 +0100)]
Cleanup (some stuff went wrong when reverting 4-byte mapnodes); fix legacy_wallmounted

12 years agocleanup
Kahrl [Sun, 22 Jan 2012 00:14:57 +0000 (01:14 +0100)]
cleanup

12 years agoCreate node metadata when placing nodes again
Kahrl [Sat, 21 Jan 2012 23:53:21 +0000 (00:53 +0100)]
Create node metadata when placing nodes again

12 years agoClient-side prediction of inventory changes, and some inventory menu fixes
Kahrl [Sat, 21 Jan 2012 23:49:02 +0000 (00:49 +0100)]
Client-side prediction of inventory changes, and some inventory menu fixes

12 years agoInventory menu (with dragging) improved. Crafting is now handled via a IACTION_CRAFT...
Kahrl [Sat, 21 Jan 2012 20:21:41 +0000 (21:21 +0100)]
Inventory menu (with dragging) improved. Crafting is now handled via a IACTION_CRAFT inventory action.

12 years agoNode placement / mineral / serialization / iron freq / node_dig callback
Kahrl [Fri, 20 Jan 2012 23:11:44 +0000 (00:11 +0100)]
Node placement / mineral / serialization / iron freq / node_dig callback

- Node placement code moved to Lua
- Mineral system removed (added default:stone_with_coal and default:stone_with_iron).
- MapBlock and MapNode serialization updated.
- Mapgen: Frequency of iron increased.
- node_dig callback and related changes.

12 years agoadded new entity style irregular_cube
sapier [Sun, 15 Jan 2012 19:30:26 +0000 (20:30 +0100)]
added new entity style irregular_cube

12 years agofixed invalid comment for plant mesh declaration
sapier [Sun, 15 Jan 2012 19:28:39 +0000 (20:28 +0100)]
fixed invalid comment for plant mesh declaration

12 years agoadded plantlike luaentity
sapier [Sun, 15 Jan 2012 19:22:41 +0000 (20:22 +0100)]
added plantlike luaentity

12 years agoadded lua command get_nodes_inside_radius
sapier [Sun, 15 Jan 2012 19:09:55 +0000 (20:09 +0100)]
added lua command get_nodes_inside_radius

12 years agofixed missing removal in static fix
sapier [Sun, 15 Jan 2012 19:06:56 +0000 (20:06 +0100)]
fixed missing removal in static fix

12 years agoadded derived object to add linkable object support
sapier [Sun, 15 Jan 2012 18:55:58 +0000 (19:55 +0100)]
added derived object to add linkable object support

12 years agosao prototype global variables no longer depend on link order to be correctly added...
sapier [Sun, 15 Jan 2012 18:43:31 +0000 (19:43 +0100)]
sao prototype global variables no longer depend on link order to be correctly added to factory

12 years agoFix inventory glitch when connecting as new user
Kahrl [Sat, 14 Jan 2012 10:05:24 +0000 (11:05 +0100)]
Fix inventory glitch when connecting as new user

12 years agoInventory menu changes: Tooltips; dragging; drop from menu. Lag is a bit annoying...
Kahrl [Fri, 13 Jan 2012 11:35:55 +0000 (12:35 +0100)]
Inventory menu changes: Tooltips; dragging; drop from menu. Lag is a bit annoying (even in single player).

12 years agoTool progress bar tweaking
Kahrl [Thu, 12 Jan 2012 07:47:17 +0000 (08:47 +0100)]
Tool progress bar tweaking

12 years agoThe huge item definition and item namespace unification patch (itemdef), see http...
Kahrl [Thu, 12 Jan 2012 05:10:39 +0000 (06:10 +0100)]
The huge item definition and item namespace unification patch (itemdef), see c55.me/minetest/wiki/doku.php?id=changes:itemdef

12 years agoCall this 0.4.dev-20120106-1 0.4.dev-20120106-1
Perttu Ahola [Fri, 6 Jan 2012 18:41:52 +0000 (20:41 +0200)]
Call this 0.4.dev-20120106-1

12 years agoFix key change menu a bit
Perttu Ahola [Fri, 6 Jan 2012 17:50:40 +0000 (19:50 +0200)]
Fix key change menu a bit

12 years agoObjectRef:setpos() to move player properly (a bit shortcuttish implementation)
Perttu Ahola [Fri, 6 Jan 2012 17:17:44 +0000 (19:17 +0200)]
ObjectRef:setpos() to move player properly (a bit shortcuttish implementation)

12 years agoImplement minetest.register_on_dieplayer()
Perttu Ahola [Thu, 5 Jan 2012 22:12:33 +0000 (00:12 +0200)]
Implement minetest.register_on_dieplayer()

12 years agoAdd missing checks to texture caching
Perttu Ahola [Tue, 3 Jan 2012 22:37:46 +0000 (00:37 +0200)]
Add missing checks to texture caching

12 years agoLimit range of ABM timer initial value randomization
Perttu Ahola [Tue, 3 Jan 2012 11:49:47 +0000 (13:49 +0200)]
Limit range of ABM timer initial value randomization

12 years agoUse free rather than delete for malloc'd memory
Perttu Ahola [Mon, 2 Jan 2012 19:42:33 +0000 (21:42 +0200)]
Use free rather than delete for malloc'd memory

12 years agoInitialize ABM timer to random value to spread processing
Perttu Ahola [Mon, 2 Jan 2012 19:06:38 +0000 (21:06 +0200)]
Initialize ABM timer to random value to spread processing

12 years agoFix ABM trigger chance being often way too high
Perttu Ahola [Mon, 2 Jan 2012 18:26:33 +0000 (20:26 +0200)]
Fix ABM trigger chance being often way too high

12 years agoFix server sending stuff before textures have been sent
Perttu Ahola [Mon, 2 Jan 2012 15:44:00 +0000 (17:44 +0200)]
Fix server sending stuff before textures have been sent

12 years agoMark ObjectRef::get_entity_name() deprecated
Perttu Ahola [Mon, 2 Jan 2012 15:33:03 +0000 (17:33 +0200)]
Mark ObjectRef::get_entity_name() deprecated

12 years agoAdd name field to registered entities
Perttu Ahola [Mon, 2 Jan 2012 14:26:40 +0000 (16:26 +0200)]
Add name field to registered entities

12 years agoAdd ObjectRef:getvelocity(), ObjectRef:setyaw() and ObjectRef:getyaw()
Perttu Ahola [Mon, 2 Jan 2012 14:19:52 +0000 (16:19 +0200)]
Add ObjectRef:getvelocity(), ObjectRef:setyaw() and ObjectRef:getyaw()

12 years agoAdd ObjectRef:get_luaentity()
Perttu Ahola [Mon, 2 Jan 2012 14:08:59 +0000 (16:08 +0200)]
Add ObjectRef:get_luaentity()

12 years agoCall this 0.4.dev-20120102-1
Perttu Ahola [Mon, 2 Jan 2012 11:51:43 +0000 (13:51 +0200)]
Call this 0.4.dev-20120102-1

12 years agoMake text area in message dialog a bit larger
Perttu Ahola [Mon, 2 Jan 2012 11:34:24 +0000 (13:34 +0200)]
Make text area in message dialog a bit larger

12 years agoTexture cache on client (mostly made by sapier) (breaks network compatibility)
Perttu Ahola [Mon, 2 Jan 2012 11:31:50 +0000 (13:31 +0200)]
Texture cache on client (mostly made by sapier) (breaks network compatibility)

12 years agoObjectRef:get_entity_name() and fixing of comments in default/init.lua
Perttu Ahola [Mon, 2 Jan 2012 11:12:56 +0000 (13:12 +0200)]
ObjectRef:get_entity_name() and fixing of comments in default/init.lua

12 years agoMake add_entity return a reference to added entity (or nil)
Perttu Ahola [Mon, 2 Jan 2012 10:48:25 +0000 (12:48 +0200)]
Make add_entity return a reference to added entity (or nil)

12 years agoClean up InvRef documentation in default/init.lua a bit
Perttu Ahola [Mon, 2 Jan 2012 01:18:23 +0000 (03:18 +0200)]
Clean up InvRef documentation in default/init.lua a bit

12 years agoImprove mini Lua reference
Perttu Ahola [Tue, 6 Dec 2011 17:02:42 +0000 (19:02 +0200)]
Improve mini Lua reference

12 years agoAdd ObjectRef:get_inventory() and add stuff to documentation comments
Perttu Ahola [Tue, 6 Dec 2011 16:59:52 +0000 (18:59 +0200)]
Add ObjectRef:get_inventory() and add stuff to documentation comments

12 years agoWorking implementation of experimental:luafurnace
Perttu Ahola [Tue, 6 Dec 2011 16:07:13 +0000 (18:07 +0200)]
Working implementation of experimental:luafurnace

12 years agoRandom fixes to InvRef related stuff and a broken luafurnace
Perttu Ahola [Tue, 6 Dec 2011 15:23:58 +0000 (17:23 +0200)]
Random fixes to InvRef related stuff and a broken luafurnace

12 years agoAdd InvRef:get_list() and InvRef:set_list() and fix some things (untested)
Perttu Ahola [Tue, 6 Dec 2011 14:22:08 +0000 (16:22 +0200)]
Add InvRef:get_list() and InvRef:set_list() and fix some things (untested)

12 years agoAdd minetest.get_inventory(location), untested
Perttu Ahola [Tue, 6 Dec 2011 13:55:05 +0000 (15:55 +0200)]
Add minetest.get_inventory(location), untested

12 years agoA small robustness addition to ItemStack
Perttu Ahola [Tue, 6 Dec 2011 13:32:41 +0000 (15:32 +0200)]
A small robustness addition to ItemStack

12 years agoRename InvStack to ItemStack
Perttu Ahola [Tue, 6 Dec 2011 13:28:56 +0000 (15:28 +0200)]
Rename InvStack to ItemStack

12 years agoAdd InvRef and InvStack (currently untested and unusable)
Perttu Ahola [Tue, 6 Dec 2011 13:21:56 +0000 (15:21 +0200)]
Add InvRef and InvStack (currently untested and unusable)

12 years agoAdd default: to everything in default/init.lua (...hopefully doesn't break anything)
Perttu Ahola [Sun, 1 Jan 2012 19:31:47 +0000 (21:31 +0200)]
Add default: to everything in default/init.lua (...hopefully doesn't break anything)

12 years agoFix segfault when generating stuff on world boundaries
Perttu Ahola [Sun, 1 Jan 2012 19:01:55 +0000 (21:01 +0200)]
Fix segfault when generating stuff on world boundaries

12 years agoCorrectly pop stuff from the Lua stack in script_load()
Perttu Ahola [Sat, 31 Dec 2011 12:41:57 +0000 (14:41 +0200)]
Correctly pop stuff from the Lua stack in script_load()

12 years agoAdd virtual destructors to abstract classes
Giuseppe Bilotta [Fri, 9 Dec 2011 10:20:19 +0000 (11:20 +0100)]
Add virtual destructors to abstract classes

IRespawnInitiator and InventoryActions are abstract classes, but they
were missing a virtual destructor. Define it, even if it does nothing
and its absence most likely makes no difference other tha causing
warnings during compile.

12 years agoFix mirrored sign texture
Perttu Ahola [Wed, 28 Dec 2011 16:29:33 +0000 (18:29 +0200)]
Fix mirrored sign texture

12 years agoAdd wooden planks to creative inventory
Perttu Ahola [Wed, 28 Dec 2011 16:24:09 +0000 (18:24 +0200)]
Add wooden planks to creative inventory

12 years agoAdd EnvRef:get_objects_inside_radius(pos, radius)
Perttu Ahola [Wed, 28 Dec 2011 16:18:08 +0000 (18:18 +0200)]
Add EnvRef:get_objects_inside_radius(pos, radius)

12 years agoAdd get_look_dir(), get_look_pitch() and get_look_yaw() for players
Perttu Ahola [Wed, 28 Dec 2011 15:34:07 +0000 (17:34 +0200)]
Add get_look_dir(), get_look_pitch() and get_look_yaw() for players

12 years agoFix minetest.env:get_player_by_name(nil) causing segfault and similar things
Perttu Ahola [Wed, 28 Dec 2011 14:25:29 +0000 (16:25 +0200)]
Fix minetest.env:get_player_by_name(nil) causing segfault and similar things

12 years agoExtend load screen maximum time
Perttu Ahola [Sun, 11 Dec 2011 14:52:19 +0000 (16:52 +0200)]
Extend load screen maximum time

12 years agoAdd minetest.get_modpath(modname)
Perttu Ahola [Sun, 11 Dec 2011 14:49:40 +0000 (16:49 +0200)]
Add minetest.get_modpath(modname)

12 years agoadd_luaentity->add_entity in mods/experimental
Perttu Ahola [Sat, 10 Dec 2011 23:52:37 +0000 (01:52 +0200)]
add_luaentity->add_entity in mods/experimental

12 years agoCall this 0.4.dev-20111209-1 0.4.dev-20111209-1
Perttu Ahola [Fri, 9 Dec 2011 09:36:47 +0000 (11:36 +0200)]
Call this 0.4.dev-20111209-1

12 years agoEnforce modname naming convention
Perttu Ahola [Sun, 4 Dec 2011 16:26:05 +0000 (18:26 +0200)]
Enforce modname naming convention

12 years agoDelete unknown LuaEntities when punched
Perttu Ahola [Sun, 4 Dec 2011 14:25:27 +0000 (16:25 +0200)]
Delete unknown LuaEntities when punched

12 years agoImprove /spawnentity a bit
Perttu Ahola [Sun, 4 Dec 2011 14:20:54 +0000 (16:20 +0200)]
Improve /spawnentity a bit

12 years agoRename EnvRef:add_luaentity to EnvRef:add_entity
Perttu Ahola [Sun, 4 Dec 2011 14:08:37 +0000 (16:08 +0200)]
Rename EnvRef:add_luaentity to EnvRef:add_entity

12 years agoAdd EnvRef:get_node_light(pos, timeofday)
Perttu Ahola [Sun, 4 Dec 2011 13:55:37 +0000 (15:55 +0200)]
Add EnvRef:get_node_light(pos, timeofday)

12 years agoProperly use time_from_last_punch for limiting PvP punch damage
Perttu Ahola [Sun, 4 Dec 2011 12:43:01 +0000 (14:43 +0200)]
Properly use time_from_last_punch for limiting PvP punch damage