oweals/minetest.git
12 years agoJoint positioning and rotation code, and fix a problem related to their lua API
MirceaKitsune [Fri, 26 Oct 2012 08:46:46 +0000 (11:46 +0300)]
Joint positioning and rotation code, and fix a problem related to their lua API

Attempt to move the animation system to a more correct implementation, rather than using object properties. Incomplete and breaks functionality

12 years agoAllow the LUA API to set animations to meshes as well as the animation speed. Also...
MirceaKitsune [Thu, 25 Oct 2012 20:29:07 +0000 (23:29 +0300)]
Allow the LUA API to set animations to meshes as well as the animation speed. Also update animations only when needed.

Support for animation blending, though for some reason it doesn't work.

Don't enable animation transitions by default for many reaosons

Object property to store individual bone positions. LUA can specify a bone name followed by a bone position. No functionality yet. Bone rotation to be added in the following commit

Same system for bone rotation, plus a few other things I missed

12 years agoGet the mesh working through the memory cache properly. Most credit goes to celeron55...
MirceaKitsune [Wed, 24 Oct 2012 19:10:05 +0000 (22:10 +0300)]
Get the mesh working through the memory cache properly. Most credit goes to celeron55 for the help on this code

Get the texture from memory as well

Add .x to the list of supported formats

Update LUA API documentation

12 years agoAdd a subfolder for models and transfer models from server to client
MirceaKitsune [Tue, 23 Oct 2012 21:11:24 +0000 (00:11 +0300)]
Add a subfolder for models and transfer models from server to client

(obj, md2 and md3 are currently allowed)

Get rid of the texture string and use the existing textures array. Segmented meshes have multiple materials, and this will allow us to texture each. Do not switch to this commit yet!

If a texture string is left empty in LUA, don't modify that material. Useful so a script can change specific textures without affecting others

12 years agoFix material properties and allow lighting. Models should now be affected by light...
MirceaKitsune [Tue, 23 Oct 2012 20:57:36 +0000 (23:57 +0300)]
Fix material properties and allow lighting. Models should now be affected by light instead of being black

12 years agoProperly read the mesh from LUA.
MirceaKitsune [Tue, 23 Oct 2012 17:03:06 +0000 (20:03 +0300)]
Properly read the mesh from LUA.

Players can now be set to meshes using the following test script:

function switch_player_visual()
prop = {
mesh="player.obj",
texture="player.png",
visual="mesh",
}
for _, obj in pairs(minetest.get_connected_players()) do
obj:set_properties(prop)
end
minetest.after(1.0, switch_player_visual)
end
minetest.after(1.0, switch_player_visual)

12 years ago3D model support for players using Irrlicht. Also ready the basis for mesh support...
MirceaKitsune [Mon, 22 Oct 2012 21:03:14 +0000 (00:03 +0300)]
3D model support for players using Irrlicht. Also ready the basis for mesh support on nodes / items via LUA (to be done). Supports any mesh format compatible with Irrlicht, but animations are not set up yet.

12 years agoRevert "Don't leak textures all over the place"
Perttu Ahola [Sun, 25 Nov 2012 14:39:07 +0000 (16:39 +0200)]
Revert "Don't leak textures all over the place"

This causes textures to be deleted before they are no longer accessed,
resulting in a segmentation fault. This needs to be rewritten in such a way
that textures are deleted when the client disconnects from a server.

This reverts commit 41c00e87d42580881d8c7001f39014814e3b55f2.

12 years agoFix trees growing into any type of node
Ilya Zhuravlev [Thu, 22 Nov 2012 20:36:52 +0000 (00:36 +0400)]
Fix trees growing into any type of node

12 years agoMerge pull request #268 from khonkhortisan/image_button
xyzz [Thu, 22 Nov 2012 17:13:18 +0000 (09:13 -0800)]
Merge pull request #268 from khonkhortisan/image_button

Allow transparent image_buttons

12 years agoFix server crash on /clearpassword
Anthony [Sun, 18 Nov 2012 23:18:45 +0000 (18:18 -0500)]
Fix server crash on /clearpassword

According to #253, using `/clearpassword` without an argument causes the server to crash from an assertion failure. I've resubmitted matttpt's patch as a pull request to aid in merging.

