zefram/minetest/minetest_engine.git
13 years agoAdd NULL terminations to EnumString definitions
Perttu Ahola [Tue, 29 Nov 2011 14:41:49 +0000 (16:41 +0200)]
Add NULL terminations to EnumString definitions

13 years agoSome MSVC fixes
Perttu Ahola [Tue, 29 Nov 2011 12:13:57 +0000 (14:13 +0200)]
Some MSVC fixes

13 years agoFix CMake install data path
Perttu Ahola [Mon, 28 Nov 2011 20:10:06 +0000 (22:10 +0200)]
Fix CMake install data path

13 years agoSilly MSVC doesn't know how to handle type conversions for parameters of pow(). Help it.
Perttu Ahola [Mon, 28 Nov 2011 19:50:14 +0000 (21:50 +0200)]
Silly MSVC doesn't know how to handle type conversions for parameters of pow(). Help it.

13 years agoUpdate installation in CMakeLists.txt
Perttu Ahola [Mon, 28 Nov 2011 19:14:55 +0000 (21:14 +0200)]
Update installation in CMakeLists.txt

13 years agoRename menu background to menubg.png, move unknown_block.png and unknown_object.png...
Perttu Ahola [Mon, 28 Nov 2011 18:54:53 +0000 (20:54 +0200)]
Rename menu background to menubg.png, move unknown_block.png and unknown_object.png to client, make generating a placeholder image for the filename "" not cause an error

13 years agoGenericNodeMetadata and an example furnace
Perttu Ahola [Mon, 28 Nov 2011 15:11:14 +0000 (17:11 +0200)]
GenericNodeMetadata and an example furnace

13 years agoFix stuff in inventory.{cpp,h}
Perttu Ahola [Mon, 28 Nov 2011 12:55:24 +0000 (14:55 +0200)]
Fix stuff in inventory.{cpp,h}

13 years agoComment out debug output in ServerEnvironment::activateBlock
Perttu Ahola [Mon, 28 Nov 2011 12:54:39 +0000 (14:54 +0200)]
Comment out debug output in ServerEnvironment::activateBlock

13 years agoHandle ActiveBlockModifier intervals properly, down to 1s
Perttu Ahola [Mon, 28 Nov 2011 08:33:47 +0000 (10:33 +0200)]
Handle ActiveBlockModifier intervals properly, down to 1s

13 years agoInitial NodeMetaRef stuff
Perttu Ahola [Mon, 28 Nov 2011 01:06:21 +0000 (03:06 +0200)]
Initial NodeMetaRef stuff

13 years agoLua interface for ActiveBlockModifier
Perttu Ahola [Mon, 28 Nov 2011 00:16:51 +0000 (02:16 +0200)]
Lua interface for ActiveBlockModifier

13 years agoRemove creation of builtin.lua defined minetest.registered_* tables in C
Perttu Ahola [Sun, 27 Nov 2011 23:20:48 +0000 (01:20 +0200)]
Remove creation of builtin.lua defined minetest.registered_* tables in C

13 years agoComment fix in builtin.lua
Perttu Ahola [Sun, 27 Nov 2011 23:17:36 +0000 (01:17 +0200)]
Comment fix in builtin.lua

13 years agoFor consistency, implement calling of on_chat_message callbacks in C
Perttu Ahola [Sun, 27 Nov 2011 23:13:55 +0000 (01:13 +0200)]
For consistency, implement calling of on_chat_message callbacks in C

13 years agoImplement callback registration in Lua instead of C
Perttu Ahola [Sun, 27 Nov 2011 23:11:17 +0000 (01:11 +0200)]
Implement callback registration in Lua instead of C

13 years agoReplace old active block random node modifying things with actual ActiveBlockModifiers
Perttu Ahola [Sun, 27 Nov 2011 22:45:34 +0000 (00:45 +0200)]
Replace old active block random node modifying things with actual ActiveBlockModifiers

13 years agoAdd chat message callback and send functions
Perttu Ahola [Sun, 27 Nov 2011 17:39:36 +0000 (19:39 +0200)]
Add chat message callback and send functions

13 years agoPrint errors from local log to chat
Perttu Ahola [Sun, 27 Nov 2011 12:29:48 +0000 (14:29 +0200)]
Print errors from local log to chat

13 years agoAdd a third log output interface method
Perttu Ahola [Sun, 27 Nov 2011 12:28:54 +0000 (14:28 +0200)]
Add a third log output interface method

