aboutsummaryrefslogtreecommitdiff
path: root/src/script/common/c_converter.cpp
AgeCommit message (Collapse)Author
2022-05-30Invalid float vector dimension range: clamp and warn instead of crashclampElias Fleckenstein
2022-03-29Store vector metatable in registryJude Melton-Houghton
2022-02-08Remove awful Mingw32 workaroundssfan5
Instead a warning is triggered if an affected compiler is detected. closes #12022
2022-02-04Fix types of get_mapgen_setting_noiseparams (#12025)Lars Müller
2021-09-11Make sure relevant std::stringstreams are set to binarysfan5
2021-06-04Add metatables to lua vectors (#11039)DS
Add backwards-compatible metatable functions for vectors.
2020-10-05Remove unused functions reported by cppcheck (#10463)SmallJoker
Run unused functions reported by cppcheck This change removes a few (but not all) unused functions. Some unused helper functions were not removed due to their complexity and potential of future use.
2020-07-09Quick workaround for crashing destructor on Mingw32sfan5
closes #10137
2020-06-01Lua API: Log incorrect parameter types as error (#9954)SmallJoker
Incorrect parameter types are logged as errors, taking coercion into account. This is a workaround to ensure mod compatibility. Duplicate warnings are ignored per server instance.
2020-04-27Script: Enforce type checks if not nil (#9748)SmallJoker
* Script: Enforce type checks if not nil
2020-04-14scriptapi: Some small optimizations to value pushing (#9669)sfan5
2020-03-05set_sky improvements, set_sun, set_moon and set_starsJordach
2019-06-06HTTP API: Allow binary downloads and headers (#8573)SmallJoker
Add minetest.features.httpfetch_binary_data
2018-07-08Lua templating reading (part 4): s16, v2s16, v2f (#7512)Loïc Blot
2018-03-03c_converter: Function template for numeric fields, add v3s16 default (#7090)SmallJoker
2017-12-26Fix rounding error in g/set_node caused by truncation to floatrubenwardy
2017-10-23Improvements/fixes for noise parameter input in advanced settingsMuhammad Rifqi Priyo Susanto
Formspec input for each individual noise parameter and flag. Allow noise flags to be set in advanced settings, previously only settable in minetest.conf. Standardise 'group format' for noise parameters set in minetest.conf, as only these support noise flags. However the older 'single line' format is still accepted to support existing minetest.conf files. Therefore auto-generate minetest.conf.example with noise parameters in 'group format'. Setting 'type' in settingtypes.txt is now either 'noise_params_2D' or 'noise_params_3D', the dimension number is displayed in the advanced settings edit page.
2017-09-14Object properties: Add 'glow', disables light's effect if negativeRob Blanckaert
The 'glow' value is added to the ambient light value. Negative 'glow' disables light's effect on object colour, for faking self-lighting, UI-style entities, or programmatic colouring in mods.
2017-08-20Modernize source code: last part (#6285)Loïc Blot
* Modernize source code: last par * Use empty when needed * Use emplace_back instead of push_back when needed * For range-based loops * Initializers fixes * constructors, destructors default * c++ C stl includes
2017-08-04Sort box corners correctlyThomas--S
2017-01-15Added lua tracebacks to some errors where you have been blind to what… (#5043)sapier
* Added lua tracebacks to some errors where you have been blind to what actually went wrong
2016-11-14Revert "Adding particle blend, glow and animation (#4705)"sfan5
This reverts commit 93e3555eae2deaeca69ee252cfa9cc9c3e0e49ef.
2016-11-15Adding particle blend, glow and animation (#4705)Foghrye4
2016-10-25Adding LuaError on attempt to assign vectors with values out of rangeFoghrye4
2016-08-10Lua->C getintfield() use lua_tointeger (#4408)Tomas
previously function used tonumber which returned float this caused errors in large numbers and resulted in obj-def-handlers being invalid when retrived from lua tables in c
2016-02-22Add Lua interface to HTTPFetchRequestJeija
This allows mods to perform both asynchronous and synchronous HTTP requests. Mods are only granted access to HTTP APIs if either mod security is disabled or if they are whitelisted in any of the the secure.http_mods and secure.trusted_mods settings. Adds httpfetch_caller_alloc_secure to generate random, non-predictable caller IDs so that lua mods cannot spy on each others HTTP queries.
2015-05-28Add some missing getter functions to the lua APITeTpaAka
ObjectRef: get_properties get_armor_groups get_animation get_attach get_bone_position Players: get_physics_override hud_get_hotbar_itemcount hud_get_hotbar_image hud_get_hotbar_selected_image get_sky get_day_night_ratio get_local_animation get_eye_offset Global: minetest.get_gen_notify minetest.get_noiseparams
2015-05-17SAPI/Noise: Add PerlinNoiseMap:getMapSlice() functionkwolekr
This adds the ability to grab 'slices' of noise calculated by PerlinNoiseMap. Retrieving smaller slices of noise from the computation result as needed optimizes memory usage while maintaining a reasonable amount of CPU overhead.
2015-05-16SAPI: Accept either ARGB8 table or ColorString to specify colorskwolekr
2015-05-15Add push_ARGB8 to script/common/c_converterTeTpaAka
2015-05-09Schematics: Add per-node force placement optionkwolekr
2015-05-08Fix missing Y component assignment in check_v3fkwolekr
2015-05-07Remove duplicate lua_getfield() in c_converter.cppKevin Ott
Fixes #2678
2015-05-06Fix error messages for type-checking Lua reading functionsShadowNinja
2015-04-19Add 'persistence' alias for Lua noiseparams and validate more vector parameterskwolekr
2015-04-16Schematics: Refactor NodeResolver and add NodeResolveMethodkwolekr
NodeResolver name lists now belong to the NodeResolver object instead of the associated NodeDefManager. In addition to minimizing unnecessary abstraction and overhead, this move permits NodeResolvers to look up nodes that they had previously set pending for resolution. So far, this functionality has been used in the case of schematics for serialization/deserialization.
2014-12-27Redefine NodeResolver interface and replace with callback mechanismkwolekr
2014-10-26Add NodeResolver and clean up node name -> content ID resolution systemkwolekr
2014-04-12Use integers instead of float valuesBlockMen
2013-07-02Fix possible 0 pointer accesssapier
2013-05-25Move scriptapi to separate folder (by sapier)sapier
On the lua side, notably minetest.env:<function>(<args>) should now be replaced by minetest.<function>(<args>). The old way is and will stay supported for a long time. Also: Update and clean up lua_api.txt (by celeron55) Move EnvRef to lua and remove add_rat and add_firefly (by kahrl) Add separate src/util/CMakeLists.txt, other minor fixes (by kahrl)