oweals/minetest.git
11 years agoReplace constant red hurt screen with fade out red
PilzAdam [Wed, 2 Jan 2013 20:57:04 +0000 (21:57 +0100)]
Replace constant red hurt screen with fade out red

11 years agoAdd ServerEnvironment::setNode()/removeNode() to allow setting nodes from the C+...
Perttu Ahola [Wed, 2 Jan 2013 21:17:52 +0000 (23:17 +0200)]
Add ServerEnvironment::setNode()/removeNode() to allow setting nodes from the C++ side with proper script-defined initialization/destruction

11 years agoAdd InvRef:get_location()
Perttu Ahola [Wed, 2 Jan 2013 20:53:55 +0000 (22:53 +0200)]
Add InvRef:get_location()

11 years agoCall this 0.4.4-d1 because it has a protocol addition since 0.4.4
Perttu Ahola [Wed, 2 Jan 2013 19:02:29 +0000 (21:02 +0200)]
Call this 0.4.4-d1 because it has a protocol addition since 0.4.4

11 years agoAdd TOCLIENT_SHOW_FORMSPEC to display formspecs at client from lua
sapier [Wed, 2 Jan 2013 19:45:04 +0000 (19:45 +0000)]
Add TOCLIENT_SHOW_FORMSPEC to display formspecs at client from lua

11 years agoBugfixes to item_image formspec method
RealBadAngel [Tue, 1 Jan 2013 23:03:47 +0000 (00:03 +0100)]
Bugfixes to item_image formspec method

11 years agoFixed compile issues on windows 384/head
dannydark [Sun, 30 Dec 2012 12:22:13 +0000 (12:22 +0000)]
Fixed compile issues on windows

With latest upstream L-Systems treegen.

11 years agoL-System treegen
RealBadAngel [Sat, 29 Dec 2012 15:20:09 +0000 (16:20 +0100)]
L-System treegen

11 years agoUse aux1 to move fast when flying 369/head
PilzAdam [Thu, 27 Dec 2012 17:33:24 +0000 (18:33 +0100)]
Use aux1 to move fast when flying

11 years agoAdd selectionbox_color, crosshair_color, and crosshair_alpha options 367/head
Esteban I. Ruiz Moreno [Wed, 26 Dec 2012 21:35:48 +0000 (18:35 -0300)]
Add selectionbox_color, crosshair_color, and crosshair_alpha options

11 years agoFix 'longjmp causes uninitialized stack frame' in cURL
PilzAdam [Wed, 26 Dec 2012 20:41:00 +0000 (21:41 +0100)]
Fix 'longjmp causes uninitialized stack frame' in cURL

11 years agoInitialize all member variables of LuaEntitySAO
Perttu Ahola [Sun, 23 Dec 2012 15:16:46 +0000 (17:16 +0200)]
Initialize all member variables of LuaEntitySAO

11 years agoFixed two typos in wireshark lua file.
DannyDark [Sun, 9 Dec 2012 21:51:46 +0000 (21:51 +0000)]
Fixed two typos in wireshark lua file.