13 years agoUse log_deregister_thread in EmergeThread
Perttu Ahola [Sun, 27 Nov 2011 11:52:36 +0000 (13:52 +0200)]
Use log_deregister_thread in EmergeThread

13 years agoAdd log_remove_output and log_deregister_thread
Perttu Ahola [Sun, 27 Nov 2011 11:52:10 +0000 (13:52 +0200)]
Add log_remove_output and log_deregister_thread

13 years agoFix mod dependency sort
Perttu Ahola [Sun, 27 Nov 2011 11:19:20 +0000 (13:19 +0200)]
Fix mod dependency sort

13 years agoAdd depends.txt for mods/give_initial_stuff
Perttu Ahola [Sun, 27 Nov 2011 11:04:27 +0000 (13:04 +0200)]
Add depends.txt for mods/give_initial_stuff

13 years agoWarn about unsatisfied dependencies
Perttu Ahola [Sun, 27 Nov 2011 11:03:54 +0000 (13:03 +0200)]
Warn about unsatisfied dependencies

13 years agoMake blocks to be loaded from disk when the active block area reaches them
Perttu Ahola [Sun, 27 Nov 2011 10:50:35 +0000 (12:50 +0200)]
Make blocks to be loaded from disk when the active block area reaches them

13 years agoFix a random commented-out piece of lighting code, altough it doesn't work any better
Perttu Ahola [Sun, 27 Nov 2011 10:07:22 +0000 (12:07 +0200)]
Fix a random commented-out piece of lighting code, altough it doesn't work any better

13 years agoOptimize lighting by a tiny bit
Perttu Ahola [Sun, 27 Nov 2011 09:52:49 +0000 (11:52 +0200)]
Optimize lighting by a tiny bit

13 years agoSort mods by dependencies defined by modpath/depends.txt in each mod (not mandatory)
Perttu Ahola [Sun, 27 Nov 2011 09:44:05 +0000 (11:44 +0200)]
Sort mods by dependencies defined by modpath/depends.txt in each mod (not mandatory)

13 years agoFix default value of visual in LuaEntityProperties
Perttu Ahola [Sun, 27 Nov 2011 09:02:27 +0000 (11:02 +0200)]
Fix default value of visual in LuaEntityProperties

13 years agoAllow server-side teleporting
Perttu Ahola [Sun, 27 Nov 2011 03:14:46 +0000 (05:14 +0200)]
Allow server-side teleporting

13 years agoFix and tune player movement checks (make them very loose)
Perttu Ahola [Sun, 27 Nov 2011 03:08:44 +0000 (05:08 +0200)]
Fix and tune player movement checks (make them very loose)

13 years agoAdd IDropAction and related stuff
Kahrl [Sun, 27 Nov 2011 03:01:38 +0000 (05:01 +0200)]
Add IDropAction and related stuff

13 years agoImprove luaentity sprite functionality (and add some random stuff)
Perttu Ahola [Sun, 27 Nov 2011 02:31:05 +0000 (04:31 +0200)]
Improve luaentity sprite functionality (and add some random stuff)

13 years agoComment out print("on_generated: ...") in Lua
Perttu Ahola [Sat, 26 Nov 2011 14:14:09 +0000 (16:14 +0200)]
Comment out print("on_generated: ...") in Lua

13 years agoFix liquid source backface culling (was not turned off)
Perttu Ahola [Sat, 26 Nov 2011 14:03:14 +0000 (16:03 +0200)]
Fix liquid source backface culling (was not turned off)

13 years agoFix player getting thrown underground after connecting
Perttu Ahola [Sat, 26 Nov 2011 13:58:02 +0000 (15:58 +0200)]
Fix player getting thrown underground after connecting

