aboutsummaryrefslogtreecommitdiff
path: root/src/script/common (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix some warnings (#12615)rubenwardy2022-07-301-1/+1
|
* Add check_mod_configuration to main menurubenwardy2022-07-142-0/+35
|
* Reduce code duplication between c_converter.cpp and helper.cppsfan52022-07-144-84/+32
|
* Remove unnecessary float limits from script APIsfan52022-07-141-20/+23
| | | | Leaves a check for NaN and inf.
* Animated particlespawners and more (#11545)Lexi Hale2022-07-132-1/+2
| | | | | Co-authored-by: Lars Mueller <appgurulars@gmx.de> Co-authored-by: sfan5 <sfan5@live.de> Co-authored-by: Dmitry Kostenko <codeforsmile@gmail.com>
* Sounds: Various little improvements (#12486)SmallJoker2022-07-091-2/+2
| | | | | Use SimpleSoundSpec where reasonable (OpenAL) Ensure the sound IDs do not underflow or get overwritten -> loop in u16 Proper use of an enum.
* Remove tile_images and special_materials obsolete code (#12455)Zughy2022-06-281-14/+0
| | | Co-authored-by: Zughy <4279489-marco_a@users.noreply.gitlab.com>
* Re-order sound-related code (#12382)SmallJoker2022-06-202-10/+13
| | | | | | | | Dropped ServerSoundParams -> moved to ServerPlayingSound. This gets rid of the duplicated 'fade' and 'pitch' values on server-side where only one was used anyway. SimpleSoundSpec is the basic sound without positional information, hence 'loop' is included. Recursively added PROTOCOL_VERSION to most functions to reduce the versioning mess in the future. Per-type version numbers are kept for now as a safety rope in a special case.
* No damage effects on hp_max change (#11846)Lars Müller2022-06-111-1/+1
|
* Reduce size of ContentFeatures structuresfan52022-05-261-21/+28
| | | | | | On my system this is a reduction from 4664 to 3704 bytes. This is not for the sake of saving RAM but ensuring commonly used structures fit into caches better.
* Use native packer to transfer globals into async env(s)sfan52022-05-101-1/+1
|
* Support packing arbitrary graphs (#12289)Jude Melton-Houghton2022-05-102-46/+62
|
* hud_get: Return precision field for waypoints (#12215)Lars Müller2022-05-041-0/+6
|
* Async environment for mods to do concurrent tasks (#11131)sfan52022-05-025-0/+726
|
* Refactor some Lua API functions in preparation for async envsfan52022-05-022-7/+7
|
* Store vector metatable in registryJude Melton-Houghton2022-03-292-16/+4
|
* Fix the documentation of InvRef:get_lists() and clean up code (#12150)DS2022-03-292-11/+18
|
* Remove awful Mingw32 workaroundssfan52022-02-081-8/+0
| | | | | Instead a warning is triggered if an affected compiler is detected. closes #12022
* Fix types of get_mapgen_setting_noiseparams (#12025)Lars Müller2022-02-043-43/+8
|
* Don't let HTTP API pass through untrusted functionsfan52021-12-181-0/+2
| | | | This has been a problem since the first day, oops.
* Split liquid_viscosity to liquid_viscosity and move_resistance (#10810)Wuzzy2021-10-011-0/+22
|
* Make sure relevant std::stringstreams are set to binarysfan52021-09-111-4/+1
|
* Clean up/improve some scriptapi error handling codesfan52021-09-102-42/+4
|
* Remove redundant on_dieplayer callssavilli2021-08-281-2/+0
|
* HUD: Reject and warn on invalid stat types (#11548)SmallJoker2021-08-214-28/+55
| | | | This comes into play on older servers which do not know the "stat" type. Warnings are only logged once to avoid spam within globalstep callbacks
* Add bold, italic and monospace font styling for HUD text elements (#11478)sfan52021-07-271-0/+9
| | | Co-authored-by: Elias Fleckenstein <eliasfleckenstein@web.de>
* Inventory: Make addList() consistent (#11382)SmallJoker2021-06-301-2/+2
| | | | Fixes list clearing for inv:set_list() using same size, since 2db6b07. addList() now clears the list in all cases. Use setSize() to resize without clearing.
* Inventory: show error on invalid list names (#11368)SmallJoker2021-06-201-12/+14
|
* Add metatables to lua vectors (#11039)DS2021-06-041-0/+25
| | | Add backwards-compatible metatable functions for vectors.
* fix: some code tidy about includes & irr namespacesLoic Blot2021-05-031-0/+2
|
* refacto: Hud: make driver, client, player, inventory, tsrc private & drop ↵Loic Blot2021-05-031-1/+1
| | | | | | unused guienv also fix c_content.h, on client it includes the src/client/hud.h instead of src/hud.h, which leads to wrong file dependency on the lua stack
* Degrotate support for mesh nodes (#7840)Vitaliy2021-03-301-1/+2
|
* Use place_param2 client-side for item appearance & prediction (#11024)sfan52021-03-091-0/+2
|
* Add nametag background setting and object property (#10937)rubenwardy2021-02-173-9/+36
|
* Fix short_description fallback order (#10943)rubenwardy2021-02-171-2/+4
|
* Rework use_texture_alpha to provide three opaque/clip/blend modessfan52021-01-291-9/+23
| | | | | The change that turns nodeboxes and meshes opaque when possible is kept, as is the compatibility code that warns modders to adjust their nodedefs.
* Drop never documented 'alpha' property from nodedefsfan52021-01-291-1/+4
| | | | | Includes minimal support code for practical reasons. We'll need it for a slightly different purpose next commit.
* Removed some obsolete code (#10562)Zughy2021-01-211-17/+0
| | | Co-authored-by: Zughy <4279489-marco_a@users.noreply.gitlab.com>
* Fix ObjectRef errors due to lua_isnil() (#10564)Zughy2020-11-042-21/+28
| | | Treat 'none' values as 'nil'
* Fix segfault in deprecation logging due to tail call, log by default (#10174)rubenwardy2020-10-312-8/+32
|
* Decouple entity minimap markers from nametags replacing with show_on_minimap ↵sfan52020-10-191-0/+3
| | | | property (#10443)
* Pass ContentFeatures as reference to read_content_features (#10464)JosiahWI2020-10-132-5/+3
|
* Add a short_description to be used by mods (#8980)DS2020-10-091-0/+3
|
* Remove unused functions reported by cppcheck (#10463)SmallJoker2020-10-052-47/+0
| | | | | | | 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.
* Fix precision not working in hud_change (#10186)Lars Müller2020-08-121-1/+4
|
* Quick workaround for crashing destructor on Mingw32sfan52020-07-091-1/+9
| | | | closes #10137
* Make shading of CAOs optional (#10033)Danila Shutov2020-06-161-0/+3
|
* Lua API: Log incorrect parameter types as error (#9954)SmallJoker2020-06-011-3/+29
| | | | | 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.
* CSM: Fix crashing minetest.get_item_def()sfan52020-05-201-1/+1
| | | | fixes #9884
* Rework functionality of leveled nodes (#9852)Wuzzy2020-05-191-0/+4
| | | | Co-authored-by: sfan5 <sfan5@live.de> Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>