11 years agoFix keycodes (#325)
Ilya Zhuravlev [Sat, 22 Dec 2012 22:11:32 +0000 (02:11 +0400)]
Fix keycodes (#325)

11 years agoPrefer shared cURL library instead of the static one.
Ilya Zhuravlev [Fri, 21 Dec 2012 16:35:04 +0000 (20:35 +0400)]
Prefer shared cURL library instead of the static one.

11 years agoFixed u64 ambiguous symbol error
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+

11 years agoTweak CMake files for cURL
sfan5 [Mon, 17 Dec 2012 19:57:30 +0000 (20:57 +0100)]
Tweak CMake files for cURL

11 years agoAdd ability to change the itemstack in placenode callbacks
PilzAdam [Mon, 17 Dec 2012 18:49:18 +0000 (19:49 +0100)]
Add ability to change the itemstack in placenode callbacks

11 years agoFix falling damage when not flying
PilzAdam [Mon, 17 Dec 2012 17:04:41 +0000 (18:04 +0100)]
Fix falling damage when not flying

11 years agoMake m_media_fetch_threads to contain MediaFetchThread* instead of MediaFetchThread
Ilya Zhuravlev [Mon, 17 Dec 2012 16:56:59 +0000 (20:56 +0400)]
Make m_media_fetch_threads to contain MediaFetchThread* instead of MediaFetchThread

11 years agoFix hypen used as minus sign (manpages), fix spelling error (server.cpp)
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)

11 years agoAdded ability to fetch media from remote server (using cURL library)
Ilya Zhuravlev [Fri, 14 Dec 2012 11:30:17 +0000 (15:30 +0400)]
Added ability to fetch media from remote server (using cURL library)

11 years agoFix item entity's collision with nodeboxes 356/head
jordan4ibanez [Sat, 15 Dec 2012 20:32:17 +0000 (15:32 -0500)]
Fix item entity's collision with nodeboxes

11 years agoDont sneak while flying 350/head
PilzAdam [Sun, 2 Dec 2012 11:17:05 +0000 (12:17 +0100)]
Dont sneak while flying

11 years agoOnly fly through walls in noclip mode wich requires the noclip privilege
PilzAdam [Sun, 9 Dec 2012 12:34:16 +0000 (13:34 +0100)]
Only fly through walls in noclip mode wich requires the noclip privilege

11 years agoUpdate README
Ilya Zhuravlev [Thu, 6 Dec 2012 22:20:42 +0000 (02:20 +0400)]
Update README

11 years agoBump version to 0.4.4 0.4.4
Perttu Ahola [Thu, 6 Dec 2012 19:21:10 +0000 (21:21 +0200)]
Bump version to 0.4.4

11 years agoUpdate GUI texts
Perttu Ahola [Thu, 6 Dec 2012 19:01:45 +0000 (21:01 +0200)]
Update GUI texts

11 years agodraw gui later. this fixes the hotbar disappearing while rendering to texture.
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.

11 years agofix screen flickering black when 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

11 years agoSet proper field background colors in Irrlicht 1.8
Perttu Ahola [Thu, 6 Dec 2012 17:35:40 +0000 (19:35 +0200)]
Set proper field background colors in Irrlicht 1.8

11 years agoRaise default maximum render distance to 240
Perttu Ahola [Thu, 6 Dec 2012 13:48:59 +0000 (15:48 +0200)]
Raise default maximum render distance to 240

11 years agoFix automagic render distance tuner
Perttu Ahola [Thu, 6 Dec 2012 13:48:19 +0000 (15:48 +0200)]
Fix automagic render distance tuner

11 years agoAdd #include guards to base64.h
Matthew I [Mon, 20 Aug 2012 02:30:59 +0000 (22:30 -0400)]
Add #include guards to base64.h

11 years agoTry to add a bit of topside brightness when not using shaders
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

11 years agoTweak shader randomly a bit
Perttu Ahola [Sun, 2 Dec 2012 21:08:46 +0000 (23:08 +0200)]
Tweak shader randomly a bit

11 years agoDefault to preload_item_visuals=true
Perttu Ahola [Sun, 2 Dec 2012 18:43:55 +0000 (20:43 +0200)]
Default to preload_item_visuals=true

11 years agoDon't send player position from client to server if the player hasn't moved
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

11 years agoFix minetest.get_node_drops(). It should always return list of item names, not ItemSt...
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).

11 years agoSmooth day-night transitions
Perttu Ahola [Sun, 2 Dec 2012 16:02:04 +0000 (18:02 +0200)]
Smooth day-night transitions

11 years agoConst-correct util/serialize.h
Perttu Ahola [Thu, 29 Nov 2012 16:31:17 +0000 (18:31 +0200)]
Const-correct util/serialize.h

11 years agoHandle day-night transition in shader and make light sources brighter when shaders...
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

11 years agoGet rid of jordan4ibanez's insane digging animation speed
Perttu Ahola [Sun, 2 Dec 2012 01:10:23 +0000 (03:10 +0200)]
Get rid of jordan4ibanez's insane digging animation speed

11 years agoFix tile MaterialType to make sense and make lava surface be shader'd lower like...
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

