aboutsummaryrefslogtreecommitdiff
path: root/src/script (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix CSM crash caused by move to C++11. (#6027)red-0012017-06-221-1/+2
|
* Automatic item and node colorization (#5640)Dániel Juhász2017-06-202-5/+8
| | | | | | | | | | | | | | | | | * Automatic item and node colorization Now nodes with a palette yield colored item stacks, and colored items place colored nodes by default. The client predicts the colorization. * Backwards compatibility * Use nil * Style fixes * Fix code style * Document changes
* Fix 2 warnings reported by GCCLoic Blot2017-06-201-1/+3
| | | | | * ClientEnvironment::m_irr is not used anymore since a recent cleanup * l_vmanip constructor ordering
* C++11 cleanup on constructors (#6000)Vincent Glize2017-06-1922-96/+61
| | | | * C++11 cleanup on constructors dir script
* find_nodes_in_area: Extend maximal count to U32_MAX (#5277)SmallJoker2017-06-191-18/+44
| | | | | | | Extend documentation, limit area volume Remove u16 count limitation * Prevent integer overflow, replace minp/maxp with pos1/pos2
* Client::makeScreenshot: remove device paramLoic Blot2017-06-191-1/+1
| | | | We already have the device param as class member
* Sound: Add pitch option (#5960)Rui2017-06-112-3/+9
| | | | * Sound: Add pitch option
* Improve the path select GUI (#5852)red-0012017-06-112-5/+7
| | | | | | | | | | | - Allow lua to chose whatever directories or files can be selected - Fix selecting directories - Rename dialog to `guiPathSelectMenu` from `guiFileSelectMenu` - Rename lua function for opening the menu from `show_file_open_dialog` to `show_path_select_dialog` - Remove duplicate code and fix code style. Related changes - fix `clang-format` whitelist. - Regenerate minetest.conf.example
* Remove threads.h and replace its definitions with their C++11 equivalents ↵ShadowNinja2017-06-112-9/+11
| | | | | | (#5957) This also changes threadProc's signature, since C++11 supports arbitrary thread function signatures.
* C++11 patchset 6: forbid object copy using assigment/copy function deleters ↵Loïc Blot2017-06-104-6/+2
| | | | | | | (#5945) C++11 implement function deleting, it's generally used to prevent some object copy In script API use this function removal on ScriptApiBase instead of ScriptApiClient/Server/MainMenu, this affect all ScriptApis Move DISABLE_CLASS_COPY with constructor, the deleted function permit to replace function in its original place
* Order es_DrawType exactly like enum NodeDrawType in nodedef.h (#5946)Thomas--S2017-06-101-3/+4
| | | This will help to avoid some strange bugs.
* CSM: Fix documentation error for register_on_*_chat_messages (#5917)DS2017-06-091-2/+2
|
* [CSM] Add function to get player privileges (#5933)red-0012017-06-072-0/+15
| | | | | | * [CSM] Add function to get player privileges + move related help functions to common * Added @Zeno- const
* Use C++11 mutexes only (remove compat code) (#5922)Loïc Blot2017-06-062-5/+3
| | | | * Fix event LINT & remove default constructor/destructors * remove compat code & modernize autolock header
* Main Menu: Add get_clientmodpath API (#5912)Elijah Duffy2017-06-062-1/+13
| | | Add `core.get_clientmodpath` to main menu API (also possible in async calls).
* C++11 patchset 2: remove util/cpp11.h and util/cpp11_container.h (#5821)Loïc Blot2017-06-045-17/+17
|
* Minetest for C++11 (CMakeLists + Travis)Loic Blot2017-06-041-0/+1
| | | | | | | | | | | * Move GCC to GCC 6 & GCC 7 * Move Clang to Clang 3.6 & Clang 4.0 * LINT moves from Clang 3.9 to Clang 4.0 * Move XCode 7.3 to 8.0 * Use more travis tricks to install compilers instead of adding complexity to our build script * Clang format fixes on checked files (compat Cpp11 instead of Cpp03) * Mingw GCC update from 4.8.4 to 5.3 (Ubuntu Xenial) * Drop mingw cmake generated files and add them to gitignore
* Enhance ABM performance a little bit by removing two std::set copy (#5815)Loïc Blot2017-05-251-2/+2
| | | | | | | | | | * Enhance ABM performance a little bit by removing two std::set copy * ActiveBlockModifier::getTriggerContents now returns a const ref * ActiveBlockModifier::getRequiredNeighbors now returns a const ref * ActiveBlockModifier::getRequiredNeighbors is now purely virtual * Little code style fix
* Fix wrong return value in get_sky Lua call since ↵Loic Blot2017-05-231-1/+1
| | | | | | ad9fcf859ec2347325830e09504ae96968b51ea8 Fix #5803
* LINT fix & check all files with clang-formatLoic Blot2017-05-221-1/+1
| | | | Seems the diff mode doesn't work well, PR are detected as working whereas in master it's shown it's problematic (and really problematic). Use same check everywhere
* [CSM] Add send_chat_message and run_server_chatcommand API functions (#5747)Pierre-Adrien Langrognet2017-05-212-0/+25
| | | | | | | | | | | | * [CSM] Add send_chat_message and run_server_chatcommand API functions * Add client-side chat message rate limiting * Limit out chat queue size * [CSM] Add minetest.clear_out_chat_queue API function and .clear_chat_queue chatcommand * Last fixes/cleanups before merge
* Fix LINT broken by dfa0c15ce045705f05487d623dc7beca6c945b4bLoic Blot2017-05-212-11/+11
|
* [CSM] Add function to get the definition of items (#5732)bigfoot5472017-05-214-1/+329
| | | | | Add node def and item def documentation. Please be ready for merge!
* [CSM] Correct the log destination of print() (#5784)SmallJoker2017-05-202-0/+13
|
* Fix CSM crash (#5779)red-0012017-05-203-6/+12
| | | Caused by dc5bc6c and them made worse by 5ebf8f9
* When minimap is disabled in configuration, really disable it (#5771)Loïc Blot2017-05-191-1/+2
| | | | * When minimap is disabled in configuration, really disable it
* Fix a warning pointed by GCC 7.1Loic Blot2017-05-181-1/+1
| | | | lua_tonumber overflow in snprintf (12 bytes and only 10 can be written)
* Private nodemeta (#5702)sfan52017-05-102-0/+30
| | | | * Private node metadata that isn't sent to the client
* read_schematic_replacements: ensure fields are strings (#5726)Loïc Blot2017-05-081-0/+8
| | | | | | | | * read_schematic_replacements: ensure fields are strings add a type check before reading strings on read_schematic_replacements deserializer * throw LuaError instead of asserting the whole client
* Player attrs: permits to remove an attribute by setting value to nil (#5716)Loïc Blot2017-05-071-3/+4
| | | | | | | | | | * Player attrs: permits to remove an attribute by setting value to nil When doing player:set_attribute("attr", nil) remove attribute Also remove a useless check on C++ API part (already done by checkplayer) Fix #5709
* LINT fix since d0678948165768472fc940c03e78cba787f49ea5Loic Blot2017-05-072-2/+1
|
* Replace occurrence of luaL_reg in l_camera.cppT0ny22017-05-071-1/+1
| | | | | Related to commit 41c5483. Replace an occurrence of luaL_reg in src/script/lua_api/l_camera.cpp (added by commit de028fc).
* Clean up numeric.h and split FacePositionCache from itShadowNinja2017-05-062-0/+2
| | | | | I also optiized FacePositionCache a bit: I removed a map lookup and vector copy from both branches of getFacePosition.
* Use a settings object for the main settingsShadowNinja2017-05-0615-198/+168
| | | | | | | This unifies the settings APIs. This also unifies the sync and async registration APIs, since the async registration API did not support adding non-functions to the API table.
* Fix codestyle since CSM Camera APILoic Blot2017-05-062-47/+41
|
* [CSM] add `on_item_use` (#5544)red-0012017-05-062-0/+20
|
* [CSM] Add camera API (#5609)bigfoot5472017-05-057-56/+262
| | | | | | | * [CSM] Add camera API roper rebase & squash * Address nerzhul's review
* Add option to also check the center to `find_node_near` (#5255)red-0012017-05-042-9/+9
| | | | | * Add option to also check the center to `find_node_near`
* Add function to get server info.red-0012017-05-042-6/+16
|
* Set sky API: Add bool for clouds in front of custom skyboxparamat2017-05-022-7/+12
| | | | | | | Default true. Add 'm_clouds_enabled' bool to sky.h, set from new bool in 'set sky' API. Make 'getCloudsVisible()' depend on 'm_clouds_enabled' instead of 'm_visible' (whether normal sky is visible).
* Sneak: Improve and fix various thingsSmallJoker2017-05-032-10/+0
| | | | | | Remove useless `got_teleported`. Fix jitter when walking against the sneak limits. Fix damage evading on sneak ladders.
* Sound API: Add fading soundsBrandon2017-05-034-0/+18
|
* Add clouds APIBen Deutsch2017-04-302-0/+87
|
* Fix visual slide issue with set_detach, fixes #5620shivajiva1012017-04-291-3/+5
|
* [CSM] Add event on_place_node API lua (#5548)Vincent Glize2017-04-298-37/+75
| | | | * [CSM] Add event on_place_node API lua
* [CSM] add screenshot api lua (#5674)Vincent Glize2017-04-292-0/+10
| | | | * [CSM] add screenshot api lua
* Don't permit to copy Scripting classes (Client,Server,Mainmenu)Loïc Blot2017-04-273-0/+6
|
* Allow scripts to get the client protocol version in non-debug builds. (#5649)red-0012017-04-272-6/+6
|
* Rename Scripting API files for consistencyShadowNinja2017-04-257-6/+6
|
* Fix various points reported by cppcheck (#5656)Loïc Blot2017-04-258-15/+14
| | | | | | | | | | | | * Fix various performance issues reported by cppcheck + code style (CI) * Make CI happy with code style on master * guiFileSelectMenu: remove useless includes * some performance fixes pointed by cppcheck * remove some useless casts * TextDest: remove unused setFormSpec function * Fix various iterator post-increment reported by cppcheck