12 years agoMerge pull request #284 from RealBadAngel/master
xyzz [Mon, 12 Nov 2012 19:50:58 +0000 (11:50 -0800)]
Merge pull request #284 from RealBadAngel/master

Adding backgrounds to formspec

12 years agoMerge pull request #286 from PilzAdam/digging_animation
PilzAdam [Sat, 10 Nov 2012 18:33:16 +0000 (10:33 -0800)]
Merge pull request #286 from PilzAdam/digging_animation

Add jordan4ibanez' better digging animation

12 years agoAdd jordan4ibanez' better digging animation 286/head
PilzAdam [Sat, 10 Nov 2012 16:36:56 +0000 (17:36 +0100)]
Add jordan4ibanez' better digging animation

12 years agoSwap out pixel-perfect nyan cat by request of Chris Torres
Perttu Ahola [Fri, 9 Nov 2012 18:14:04 +0000 (20:14 +0200)]
Swap out pixel-perfect nyan cat by request of Chris Torres

12 years agoadded GUI checkboxes in Settings tab for the aforementioned video settings.
Vanessa Ezekowitz [Sun, 4 Nov 2012 15:58:44 +0000 (10:58 -0500)]
added GUI checkboxes in Settings tab for the aforementioned video settings.

12 years agoAdded video settings filter options via config file - second try :-)
Vanessa Ezekowitz [Sun, 4 Nov 2012 15:51:40 +0000 (10:51 -0500)]
Added video settings filter options via config file - second try :-)

Set one or more of these in the config to turn the related option on:

mip_map = 1
anisotropic_filter = 1
bilinear_filter = 1
trilinear_filter = 1

12 years agoFix unnecessary network protocol incompatibility in ContentFeatures
Perttu Ahola [Thu, 8 Nov 2012 18:43:32 +0000 (20:43 +0200)]
Fix unnecessary network protocol incompatibility in ContentFeatures

12 years agoAdding background to Formspec 284/head
RealBadAngel [Thu, 8 Nov 2012 18:22:37 +0000 (19:22 +0100)]
Adding background to Formspec

12 years agoMerge pull request #279 from RealBadAngel/patch-2
PilzAdam [Mon, 5 Nov 2012 16:12:12 +0000 (08:12 -0800)]
Merge pull request #279 from RealBadAngel/patch-2

Formspec: Draw images before inventories. Allows to use image as backgro...

12 years agoFormspec: Draw images before inventories. Allows to use image as background. 279/head
RealBadAngel [Sun, 4 Nov 2012 20:18:28 +0000 (21:18 +0100)]
Formspec: Draw images before inventories. Allows to use image as background.

12 years agoMerge pull request #274 from PilzAdam/falling 267/head
PilzAdam [Sat, 3 Nov 2012 22:14:14 +0000 (15:14 -0700)]
Merge pull request #274 from PilzAdam/falling

Fix a bug in falling code where entities get stuck

12 years agoMerge pull request #243 from xyzz/liquid_renewable
PilzAdam [Sat, 3 Nov 2012 19:34:44 +0000 (12:34 -0700)]
Merge pull request #243 from xyzz/liquid_renewable

Add liquid_renewable property, allow non-renewable liquids.

12 years agoMerge pull request #273 from PilzAdam/air
PilzAdam [Sat, 3 Nov 2012 17:36:46 +0000 (10:36 -0700)]
Merge pull request #273 from PilzAdam/air

Make air and ignore drop nothing

12 years agoMake air and ignore drop nothing 273/head
PilzAdam [Sat, 3 Nov 2012 17:29:01 +0000 (18:29 +0100)]
Make air and ignore drop nothing

12 years agoFix a bug in falling code where entities get stuck 274/head
PilzAdam [Sat, 3 Nov 2012 17:07:49 +0000 (18:07 +0100)]
Fix a bug in falling code where entities get stuck

12 years agoDon't leak textures all over the place
Kahrl [Thu, 2 Feb 2012 03:11:56 +0000 (04:11 +0100)]
Don't leak textures all over the place

12 years agoFix flowing liquid animation direction calculation
Perttu Ahola [Fri, 2 Nov 2012 16:05:42 +0000 (18:05 +0200)]
Fix flowing liquid animation direction calculation

