30 Commits

Author SHA1 Message Date
luk3yx
b112040114 Add Lua-based player:get_meta() wrapper 2021-09-05 10:51:16 +02:00
MoNTE48
2793e9c655 Minor changes and fixes 2021-07-26 12:45:14 +02:00
MoNTE48
c2d13411ca Remove builtin Weather 2020-07-24 16:46:20 +02:00
MoNTE48
b3a34dd850 Builtin: Backport MT5 minor changes 2020-02-04 21:47:07 +01:00
MoNTE48
8ea2d24c47 Add Weather (with rain and snow) 2019-10-13 20:34:13 +02:00
MoNTE48
9b24c80ccb Builtin cleanup 2019-10-11 14:28:30 +02:00
MoNTE48
52debbb120 Move Hunger in builtin, use Stamina mod 2019-08-09 14:05:30 +02:00
MoNTE48
8dd7e13e06 Move Better HUD API in builtin, move hunger bar in hunger mod, armor bar in armor mod, code cleanup 2019-06-17 21:32:11 +02:00
MoNTE48
cb7ab335d4 Hud Item name - move in statbars.lua, fix iOS position, other 2019-05-27 02:11:41 +02:00
Maksim Gamarnik
35770f4abb Merge Minetest 0.4.16 2017-06-06 23:03:34 +03:00
ShadowNinja
dfb4074a5a Use a settings object for the main settings
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.
2017-05-06 15:33:19 -04:00
Loïc Blot
04680f648a [CSM] sound_play & sound_stop support + client_lua_api doc (#5096)
* squashed: CSM: Implement register_globalstep
  * Re-use fatal error mechanism from server to disconnect client on CSM error
  * Little client functions cleanups

* squashed: CSM: add core.after function
  * core.after is shared code between client & server
  * ModApiUtil get_us_time feature enabled for client
2017-03-13 23:56:05 +01:00
red-001
1c7fd8a35c [CSM] Add client-sided chat commands (#5092) 2017-03-13 23:56:05 +01:00
Maksim Gamarnik
add7abf6dc Fix merge 2017-02-01 20:12:11 +02:00
Maksim Gamarnik
e05f7db82f Updated to Minetest ver. 0.4.15 2017-01-30 00:44:07 +02:00
est31
2ae22f0c62 Introduce builtin_shared and use it to fix #4778
Fixes #4778 which was about the error:

ServerError: Lua: Runtime error from mod '' in callback item_OnPlace():
/usr/local/share/minetest/builtin/game/item.lua:278: attempt to call global 'check_attached_node' (a nil value)

The issue was a regression of commit 649448a2a91fbf3e944b2f2e739f4e2292af1df0

"Rename nodeupdate and nodeupdate_single and make them part of the official API"
2016-11-16 18:51:36 +01:00
Tim
8ceaf9cc13 Builtin/profiler: Replace game profiler (#4245)
Use the setting "profiler.load" to enable profiling.
Other settings can be found in settingtypes.txt.

* /profiler print [filter] - report statistics to in-game console
* /profiler dump [filter] - report statistics to STDOUT and debug.txt
* /profiler save [format [filter]] - saves statistics to a file in your worldpath
	* txt (default) - same treetable format as used by the dump and print commands
	* csv - ready for spreadsheet import
	* json - useful for adhoc D3 visualizations
	* json_pretty - line wrapped and intended json for humans
	* lua - serialized lua table of the profile-data, for adhoc scripts
* /profiler reset - reset all gathered profile data.
	This can be helpful to discard of any startup measurements that often spike during loading or to get more useful min-values.

[filter] allows limiting the output of the data via substring/pattern matching against the modname.

Note: Serialized data structures might be subject to change with changed or added measurements.
	csv might be the most stable, due to flat structure.

Changes to the previous version include:

* Updated and extended API monitoring
* Correct calculation of average (mean) values (undistorted by idleness)
* Reduce instrumentation overhead.
* Fix crashes related to missing parameters for the future and occasional DIV/0's.
* Prevent issues caused by timetravel (overflow, timejump, NTP corrections)
* Prevent modname clashes with internal names.
* Measure each instrumentation individually and label based on registration order.
* Labeling of ABM's and LBM's for easier classification.
  Giving several ABM's or LBM's the same label will treat them as one.
  Missing labels will be autogenerated based on name or registration order.
* Configurable instrumentation and reporting. Skip e.g. builtin if you don't need it.
* Profile the profiler to measure instrumentation overhead.
2016-07-12 21:51:10 +02:00
Maksim Gamarnik
edb4cab692 Merge release 2016-03-28 20:08:34 +03:00
Maksim Gamarnik
bcf249297c Merge last Minetest commits 2015-11-10 20:29:00 +02:00
Maksim Gamarnik
919be490f9 Update
Sync all Minetest commits
2015-11-10 13:49:24 +02:00
kwolekr
4072700558 Add callback parameter for core.emerge_area() 2015-11-02 18:43:09 -05:00
Maksim D. Gamarnik
98c1c2965a Stock MainMenu 2015-11-01 10:01:13 +02:00
Rui914
f4e29e66bb minetest. to core. 2015-10-31 02:28:06 +01:00
4aiman Konsorumaniakku
e0ddb1f4e1 core->multicraft 2015-07-05 15:23:28 +03:00
Maksim Gamarnik
0598e2169e New MainMenu, update WversionManager, Makefile change
New MainMenu by 4aiman
WVersionManager - 1.3
Makefile - rename output apk
2015-05-12 10:59:17 +03:00
Maksim Gamarnik
328debf39a New API
Change minetest on multicraft api
2015-05-05 23:01:09 +03:00
paramat
a24491ae18 Remove builtin_biome.lua from builtin and add simple biome minimal 2015-01-11 22:32:48 -05:00
kwolekr
3d2219596e Temporarily set default biome in builtin
This should probably be removed when minetest_game has proper biomes.
If I hear "the whole map is just stone!" again after this, I am going to detonate.
2014-12-18 09:57:38 -05:00
sapier
4b2e3ceaad Mod profiling support
Config settings:
profiling = true/false (gather statistics)
detailed_profiling = true/false (break mod times to callbacks)

Chat commands:
save_mod_profile saves current statistics in debug.txt and shows on console (on default loglevel)
2014-08-19 22:22:57 +02:00
ShadowNinja
6001210df6 Organize builtin into subdirectories 2014-05-07 17:14:23 -04:00