summaryrefslogtreecommitdiff
path: root/src/script/lua_api
Commit message (Collapse)AuthorAge
* Fix forgotten PlayerSAO cast in a90f2efSmallJoker2019-05-21
|
* Check for out-of-bounds breath when setting breath_max (#8493)ANAND ツ2019-05-21
|
* l_mapgen.cpp: Fix LINT broken since b1b40feSmallJoker2019-05-21
|
* Allow multiple cave liquids in a biome definition (#8481)Paramat2019-05-18
| | | | | | | | | | | | | This allows games to specify biome cave liquids and avoid the old hardcoded behaviour, but preserves the ability to have multiple cave liquids in one biome, such as lava and water. When multiple cave liquids are defined by the biome definition, make each entire cave use a randomly chosen liquid, instead of every small cave segment using a randomly chosen liquid. Plus an optimisation: Don't place nodes if cave liquid is defined as 'air'
* Move HTTP request logging to infostream (#8526)ANAND ︻气デ═一2019-05-12
|
* Force send a mapblock to a player (#8140)sofar2019-04-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Force send a mapblock to a player. Send a single mapblock to a specific remote player. This is badly needed for mods and games where players are teleported into terrain which may be not generated, loaded, or modified significantly since the last player visit. In all these cases, the player currently ends up in void, air, or inside blocks which not only looks bad, but has the effect that the player might end up falling and then the server needs to correct for the player position again later, which is a hack. The best solution is to send at least the single mapblock that the player will be teleported to. I've tested this with ITB which does this all the time, and I can see it functioning as expected (it even shows a half loaded entry hallway, as the further blocks aren't loaded yet). The parameter is a blockpos (table of x, y, z), not a regular pos. The function may return false if the call failed. This is most likely due to the target position not being generated or emerged yet, or another internal failure, such as the player not being initialized. * Always send mapblock on teleport or respawn. This avoids the need for mods to send a mapblock on teleport or respawn, since any call to `player:set_pos()` will pass this code.
* Add node field to PlayerHPChangeReason table (#8368)Paul Ouellette2019-04-11
|
* Add deprecation warnings for ObjectRef:get/set_attribute (#8443)ANAND2019-04-07
|
* HPChange Reason: Fix push after free, and type being overwritten (#8359)rubenwardy2019-03-12
| | | | | | * HPChange Reason: Fix push after free, and type being overwritten Fixes #8227 and #8344
* Hide uninstall package button on unmodifiable paths (#8255)rubenwardy2019-03-05
|
* Fix particle spawners not visible since CSM spawner implementation (#8289)Loïc Blot2019-03-01
| | | | | * Drop the ID mapper, use a big u64 instead. This will permit to resync server ids properly with the manager code * Modernize some code parts (std::unordered_map, auto) * generate id on client part on U32_MAX + 1 ids, lower are for server ids
* Revert "Revert CSM particles commit to fix particle spawner bug for 5.0.0 ↵Loïc Blot2019-02-26
| | | | | | (#8288)" This reverts commit 01cd63bd3bca0192dab2834faf414b022706a77e.
* Revert CSM particles commit to fix particle spawner bug for 5.0.0 (#8288)Paramat2019-02-26
| | | | Reverts 5dab7426451842793b183fbd961ad2ae83c8acbd "[CSM] Add functions to create particles and particlespawners."
* Fix extract zip writing lowercase files (#8221)rubenwardy2019-02-14
|
* Consistent HP and damage types (#8167)SmallJoker2019-02-10
| | | | | Remove deprecated HUDs and chat message handling. Remove unused m_damage variable (compat break). HP: s32 for setter/calculations, u16 for getter.
* Content store: Fix storage leak by storing screenshots in cache (#8137)rubenwardy2019-01-31
|
* Fix pkgmgr game install with RUN_IN_PLACE=0 (#8113)Paul Ouellette2019-01-26
|
* Fix various bugs (Anticheat, Lua helpers) (#8013)SmallJoker2019-01-06
| | | | | | | | | | | * Fix various bugs (Anticheat, Lua helpers) Anticheat: Use camera position instead of player position for shoot line calculations Lua helpers: Increase 'i' to not overwrite earlier added table values * Remove lag compensation * * 1.5 for larger selection boxes
* Add minetest.load_area (#8023)HybridDog2018-12-31
|
* CSM: add requested CSM_RF_READ_PLAYERINFO (#8007)Loïc Blot2018-12-24
| | | | | | | | * CSM: add requested CSM_RF_READ_PLAYERINFO This new CSM limit permit to limit PLAYERINFO read from server. It affects get_player_names call
* reportMetadataChange; Silence clang warningsSmallJoker2018-12-21
|
* Fix ContentDB packages timing out by using download_file instead (#7891)rubenwardy2018-12-11
|
* Send only changed node metadata to clients instead of whole mapblock (#5268)SmallJoker2018-12-04
| | | | | | | Includes newer style changes and fixes by est31 Improve the block position de-serialization Add type NodeMetadataMap
* Move client-specific files to 'src/client' (#7902)Quentin Bazin2018-11-28
| | | | | Update Android.mk Remove 'src/client' from include_directories
* Add Lua methods 'set_rotation()' and 'get_rotation()' (#7395)CoderForTheBetter2018-11-28
| | | | * Adds Lua methods 'set_rotation()' and 'get_rotation'. Also changed some method names to be more clear. Instead of an f32 being sent over network for yaw, now a v3f is sent for rotation on xyz axes. Perserved Lua method set_yaw/setyaw so that old mods still work, other wise to set yaw they would need to switch to set_rotation(0, yaw, 0).
* Content store: Add setting to filter non-free packages (#7766)rubenwardy2018-11-08
| | | | Defaulting to hiding in order to help with Debian/etc distribution. This could be changed at a later date.
* clear_craft: Return false if recipe not found, don't throw error (#7804)Paramat2018-10-24
|
* Add core.remove_detached_inventory (#7684)SmallJoker2018-10-10
| | | | Breaks backwards compatibility for good Bump protocol version
* markAliasDeprecated: Fix MSVC buildSmallJoker2018-09-11
|
* Particles: Make collision with objects optional (#7682)Paramat2018-09-08
| | | | | | Also set it to false for node dig particles, as they are often created and high in number. Improve particle documentation.
* Raycast: export exact pointing location (#6304)Dániel Juhász2018-08-16
| | | | | * Return intersection point in node coordinates. * Clarify 'intersection_point' documentation
* Replace auth.txt with SQLite auth database (#7279)Ben Deutsch2018-08-05
| | | | * Replace auth.txt with SQLite auth database
* LuaVoxelManip: Throw warning or error instead of silently doing nothing (#7567)HybridDog2018-08-02
| | | | Error on missing parameter. Warning when using a method on the incorrect type of LuaVoxelManip.
* Add protocol_version and supported package types to ContentDB urlsrubenwardy2018-07-29
|
* Lua templating reading (part 4): s16, v2s16, v2f (#7512)Loïc Blot2018-07-08
|
* Log deprecated Lua function calls (#7491)SmallJoker2018-07-01
|
* Modernize lua read (part 2 & 3): C++ templating assurance (#7410)Loïc Blot2018-06-30
| | | | | | | | | * Modernize lua read (part 2 & 3): C++ templating assurance Implement the boolean reader Implement the string reader Also remove unused & unimplemented script_error_handler Add a reader with default value
* Fix memory leaks in mod storage (#7500)red-0012018-06-30
|
* Fix world deletion (#7494)Vitaliy2018-06-30
| | | | * Fix world deletion
* Fix a memleak before assertion in l_get_mod_storageLoic Blot2018-06-30
|
* Fix mod channels crash (#7481)red-0012018-06-27
|
* Rename CSM flavours to restrictionsSmallJoker2018-06-26
| | | | & Satisfy LINT
* Update to new ContentDB APIrubenwardy2018-06-18
|
* Fix narrow/utf8 difference in incoming/outcoming messagesnumber Zero2018-06-10
|
* Modernize lua read (part 1): C++ templating insurance (#7394)Loïc Blot2018-06-04
| | | | | | | * Modernize lua read (part 1): C++ templating assurance Implement the float reader
* Fix isNan on setYaw Lua call (#7380)Loïc Blot2018-05-31
| | | | * Fix isNan on setYaw Lua call
* Fix missing ignore textures (#7326)you2018-05-20
|
* Add screenshots to online content browserrubenwardy2018-05-20
|
* Add updating to online content browserrubenwardy2018-05-16
|
* Allow damage for attached objects, add attach/detach callbacks (#6786)SmallJoker2018-04-30
| | | * Allow right-clicking on attached LuaEntities