12 years agoMerge pull request #272 from PilzAdam/pow
PilzAdam [Fri, 2 Nov 2012 15:35:30 +0000 (08:35 -0700)]
Merge pull request #272 from PilzAdam/pow

Replace pow() with multiplikation to improve speed

12 years agoReplace pow() with multiplikation to improve speed 272/head
PilzAdam [Fri, 2 Nov 2012 15:24:57 +0000 (16:24 +0100)]
Replace pow() with multiplikation to improve speed

12 years agoMerge pull request #270 from PilzAdam/master
PilzAdam [Thu, 1 Nov 2012 18:00:57 +0000 (11:00 -0700)]
Merge pull request #270 from PilzAdam/master

Move falling to builtin

12 years agoAdd functions to the default mod of minimal game to support old code 270/head
PilzAdam [Thu, 1 Nov 2012 17:49:12 +0000 (18:49 +0100)]
Add functions to the default mod of minimal game to support old code

12 years agoAdd falling_node to special groups in lua-api.txt
PilzAdam [Thu, 1 Nov 2012 11:33:24 +0000 (12:33 +0100)]
Add falling_node to special groups in lua-api.txt

12 years agoRemove a useless comment
PilzAdam [Wed, 31 Oct 2012 18:08:00 +0000 (19:08 +0100)]
Remove a useless comment

12 years agoMove falling to builtin
PilzAdam [Wed, 31 Oct 2012 18:06:11 +0000 (19:06 +0100)]
Move falling to builtin

12 years agoAllow transparent image_buttons 268/head
Kyle [Thu, 18 Oct 2012 19:06:47 +0000 (12:06 -0700)]
Allow transparent image_buttons

12 years agoAdd nodedef.on_blast() to lua_api.txt in order to support chained explosions of any...
Perttu Ahola [Sun, 9 Sep 2012 18:54:11 +0000 (21:54 +0300)]
Add nodedef.on_blast() to lua_api.txt in order to support chained explosions of any explosives

12 years agoStatically store always_collect field of __builtin:item
Perttu Ahola [Sun, 9 Sep 2012 18:29:44 +0000 (21:29 +0300)]
Statically store always_collect field of __builtin:item

12 years agoAdd dtime_s to entity activation
Perttu Ahola [Sun, 9 Sep 2012 14:12:29 +0000 (17:12 +0300)]
Add dtime_s to entity activation

12 years agoFix ServerActiveObject stuff
Perttu Ahola [Sun, 9 Sep 2012 11:18:14 +0000 (14:18 +0300)]
Fix ServerActiveObject stuff

12 years agoFix wielditem entity drawtype brightness control
Perttu Ahola [Sun, 9 Sep 2012 10:26:52 +0000 (13:26 +0300)]
Fix wielditem entity drawtype brightness control

12 years agoFix ObjectRef:punch()
Perttu Ahola [Sun, 9 Sep 2012 09:05:38 +0000 (12:05 +0300)]
Fix ObjectRef:punch()

12 years agoAdd liquid_renewable property. 243/head
Ilya Zhuravlev [Fri, 7 Sep 2012 16:48:12 +0000 (20:48 +0400)]
Add liquid_renewable property.

12 years agoVersion 0.4.3 0.4.3
Perttu Ahola [Tue, 4 Sep 2012 22:31:06 +0000 (01:31 +0300)]
Version 0.4.3

12 years agoPrevent world creation if the world already exists
Matthew I [Thu, 30 Aug 2012 19:41:48 +0000 (15:41 -0400)]
Prevent world creation if the world already exists

12 years agoEnforce stricter world names using a blacklist
Matthew I [Sun, 2 Sep 2012 20:51:17 +0000 (16:51 -0400)]
Enforce stricter world names using a blacklist

Blacklisted characters are: / \

12 years agoAdd aux1_descends to key change menu
Perttu Ahola [Tue, 4 Sep 2012 21:55:19 +0000 (00:55 +0300)]
Add aux1_descends to key change menu

12 years agoVersion 0.4.3-rc0; increase PROTOCOL_VERSION due to backwards-incompatible InventoryL...
Perttu Ahola [Tue, 4 Sep 2012 21:39:43 +0000 (00:39 +0300)]
Version 0.4.3-rc0; increase PROTOCOL_VERSION due to backwards-incompatible InventoryList width field