11 years agoInstall shaders properly
Perttu Ahola [Sat, 1 Dec 2012 23:45:31 +0000 (01:45 +0200)]
Install shaders properly

11 years agoRemove accidental vim swap file
Perttu Ahola [Sat, 1 Dec 2012 23:42:03 +0000 (01:42 +0200)]
Remove accidental vim swap file

11 years agoAdd enable_shaders to minetest.conf.example
Perttu Ahola [Sat, 1 Dec 2012 22:14:27 +0000 (00:14 +0200)]
Add enable_shaders to minetest.conf.example

11 years agoAdd checkboxes for shaders and on-demand item visual generation
obneq [Sat, 1 Dec 2012 22:08:35 +0000 (00:08 +0200)]
Add checkboxes for shaders and on-demand item visual generation

11 years agoImplement a global shader parameter passing system and useful shaders
Perttu Ahola [Sat, 1 Dec 2012 01:02:16 +0000 (03:02 +0200)]
Implement a global shader parameter passing system and useful shaders

11 years agoShaderSource and silly example shaders
Kahrl [Mon, 19 Mar 2012 01:59:12 +0000 (02:59 +0100)]
ShaderSource and silly example shaders

11 years agoAdd setting preload_item_visuals
Perttu Ahola [Sat, 1 Dec 2012 21:54:15 +0000 (23:54 +0200)]
Add setting preload_item_visuals

11 years agoOn-demand item meshes and textures
Perttu Ahola [Fri, 30 Nov 2012 16:12:32 +0000 (18:12 +0200)]
On-demand item meshes and textures

11 years agoModify some client log message levels
Perttu Ahola [Fri, 30 Nov 2012 14:19:19 +0000 (16:19 +0200)]
Modify some client log message levels

11 years agoNew elements in formspec, item_image and item_image_button.
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.

11 years agoOnly check attachment for nodes with group attached_node
PilzAdam [Sat, 1 Dec 2012 14:20:53 +0000 (15:20 +0100)]
Only check attachment for nodes with group attached_node

11 years agoAdd the group attached_node 318/head
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.

11 years agoMerge support for anaglyph stereo
PilzAdam [Sat, 1 Dec 2012 11:41:05 +0000 (12:41 +0100)]
Merge support for anaglyph stereo

11 years agoAdd the ability for client to check if image exists
Perttu Ahola [Fri, 30 Nov 2012 20:19:50 +0000 (22:19 +0200)]
Add the ability for client to check if image exists

11 years agoLog /grant and /revoke command usage
DannyDark [Thu, 29 Nov 2012 19:00:33 +0000 (19:00 +0000)]
Log /grant and /revoke command usage

11 years agoMake dragged itemstack following the mouse cursor much smoother
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.

11 years agoIgnore directories beginning with a "." when searching for mods
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 ".".

11 years agoRun scriptapi_on_shutdown() thread-safely and remove some old crap
Perttu Ahola [Fri, 30 Nov 2012 17:41:13 +0000 (19:41 +0200)]
Run scriptapi_on_shutdown() thread-safely and remove some old crap

11 years agoAdd shutdown hook interface to Lua API
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.

11 years agoAdd congestion control settings to minetest.conf
Perttu Ahola [Tue, 27 Nov 2012 07:38:21 +0000 (09:38 +0200)]
Add congestion control settings to minetest.conf

11 years agoFull protocol 13 compatibility on server side
Perttu Ahola [Mon, 26 Nov 2012 22:47:03 +0000 (00:47 +0200)]
Full protocol 13 compatibility on server side

11 years agoMake strict and non-strict protocol version checking to work more like expected
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

11 years agoAllow server to accept protocol 13 clients altough they don't work too well
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

11 years agoRanged support of protocol version on server side
Perttu Ahola [Mon, 26 Nov 2012 21:58:27 +0000 (23:58 +0200)]
Ranged support of protocol version on server side

11 years agoSupport serialization of protocol 13 ContentFeatures
Perttu Ahola [Mon, 26 Nov 2012 21:59:03 +0000 (23:59 +0200)]
Support serialization of protocol 13 ContentFeatures

11 years agounit test: TestNodedefSerialization
Perttu Ahola [Mon, 26 Nov 2012 19:40:39 +0000 (21:40 +0200)]
unit test: TestNodedefSerialization