13 years agoMake map generator as much threaded as possible (not much benefit with current genera...
Perttu Ahola [Sat, 26 Nov 2011 13:53:52 +0000 (15:53 +0200)]
Make map generator as much threaded as possible (not much benefit with current generator because of small generator chunk size (a single MapBlock))

13 years agoAdd on_generated hook
Perttu Ahola [Sat, 26 Nov 2011 13:19:03 +0000 (15:19 +0200)]
Add on_generated hook

13 years agoImprove player movement speed checking
Perttu Ahola [Sat, 26 Nov 2011 12:30:57 +0000 (14:30 +0200)]
Improve player movement speed checking

13 years agoPlayer movement speed and node access distance checking
Perttu Ahola [Sat, 26 Nov 2011 12:03:56 +0000 (14:03 +0200)]
Player movement speed and node access distance checking

13 years agoIf available, use local textures instead of those sent by server
Perttu Ahola [Sat, 26 Nov 2011 11:32:23 +0000 (13:32 +0200)]
If available, use local textures instead of those sent by server

13 years agoFix TNT script
Perttu Ahola [Sat, 26 Nov 2011 10:47:31 +0000 (12:47 +0200)]
Fix TNT script

13 years agoMake lighting update occur immediately after ClientActiveObject addition to make...
Perttu Ahola [Sat, 26 Nov 2011 10:40:25 +0000 (12:40 +0200)]
Make lighting update occur immediately after ClientActiveObject addition to make objects show up much more responsively

13 years agoReshape LuaEntityCAO implementation a bit and make TNT to blink
Perttu Ahola [Sat, 26 Nov 2011 10:35:30 +0000 (12:35 +0200)]
Reshape LuaEntityCAO implementation a bit and make TNT to blink

13 years agoOptimize active block modifier stuff (was left horribly unoptimized after making...
Perttu Ahola [Sat, 26 Nov 2011 10:34:52 +0000 (12:34 +0200)]
Optimize active block modifier stuff (was left horribly unoptimized after making content ids dynamic)

13 years agoRe-implement give_initial_stuff
Perttu Ahola [Sat, 26 Nov 2011 01:49:46 +0000 (03:49 +0200)]
Re-implement give_initial_stuff

13 years agoException handling in Lua setting get
Perttu Ahola [Sat, 26 Nov 2011 01:40:16 +0000 (03:40 +0200)]
Exception handling in Lua setting get

13 years agoLua setting getter
Perttu Ahola [Sat, 26 Nov 2011 01:37:09 +0000 (03:37 +0200)]
Lua setting getter

13 years agoremove get_nodedef
Perttu Ahola [Sat, 26 Nov 2011 01:22:54 +0000 (03:22 +0200)]
remove get_nodedef

13 years agoon_newplayer and on_respawnplayer callbacks
Perttu Ahola [Sat, 26 Nov 2011 01:20:19 +0000 (03:20 +0200)]
on_newplayer and on_respawnplayer callbacks

13 years agoliquid_type -> liquidtype
Perttu Ahola [Sat, 26 Nov 2011 01:19:25 +0000 (03:19 +0200)]
liquid_type -> liquidtype

13 years agoMake node definitions available to Lua
Perttu Ahola [Sat, 26 Nov 2011 00:26:19 +0000 (02:26 +0200)]
Make node definitions available to Lua

13 years agoRemove give_initial_stuff
Perttu Ahola [Fri, 25 Nov 2011 22:55:50 +0000 (00:55 +0200)]
Remove give_initial_stuff

13 years agoAdd node definitions in Lua and do not use content_mapnode_init anymore (except in...
Kahrl [Fri, 25 Nov 2011 22:09:36 +0000 (00:09 +0200)]
Add node definitions in Lua and do not use content_mapnode_init anymore (except in test.cpp)

13 years agoModify CONTENT_AIR and CONTENT_IGNORE handling in nodedef.cpp
Perttu Ahola [Fri, 25 Nov 2011 20:45:55 +0000 (22:45 +0200)]
Modify CONTENT_AIR and CONTENT_IGNORE handling in nodedef.cpp

13 years agoFix random node definition stuff
Perttu Ahola [Fri, 25 Nov 2011 20:06:50 +0000 (22:06 +0200)]
Fix random node definition stuff

13 years agoAdd builtin.lua
Perttu Ahola [Fri, 25 Nov 2011 19:52:09 +0000 (21:52 +0200)]
Add builtin.lua

13 years agobuiltin.lua
Perttu Ahola [Fri, 25 Nov 2011 19:32:12 +0000 (21:32 +0200)]
builtin.lua

13 years agoAdd object reference to Lua on_place/dig/punchnode parameters
Perttu Ahola [Fri, 25 Nov 2011 17:49:20 +0000 (19:49 +0200)]
Add object reference to Lua on_place/dig/punchnode parameters

13 years agoFix "warning: comparison between signed and unsigned integer expressions"
Perttu Ahola [Fri, 25 Nov 2011 17:45:04 +0000 (19:45 +0200)]
Fix "warning: comparison between signed and unsigned integer expressions"

13 years agoSome node definitions in Lua
Perttu Ahola [Fri, 25 Nov 2011 16:57:47 +0000 (18:57 +0200)]
Some node definitions in Lua

13 years agoDuplicate last tile image automatically to all for lua node definitions
Perttu Ahola [Fri, 25 Nov 2011 16:57:17 +0000 (18:57 +0200)]
Duplicate last tile image automatically to all for lua node definitions

13 years agoMake map generator more responsive
Perttu Ahola [Fri, 25 Nov 2011 16:17:59 +0000 (18:17 +0200)]
Make map generator more responsive

13 years agoPrint out number of blocks in memory at unload
Perttu Ahola [Fri, 25 Nov 2011 16:08:47 +0000 (18:08 +0200)]
Print out number of blocks in memory at unload

13 years agoDon't allow placing CONTENT_IGNORE with Map::setNode() because it is never useful...
Perttu Ahola [Fri, 25 Nov 2011 15:42:41 +0000 (17:42 +0200)]
Don't allow placing CONTENT_IGNORE with Map::setNode() because it is never useful and is only caused by bugs.

13 years agoImprove debug stack printing interface
Perttu Ahola [Fri, 25 Nov 2011 15:42:12 +0000 (17:42 +0200)]
Improve debug stack printing interface

13 years agoMake liquid_alternative_* to be strings
Perttu Ahola [Fri, 25 Nov 2011 15:00:50 +0000 (17:00 +0200)]
Make liquid_alternative_* to be strings

13 years agoMode node definition loading from Lua (still not finished), fix metadata creation...
Perttu Ahola [Fri, 25 Nov 2011 14:34:12 +0000 (16:34 +0200)]
Mode node definition loading from Lua (still not finished), fix metadata creation from name

13 years agoStore metadata as metadata name in node definition
Perttu Ahola [Fri, 25 Nov 2011 13:38:18 +0000 (15:38 +0200)]
Store metadata as metadata name in node definition

13 years agoSet block modified flag when node metadata inventory is modified
Perttu Ahola [Fri, 25 Nov 2011 13:19:42 +0000 (15:19 +0200)]
Set block modified flag when node metadata inventory is modified

13 years agoAdd names to NodeMetadata
Perttu Ahola [Fri, 25 Nov 2011 13:17:54 +0000 (15:17 +0200)]
Add names to NodeMetadata

13 years agoAdd Lua node definition stuff (not complete)
Perttu Ahola [Fri, 25 Nov 2011 12:58:42 +0000 (14:58 +0200)]
Add Lua node definition stuff (not complete)

13 years agoAdd texture modifier [brighten and modify [toalpha to modify existing texture, not...
Perttu Ahola [Tue, 22 Nov 2011 22:27:12 +0000 (00:27 +0200)]
Add texture modifier [brighten and modify [toalpha to modify existing texture, not read a new base

13 years agoRandom Lua tweaks/fixes
Perttu Ahola [Mon, 21 Nov 2011 12:56:03 +0000 (14:56 +0200)]
Random Lua tweaks/fixes

13 years agoMake object hit delay smaller for fun; actually it should be roughly zero and hit...
Perttu Ahola [Mon, 21 Nov 2011 12:40:16 +0000 (14:40 +0200)]
Make object hit delay smaller for fun; actually it should be roughly zero and hit damage should be calculated from the amount of time since last punch, limited to a maximum value

13 years agoRelatively snappy object-ground collision detection
Perttu Ahola [Mon, 21 Nov 2011 12:36:21 +0000 (14:36 +0200)]
Relatively snappy object-ground collision detection

13 years agoWhen digging a node, don't switch to punching an object without raising button
Perttu Ahola [Mon, 21 Nov 2011 12:34:43 +0000 (14:34 +0200)]
When digging a node, don't switch to punching an object without raising button

13 years agoDefault to saving stuff more often to minimize lag caused by a single save
Perttu Ahola [Mon, 21 Nov 2011 12:13:28 +0000 (14:13 +0200)]
Default to saving stuff more often to minimize lag caused by a single save

13 years agoDon't print 'Blocks modified by: ' in Map::timerUpdate if no blocks were written
Perttu Ahola [Mon, 21 Nov 2011 11:44:10 +0000 (13:44 +0200)]
Don't print 'Blocks modified by: ' in Map::timerUpdate if no blocks were written

13 years agoDon't print all block saves to verbosestream; rather print counts of distinct modifiers
Perttu Ahola [Mon, 21 Nov 2011 11:35:32 +0000 (13:35 +0200)]
Don't print all block saves to verbosestream; rather print counts of distinct modifiers

13 years agoAdd reason parameter to setModified and print it out to verbosestream when saving...
Perttu Ahola [Mon, 21 Nov 2011 11:29:16 +0000 (13:29 +0200)]
Add reason parameter to setModified and print it out to verbosestream when saving block

13 years agoImprove LuaEntity velocity/acceleration handling (by kahrl); implement staticdata...
Perttu Ahola [Mon, 21 Nov 2011 09:15:15 +0000 (11:15 +0200)]
Improve LuaEntity velocity/acceleration handling (by kahrl); implement staticdata interface to Lua

13 years agoMess up with node definitions to make CONTENT_IGNORE be correctly interpreted when...
Perttu Ahola [Sat, 19 Nov 2011 17:06:19 +0000 (19:06 +0200)]
Mess up with node definitions to make CONTENT_IGNORE be correctly interpreted when creating meshes

13 years agoOptimize map generator for the dynamic content ids a bit
Perttu Ahola [Sat, 19 Nov 2011 16:48:09 +0000 (18:48 +0200)]
Optimize map generator for the dynamic content ids a bit

13 years agoMake added nodes give the corresponding NodeItem as of now (placeholder code)
Perttu Ahola [Thu, 17 Nov 2011 22:05:00 +0000 (00:05 +0200)]
Make added nodes give the corresponding NodeItem as of now (placeholder code)

13 years agoFix tool wear
Perttu Ahola [Thu, 17 Nov 2011 14:50:06 +0000 (16:50 +0200)]
Fix tool wear

13 years agoFalling sand and gravel
Perttu Ahola [Thu, 17 Nov 2011 14:21:17 +0000 (16:21 +0200)]
Falling sand and gravel

13 years agoNode place/dig Lua callbacks
Perttu Ahola [Thu, 17 Nov 2011 09:22:24 +0000 (11:22 +0200)]
Node place/dig Lua callbacks

13 years agoFix crafted tools being a very tiny bit worn in default/init.lua
Perttu Ahola [Thu, 17 Nov 2011 08:23:20 +0000 (10:23 +0200)]
Fix crafted tools being a very tiny bit worn in default/init.lua

13 years agoRemove crafting definitions from content_craft.cpp
Perttu Ahola [Thu, 17 Nov 2011 08:19:31 +0000 (10:19 +0200)]
Remove crafting definitions from content_craft.cpp

13 years agoAdd classic crafting recipes to default/init.lua
Perttu Ahola [Thu, 17 Nov 2011 08:16:02 +0000 (10:16 +0200)]
Add classic crafting recipes to default/init.lua

13 years agoCatch SerializationError in CCraftDefManager::getCraftResult()
Perttu Ahola [Thu, 17 Nov 2011 08:13:38 +0000 (10:13 +0200)]
Catch SerializationError in CCraftDefManager::getCraftResult()

13 years agoAdd note about craft_get_result() not being used anymore, but don't remove before...
Perttu Ahola [Thu, 17 Nov 2011 00:30:52 +0000 (02:30 +0200)]
Add note about craft_get_result() not being used anymore, but don't remove before it's contents have been transferred to scripts

13 years agoCrafting definition in scripts
Perttu Ahola [Thu, 17 Nov 2011 00:28:46 +0000 (02:28 +0200)]
Crafting definition in scripts

13 years agoImprove item serialization
Perttu Ahola [Wed, 16 Nov 2011 20:47:37 +0000 (22:47 +0200)]
Improve item serialization

13 years agoAllow inputting nodename of MaterialItem in ItemSpec::checkItem
Perttu Ahola [Wed, 16 Nov 2011 17:10:49 +0000 (19:10 +0200)]
Allow inputting nodename of MaterialItem in ItemSpec::checkItem

13 years agoFix another silly mistake making CONTENT_IGNORE definition not being what it should
Perttu Ahola [Wed, 16 Nov 2011 14:56:55 +0000 (16:56 +0200)]
Fix another silly mistake making CONTENT_IGNORE definition not being what it should

13 years agoFix silly misspelling in mapgen that made junglegrass to be CONTENT_IGNORE
Perttu Ahola [Wed, 16 Nov 2011 14:52:36 +0000 (16:52 +0200)]
Fix silly misspelling in mapgen that made junglegrass to be CONTENT_IGNORE

13 years agoActually fill in the NewNameGetter names to allow map generator operation and crafting
Perttu Ahola [Wed, 16 Nov 2011 14:48:04 +0000 (16:48 +0200)]
Actually fill in the NewNameGetter names to allow map generator operation and crafting