12 years agoRemove "Unknown inventory identifier" deserialization errors, because they can break...
Perttu Ahola [Tue, 4 Sep 2012 20:02:56 +0000 (23:02 +0300)]
Remove "Unknown inventory identifier" deserialization errors, because they can break forward compatibility

12 years agoReorganize ClientMap rendering code for a bit more performance
Perttu Ahola [Tue, 4 Sep 2012 06:48:26 +0000 (09:48 +0300)]
Reorganize ClientMap rendering code for a bit more performance

- Don't select blocks for drawing in every frame
- Sort meshbuffers by material before drawing

12 years agoFix shift-descend to ladders from a floor
Perttu Ahola [Mon, 3 Sep 2012 20:31:51 +0000 (23:31 +0300)]
Fix shift-descend to ladders from a floor

12 years agoFix moving stuff into a mismatched stack in a "infinite" inventory
Perttu Ahola [Sun, 2 Sep 2012 20:01:40 +0000 (23:01 +0300)]
Fix moving stuff into a mismatched stack in a "infinite" inventory

12 years agoMake inventory GUI do sane things when server-side inventory acts unusually
Perttu Ahola [Sun, 2 Sep 2012 19:51:38 +0000 (22:51 +0300)]
Make inventory GUI do sane things when server-side inventory acts unusually

12 years agoFix bug in moving a larger sized stack in inventory on top of another
Perttu Ahola [Sun, 2 Sep 2012 17:13:11 +0000 (20:13 +0300)]
Fix bug in moving a larger sized stack in inventory on top of another

- You have 2 stacks: a with x items and b with y<x items
- Take a with your mouse and place it on b
- Whole stack a moves to b
- (y * 2 - x) items move from b to a
- (x - y) items are left to the mouse cursor

12 years agoAdd overridable function for handling dropped items from nodes
Perttu Ahola [Sun, 2 Sep 2012 16:38:44 +0000 (19:38 +0300)]
Add overridable function for handling dropped items from nodes

12 years agoFix github issue #224
Perttu Ahola [Sat, 1 Sep 2012 15:32:15 +0000 (18:32 +0300)]
Fix github issue #224

12 years agoFix issue with openal mac os x compile
Thomas Lauro [Wed, 25 Jul 2012 13:56:09 +0000 (15:56 +0200)]
Fix issue with openal mac os x compile

12 years agoFix GUIKeyChangeMenu so that '/' can be inserted on a finnish keyboard
Perttu Ahola [Sat, 1 Sep 2012 15:02:29 +0000 (18:02 +0300)]
Fix GUIKeyChangeMenu so that '/' can be inserted on a finnish keyboard

12 years agoA bunch of GUIKeyChangeMenu fixes
Thomas Lauro [Thu, 26 Jul 2012 07:49:00 +0000 (09:49 +0200)]
A bunch of GUIKeyChangeMenu fixes

- Display message when associating a key already in use
- Fix issue for not beeing able to assign space to an action
- Cleaning up
- Make it build (by celeron55)

12 years agoAttempt to fix flying gravel and dirt
Perttu Ahola [Sat, 1 Sep 2012 10:41:15 +0000 (13:41 +0300)]
Attempt to fix flying gravel and dirt

12 years agoSmooth transition to the desert biome.
Sergey Gilfanov [Thu, 26 Jul 2012 18:52:05 +0000 (22:52 +0400)]
Smooth transition to the desert biome.

12 years agoFix the bouncy node related stuff a bit
Perttu Ahola [Sat, 1 Sep 2012 10:21:52 +0000 (13:21 +0300)]
Fix the bouncy node related stuff a bit

12 years agoAdd bouncy node group
Perttu Ahola [Sat, 1 Sep 2012 09:58:37 +0000 (12:58 +0300)]
Add bouncy node group

12 years agoAdd disable_jump and fall_damage_add_percent node groups
Perttu Ahola [Sat, 1 Sep 2012 09:07:27 +0000 (12:07 +0300)]
Add disable_jump and fall_damage_add_percent node groups

12 years agoAdd InventoryList width property & allow custom crafting grids.
Ilya Zhuravlev [Sun, 19 Aug 2012 21:29:56 +0000 (01:29 +0400)]
Add InventoryList width property & allow custom crafting grids.