11 years agoModify new ObjectProperties format to such that 0.4.3 will eat it
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

11 years agoFix Taoki's messed up generic object command ids
Perttu Ahola [Thu, 29 Nov 2012 17:22:07 +0000 (19:22 +0200)]
Fix Taoki's messed up generic object command ids

11 years agoChange version to 0.4.4-dev because... ehm... why it wasn't that already?
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?

11 years agoFix head shifting downards in glass, nodeboxes...
Calinou [Wed, 28 Nov 2012 10:59:19 +0000 (11:59 +0100)]
Fix head shifting downards in glass, nodeboxes...

11 years agoFix mesh glitches on MapBlock boundaries
Perttu Ahola [Tue, 27 Nov 2012 17:00:09 +0000 (19:00 +0200)]
Fix mesh glitches on MapBlock boundaries

11 years agoRevert "Use wielditem drawtype for all nodes in item_entity"
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.

11 years agoFix forgotten material properties for meshes (also seems to have been forgotten for...
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

11 years agoDefault server step to 0.1s and sync object/player update intervals to it
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

11 years agoUse wielditem drawtype for all nodes in item_entity
PilzAdam [Sat, 24 Nov 2012 18:02:16 +0000 (19:02 +0100)]
Use wielditem drawtype for all nodes in item_entity

11 years agoRemove unnecessary util/serialize.h from content_mapblock.cpp
Perttu Ahola [Mon, 26 Nov 2012 09:56:18 +0000 (11:56 +0200)]
Remove unnecessary util/serialize.h from content_mapblock.cpp

11 years agoConst-correct SharedBuffer::SharedBuffer(const T *t, unsigned int size)
Perttu Ahola [Mon, 26 Nov 2012 09:39:52 +0000 (11:39 +0200)]
Const-correct SharedBuffer::SharedBuffer(const T *t, unsigned int size)

11 years agoMove util/serialize.h out from staticobject.h for smaller header dependencies
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

11 years agoMove a function from clientserver.h to clientserver.cpp
Perttu Ahola [Mon, 26 Nov 2012 08:20:57 +0000 (10:20 +0200)]
Move a function from clientserver.h to clientserver.cpp

11 years agoProper versioning of new network-serialized stuff
Perttu Ahola [Mon, 26 Nov 2012 07:49:31 +0000 (09:49 +0200)]
Proper versioning of new network-serialized stuff

11 years agoNew PROTOCOL_VERSION scheme (allow client to support a range of versions)
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)

11 years agoFix LuaEntitySAO::getClientInitializationData() and bump the related version
Perttu Ahola [Mon, 26 Nov 2012 07:10:27 +0000 (09:10 +0200)]
Fix LuaEntitySAO::getClientInitializationData() and bump the related version

11 years agoBump version to 0.4.4 as this isn't compatible with 0.4.3
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

11 years agoUpdate ContentFeatures serialization format now as PROTOCOL_VERSION was changed
Perttu Ahola [Sun, 25 Nov 2012 19:11:45 +0000 (21:11 +0200)]
Update ContentFeatures serialization format now as PROTOCOL_VERSION was changed

11 years agoRealBadAngel's patch which allows the lua api to read pressed player keys. This shoul...
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

11 years agoA bunch of fixes
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

11 years agoAllow Vanessa's texture filtering / mipmap patch to work on models, as well as all...
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

11 years agoFix more things I forgot for attached players. Such players will now properly see...
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)

11 years agoUpdate attachments at the ending of the addToScene function for parents. And with...
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

11 years agoSend animations, bone overrides and attachments in entity initialization. Clients...
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

11 years agoEnable client-side attachments, add detachment code
MirceaKitsune [Sun, 4 Nov 2012 12:33:30 +0000 (14:33 +0200)]
Enable client-side attachments, add detachment code

11 years agoFix some remaining issues with attachments, now they work. Tested with object->player...
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

11 years agoComplete the attachment framework.
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.

11 years agoFramework for the attachment system, new object property which allows changing the...
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

11 years agoGet the new animation framework properly working
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

11 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