PilzAdam [Wed, 26 Dec 2012 20:41:00 +0000 (21:41 +0100)]
Fix 'longjmp causes uninitialized stack frame' in cURL
Perttu Ahola [Sun, 23 Dec 2012 15:16:46 +0000 (17:16 +0200)]
Initialize all member variables of LuaEntitySAO
DannyDark [Sun, 9 Dec 2012 21:51:46 +0000 (21:51 +0000)]
Fixed two typos in wireshark lua file.
Ilya Zhuravlev [Sat, 22 Dec 2012 22:11:32 +0000 (02:11 +0400)]
Fix keycodes (#325)
Ilya Zhuravlev [Fri, 21 Dec 2012 16:35:04 +0000 (20:35 +0400)]
Prefer shared cURL library instead of the static one.
DannyDark [Mon, 10 Dec 2012 04:15:42 +0000 (04:15 +0000)]
Fixed u64 ambiguous symbol error
Fixed the compiler not being able to determine which symbol it should
use when compiling Minetest as 64bit with Irrlicht 1.8+
sfan5 [Mon, 17 Dec 2012 19:57:30 +0000 (20:57 +0100)]
Tweak CMake files for cURL
PilzAdam [Mon, 17 Dec 2012 18:49:18 +0000 (19:49 +0100)]
Add ability to change the itemstack in placenode callbacks
PilzAdam [Mon, 17 Dec 2012 17:04:41 +0000 (18:04 +0100)]
Fix falling damage when not flying
Ilya Zhuravlev [Mon, 17 Dec 2012 16:56:59 +0000 (20:56 +0400)]
Make m_media_fetch_threads to contain MediaFetchThread* instead of MediaFetchThread
Ilya Zhuravlev [Mon, 17 Dec 2012 15:46:54 +0000 (19:46 +0400)]
Fix hypen used as minus sign (manpages), fix spelling error (server.cpp)
Ilya Zhuravlev [Fri, 14 Dec 2012 11:30:17 +0000 (15:30 +0400)]
Added ability to fetch media from remote server (using cURL library)
jordan4ibanez [Sat, 15 Dec 2012 20:32:17 +0000 (15:32 -0500)]
Fix item entity's collision with nodeboxes
PilzAdam [Sun, 2 Dec 2012 11:17:05 +0000 (12:17 +0100)]
Dont sneak while flying
PilzAdam [Sun, 9 Dec 2012 12:34:16 +0000 (13:34 +0100)]
Only fly through walls in noclip mode wich requires the noclip privilege
Ilya Zhuravlev [Thu, 6 Dec 2012 22:20:42 +0000 (02:20 +0400)]
Update README
Perttu Ahola [Thu, 6 Dec 2012 19:21:10 +0000 (21:21 +0200)]
Bump version to 0.4.4
Perttu Ahola [Thu, 6 Dec 2012 19:01:45 +0000 (21:01 +0200)]
Update GUI texts
Jürgen Doser [Thu, 6 Dec 2012 16:33:11 +0000 (17:33 +0100)]
draw gui later. this fixes the hotbar disappearing while rendering to texture.
Jürgen Doser [Thu, 6 Dec 2012 15:11:15 +0000 (16:11 +0100)]
fix screen flickering black when rendering to texture
Perttu Ahola [Thu, 6 Dec 2012 17:35:40 +0000 (19:35 +0200)]
Set proper field background colors in Irrlicht 1.8
Perttu Ahola [Thu, 6 Dec 2012 13:48:59 +0000 (15:48 +0200)]
Raise default maximum render distance to 240
Perttu Ahola [Thu, 6 Dec 2012 13:48:19 +0000 (15:48 +0200)]
Fix automagic render distance tuner
Matthew I [Mon, 20 Aug 2012 02:30:59 +0000 (22:30 -0400)]
Add #include guards to base64.h
Perttu Ahola [Sun, 2 Dec 2012 21:47:27 +0000 (23:47 +0200)]
Try to add a bit of topside brightness when not using shaders
Perttu Ahola [Sun, 2 Dec 2012 21:08:46 +0000 (23:08 +0200)]
Tweak shader randomly a bit
Perttu Ahola [Sun, 2 Dec 2012 18:43:55 +0000 (20:43 +0200)]
Default to preload_item_visuals=true
MirceaKitsune [Sun, 2 Dec 2012 12:59:08 +0000 (14:59 +0200)]
Don't send player position from client to server if the player hasn't moved
Ilya Zhuravlev [Sun, 2 Dec 2012 16:19:06 +0000 (20:19 +0400)]
Fix minetest.get_node_drops(). It should always return list of item names, not ItemStack(s).
Perttu Ahola [Sun, 2 Dec 2012 16:02:04 +0000 (18:02 +0200)]
Smooth day-night transitions
Perttu Ahola [Thu, 29 Nov 2012 16:31:17 +0000 (18:31 +0200)]
Const-correct util/serialize.h
Perttu Ahola [Sun, 2 Dec 2012 12:24:58 +0000 (14:24 +0200)]
Handle day-night transition in shader and make light sources brighter when shaders are used
Perttu Ahola [Sun, 2 Dec 2012 01:10:23 +0000 (03:10 +0200)]
Get rid of jordan4ibanez's insane digging animation speed
Perttu Ahola [Sun, 2 Dec 2012 00:57:14 +0000 (02:57 +0200)]
Fix tile MaterialType to make sense and make lava surface be shader'd lower like water
Perttu Ahola [Sat, 1 Dec 2012 23:45:31 +0000 (01:45 +0200)]
Install shaders properly
Perttu Ahola [Sat, 1 Dec 2012 23:42:03 +0000 (01:42 +0200)]
Remove accidental vim swap file
Perttu Ahola [Sat, 1 Dec 2012 22:14:27 +0000 (00:14 +0200)]
Add enable_shaders to minetest.conf.example
obneq [Sat, 1 Dec 2012 22:08:35 +0000 (00:08 +0200)]
Add checkboxes for shaders and on-demand item visual generation
Perttu Ahola [Sat, 1 Dec 2012 01:02:16 +0000 (03:02 +0200)]
Implement a global shader parameter passing system and useful shaders
Kahrl [Mon, 19 Mar 2012 01:59:12 +0000 (02:59 +0100)]
ShaderSource and silly example shaders
Perttu Ahola [Sat, 1 Dec 2012 21:54:15 +0000 (23:54 +0200)]
Add setting preload_item_visuals
Perttu Ahola [Fri, 30 Nov 2012 16:12:32 +0000 (18:12 +0200)]
On-demand item meshes and textures
Perttu Ahola [Fri, 30 Nov 2012 14:19:19 +0000 (16:19 +0200)]
Modify some client log message levels
RealBadAngel [Sat, 1 Dec 2012 17:36:42 +0000 (18:36 +0100)]
New elements in formspec, item_image and item_image_button.
Fixed also game bug drawing dragged item behind fields, buttons etc.
PilzAdam [Sat, 1 Dec 2012 14:20:53 +0000 (15:20 +0100)]
Only check attachment for nodes with group attached_node
PilzAdam [Sat, 1 Dec 2012 12:32:32 +0000 (13:32 +0100)]
Add the group attached_node
Nodes in this group will be dropped as items if the node under them or the node in the wallmounted direction is not walkable.
PilzAdam [Sat, 1 Dec 2012 11:41:05 +0000 (12:41 +0100)]
Merge support for anaglyph stereo
Perttu Ahola [Fri, 30 Nov 2012 20:19:50 +0000 (22:19 +0200)]
Add the ability for client to check if image exists
DannyDark [Thu, 29 Nov 2012 19:00:33 +0000 (19:00 +0000)]
Log /grant and /revoke command usage
Jürgen Doser [Wed, 28 Nov 2012 17:39:58 +0000 (18:39 +0100)]
Make dragged itemstack following the mouse cursor much smoother
by using the cursor coordinates directly, instead of updating them only when a mouse event is seen.
Matthew I [Sun, 7 Oct 2012 14:03:22 +0000 (10:03 -0400)]
Ignore directories beginning with a "." when searching for mods
This is not a problem on POSIX systems (these directories are
ignored by the POSIX implementation of fs::GetDirListing() in
filesys.cpp), but these directories still are reported on Windows
systems. This becomes a problem when mod authors use version
control systems that create directories like ".git" or ".svn"
and collectMods() picks up on them. It has also been suggested
that ignoring such directories would allow for the easily disabling
mods by inserting a "." in front of their name.
This quick fix simply makes collectMods() ignore directories
beginning with a ".".
Perttu Ahola [Fri, 30 Nov 2012 17:41:13 +0000 (19:41 +0200)]
Run scriptapi_on_shutdown() thread-safely and remove some old crap
Matthew I [Sat, 8 Sep 2012 18:44:26 +0000 (14:44 -0400)]
Add shutdown hook interface to Lua API
Scripts can call minetest.register_on_shutdown() to register a
shutdown hook.
Document that minetest.register_on_shutdown() callbacks may not be run
If the server crashes, it is unlikely that callbacks registered using
minetest.register_on_shutdown() will be called.
Perttu Ahola [Tue, 27 Nov 2012 07:38:21 +0000 (09:38 +0200)]
Add congestion control settings to minetest.conf
Perttu Ahola [Mon, 26 Nov 2012 22:47:03 +0000 (00:47 +0200)]
Full protocol 13 compatibility on server side
Perttu Ahola [Mon, 26 Nov 2012 22:26:19 +0000 (00:26 +0200)]
Make strict and non-strict protocol version checking to work more like expected
Perttu Ahola [Mon, 26 Nov 2012 22:15:17 +0000 (00:15 +0200)]
Allow server to accept protocol 13 clients altough they don't work too well
Perttu Ahola [Mon, 26 Nov 2012 21:58:27 +0000 (23:58 +0200)]
Ranged support of protocol version on server side
Perttu Ahola [Mon, 26 Nov 2012 21:59:03 +0000 (23:59 +0200)]
Support serialization of protocol 13 ContentFeatures
Perttu Ahola [Mon, 26 Nov 2012 19:40:39 +0000 (21:40 +0200)]
unit test: TestNodedefSerialization
Perttu Ahola [Thu, 29 Nov 2012 17:44:58 +0000 (19:44 +0200)]
Modify new ObjectProperties format to such that 0.4.3 will eat it
Perttu Ahola [Thu, 29 Nov 2012 17:22:07 +0000 (19:22 +0200)]
Fix Taoki's messed up generic object command ids
Perttu Ahola [Thu, 29 Nov 2012 17:49:44 +0000 (19:49 +0200)]
Change version to 0.4.4-dev because... ehm... why it wasn't that already?
Calinou [Wed, 28 Nov 2012 10:59:19 +0000 (11:59 +0100)]
Fix head shifting downards in glass, nodeboxes...
Perttu Ahola [Tue, 27 Nov 2012 17:00:09 +0000 (19:00 +0200)]
Fix mesh glitches on MapBlock boundaries
Perttu Ahola [Tue, 27 Nov 2012 15:32:58 +0000 (17:32 +0200)]
Revert "Use wielditem drawtype for all nodes in item_entity"
This reverts commit
ffad18e42442fed10c312adc989fc62b74e05896.
MirceaKitsune [Mon, 26 Nov 2012 23:35:18 +0000 (01:35 +0200)]
Fix forgotten material properties for meshes (also seems to have been forgotten for cubes previously). This allows transparent png images to work properly
Perttu Ahola [Mon, 26 Nov 2012 20:31:21 +0000 (22:31 +0200)]
Default server step to 0.1s and sync object/player update intervals to it
PilzAdam [Sat, 24 Nov 2012 18:02:16 +0000 (19:02 +0100)]
Use wielditem drawtype for all nodes in item_entity
Perttu Ahola [Mon, 26 Nov 2012 09:56:18 +0000 (11:56 +0200)]
Remove unnecessary util/serialize.h from content_mapblock.cpp
Perttu Ahola [Mon, 26 Nov 2012 09:39:52 +0000 (11:39 +0200)]
Const-correct SharedBuffer::SharedBuffer(const T *t, unsigned int size)
Perttu Ahola [Mon, 26 Nov 2012 09:18:34 +0000 (11:18 +0200)]
Move util/serialize.h out from staticobject.h for smaller header dependencies
Perttu Ahola [Mon, 26 Nov 2012 08:20:57 +0000 (10:20 +0200)]
Move a function from clientserver.h to clientserver.cpp
Perttu Ahola [Mon, 26 Nov 2012 07:49:31 +0000 (09:49 +0200)]
Proper versioning of new network-serialized stuff
Perttu Ahola [Mon, 26 Nov 2012 07:49:07 +0000 (09:49 +0200)]
New PROTOCOL_VERSION scheme (allow client to support a range of versions)
Perttu Ahola [Mon, 26 Nov 2012 07:10:27 +0000 (09:10 +0200)]
Fix LuaEntitySAO::getClientInitializationData() and bump the related version
Perttu Ahola [Sun, 25 Nov 2012 22:56:47 +0000 (00:56 +0200)]
Bump version to 0.4.4 as this isn't compatible with 0.4.3
Perttu Ahola [Sun, 25 Nov 2012 19:11:45 +0000 (21:11 +0200)]
Update ContentFeatures serialization format now as PROTOCOL_VERSION was changed
MirceaKitsune [Thu, 22 Nov 2012 19:01:31 +0000 (21:01 +0200)]
RealBadAngel's patch which allows the lua api to read pressed player keys. This should make it possible to change the player's animation based on what he is doing
Correct lua api version number
Always update animations and attachments after the entity is added to scene client side. Fixes animations not being applied in client initialization for some reason. Attachments should be re-tested now just to be safe.
Fix a segmentation fault caused by reaching materials that didn't exist in a loop for setting texture
MirceaKitsune [Mon, 12 Nov 2012 14:35:10 +0000 (16:35 +0200)]
A bunch of fixes
No longer hide players who are dead. With models, a death animation should be used instead
Some changes requested by celeron55
Rename a lot of things in the code, and use better lua api function names
Minor code corrections
Bump protocol version up, since the models / animations / attachments code creates new client<->server messages
MirceaKitsune [Fri, 9 Nov 2012 19:51:45 +0000 (21:51 +0200)]
Allow Vanessa's texture filtering / mipmap patch to work on models, as well as all other node types
Initialize m_bone_posrot too
Update pos_translator for attached players, which should fix a bug noticed with carts where a detached player would travel from the detachment spot to where it was detached
Don't make attachments possible to right-click either
Properly apply object and text visibility for local attachments, and fix them showing when they shouldn't
MirceaKitsune [Fri, 9 Nov 2012 14:45:29 +0000 (16:45 +0200)]
Fix more things I forgot for attached players. Such players will now properly see themselves moving when attached, and the server will read their position accordingly
Fix attached players being able to bob their view and generate foostep sounds by pressing a movement key (running in place)
MirceaKitsune [Wed, 7 Nov 2012 16:42:38 +0000 (18:42 +0200)]
Update attachments at the ending of the addToScene function for parents. And with this... *drum roll* Client-side attachments are at last functional and stick visibly.
Fix the last segmentation fault (apparently). So far attachments seem to be fully functional, although removing the parent causes children to go to origin 0,0,0 and possibly still cause such a fault (though this should already be addressed)
Fix a bug in falling code where entities get stuck
Also check if the parent has been removed server-side, and detach the child if so. Fixes children going to origin 0,0,0 when their parent is removed.
Unset all attachment properties when permanently detaching (on both the client and server). Also store less data we don't need
Create a separate function for detaching, and also update lua api documentation
When a child is detached, update its position from the server to clients. This WILL cause it to get positioned slightly differently client side, as the server attachment system only copies parent origin and knows not about mesh / bone transformation. This prevents different clients seeing the object detached in different spots which is most correct
Update the position of attached players to clients. An attached player will see himself move, but this is currently VERY ugly and laggy as it is done by the server (it probably must stay this way too)
Use a different approach for locally attached players. This allows for smooth positio transitions to work, as well at the player turning around freely. Still buggy however
MirceaKitsune [Sun, 4 Nov 2012 21:54:50 +0000 (23:54 +0200)]
Send animations, bone overrides and attachments in entity initialization. Clients no longer have to be near an object when an animation or attachment is set to see the changes, and newly connected clients (or a client that simply renders the object for the first time) will get all of those settings. Therefore, the lua script no longer needs to run every X seconds either, just once per entity.
Finish fixing the material color code. But it won't work until MineTest has dynamic lighting... another day another feature.
Extra checks for the bone positioning / rotation code
Many checks and consistency improvements to the client attachment code
Make a separate function for checking if a client object is attached. A more in-depth change will be needed here to fix reading of invalid pointers
Use a different method of fetching the parent. Fixes the mass segmentation faults when rendering an attachment (some still happen though)
Major change to how attachments are handled. Fix the last segmentaton fault, which was due to the parent becoming invalid while being refreshed / removed which would bause the child to remain attached to nothing. Parents remove their children when being deleted themselves and add them back when re-added. Attachments are stored inside a 2D a vector which easily allows both a child to find their parent and a parent to find its children.
Remove attachment list entry when an object is being permanently removed. Also avoid duplicate entries in this list when re-attaching the same object
The "big code comments" can now go away. Client attachments almost work properly, and I know what else needs to be done
MirceaKitsune [Sun, 4 Nov 2012 12:33:30 +0000 (14:33 +0200)]
Enable client-side attachments, add detachment code
MirceaKitsune [Sun, 28 Oct 2012 15:07:11 +0000 (17:07 +0200)]
Fix some remaining issues with attachments, now they work. Tested with object->player and player->player attachments
MirceaKitsune [Sat, 27 Oct 2012 12:14:24 +0000 (15:14 +0300)]
Complete the attachment framework.
The child ID can now be checked against the parent ID in content_cao.cpp so the parent can be detected. Actual attachment code to come
Divide attachment system between server attachments and client attachments, neither coded right now. As explained in the code comment:
// Attachments need to be handled on both the server and client.
// If we attach only on the server, models (which are client-side)
// can't be read so we don't know the origin and orientation of bones.
// If we attach only on the client, the real position of attachments is
// not updated and you can't click them for example.
MirceaKitsune [Fri, 26 Oct 2012 22:49:01 +0000 (01:49 +0300)]
Framework for the attachment system, new object property which allows changing the color and alpha of mesh materials
New object property which allows changing the color and alpha of mesh materials. Due to the current lighting systems it doesn't work yet, but the full implementation is there
Framework for the attachment system, with no actual functionality yet
Send bone and player object to the setAttachment function in content_sao.cpp, but we need a way to translate it there and send it to the client
I will also want position and rotation offsets to be possible to apply to attachments
Network object ID from server to client. This will be used to identify the parent client-side and know what to attach to
MirceaKitsune [Fri, 26 Oct 2012 15:03:24 +0000 (18:03 +0300)]
Get the new animation framework properly working
Store start and end frames as v2f
Also move bone animations to their own function instead of object properties
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
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
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
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
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
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)
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.
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.
Ilya Zhuravlev [Thu, 22 Nov 2012 20:36:52 +0000 (00:36 +0400)]
Fix trees growing into any type of node
xyzz [Thu, 22 Nov 2012 17:13:18 +0000 (09:13 -0800)]
Merge pull request #268 from khonkhortisan/image_button
Allow transparent image_buttons
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.