12 years agoMake shift the default descent control on ladders and when flying
sfan5 [Sun, 19 Aug 2012 11:15:42 +0000 (13:15 +0200)]
Make shift the default descent control on ladders and when flying

"aux1_descends" setting switches to the old descend control.

12 years agoDon't crash in "unexpected multibyte character"; just print it in log. Github #222
Perttu Ahola [Sat, 1 Sep 2012 06:23:39 +0000 (09:23 +0300)]
Don't crash in "unexpected multibyte character"; just print it in log. Github #222

12 years agoUse proper alpha blit in some more texture modifiers
Perttu Ahola [Fri, 31 Aug 2012 15:06:47 +0000 (18:06 +0300)]
Use proper alpha blit in some more texture modifiers

12 years agoProperly initialize baseimg for texture modifier [combine:WxH:X,Y=filename:X,Y=filename2
Perttu Ahola [Fri, 31 Aug 2012 14:58:55 +0000 (17:58 +0300)]
Properly initialize baseimg for texture modifier [combine:WxH:X,Y=filename:X,Y=filename2

12 years agoFix black display inside opaque water
Matthew I [Sun, 29 Jul 2012 01:41:32 +0000 (21:41 -0400)]
Fix black display inside opaque water

Opaque water's solidness was being set to 2, like a normal node.
When you swim, it is treated like a solid block, and the display
goes black.  Setting it to 1 like transparent water allows you to
see.

It looks somewhat awkward when you swim, look up, and see an opaque
wall of water (the surface), but there isn't much that can be done
about it.  If you made the water transparent so it looked good,
it would defeat the purpose :) .

12 years agoFix github issue #213: Dropping unknown items crashes the game
Perttu Ahola [Sun, 19 Aug 2012 07:55:04 +0000 (10:55 +0300)]
Fix github issue #213: Dropping unknown items crashes the game

The items will now just disappear when dropped.

12 years agoFix crash when furnace is full (minimal game)
Perttu Ahola [Sun, 12 Aug 2012 14:11:23 +0000 (17:11 +0300)]
Fix crash when furnace is full (minimal game)

12 years agoMove chat commands to Lua and remove servercommand.{cpp,h}
Matthew I [Sun, 22 Jul 2012 13:42:43 +0000 (09:42 -0400)]
Move chat commands to Lua and remove servercommand.{cpp,h}

Commands moved:
 /me
 /status
 /time
 /shutdown
 /ban
 /clearobjects

12 years agoAdd ban management routines to Lua API
Matthew I [Wed, 1 Aug 2012 21:17:52 +0000 (17:17 -0400)]
Add ban management routines to Lua API

Those functions are:
 * minetest.get_ban_list()
 * minetest.get_ban_description(ip_or_name)
 * minetest.ban_player(name)
 * minetest.unban_player_or_ip(ip_or_name)

12 years agoExtend Lua API in order to implement chat commands
Matthew I [Sat, 28 Jul 2012 19:27:31 +0000 (15:27 -0400)]
Extend Lua API in order to implement chat commands

minetest.get_server_status()
minetest.request_shutdown()
EnvRef:clear_objects()

12 years agoRemove trailing comma after player list in server status string
Matthew I [Sat, 28 Jul 2012 19:49:23 +0000 (15:49 -0400)]
Remove trailing comma after player list in server status string

12 years agoAllow digging of unknown nodes
Matthew I [Mon, 30 Jul 2012 13:45:26 +0000 (09:45 -0400)]
Allow digging of unknown nodes

This allows the removal of nodes with unknown types.
get_item_callback() (C++) would fail if a node has an unknown type.  Now it
will try using the callback from minetest.nodedef_default in this case.
Also, minetest.node_dig() (Lua) was altered to always allow digging when
the node definition is empty (i.e. unknown node).

12 years agoFix wrong amount of nodes being dropped from inventory
Perttu Ahola [Sun, 12 Aug 2012 12:49:06 +0000 (15:49 +0300)]
Fix wrong amount of nodes being dropped from inventory

12 years agofix node timers so on_timer gets the correct position
darkrose [Fri, 10 Aug 2012 02:34:02 +0000 (12:34 +1000)]
fix node timers so on_timer gets the correct position

12 years agoRemove unwanted ! from ifs in inventory record-for-rollback code
Perttu Ahola [Sun, 12 Aug 2012 08:09:38 +0000 (11:09 +0300)]
Remove unwanted ! from ifs in inventory record-for-rollback code

12 years agoCall this 0.4.2-rc1 0.4.2-rc1
Perttu Ahola [Sat, 28 Jul 2012 13:31:45 +0000 (16:31 +0300)]
Call this 0.4.2-rc1

12 years agoFix inventory segfault when rollback recording is disabled
Perttu Ahola [Sat, 28 Jul 2012 11:44:18 +0000 (14:44 +0300)]
Fix inventory segfault when rollback recording is disabled

12 years agoAdd enable_rollback_recording setting, defaulting to false
Perttu Ahola [Sat, 28 Jul 2012 00:08:09 +0000 (03:08 +0300)]
Add enable_rollback_recording setting, defaulting to false

12 years agoHandle max<min in LuaPseudoRandom::l_next()
Perttu Ahola [Fri, 27 Jul 2012 16:03:15 +0000 (19:03 +0300)]
Handle max<min in LuaPseudoRandom::l_next()

12 years agoTweak rollback and liquids
Perttu Ahola [Fri, 27 Jul 2012 12:46:51 +0000 (15:46 +0300)]
Tweak rollback and liquids

12 years agoTweak rollback stuff
Perttu Ahola [Fri, 27 Jul 2012 11:52:29 +0000 (14:52 +0300)]
Tweak rollback stuff

12 years agoIncrease automatic suspect guess timeframe
Perttu Ahola [Fri, 27 Jul 2012 10:54:14 +0000 (13:54 +0300)]
Increase automatic suspect guess timeframe

12 years agoABM and liquid overload skip
Perttu Ahola [Fri, 27 Jul 2012 10:45:49 +0000 (13:45 +0300)]
ABM and liquid overload skip

12 years agoFix server build (a missing header)
Perttu Ahola [Fri, 27 Jul 2012 10:43:25 +0000 (13:43 +0300)]
Fix server build (a missing header)

12 years agoMake the rollback system VERY FUCKING GOD DAMN POWERFUL
Perttu Ahola [Fri, 27 Jul 2012 10:24:28 +0000 (13:24 +0300)]
Make the rollback system VERY FUCKING GOD DAMN POWERFUL

12 years agoDon't track liquids for rollback because of too much log
Perttu Ahola [Thu, 26 Jul 2012 23:46:54 +0000 (02:46 +0300)]
Don't track liquids for rollback because of too much log

12 years agoProperly rollback chat command triggered things
Perttu Ahola [Thu, 26 Jul 2012 23:37:04 +0000 (02:37 +0300)]
Properly rollback chat command triggered things

12 years agoExperimental-ish rollback functionality
Perttu Ahola [Thu, 26 Jul 2012 19:06:45 +0000 (22:06 +0300)]
Experimental-ish rollback functionality

12 years agoWorking group-shapeless and multigroup recipes
Perttu Ahola [Thu, 26 Jul 2012 10:49:13 +0000 (13:49 +0300)]
Working group-shapeless and multigroup recipes

12 years agoRestore focus to formspec menu when pressing a button
Perttu Ahola [Wed, 25 Jul 2012 15:28:40 +0000 (18:28 +0300)]
Restore focus to formspec menu when pressing a button

12 years agoDeprecate minetest.add_to_creative_inventory and use group not_in_creative_inventory...
Perttu Ahola [Wed, 25 Jul 2012 14:59:37 +0000 (17:59 +0300)]
Deprecate minetest.add_to_creative_inventory and use group not_in_creative_inventory instead

12 years agoAdd notice in the minimal game
Perttu Ahola [Wed, 25 Jul 2012 14:10:31 +0000 (17:10 +0300)]
Add notice in the minimal game

12 years agoAdd special return value -1 to inventry callbacks
Perttu Ahola [Wed, 25 Jul 2012 13:52:00 +0000 (16:52 +0300)]
Add special return value -1 to inventry callbacks

12 years agoImprove formspec positioning
Perttu Ahola [Wed, 25 Jul 2012 13:30:23 +0000 (16:30 +0300)]
Improve formspec positioning

12 years agoImprove inventory callbacks a bit
Perttu Ahola [Wed, 25 Jul 2012 11:35:59 +0000 (14:35 +0300)]
Improve inventory callbacks a bit