aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api (unfollow)
Commit message (Collapse)AuthorFilesLines
2016-11-14Revert "Adding particle blend, glow and animation (#4705)"sfan51-161/+5
This reverts commit 93e3555eae2deaeca69ee252cfa9cc9c3e0e49ef.
2016-11-15Adding particle blend, glow and animation (#4705)Foghrye415-81/+800
2016-11-14Rename nodeupdate and nodeupdate_single and make them part of the official APIest312-15/+40
Now, the renamed forms of nodeupdate and nodeupdate_single are part of the official API. As nodeupdate has been used by Minetest Game and in mods despite of not being part of the official API, we ease the transition by still supporting it for the 0.4.15 release. After the release, the two functions can be removed. The removal will not violate the stability promise, as that promise only includes the official and documented API. Also, make some formerly global functions local. They most likely haven't been used by mods, therefore they won't get stubs with deprecation warnings, hard erroring directly.
2016-11-13Install texture_packs.txt to DOCDIRYutao Yuan1-0/+1
2016-11-13Fix crash when attached object no longer existsRogier1-2/+3
Active objects that are attached to other objects are not safe from deletion. As a result, the parent object may have a reference to an id of a child's that no longer exists. If at some point an attempt is made to manipulate the child, enviromment->getActiveObject(child-id) returns NULL. Using the NULL pointer causes the crash...
2016-11-12Add control information to player interacts (#4685)raymoo4-49/+76
2016-11-12Nodeupdate: Remove documentation in lua_api.txtparamat1-5/+0
In preparation for nodeupdate being renamed and made official API in future.
2016-11-12Halo: Highlight selected faceRealBadAngel6-2/+39
This is a slightly modified and cleaned up version of #3774 by RealBadAngel. By sofar: Remove color change (just make it lighter) and some minor cleanups.
2016-11-11Fixed tooltips not resizing with \n (#4766)lisacvuk1-1/+1
* Fixed tooltips not resizing with \n * Fixed it for 1.8.4 too. * Fixed not working with Freetype disabled. * Modified it to use Zeno-'s solution.
2016-11-11Fix incorrect distance computation for visible blocks (#4765)Rogier-52-8/+9
The client would not compute the distance from the camera to to a mapblock correctly. The result was that blocks that were in view (i.e. not beyond the fog limit) would not be rendered. With the improved distance computation, a range adjustment that existed in clientiface.cpp is no longer required.
2016-11-10Fix mob deserialization errors in the client (#4743)Rogier-51-16/+32
The problem was seen while using the mobf mod package. The problem happens when the server serializes entity attachments. Sometimes, such attachments no longer exist. The serialization code skips those. However, the total number of attachments was serialized earlier. Therefore the client expects more than it gets, and logs a serialization error.
2016-11-09Occlusion culling: Add comments, minor code improvementsparamat1-4/+9
Remove unnecessary code. Use '/ 2.0f' because endoff is a float.
2016-11-08Conf.example: Document block_send_optimize_distanceLars Hofhansl1-0/+8
Add missing documentation.
2016-11-08Sky: Draw bottom of the sky box in 'cloudy fog color'Lars Hofhansl1-0/+8
To be identical to the lower half of the skybox sides. Now needed as the skybox base is often seen due to increasingly vertical mapgens.
2016-11-08Retrieve mapblocks from the server in a sphere, not a cubeLars Hofhansl1-1/+2
Use unused range argument in 'isBlockInSight()' to limit mapblock sends to a sphere of radius 'max block send distance'.
2016-11-08Occlusion culling: Fix 'end offset' distance, half this for centre pointLars Hofhansl1-2/+3
'endoff', the maximum diagonal of a mapblock, was incorrectly calculated. Half this value for the centre point of the mapblock.
2016-11-07Don't use reduced vertical limits for mapblock send and generationLars Hofhansl1-10/+0
2016-11-07Builtin/../falling: Fix bugs caused by 'ignore' nodesparamat1-14/+19
Original commit by t4im, rebased and developed by paramat. Fix CONTENT_IGNORE being replaced by falling nodes or causing large areas of sand to collapse into itself. Format some conditional code for clarity. Add and clarify some comments.
2016-11-07Privileges: Only give singleplayer 4 basic privsWuzzy1-11/+39
- interact - shout - privs - basic_privs
2016-11-07Windows: Add manifest file and set "High DPI Aware" trueadrido2-1/+17
This resolves washy font and incorrect mouse handling on Windows if a screen with high DPI is used.
2016-11-06MSVC: Generate debug information for release builds (#4674)SmallJoker1-2/+2
Replace parameters with the equivalent /Ox
2016-11-05Separate optional from required mod dependencies in main menu (#4721)Wuzzy3-17/+39
* Separate optional from require dep's in main menu * Simplify modmgr mod dependency listing code
2016-11-05PlayerSAO saving fix (#4734)Ner'zhul4-17/+20
PlayerSAO::disconnected() function was historical and remove the link between SAO and RemotePlayer session. With previous attributes linked to RemotePlayer saving was working. But now attributes are read from SAO not RemotePlayer and the current serialize function verify SAO exists to save the player attributes. Because PlayerSAO::disconnected marks playersao for removal, only mark playerSAO for removal and let PlayerSAO::removingFromEnvironment do the correct saving behaviour and all the disconnection process instead of doing a partial removal and let the server loop doing the RemotePlayer cleanup and remove some saved attributes...
2016-11-05Fix memory leak in ::safeLoadFile (#4730)Zeno-1-0/+3
2016-11-04Remove unused shader matrices. (#4723)lhofhansl5-24/+0
2016-11-04Cycle directly to nothing shown instead of showing the profiler graph againlhofhansl1-1/+1
Fix for previous commit.
2016-11-04Add debug priv, and allow player to display the scene as wire-frame. (#4709)lhofhansl4-10/+29
2016-11-02Add minetest.get_server_uptime() function to Lua API (#4702)Brandon4-0/+15
Add minetest.get_server_uptime() function to Lua API
2016-10-31Add version APIShadowNinja6-12/+45
2016-10-31Lua voxelmanip: Add optional buffer param for 'get param2 data'paramat2-2/+10
Update lua_api.txt.
2016-10-31Core.rotate_and_place: Remove unused call to get_look_pitch()Auke Kok1-1/+0
2016-10-30Optionally disable optimization that causes underwater and cave rendering ↵lhofhansl3-1/+11
glitches. (#4686)
2016-10-30Fix overloading problems mentioned by clangLoic Blot6-34/+39
2016-10-30PlayerSAO/LocalPlayer refactor: (#4612)Ner'zhul18-335/+353
* Create UnitSAO, a common part between PlayerSAO & LuaEntitySAO * Move breath to PlayerSAO & LocalPlayer * Migrate m_yaw from (Remote)Player & LuaEntitySAO to UnitSAO * Migrate m_yaw from Player to LocalPlayer for client * Move some functions outside of player class to PlayerSAO/RemotePlayer or LocalPlayer depending on which class needs it * Move pitch to LocalPlayer & PlayerSAO * Move m_position from Player to LocalPlayer * Move camera_barely_in_ceiling to LocalPlayer as it's used only there * use PlayerSAO::m_base_position for Server side positions * remove a unused variable * ServerActiveObject::setPos now uses const ref * use ServerEnv::loadPlayer unconditionnaly as it creates RemotePlayer only if it's not already loaded * Move hp from Player to LocalPlayer * Move m_hp from LuaEntitySAO to UnitSAO * Use m_hp from PlayerSAO/UnitSAO instead of RemotePlayer
2016-10-30Rename testsounds/ directory to sounds/ (#1984)Hugo Locurcio1-1/+1
2016-10-28Add missing keyname_to_keycode function (needed on Android)sfan51-0/+5
When rewriting keycode.cpp I overlooked this function, fixes #4683 completely
2016-10-28Add missing remoteplayer.cpp to Android buildNer'zhul1-0/+1
this should fix #4683
2016-10-27Add unittests to test player saving/loading (#4679)Ner'zhul2-0/+82
2016-10-27CleanupDániel Juhász2-27/+23
2016-10-27Use node lighting for liquid spreadingDániel Juhász3-121/+144
This commit modifies the liquid transforming procedure to light and unlight nodes instead of whole map blocks.
2016-10-27Improved lightingDániel Juhász6-443/+643
This commit rewrites the procedure that is responsible for light updating. this commit -provides iterative solutions for unlighting and light spreading -introduces a new priority queue-like container for the iteration -creates per-node MapBlock caching to reduce retrieving MapBlocks from the map -calculates with map block positions and in-block relative node coordinates -skips light updating if it is not necessary since the node's new light will be the same as its old light was
2016-10-27Document item use callbacks (#4668)raymoo1-0/+5
2016-10-26Shaders: Remove special handling for liquids. (#4670)lhofhansl2-18/+0
2016-10-25Adding LuaError on attempt to assign vectors with values out of rangeFoghrye42-2/+14
2016-10-25ParticleSpawner: fix offset being added twiceGael-de-Sailly1-2/+1
2016-10-25Windows: dont link to libraries that are already linked by cmakeadrido1-9/+2
This solves the problem whith building where build fails if the libaries have different names.
2016-10-25Shaders: Apply tone mapping before fog calculation.Lars Hofhansl2-8/+8
2016-10-24Shaders: Harmonize Irrlicht and shader fog calculationsLars Hofhansl3-10/+10
2016-10-21Lua_api.txt: Clarify 'override_meta' bool in 'set mapgen setting'paramat1-5/+6
2016-10-21Damage flash: Reduce maximum alpha. Avoid fade overloadparamat1-8/+5
Flash alpha maximum is reduced from 180 to 127 to avoid player blindness in combat. Flash alpha minimum is unchanged. The 'damage_flash' value is now limited to max alpha, to avoid multiple hits creating a huge value that causes flash to stay at maximum alpha for a long period. Now alpha always starts to fade immediately after taking damage. Both problems can be seen in Minetest let's play videos. Simplify and optimise some code.