Loic Blot
8e436bc31c
Cleanup server addparticle(spawner) by merge two identical functions.
2015-07-25 12:24:28 +02:00
est31
713002778f
Optional reconnect functionality
...
Enable the server to request the client to reconnect.
This can be done with the now extended minetest.request_shutdown([reason], [reconnect]) setting.
2015-07-23 07:38:13 +02:00
Elia Argentieri
44d030306e
Added get_player_velocity() method. Fixes #1176
2015-07-20 05:40:44 +02:00
TeTpaAka
48fde1766a
Refactor particle code to remove the while loops
...
Replaces while loops with proper getfield calls
2015-07-18 14:54:07 +02:00
TeTpaAka
2996a06b61
Make acc and vel deprecated in add_particle and search for acceleration and velocity instead
...
The doc and the actual behaviour differed.
2015-07-18 07:57:20 +02:00
TeTpaAka
1c520f2f20
Fix invisible player when the attached entity is removed
2015-07-18 07:41:43 +02:00
kwolekr
01027450b0
Fix damage flash when damage disabled
2015-07-10 15:58:57 -04:00
est31
dd302e0032
Use UTF-8 instead of narrow
...
Use wide_to_utf8 and utf8_to_wide instead of wide_to_narrow and narrow_to_wide at almost all places.
Only exceptions: test functions for narrow conversion, and chat, which is done in a separate commit.
2015-07-08 10:12:44 +02:00
TeTpaAka
af7af11b4a
Fix bug when craft input isn't replaced
2015-06-22 19:30:35 +02:00
MirceaKitsune
ee7dfd7ba0
Fix some issues with animations, and allow non-looped animations to be defined
2015-06-22 01:53:38 +02:00
paramat
063ca7aa52
Mapgen objects: Enable heatmap and humidmap for all biome api mapgens
2015-06-20 04:16:17 +01:00
Ilya Zhuravlev
415372ca13
Use utf-8 in formspecs
2015-06-13 19:49:55 +02:00
TeTpaAka
db4fc8326e
Add return list of individual counts to find_node_in_area
2015-06-13 19:39:18 +02:00
kwolekr
3c87e26ee0
Make get_biome_list() error message more helpful
2015-05-28 20:04:50 -04:00
TeTpaAka
4573eef202
Add some missing getter functions to the lua API
...
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-28 16:46:35 +02:00
kwolekr
4df33b90e5
Replace instances of std::map<std::string, std::string> with StringMap
...
Also, clean up surrounding code style
Replace by-value parameter passing with const refs when possible
Fix post-increment of iterators
2015-05-19 16:10:49 -04:00
kwolekr
e2e354061a
Fix null dereference when loading schematic from definition without a NodeDefManager
2015-05-17 22:32:35 -04:00
kwolekr
d013e12e5a
Record MapBlock modification reasons as flags instead of strings
...
This improves performance of MapBlock::raiseModified by a factor of 6.
Also, clean up mapblock.h a bit and inline small functions.
2015-05-17 22:14:26 -04:00
kwolekr
793f960e04
SAPI/Noise: Add PerlinNoiseMap:getMapSlice() function
...
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-17 04:04:17 -04:00
kwolekr
f560198cd7
Add optional buffer param for bulk data array writes in Lua
2015-05-17 00:07:45 -04:00
ShadowNinja
c8b2e0fbdf
Fix current mod name change missed during rebase
2015-05-16 21:12:03 -04:00
kwolekr
5292177986
SAPI: Accept either ARGB8 table or ColorString to specify colors
2015-05-16 20:15:03 -04:00
ShadowNinja
d85feedccc
Add core.get_dir_list
2015-05-16 18:33:22 -04:00
ShadowNinja
2dd64f03da
Add core.request_insecure_environment()
2015-05-16 18:33:19 -04:00
ShadowNinja
310295c511
Add core.mkdir
2015-05-16 18:32:37 -04:00
ShadowNinja
1008aefa8c
Add mod security
...
Due to compatibility concerns, this is temporarily disabled.
2015-05-16 18:32:31 -04:00
TeTpaAka
766d3b3a57
Add push_ARGB8 to script/common/c_converter
2015-05-15 16:21:56 -04:00
TeTpaAka
676750bd57
Generalize core.get/set_nametag_color into core.get/set_nametag_attributes
2015-05-15 16:21:01 -04:00
TeTpaAka
888e2f9b45
Add get and set functions for the nametag color
2015-05-15 11:03:27 +02:00
est31
24ab05ab83
Fix compiler warning about sign comparison
2015-05-13 00:04:30 +02:00
est31
de86d6dabf
is_player() is no player-only function
2015-05-12 05:52:49 +02:00
est31
4769d4fe1d
Make early protocol auth mechanism generic, and add SRP
...
Adds everything needed for SRP (and everything works too),
but still deactivated, as protocol v25 init packets aren't final yet.
Can be activated by changing the LATEST_PROTOCOL_VERSION header to 25
inside networkprotocol.h.
2015-05-11 18:40:27 +02:00
kwolekr
4a54c965a5
Schematics: Add per-node force placement option
2015-05-09 18:44:00 -04:00
kwolekr
9f679f6b11
Tests: Add schematic unittests
...
Improve schematic file-saving interface
Add ability to create temporary test files
2015-05-08 00:55:42 -04:00
kwolekr
097b9ead50
Schematics: Add indent-with-space option for schematic Lua table serialization
2015-05-07 02:54:35 -04:00
kwolekr
e8fb94705c
NodeResolver: Remove NodeResolveMethod
...
This simplifies NodeResolver logic and makes some interfaces cleaner.
2015-05-07 02:36:01 -04:00
kwolekr
cba840d188
Add core.find_nodes_with_meta() script API
2015-05-05 16:21:59 -04:00
kwolekr
6495b9b57b
Ore: Add biomes parameter
2015-04-20 20:25:33 -04:00
kwolekr
144d1ce2a0
Add 'persistence' alias for Lua noiseparams and validate more vector parameters
2015-04-19 21:42:40 -04:00
paramat
11013edeb8
Biome API: Add biome-specific river water
2015-04-19 06:09:57 +01:00
kwolekr
9c2f472c09
Schematics: Fix core.schematic_create()
2015-04-17 18:39:37 -04:00
kwolekr
04dcd9ff2b
Switch to check_v3s16 in l_mapgen.cpp and l_vmanip.cpp for type safety
2015-04-17 01:03:13 -04:00
est31
0094943204
Refactor around translatePassword
...
Change types for passed password from wstring to string, which removes converting
back and forth in most cases. Move the narrow_to_wide conversion, where its neccessary,
closer to irrlicht. Remove trailing spaces in guiPasswordChange.cpp. Make parameters for
translatePassword passed as const reference.
2015-04-17 06:10:30 +02:00
kwolekr
2522c53f17
Biomes: Remove referenced biomes from Decorations on clear
2015-04-16 23:38:05 -04:00
kwolekr
737d4078c9
Schematics: Refactor NodeResolver and add NodeResolveMethod
...
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.
2015-04-16 16:27:05 -04:00
Loic Blot
ba8ec92a6e
Use std::vector instead of std::set for Environment::getObjectsInsideRadius
...
We are only iterating sequentially, we don't need a set here
Also use a vector reference instead of a copy
2015-04-16 18:37:29 +02:00
kwolekr
4c5f712673
Schematics: Reorganize (de)serialization and add Lua serialization API
2015-04-13 03:10:52 -04:00
est31
5119498ae2
Document for api functions that rely on current_modname, that it doesn't work when not loading mods
2015-04-08 23:05:26 +02:00
kwolekr
55d3aa7960
Schematics: Prepend mod path to relative schematic filepaths
2015-04-08 00:28:56 -04:00
Craig Robbins
0731f9ed2a
Move globals from main.cpp to more sane locations
...
Move debug streams to log.cpp|h
Move GUI-related globals to clientlauncher
Move g_settings and g_settings_path to settings.cpp|h
Move g_menuclouds to clouds.cpp|h
Move g_profiler to profiler.cpp|h
2015-04-01 23:04:25 +10:00