ShadowNinja
c00b6812b1
Fix current mod name change missed during rebase
2015-05-16 21:12:03 -04:00
kwolekr
11a96e4901
Add -Wsign-compare for Clang builds and fix some signed/unsigned compiler warnings
2015-05-16 20:15:03 -04:00
kwolekr
fb36c471d7
SAPI: Accept either ARGB8 table or ColorString to specify colors
2015-05-16 20:15:03 -04:00
ShadowNinja
8f9af57314
Add core.get_dir_list
2015-05-16 18:33:22 -04:00
ShadowNinja
6c06330daf
Add core.request_insecure_environment()
2015-05-16 18:33:19 -04:00
ShadowNinja
05ab9973f9
Add core.mkdir
2015-05-16 18:32:37 -04:00
ShadowNinja
3a8c788880
Add mod security
...
Due to compatibility concerns, this is temporarily disabled.
2015-05-16 18:32:31 -04:00
est31
c297a75a7d
Fix build since last commit
...
Also rename method to better match what it does.
2015-05-16 22:14:15 +02:00
est31
8dbf683313
Finalize init packets and enable protocol v25
...
This enables srp.
2015-05-16 21:17:28 +02:00
TeTpaAka
19cbb6b37b
Add push_ARGB8 to script/common/c_converter
2015-05-15 16:21:56 -04:00
TeTpaAka
18c2f16c13
Generalize core.get/set_nametag_color into core.get/set_nametag_attributes
2015-05-15 16:21:01 -04:00
kwolekr
5d1d7c17ea
Noise: Make buffer size parameters unsigned
2015-05-15 16:20:30 -04:00
kwolekr
eaef678e0b
Schematics: Fix probability values for .mts version 1
2015-05-15 16:20:30 -04:00
Brandon
c5b4e54174
Add minetest.register_on_punchplayer
2015-05-15 11:09:55 +02:00
TeTpaAka
86a963caca
Add get and set functions for the nametag color
2015-05-15 11:03:27 +02:00
Craig Robbins
99cf53c908
ANDROID: Do not limit situations where fast is enabled
...
Before this commit autofast for Android was ignored if the user was sneaking, digging or building. There is no reason for this and it impedes movement control
2015-05-15 13:22:07 +10:00
est31
b70e67df8c
Fix compiler warning about sign comparison
2015-05-13 00:04:30 +02:00
SmallJoker
ecc514f11b
Build and link gmp correctly on MSVC
...
Also optimize json's library
2015-05-12 21:07:46 +02:00
est31
b4c3ff6eab
is_player() is no player-only function
2015-05-12 05:52:49 +02:00
paramat
02805af36e
Mapgen v5/6/7: Cleanup node resolver and aliases
2015-05-12 04:40:53 +01:00
est31
82e35edff5
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
est31
181f7baa45
Add LibGMP
...
Uses system provided libgmp if found, if not it falls back to mini-gmp.
2015-05-11 17:48:33 +02:00
Craig Robbins
5a1975a4e3
Change lower limit of display_gamma to 1.0 (linear light)
...
Now matches function comment
2015-05-11 02:03:09 +10:00
kwolekr
2b99d904f6
Schematics: Add per-node force placement option
2015-05-09 18:44:00 -04:00
kwolekr
d59e6ad004
Fix typo in WieldMesh::setItem()
2015-05-08 23:30:56 -04:00
kwolekr
ff740a4179
Ensure that Map::findNodesWithMetadata() reports nodes strictly within the node-granular area
2015-05-08 13:31:03 -04:00
kwolekr
f1ccfd3c3d
Replace Wieldmesh::setItem assertion that could be triggered by the server with an error
2015-05-08 13:26:31 -04:00
est31
0310123bc9
Fix release build warning
2015-05-08 07:23:41 +02:00
kwolekr
f091bbd563
Fix compilation for non-client builds, and fix signed comparison warning
2015-05-08 01:21:34 -04:00
kwolekr
2dba29ebf2
Tests: Add schematic unittests
...
Improve schematic file-saving interface
Add ability to create temporary test files
2015-05-08 00:55:42 -04:00
est31
33c11415bf
Gracefully handle PacketErrors
2015-05-08 06:51:03 +02:00
kwolekr
0e64fc45b9
Fix missing Y component assignment in check_v3f
2015-05-08 00:03:41 -04:00
Kevin Ott
e17c6ba2cd
Remove duplicate lua_getfield() in c_converter.cpp
...
Fixes #2678
2015-05-07 09:57:34 +02:00
kwolekr
b246812455
Schematics: Add indent-with-space option for schematic Lua table serialization
2015-05-07 02:54:35 -04:00
kwolekr
656575b59d
NodeResolver: Remove NodeResolveMethod
...
This simplifies NodeResolver logic and makes some interfaces cleaner.
2015-05-07 02:36:01 -04:00
ShadowNinja
d720fd5644
Fix connection speed unit names
2015-05-06 15:41:37 -04:00
ShadowNinja
3a8e7341ec
Fix error messages for type-checking Lua reading functions
2015-05-06 15:33:36 -04:00
ShadowNinja
3f5c2dea4d
Improve Redis error messages
2015-05-06 15:28:22 -04:00
kwolekr
2b44e75442
Fix build on Debian broken by b45df9d (missing include, somehow?)
2015-05-05 20:40:18 -04:00
kwolekr
633af58a05
NodeDefManager: Improve const-correctness of interfaces
...
- Add ability to explicitly reset NodeResolve state (useful for unittesting)
- Remove non-essential NodeResolve methods modifying state from INodeDefManager
- Add const qualifier to NodeDefManager and ContentFeatures serialize
2015-05-05 16:52:06 -04:00
kwolekr
b785577f03
Add core.find_nodes_with_meta() script API
2015-05-05 16:21:59 -04:00
kwolekr
b45df9d6a7
Tests: Add NodeResolver unittests
...
Minor misc. NodeResolver cleanups
Prefix faux content type constants for testing with t_ to avoid
confusion or name collisions
2015-05-05 12:00:36 -04:00
ShadowNinja
1be2d32fd5
Make Git version detection use VERSION_STRING instead of tags
...
This fixes the problem where 0.4.12-dev versions were erroneously shown as
0.4.11-dev because the tag was added on a separate branch. It also fixes a
similar issue when builders didn't fetch new tags when updating.
This also removes the number-of-commits-since-tag field, since it's
incompatible with this. Said field doesn't seem to be useful anyway if you
have the commit hash.
2015-05-05 17:13:05 +02:00
ShadowNinja
dfd790930c
Fix GCC compiler warning
2015-05-04 20:01:10 -04:00
Jay Arndt
2923eafaca
Stop NetworkPacket methods from producing bloated packets
2015-05-05 01:47:41 +02:00
est31
4b0f5fcbf5
Cache enable_3d_clouds flag
...
Small improvement on clouds rendering performance
2015-05-04 22:50:04 +02:00
paramat
9345ba7b6a
Clouds: Make cloud area radius settable in .conf
2015-05-04 22:41:13 +02:00
Kevin Ott
5fa4fed097
Add a check for animation when getting an extruded mesh
...
Fixes issue #2667
2015-05-04 02:11:36 -04:00
obneq
9af7f38e3f
Fix pathfinder to produce more useful paths
...
- Fix unintended negation of condition
- Remove line_of_sight 'optimization'
2015-05-03 22:36:11 -04:00
kwolekr
8f38f8255c
Tests: Add ObjDef unittests
2015-05-03 22:19:35 -04:00
kwolekr
5b237b4d94
ObjDefManager: Set replacement object's handle info after calling set()
...
Make gamedef optional when constructing an ObjDefManager
Add note about object ownership
2015-05-03 22:19:35 -04:00
paramat
9e1e4b6284
RotateAlongYAxis: For facedir case, return if param2 >= 4
2015-05-03 03:43:51 +01:00
SmallJoker
6626a3f72f
Fix several MSVC issues numeric.h
...
-> Round negative numbers correctly CMakeLists.txt
-> Link Json with the static run-time library
2015-05-01 07:34:51 +02:00
kwolekr
37ca3212ee
Fix MSVC compatibility
...
Make sure to include random unittests in android builds, too
Use SWAP() macro
Ensure that negative ranges are tested as well in random unittests
2015-04-29 13:20:01 -04:00
kwolekr
b6475f5448
Tests: Add random unittests
2015-04-29 04:08:04 -04:00
sfan5
4ea5a96fff
Revert the upper-case PROJECT_NAME nonsense that was part of #2402
2015-04-27 16:24:49 +02:00
sfan5
558d715bf6
Revert "Only lowercase project name at compile time"
...
This reverts commit 3be9787e64362b8a5020746220c65abbe31f8097.
2015-04-27 16:24:49 +02:00
kwolekr
415167b228
Noise: Fix PcgRandom::randNormalDist() when range contains negative numbers
...
This fixes an issue with erroneous float-to-int rounding that resulted in
truncation toward 0, causing a biased distribution.
2015-04-27 04:05:25 -04:00
kwolekr
cd1d625ab2
Replace PRNG assertions with PrngException
2015-04-27 01:24:37 -04:00
est31
27e3a353d8
Remove craftdef serialisation
...
It isn't needed anymore, sending ICraftDefManager over the network has been obsoleted
by protocol version 7.
2015-04-26 21:30:52 +02:00
est31
4f851faa91
Craftdef refactor
...
Fix style, refactor assert, use '"' instead of "\"",
replace code duplicating craftGetItemName, rename iterators.
2015-04-26 21:28:40 +02:00
kwolekr
7220ca906d
Tests: Modularize unit testing
...
Split unit tests into separate files under src/unittest/
Give better unittest diagnostics
Clean up some code
2015-04-26 15:08:54 -04:00
Aaron Suen
1fb3d1156c
Fix fast leaves with texture_clean_transparent enabled.
2015-04-26 23:39:40 +10:00
Kevin Ott
400c6087b6
Fix player pitch and yaw not being set properly
2015-04-26 23:36:05 +10:00
nerzhul
ab04b7fe94
Remove unused variable Client::m_active_blocks
2015-04-24 15:41:45 +02:00
paramat
ac6efa2539
DecoSchematic: Fix missing trees in rough terrain
...
Move place_on check to before place_center_x/y/z displacement of p
Reduce displacement of p by place_center_x/y/z flags
to correctly position schematics
2015-04-23 02:44:25 +01:00
est31
ccc09abc2d
Protocol 25: wstring -> string for custom access denial reasons
...
Also fix std::logic_error when server::DenyAccess() is used with only two arguments.
2015-04-22 14:10:39 +02:00
nerzhul
eec01bc2fa
Re-apply 972d17baea81ffe6d508b291ef97207a4822e1da...
...
but not rename the container. Approved-By est31
2015-04-22 11:47:22 +02:00
SmallJoker
17a173f474
Fix crash on startup (Windows)
2015-04-22 13:48:10 +10:00
ShadowNinja
3be9787e64
Only lowercase project name at compile time
2015-04-21 20:51:16 -04:00
kwolekr
e0eec201a1
Revert "m_active_object_messages is used like a queue. Use std::queue instead of std::list. Also rename to m_active_object_messages_queue"
...
This reverts commit 972d17baea81ffe6d508b291ef97207a4822e1da.
The commit being reverted was unauthorized. There had been no discussion,
review, or sign-off prior to submittal to upstream.
2015-04-21 18:12:01 -04:00
Loic Blot
972d17baea
m_active_object_messages is used like a queue. Use std::queue instead of std::list. Also rename to m_active_object_messages_queue
2015-04-21 23:28:13 +02:00
kwolekr
943c6e523e
Noise: Add noise unittests
...
Fix buffer size calculation for lacunarity < 1.0
Add guard against absurd noise parameters
2015-04-21 13:05:14 -04:00
ShadowNinja
c197e03922
Fix sign-compare compiler warnings in mg_ore.cpp
2015-04-20 22:57:30 -04:00
ShadowNinja
d36067fda5
Fix mod store rating
2015-04-20 22:48:14 -04:00
kwolekr
46a2c1f167
Ore: Add biomes parameter
2015-04-20 20:25:33 -04:00
kwolekr
a443a13a9d
Fix build on OS X (Thanks neoascetic)
2015-04-20 01:35:41 -04:00
kwolekr
3d4244cc75
Add 'persistence' alias for Lua noiseparams and validate more vector parameters
2015-04-19 21:42:40 -04:00
kwolekr
687d969c9c
Noise: Correct noise objects created with invalid dimensions
2015-04-19 21:39:10 -04:00
kwolekr
386d695330
Porting: Refactor initalizePaths()
...
Add support for Solaris and HP-UX
Search additional potential procfs locations for current executable
2015-04-19 16:52:58 -04:00
est31
f1a41e4f77
Disable connection timeout for singleplayer and server tabs
...
In worlds with many mods we can easily reach timeout, waiting for the server to start.
2015-04-19 19:58:21 +02:00
paramat
a615da6b12
Biome API: Add biome-specific river water
2015-04-19 06:09:57 +01:00
obneq
0c792db05c
fix infinite spawners
2015-04-18 20:14:34 +02:00
kwolekr
e0889c6c03
Schematics: Fix core.schematic_create()
2015-04-17 18:39:37 -04:00
SmallJoker
5f0b36b8b7
10s timeout when connecting to server
2015-04-17 10:40:48 +02:00
est31
d4d561fbcd
Fix build since: "Remove referenced schematics from Decorations on clear"
...
Fixes build, which has been broken for all platforms (except BSD?) since
grandparent 406d9ba87b9f6e57b86c6282bf157e3341aa195c.
Thanks to @SmallJoker for pointing out a solution.
2015-04-17 10:30:59 +02:00
kwolekr
3576f4fab7
Switch to check_v3s16 in l_mapgen.cpp and l_vmanip.cpp for type safety
2015-04-17 01:03:13 -04:00
kwolekr
406d9ba87b
Schematics: Remove referenced schematics from Decorations on clear
2015-04-17 00:53:05 -04:00
est31
f0a1379e5a
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
821d0025da
Biomes: Remove referenced biomes from Decorations on clear
2015-04-16 23:38:05 -04:00
est31
4abb96fb54
Fix path detection with --std= parameter
...
Fixes path detection when compilers have been told to follow a standard, e.g. with -DCMAKE_CXX_FLAGS=--std=c++98.
To see the passed defines, try this with and without the --std parameter:
gcc -E -dM --std=c99 - < /dev/null | grep linux
2015-04-17 05:12:06 +02:00
est31
b318c4712c
Fix build for < C++11 since last commit
...
Build broke since last commit 479f38973e13680d6a39d9c2a7f29fd330b67d41 for compilers not supporting C++11.
Pre C++11, the constructor of std::ifstream only allows C like strings.
2015-04-17 02:34:02 +02:00
kwolekr
479f38973e
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
0c634a9719
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
paramat
d02300a749
Mgv5: Fix above/below ground spawn when water level is altered
2015-04-16 06:36:57 +01:00
paramat
ad789be45b
Mgv5/v7: Add check for water for deciding biome node stability
2015-04-16 04:01:58 +01:00
paramat
a09e4427d6
Defaultsettings: Add dungeons and jungles flags. Update conf.example
2015-04-14 02:04:57 +01:00
kwolekr
b2a89c04b2
Schematics: Reorganize (de)serialization and add Lua serialization API
2015-04-13 03:10:52 -04:00
paramat
a5f942c3c0
Mgv6: Fix taiga, allow pine tree spawning on snowblocks
2015-04-12 05:52:41 +01:00
paramat
75cbd80e5b
Mgv6: Add optional snow biomes
2015-04-12 04:27:26 +01:00
Ner'zhul
ce8a9ed94b
Fix a rare crash case un SendPlayerHP
...
If the player is disconnected while Lua API is doing a l_punch call, for example, the playersao is NULL and the server crash. Fix it.
2015-04-11 10:07:23 +02:00
est31
0a413265cb
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
c758fd73ff
Link against shlwapi.lib and unify linker input sources for Windows
2015-04-08 12:56:53 -04:00
Dmitry Marakasov
d2fc98e4a6
Fix freetype detection
...
Don't reinvent freetype detection, use working one from cmake.
2015-04-08 00:37:27 -04:00
kwolekr
0df736173e
Schematics: Prepend mod path to relative schematic filepaths
2015-04-08 00:28:56 -04:00
Loic Blot
5132908f4b
TOCLIENT_ACTIVE_OBJECT_MESSAGES: channel must be 1 for unreliable message
2015-04-07 14:28:36 +02:00
ShadowNinja
3c6e112c28
Fix missing SQLite3 statement pointer initialization
...
This fixes a segfault when the database is shut down
before it finishes connecting and setting up.
2015-04-07 00:31:41 -04:00
paramat
392ac41c99
Cavegen: Remove now unnecessary checks for water, lava, ice
...
Remove large cave checks for air
Mgv5/mgv7:Add is_ground_content checks to 3d noise tunnels
More large caves
Shorten lines
2015-04-07 04:43:24 +01:00
est31
f81759792e
Make comments consistent with TOSERVER_INIT -> TOSERVER_INIT_LEGACY rename
2015-04-07 00:15:15 +02:00
Craig Robbins
43aab618e5
Change screenshot filename to one likely to work on all modern filesystems
...
Fixes #2603
2015-04-06 11:07:51 +10:00
Loic Blot
8804c47e59
TOCLIENT_ACTIVE_OBJECT_REMOVE_ADD can be unreliable, catch PacketError exception.
...
Also set the packet size at creation not when pushing rawString, no functional change
2015-04-05 11:39:38 +02:00
Loic Blot
ed3ebd633d
craftdef.cpp: Return 0 after assert to make Clang happy
2015-04-05 11:16:12 +02:00
Loic Blot
4235f671c1
Fix uninitialized variabled in ConnectionEvent
2015-04-05 11:13:30 +02:00
est31
334e70455b
Crafting speedup
...
This greatly increases crafting performance, especially in worlds with many mods.
Approved by @kwolekr.
Introduces a hash-type-layered fall-through mechanism, where every layer specifies one hash algorithm,
and the "deeper the fall", the more collisions to expect for the algorithm. One Craft definition
only resides at one layer, which improves speed for lower layers (and a complete fail), due to most
craft definitions residing at high layers.
Due to the fall-through design, the undocumented behaviour that later craft recipes
override older ones had to be weaked up a bit, but craft recipes with the same hash and layer
will still override.
2015-04-05 09:25:46 +02:00
est31
1cb404522f
Remove errorstream logging on password change
...
This seems to be a debug message which has been forgotten to be removed.
2015-04-03 14:01:41 +02:00
Loic Blot
470de10de3
Fix players spawned at (0,0,0) in some rare cases instead of static_spawnpoint, if set
...
Approved by: @kwoelkr
2015-04-03 09:44:36 +02:00
Loic Blot
aa340fd857
Create PacketError exception and use it with ACTIVEOBJECT_REMOVE_ADD handler which can be unreliable
2015-04-03 08:53:31 +02:00
Aaron Suen
92f20696eb
Fix crash caused by null texture in GUI formspec/HUD.
2015-04-02 23:56:46 +10:00
SmallJoker
58d62ad045
Fix MSVC error caused by ed10005
2015-04-02 22:56:36 +10:00
paramat
74eb14cc80
Treegen: Add pine tree. Force place trunks
...
Speed-optimise leaves blits
Use MMVManip for make_jungletree
Use correct code style
2015-04-01 22:54:49 +01:00
Craig Robbins
9527984dbc
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
Loic Blot
113bdd3ec0
NetworkPacket: reading outside packet is now clearer.
...
Use a common function to check the reading offset
2015-04-01 14:47:46 +02:00
kwolekr
ddf96c7a17
Fix some minor details from 6d61375
2015-04-01 00:19:10 -04:00
Aaron Suen
6d61375cc7
Clean scaling pre-filter for formspec/HUD.
2015-04-01 00:01:05 -04:00
kwolekr
b4247dff2e
Fix usage of destroyed mutex
...
Also fix a memory leak
Fix overloaded virtual warning in Player::move()
Remove some trailing whitespace
2015-03-31 23:50:38 -04:00
kwolekr
699e066bea
Fix set_bits
2015-03-31 23:30:44 -04:00
kwolekr
337e79c656
ObjDefManager, Mapgen SAPI: Huge refactoring
...
- General code cleanup
- Unified object creation and loading
- Specifying objects in APIs is now orthogonal (i.e. anything can take an ID,
name string, or the raw table definition (and automatically registers if present
2015-03-31 23:27:58 -04:00
Craig Robbins
d1d5618bb8
Fix use of unitialized variable in gettext.cpp
...
#2583
2015-03-31 21:26:34 +10:00
Loic Blot
1fe4256462
Connection::Receive(): receive Network Packet instead of SharedBuffer<u8>.
...
Because we get a Buffer<u8> from ConnectionEvent, don't convert it to SharedBuffer<u8> and return it to Server/Client::Receive which will convert it to NetworkPacket
Instead, put the Buffer<u8> directly to NetworkPacket and return it to packet processing
This remove a long existing memory copy
Also check the packet size directly into Connection::Receive instead of packet processing
2015-03-31 11:01:08 +02:00
Loic Blot
ab77bf98ee
RunCommandQueues: little optimization
...
remove command from queue on success, else do nothing, instead of remove command from queue and push it front on success
2015-03-31 09:29:33 +02:00
Loic Blot
7c121726dc
Typo in getOutgoingSequenceNumber => successfull to successful
2015-03-31 09:18:11 +02:00
Aaron Suen
db32e6c5aa
Move texture_min_size even further down the pipe. Now, textures are JIT-upscaled using an image transformation, right at the time they're added to a mesh or particle; images used in 2D elements are left unscaled. This should fix any remaining issues with HUD elements.
2015-03-31 16:56:33 +10:00
Craig Robbins
862d4ea328
Change format of screenshot names
...
Filename screenshot_ + ISO 8601 format + [-serial]
i.e. screenshot_YYYY-MM-DDTHH::MM::SS[-serial].png
Serial is added if the filename + timestamp already exists and is in the range 1 to 999
2015-03-31 16:24:25 +10:00
kwolekr
ed10005d38
GenElementManager: Pass opaque handles to Lua and rename to ObjDefManager
...
Add core.clear_registered_schematics() and refactor schematics somewhat
2015-03-31 01:11:51 -04:00
Loic Blot
6a48844eba
Use Buffer not SharedBuffer in NetworkPacket::oldForgePacket
2015-03-30 19:55:14 +02:00
Craig Robbins
ff924ef0dc
On Android enable always fast
...
Invert the meaning of holding down the fast button (i.e. holding down the fast button -- if there is one -- means walk), unless performing an action, sneaking or jumping.
Still requires fast move to be toggled on (and fast priv)
2015-03-30 00:40:12 +10:00
Craig Robbins
5ee0d8ac81
Fix Android build-related bugs
...
E.g. Sound and freetype always being disabled, redefinition of pre-processor directives
2015-03-29 22:27:01 +10:00
Craig Robbins
e1475bdc89
Make sure g_timegetter is initalised before running speedtests
...
Thanks @SmallJoker for noticing the issue
2015-03-29 22:21:32 +10:00
Craig Robbins
34101015b2
Fix typo
2015-03-29 22:08:14 +10:00
Loic Blot
dfe00abc5a
queued_commands must be a std::deque. RunCommandQueues needs to push packet on front, not back
2015-03-29 10:49:43 +02:00
Loic Blot
3444dec2db
Fix uninitialized variable Player::local_animation_speed
2015-03-28 10:46:01 +01:00
Craig Robbins
2430b2e998
Add Lua function get_video_modes() for main menu
...
Also updates and uses porting::getSupportedVideoModes()
2015-03-28 13:26:03 +10:00
ShadowNinja
3ef0b4e637
Make camera clear error message if there's no error
2015-03-27 22:20:10 -04:00
ShadowNinja
5659434d32
Fix GetText translation loading
2015-03-27 22:10:08 -04:00
ShadowNinja
30075467b8
Change error_message from wstring to string
...
This removes a lot of narrow/wide conversions where a wide string was never used.
2015-03-27 20:24:04 -04:00
ShadowNinja
3d53c90d4b
Fix MSVC compile error
2015-03-27 15:16:41 -04:00
ShadowNinja
93fcab952b
Clean up and tweak build system
...
* Combine client and server man pages.
* Update unit test options and available databases in man page.
* Add `--worldname` to man page.
* Fix a bunch of places where `"Minetest"` was used directly instead of `PROJECT_NAME`.
* Disable server build by default on all operating systems.
* Make `ENABLE_FREETYPE` not fail if FreeType isn't found.
* Enable LevelDB, Redis, and FreeType detection by default.
* Remove the `VERSION_PATCH_ORIG` hack.
* Add option to search for and use system JSONCPP.
* Remove broken LuaJIT version detection.
* Rename `DISABLE_LUAJIT` to `ENABLE_LUAJIT`.
* Rename `minetest_*` variables in `version.{h,cpp}` to `g_*`.
* Clean up style of CMake files.
2015-03-27 15:00:48 -04:00
paramat
d1681872bf
lua_api/l_mapgen: generate_ores/decorations: make p1, p2 optional
2015-03-24 18:07:29 +00:00
Craig Robbins
4fbcfac6cf
Change filename of screenshots to something more human readable
2015-03-25 02:55:28 +10:00
Craig Robbins
2641fcc4bb
Update timestamp to include date
2015-03-25 02:30:17 +10:00
Loic Blot
7851c4f7a2
Don't send an InventoryAction at each setInventoryModified, we only need one SendInventory per inventory modification
...
Client doesn't like to receive multiples SendInventory for one action, this can trigger glitches on clients (sometimes due to incorrect UDP packet ordering due to UDP protocol)
This fix issue #2544
2015-03-24 14:13:17 +01:00
Craig Robbins
9fbc3a8ca3
Slow down the "key repeat" touch speed for some Android controls
...
Increases the key/buttons repeat delay for fly, noclip, fast, debug and camera buttons
2015-03-24 22:19:32 +10:00
kwolekr
732d7b9a7c
Add core.register_schematic() and cache schematics on use
2015-03-23 22:23:38 -04:00
kwolekr
9fc2b93d9f
Fix endianness inconsistency with PcgRandom::bytes()
2015-03-23 22:23:16 -04:00
kwolekr
a423202756
Schematics: Error if unable to open file
2015-03-23 22:22:14 -04:00
kwolekr
11372ac646
Do not enable texture_clean_transparent by default
...
This feature is still experimental and has some issues. Also,
increase texture_min_size to 64 px. The setting was initially
a conservative 16 so that the effect would not be noticable
for players who aren't using aniso/bi/trilinear filtering. This
isn't necessary now that texture_clean_transparent is disabled
by default.
2015-03-23 18:25:14 -04:00
paramat
37a6297025
Mgv6: Use heightmap in placeTreesAndJungleGrass()
2015-03-23 21:55:01 +00:00
Aaron Suen
6cf7c89236
Fix for sun/moon tonemaps: don't upscale 1px images.
2015-03-23 17:01:37 +10:00
est31
5b5c498011
Fix minetest.get_craft_recipe function
...
Previously, calling it resulted in a crash.
2015-03-23 13:40:20 +10:00
Loic Blot
0ae75f2a4e
Player: Fix a deadlock triggered by previous commit 0e5e49736c0a5fa29bca257bafc02d7c7a7171c9
2015-03-22 21:33:09 +01:00
Loic Blot
0e5e49736c
Protect Player::hud from concurrent modifications
...
Sometimes HUD can be modified by ServerThread and EmergeThread results in a crash on client side because the HUD is not correct
2015-03-22 20:47:07 +01:00
paramat
d6638b4300
Mgv7: 1 up , 1 down overgeneration for chunk border continuity
...
Fixes biome layer at y = 47 when base/alt terrain exceeds it
Also fixes missing dust glitch at y = 47
Mgv5/mgv7:Cleanup code
2015-03-22 19:30:08 +00:00
Loic Blot
008d7e0467
Revert "Add a Lua call to do damages / heals" ok @ShadowNinja
...
This reverts commit 467fc0ddc912ae38c3bf9fcb99e0b66d7478eec0.
2015-03-22 18:01:56 +01:00
Loic Blot
61f2d0ca34
Remove unused ConnectionCommand::sendToAll function. NetworkPacket::oldForgePacket returns Buffer instead of SharedBuffer and is used in ConnectionCommand instead of Connection::Send
...
This remove the NetworkPacket buffer => SharedBuffer => Buffer copy. Now NetworkPacket => Buffer
2015-03-22 12:18:16 +01:00
kwolekr
761b127060
Fix some loose ends from 3993093f
2015-03-22 02:58:54 -04:00
kwolekr
3993093f51
Add support for the PCG32 PRNG algo (and associated script APIs)
2015-03-22 00:48:08 -04:00
poet-nohit
7679396ebb
SendInventory when handleCommand_Interact is a use.
...
This call was missing when change looping to triggering SendInventory: 1b2f64473ed4f222d3b7f02df853730d4382105e
2015-03-21 21:37:32 +01:00
Aaron Suen
837a2e1e5f
Fix composite textures with texture_min_size. Moved upscaling of textures to later in the process, when images are converted to textures, instead of right after image load, so the original image is unmodified for generateImagePart.
2015-03-22 01:31:01 +10:00
SmallJoker
709f4a50f7
Connect rails with connect_to_raillike and shorten the codes
2015-03-21 22:59:27 +10:00
gregorycu
03e0dd33a8
Optimize minetest.get_(all)_craft_recipe(s)
...
Signed off by: ShadowNinja, kwolekr
2015-03-20 21:41:18 -04:00
Aaron Suen
1e4fb80d46
Configurable automatic texture scaling and filtering at load time.
...
Signed off by: Zeno, kwolekr
2015-03-20 20:21:42 -04:00
kwolekr
26153bab7d
Revert "Fix issue #2441 : crash on respawn, since a conversion std::list to std::vector on Environment.cpp"
...
This reverts parts of commit 9749d9fee6db99da1ab861dc04ec63ef973db3e0, which breaks node resolver
list clearing
2015-03-20 18:41:26 -04:00
paramat
d03c2999da
Mgv5/mgv7: Sprinkle dust from full_node_max.Y if chunk above is generated
...
Mgv5: Add large_cave_depth constant
2015-03-19 10:18:42 +00:00
Loic Blot
2676d289d9
Reset the old HP method on PlayerSAO::setHP
2015-03-19 07:47:45 +01:00
est31
538036d004
Fix game minetest.conf default settings
...
This was a regression introduced by f6e4c5d9cf459e8278a76a2beaee59732e841458 .
2015-03-18 13:03:02 -04:00
Loic Blot
467fc0ddc9
Add a Lua call to do damages / heals
2015-03-18 14:52:35 +01:00
Loic Blot
8f2e9bfbc2
ServerpacketHandler: spelling fixes
2015-03-18 12:06:02 +01:00
paramat
22730bbc0c
Mgv6: Remove addDirtGravelBlobs, replaced by blob ore in Minetest Game
...
Desert stone above y = -32 not water_level
Remove unused generateExperimental()
2015-03-18 10:55:58 +00:00
fz72
8ca08a850f
Save creative_mode and enable_damage setting for each world in world.mt
...
Create Parameters on world initialisation and set settings of old worlds
2015-03-18 09:53:24 +01:00
Loic Blot
2f0107f4a7
MutexedQueue inherits must use std::deque instead of std::list
2015-03-17 17:12:20 +01:00
Pavel Puchkin
ca5df44edb
Standalone bundle for OSX (w/ dependencies!)
2015-03-17 15:37:23 +01:00
Loic Blot
7685969274
Server::step throw is never catched in minetestserver
...
Replace it with an errorstream + assert for server
This throw can be trigger by LuaError exception or ConnectionBindFailed exception in the following functions:
* EmergeThread::Thread()
* ScriptApiEnv::environment_Step()
* ScriptApiEnv::player_event()
* ServerThread::Thread()
2015-03-17 15:26:20 +01:00
Loic Blot
814e55597d
Use the NetworkPacket api to read full version string instead of u8 pointers. Also store the reserved byte to use API properly
...
Fixes #2509
2015-03-17 14:12:18 +01:00
Loic Blot
bfc4652c66
Fix a little regression on SendActiveObjectMessages which send all TOCLIENT_ACTIVE_OBJECT_MESSAGES as reliable
2015-03-17 09:16:39 +01:00
Craig Robbins
dbe5a446c3
Minor bug fix (lag between damage flash and hearts updating)
2015-03-17 17:39:59 +10:00
Craig Robbins
c552d293fa
Fix various damage related bugs (client-side)
...
E.g. spawning or teleporting into lava to become invinsible
2015-03-17 17:08:00 +10:00
Craig Robbins
34c5a5b377
Minor cleanup: game.cpp
...
* Sort includes
* Remove unnecessary includes
* Ensure the parameter name for GameRunData is consistent for class member functions
2015-03-17 17:07:39 +10:00
kwolekr
699d42efc6
Revert "Server::step throw is never catched. Replace it with an errorstream + assert"
...
This reverts commit 5f8e48c63baf12930430d5d8fc07495021599e61.
2015-03-16 21:17:27 -04:00
Loic Blot
5f8e48c63b
Server::step throw is never catched. Replace it with an errorstream + assert
...
This throw can be trigger by LuaError exception or ConnectionBindFailed exception in the following functions:
* EmergeThread::Thread()
* ScriptApiEnv::environment_Step()
* ScriptApiEnv::player_event()
* ServerThread::Thread()
2015-03-16 20:25:35 +01:00
Loic Blot
d63df4ecb1
Move client packet generators to dedicated functions for:
...
* TOSERVER_INIT_LEGACY
* TOSERVER_DELETEDBLOCKS
* TOSERVER_GOTBLOCKS
* TOSERVER_REMOVED_SOUNDS
Also use a std::vector instead of std::set for TOSERVER_REMOVED_SOUNDS
2015-03-16 12:39:27 +01:00
Loic Blot
e7736ffdd6
Move TOCLIENT_ACTIVE_OBJECT_REMOVE_ADD and TOCLIENT_ACTIVE_OBJECT_MESSAGES to private functions
2015-03-16 12:01:40 +01:00
Loic Blot
b560294050
Rename packethandler/{client,server}.cpp to {client,server}packethandler.cpp
...
* Requested by @Zeno-
* Approved by @nerzhul
2015-03-16 10:19:19 +01:00
Loic Blot
aaf26b3a44
If player is dead, permit it to respawn, even if damages are not enabled
...
* Mods can do setHP function to do damages and override the enable_damage value sometimes
2015-03-16 10:02:01 +01:00
Loic Blot
b2801d8127
SendPlayerHPOrDie everytime at client connection, damage enabled or not, this will fix the player which stay dead at connection
2015-03-15 19:09:26 +01:00
est31
e4f7c92cff
Finer progress bar updates when initializing nodes
...
The bar is only drawn when the user will notice a change, which prevents time overheads that this commit would cause, resulting from useless draws.
2015-03-15 22:01:52 +10:00
paramat
89217faec5
mg_decoration: Raise highest allowed deco top to max edge of voxelmanip
...
Remove max_y from functions, simplify code
2015-03-15 04:15:48 +00:00
Loic Blot
155116852a
Android: Backport changes from stable-0.4
2015-03-14 19:59:14 +01:00
Craig Robbins
de6d5ce2cd
Disable double-click -> ESC translation for main menu
2015-03-14 23:41:42 +10:00
Loic Blot
0e93eefb8f
client.cpp: typo fix and break; fix to make some compilers happy
2015-03-13 22:08:48 +01:00
Loic Blot
083c8c734e
Replace NetworkPacket pointers to references
2015-03-13 22:01:49 +01:00
Loic Blot
74d34da6cb
Prepare Protocol v25 init & authentication.
...
* TOSERVER_INIT and TOCLIENT_INIT renamed to _LEGACY
* TOSERVER_PASSWORD merged from dev-0.5, can use protocol v24 and v25
* TOCLIENT_ACCESS_DENIED merged from dev-0.5, can use protocol v24 and v25, with normalized strings an a custom id for custom errors
* new TOSERVER_INIT packet only send MT version, supported compressions, protocols and serialization, this permit to rework everything later without break the _INIT packet
* new TOSERVER_AUTH packet which auth the client
* new TOCLIENT_HELLO packet which send server serialization version atm
* new TOCLIENT_AUTH_ACCEPTED which is send when TOCLIENT_AUTH was okay. After this packet, the client load datas from servers, like after TOCLIENT_INIT_LEGACY packet
2015-03-13 20:23:03 +01:00
Loic Blot
9f3fc7201b
Handle the newly added TOCLIENT_ACCESS_DENIED and TOCLIENT_DELETE_PARTICLESPAWNER
...
* Rename the handlers from _Legacy to regular, because here we can use same handlers
* Fix some packet names and pseudo handlers
2015-03-13 14:28:20 +01:00
Loic Blot
126f36c2e6
Rename some packet and handlers to <packet>_Legacy name for compat layer between new network changes and old network clients
2015-03-13 13:40:48 +01:00
Loic Blot
4e63c977c7
Use the new Player::isDead function when it's the case
2015-03-13 08:57:58 +01:00
Loic Blot
afb19f3a1f
handleCommand_Breath mustn't update breath is player is dead. A dead player doesn't breath.
...
Add Player::isDead function to check player is dead
2015-03-12 11:27:28 +01:00
Loic Blot
3067d78216
Don't handle PlayerPos packet coming from client if player is dead
2015-03-12 10:32:16 +01:00
paramat
6ce0985f47
Mgv5/mgv7: Add desert temples if desert stone detected in mapchunk
2015-03-12 02:33:16 +00:00
est31
140245a76f
Unescape tooltip texts
...
Previously, tooltips didn't unescape escaped formspec texts.
Item descriptions that trigger tooltips like inside inventories or for item_image_button
don't need to get unescaped, as they don't get set using formspec, but from lua.
2015-03-11 14:33:07 +01:00
paramat
29e46d6b29
Mgv6: Fix uninitialised heightmap used by cavegen
2015-03-11 06:04:07 +00:00
paramat
b2b6bbf3e8
lua_api/l_mapgen: Fix overlapping areas of minetest.generate_ores/decorations
2015-03-11 03:36:39 +00:00
ShadowNinja
adfcdc5484
Silence Clang warning
2015-03-10 20:47:52 -04:00
Craig Robbins
d4e210ee95
Ensure that heightmap is initialized before use
...
Without this, cavegen will use values in the heightmap before they are initialized.
2015-03-10 18:46:28 +10:00
Craig Robbins
e74b8da54e
Stop formspecs closing with double-click in empty area
...
Behaviour on Android remains the same until other alternatives can be devised (if possible)
See #2425 (and the many other -- now closed -- issues reporting this feature as a bug)
2015-03-09 12:42:25 +10:00
Loic Blot
3ae16f1c17
Fix memleak pointed by issue #2439 .
...
Also change bzero to memset. bzero doesn't work on windows
2015-03-08 18:13:27 +01:00
Loic Blot
57d86cf574
Fix unitialized data when creating TOSERVER_INIT packet
2015-03-08 18:03:43 +01:00
ShadowNinja
969413b9fa
Make the dummy backend only look up blocks once
2015-03-08 03:16:40 -04:00
paramat
d463000595
Heightmaps: Fix uninitialised values in mgv5/mgv6. findGroundLevel: Return -MAP_GENERATION_LIMIT if surface not found
2015-03-08 03:54:03 +00:00
gregorycu
267c9f4cb4
Optimize Profiler::avg()
2015-03-07 20:04:01 -05:00
ShadowNinja
d75a0a7394
Don't use luaL_checkstring to read node names, it's only for arguments
...
This caused confusing error messages like "argument #4 to set_node is not a string."
2015-03-07 20:04:01 -05:00
ngosang
f6e4c5d9cf
Respect game mapgen flags and save world noise params
2015-03-07 15:53:39 -05:00
sapier
9da99efca2
Fix RUN_IN_PLACE broken due to invalid usage of assert
2015-03-07 15:22:35 +01:00
Craig Robbins
ced6d20295
For usages of assert() that are meant to persist in Release builds (when NDEBUG is defined), replace those usages with persistent alternatives
2015-03-07 22:41:47 +10:00
Loic Blot
a603a76787
Improve Clouds::render mathematics
2015-03-07 13:27:43 +01:00
Craig Robbins
5698e2baf8
Fix Android text bug (no text displaying)
2015-03-07 20:51:07 +10:00
paramat
ffdf8dedb7
Dungeongen: Optionally set ignore to be untouchable to disable floating dungeons
2015-03-07 01:41:53 +00:00
ShadowNinja
e9eda2b0d0
Don't start a server for map migration
2015-03-06 00:20:45 -05:00
ShadowNinja
708337dfc2
Clean up database API and save the local map on an interval
2015-03-06 00:20:45 -05:00
paramat
c7454d4732
Biome API: Enable decorations placed on water
...
Add schematic decoration force placement flag
2015-03-06 03:32:15 +00:00
BlockMen
b65c7ab4a4
Improve group-based connection between raillike nodes
2015-03-05 23:24:32 +01:00
Loic Blot
40c2c18a3f
l_get_modnames: Compare using std::sort instead of a custom function which does same work
2015-03-05 20:12:54 +01:00
Loic Blot
c00eed90d3
collisionMoveSimple: use std::vector instead of std::list, this improve the performances
2015-03-05 18:08:19 +01:00
Loic Blot
6c09b34edc
ProfilerGraph: Use std::list instead of std::vector
2015-03-05 17:57:47 +01:00
Craig Robbins
daa1c30b35
Fix mapgen using unitialised height map values
2015-03-06 01:42:55 +10:00
Loic Blot
3d505b2b5f
Use std::queue for HTTPFetchRequest and std::vector for log_output instead of std::list
2015-03-05 16:21:10 +01:00
Loic Blot
9749d9fee6
Fix issue #2441 : crash on respawn, since a conversion std::list to std::vector on Environment.cpp
...
* Also change some std::list to std::vector for ClientMap::renderMap
* Remove disabled code in ClientMap::renderMap, disabled since a long time
2015-03-05 15:36:20 +01:00
Loic Blot
0d1eedcccc
Replace std::list to std::vector into tile.cpp (m_texture_trash) and move tile.hpp to src/client/
2015-03-05 11:59:40 +01:00
Loic Blot
aa474e4501
Server.cpp Use std::list instead of std::vector for playSound, fillMediaCache, sendRequestedMedia, sendMediaAnnouncement and related functions
2015-03-05 11:40:04 +01:00
Loic Blot
82482ecd9d
Server::AsyncRunStep: buffered_messages now uses std::vector instead of std::list. * sendRemoveNode and sendAddNodes are also converted as a side effect
2015-03-05 11:23:54 +01:00
BlockMen
36e8ba9ce2
Fix some rendering glitches
...
- Fixes particle draworder
- Fixes nodehighlighting
2015-03-05 10:51:18 +01:00
Loic Blot
365e4ae0fa
Performance improvement: Use std::list instead of std::vector for request_media, Server::getModNames, Environment::m_simple_objects.
...
* Also remove unused Server::m_modspaths
2015-03-05 10:44:48 +01:00
Loic Blot
b214cde5b4
Remove Queue class which uses std::list and use native std::queue
2015-03-05 16:49:51 +10:00
Craig Robbins
9e67579315
Fix memory leak in MapgenV6
2015-03-05 15:17:37 +10:00
paramat
eb7482fd73
Cavegen, mgv5: Cleanup code
...
Conf.example: Update mgv5 mapgen params
Mgv7: Lava caves only below -256
2015-03-04 23:53:58 +00:00
Loic Blot
cd684497c2
Use std::vector instead of std::list in StaticObjectList and MutexedMap::getValues()
2015-03-04 17:22:37 +01:00
Loic Blot
06f328207f
ABMHandler and player_collisions use sequential read/write. Switch from std::list to std::vector
...
* Also remove dead code Map::unloadUnusedData which is dead since a long time
2015-03-04 17:02:36 +01:00
Loic Blot
2066655aae
ClientInterface::getClientIDs doesn't need a std::list. Use a std::vector for better perfs
2015-03-04 16:30:24 +01:00
Loic Blot
7e088fdfe3
We always know playerSAO when calling SendInventory. Using it instead of searching it via peer_id
2015-03-04 15:28:33 +01:00
Loic Blot
40bf1d7b5f
Send Position packet on event, don't check it at each AsyncRunStep.
...
* This permit to cleanup the player checking loop
2015-03-04 12:19:26 +01:00
Loic Blot
7f8f9785d7
ASyncRunStep doesn't need to lock when do setTimeOfDaySpeed.
...
* setTimeOfDaySpeed already lock a mutex when modify the value, we don't need to lock all environment.
* add a fine grain lock for getTimeOfDay and setTimeOfDay to solve environment multithread modifications on this value
2015-03-04 11:46:31 +01:00
Loic Blot
1b2f64473e
Send Inventory packet on event, don't check it at each AsyncRunStep.
...
* Call UpdateCrafting into SendInventory because this functions is only called before SendInventory
* Use Player* instead of peer_id for UpdateCrafting because SendInventory already has the Player* pointer, then don't loop for searching Player* per peer_id
* m_env_mutex don't need to be used with this modification because it's already locked before the calls
2015-03-04 11:29:39 +01:00
Loic Blot
038d3a31df
Remove unused m_wielded_item_not_sent
2015-03-03 17:36:54 +01:00
Loic Blot
7e56637ed0
Send Breath packet on event, don't check it at each AsyncRunStep
2015-03-03 16:33:20 +01:00
Loic Blot
64ff966bae
Send Player HP when setHP (or a setHP caller) is called instead of looping and testing the state change.
2015-03-03 16:06:04 +01:00
Miguel Almeida
056e8f7839
Fix occlusion
2015-03-02 12:09:02 +01:00
Craig Robbins
aefe80769b
Fix narrow_to_wide_c (ANDROID)
...
* Ensure converted string is NUL terminated
* Restore logic to that used prior to 9e2a9b5
2015-03-02 13:16:01 +10:00
paramat
773aa8c57b
Mgv6: Add heightmap. Do not make large caves that are entirely above ground
2015-03-02 02:13:43 +00:00
Loic Blot
3b1ac5b889
Revert "Fix particles draworder" (issue #2388 )
...
This reverts commit c09d026f0561ee3c6db821a7e193716f724a0e4a.
2015-02-27 14:15:24 +01:00
Craig Robbins
fdb9140825
Change find_surface_nodes_in_area to find_nodes_in_area_under_air
2015-02-27 21:42:00 +10:00
Loic Blot
0f556d0c7f
Add find_surface_nodes_in_area LUA call which permit to only get the nodes which touch air. This permit to massively improve performance for mods like plantlife
2015-02-27 21:34:33 +10:00
Craig Robbins
338e66af5f
Fix minor memory leak (Android)
2015-02-27 13:40:27 +10:00
paramat
14f7df980b
Biome API: Re-calculate biome at every surface in a mapchunk column
2015-02-26 03:35:25 +00:00
rubenwardy
d65a90a86b
Add camera smoothing and cinematic mode (F8)
2015-02-25 15:34:33 +01:00
Loic Blot
b4acac706d
Rename --do-unittests to --run-unittests as @Zeno- and @sfan5 requested
2015-02-24 08:56:52 +01:00
gregorycu
577701cabd
Optimise MapBlockMesh related functions
...
Directely or indirectly optimises the following functions:
* MapBlockMesh::MapBlockMesh
* MapBlockMesh::getTileInfo
* MapBlockMesh::makeFastFace
* MapBlockMesh::getSmoothLightCombined
2015-02-23 23:20:31 +10:00
Craig Robbins
3b6480c5b0
Fix wrapDegrees family of functions
...
wrapDegrees() (renamed to modulo360f)
wrapDegrees_0_360
wrapDegrees_180
Minor errors were present in previous versions; see issue #2328
2015-02-23 22:50:32 +10:00
Kahrl
38cf080a9c
Disallow object:remove() if the object is a player
...
Rebased by Zeno- (conflict in lua_api.txt)
2015-02-23 16:49:48 +10:00
kaeza
c5defe7a11
Add mod.conf file support This new file only permits to specify a mod name for now
2015-02-21 18:18:06 +01:00
Loic Blot
009149a073
Fix some memory leaks on packet sending.
2015-02-21 17:27:31 +01:00
Loic Blot
5a5854ea9d
Move hex.h to util/
2015-02-21 14:32:35 +01:00
BlockMen
c09d026f05
Fix particles draworder
2015-02-21 14:11:00 +01:00
Loic Blot
3998a1f8f9
Move sha1.hpp and base64.hpp to util/
2015-02-21 14:03:27 +01:00
BlockMen
aa31e3c7f3
Use skin font for usernames ( fixes #2363 )
2015-02-21 13:31:42 +01:00
Loic Blot
cf4045ff0f
Use proper CMakeLists.txt for network and client directories
2015-02-21 11:51:12 +01:00
Loic Blot
b3aeba684b
Unit tests must be done at integration process.
...
* Remove --enable-unittests and --disable-unittests and add --do-unittests function
* --do-unittests function will exit 0 on success.
* minetest and minetestserver binaries are launched with --do-unittests in travis build.
2015-02-21 11:04:19 +01:00
paramat
38e6280552
Mgv5: Remove blobgen. Remove crumble and wetness noises
...
Add large pseudorandom caves below -256
De-link terrain level from water_level
Cavegen: Mgv5 large cave code
2015-02-21 01:43:25 +00:00
Ner'zhul
e357577cb2
Typo fix in networkprotocol.h
...
InventoryAction is in inventorymanager.h
2015-02-19 20:03:22 +01:00
est31
5a0ed780f5
Server: announce MIN/MAX protocol version supported to serverlist. Client: check serverlist
...
Client now informs about incompatible servers from the list, this permits to prevent the protocol movements.
Server announces its supported protocol versions to master server
2015-02-18 16:09:59 +01:00
BlockMen
8941ea0cc9
Increase default font_size
2015-02-18 12:51:17 +01:00
BlockMen
9a9fcfc9a3
Fix font_size under windows
2015-02-18 12:39:23 +01:00
Perttu Ahola
4d744cf87a
Use fixed size for builtin menus on non-android platforms
2015-02-18 12:33:40 +02:00
Loic Blot
27d4e89d32
Fix unused (and so, broken) enable_rollback_recording. This option must be reloaded at server loop but loaded when server starts, for data consistency (not a hot load variable)
...
ok @ShadowNinja
2015-02-18 09:28:39 +01:00
fz72
0a299fd4e5
Fix map_seed not changed when creating a new world after login to another
2015-02-18 08:57:14 +01:00
Loic Blot
2079462e62
Change many useless std::list into Environment class (m_players), ABMHandler and ActiveBlockList::update
...
This improve looping performances.
2015-02-17 16:50:03 +01:00
Kahrl
81b9c023c4
Grab GUIChatConsole::m_font, fixes segfault when changing font_size
2015-02-18 00:38:57 +10:00
Loic Blot
fd70f4f2f0
Replace std::list by std::vector into ClientMap::updateDrawList, Map::timerUpdate and ServerMap::save().
...
This will speedup the loop reading into those functions
2015-02-17 15:28:49 +01:00
Loic Blot
3c91ad8fc2
Replace std::list by std::vector into timerUpdate calls
2015-02-17 15:08:37 +01:00
Novatux
24315db6ef
Ignore old entities from 0.3.
2015-02-17 15:07:05 +01:00
Loic Blot
54487b3e70
Remove old comment from Network Rework Patch 2/4
2015-02-17 14:49:21 +01:00
Loic Blot
718bcafd51
Replace std::list by std::vector into ServerMap::listAllLoadableBlocks ServerMap::listAllLoadedBlocks and their database backends.
...
This adds a speedup on database migration and /clearobjects command
2015-02-17 14:35:44 +01:00
Loic Blot
c58d49977d
SAO: re-add old ActiveObjectTypes for a future migration layer
2015-02-17 11:37:55 +01:00
Loic Blot
f8d5af7536
SAO work: ActiveObject types & SAO cleanup * Replace u8 types with ActiveObjectType. * Merge content_object.h into activeobject.h * Remove DummyLoadSAO, it's now unused. * Remove ItemSAO, it's also unused
2015-02-17 09:09:50 +01:00
Yaman
98d80e2012
Add player direction to on-screen debug text
...
(PR Modified slightly)
2015-02-17 01:56:21 +10:00
Loic Blot
7c8793cbea
Performance Improvement: Use a cache which caches result for getFacePositions.
...
This greatly reduce the number of std::list generated by caching the result, which is always constant for each radius selected.
In the callgrind map, you will see original:
* 3.3M calls to std::list for 9700 calls to getFacePositions
In the modified version, you will see:
* 3.3K calls to std::list for 6900 call to getFacePositions
Callgrind map is here: #2321
it's a huge performance improvement to l_find_node_near
2015-02-16 11:27:44 +01:00
Loic Blot
ed04e8e9e4
[Patch 2/4] Network rework: packet writing, sending and cleanups
...
NetworkPacket.cpp:
* Remove some deprecated functions, we must use streaming interface
* m_data converted from u8* to std::vector<u8>
* Add an exporter to forge packet to Connection object
* implement operator << std::wstring. n
* implement operator << std::string
* dynamic resize when write packet content.
* fix string writing and performances.
* create ServerCommandFactory, used by client to get useful informations about packet processing (sending).
* Reliability
* Transmit channel
* Implement putRawString for some ugly char (_INIT packet), and use it.
* Many packet read and write migrated
* Implement oldForgePacket to interface writing with current connection
* fix U8/char/bool writing
* fix string writing and performances.
* add some missing functions
* Use v3s16 read instead of reading x,y,z separately
* Add irr::video::SColor support into packets
* Add some missing handlers
* Add a template function to increase offset
* Throw a serialization error on packet reading (must be improved)
PacketFactories:
* Create ServerCommandFactory, used by client to get useful informations about packet processing (sending).
* Create ClientCommandFactory, used by server to get useful informations about packet processing (sending).
Client.cpp:
* implement NetworkPacket ::Send interface.
* Move packet handlers to a dedicated file
* Remove Client::Send(SharedBuffer)
Server.cpp:
* implement NetworkPacket ::Send interface.
* Rewrite all packets using NetworkPacket
* Move packet handlers to a dedicated file
* Remove Server::Send(SharedBuffer)
ClientIface.cpp:
* Remove sendToAll(SharedBuffer<u8>)
Connection.hpp rework:
* Remove duplicate include
* Remove duplicate negation
* Remove a useless variable
* Improve code performance by using a m_peers_list instead of scanning m_peers map
* Remove Connection::Send(SharedBuffer)
* Fix useafterfree into NetworkPacket Sending
* Remove unused Connection::sendToAll
Test.cpp:
* Remove dead code
* Update tests to use NetworkPackets
Misc:
* add new wrappers to Send packets in client, using NetworkPacket
* Add NetworkPacket methods for Connection
* coding style fix
* dead code since changes cleanup
* Use v3s16 read instead of reading x,y,z separately in some packets
* Use different files to handle packets received by client and server
* Cleanup: Remove useless includes
ok @Zeno-
Tested by @Zeno- @VanessaE and @nerzhul on running servers
2015-02-16 11:00:55 +01:00
Loic Blot
8aebc31a17
Fix unit test if there isn't a localhost address (for example FreeBSD jails), second part
2015-02-15 14:30:34 +00:00
Loic Blot
a3e2b3e404
Fix unit test if there isn't a localhost address (for example FreeBSD jails)
2015-02-15 13:11:03 +01:00
Loic Blot
3b6b9435c5
Only do the IPv6 unit test if IPv6 is enabled
2015-02-15 12:20:37 +01:00
Loic Blot
7880ff74b6
Re-apply 4a6582c13c36cab457b78f32338c6bb4ab9ea58b broken since 146f77fdb750833c649de7159a0833c398e14a4d
2015-02-14 09:21:04 +01:00
Craig Robbins
d44cb547f2
Suppress CGUITTFONT build warnings
2015-02-13 23:54:05 +10:00
ngosang
c7a7803780
Minor fixes in translations
2015-02-12 16:41:40 +01:00
BlockMen
d302629392
Fix gettext on MSVC
2015-02-12 16:03:55 +01:00
ngosang
e102cbd840
Fix .zip extraction (mod store)
2015-02-12 15:27:20 +01:00
Loic Blot
146f77fdb7
main.cpp rework * Move ClientLauncher class to a dedicated file * ClientLauncher now owns print_video_modes and speed_tests functions (they are only called by him) * Move GameParams to shared/gameparams.h because it's shared between server and client and launcher need to know it * Move InputHandlers class to client/inputhandler.h * Cleanup includes
2015-02-12 15:00:03 +01:00
Loic Blot
a19ec3328c
Remove unused variables to make clang happy
2015-02-12 11:13:27 +01:00
ngosang
4a6582c13c
Small changes in the style of controls
2015-02-12 09:54:48 +01:00
Loic Blot
c3a23ebc28
Make Clang happy with lua lauxlib.c.
...
No functionnal change
2015-02-12 08:00:22 +01:00
est31
b2f3ffe308
Enable LUA_USE_POSIX if possible in bundled Lua
...
Fixes warning:
src/lua/src/loslib.c:60: Warning: the use of `tmpnam' is dangerous, better use `mkstemp'
2015-02-12 16:14:12 +10:00
Craig Robbins
66efaaa983
Fix Android compile warning
2015-02-12 13:16:38 +10:00
Loic Blot
a9355284b5
Don't permit to open inventory is playerCAO isn't present. This prevent to open an empty inventory at player load. ok @zeno-
2015-02-11 12:23:14 +01:00
Loic Blot
8252e1ecd0
Fix issue #2279 . ok @zeno-
2015-02-11 10:03:29 +01:00
Craig Robbins
c8f60bd224
Remove workaround in itemdef.cpp to enable/disable/enable "enable_shaders" setting
...
* Increase performance (client)
* Avoid changing a global value to solve a local problem
2015-02-11 17:45:49 +10:00
ShadowNinja
98b37e3e0d
Fix Android build of narrow_to_wide
2015-02-11 02:28:22 -05:00
Craig Robbins
f824866686
Revert "Remove workaround in itemdef.cpp to enable/disable/enable "enable_shaders" setting"
...
This reverts commit d25ff8fd2592f457b91e8a61240694af3902d23f.
2015-02-11 17:01:19 +10:00
Craig Robbins
d25ff8fd25
Remove workaround in itemdef.cpp to enable/disable/enable "enable_shaders" setting
...
* Increase performance (client)
* Avoid changing a global value to solve a local problem
2015-02-11 16:02:16 +10:00
Markus Koschany
cfca5f99e6
Fix FTBFS on GNU/Hurd platform
...
Minetest fails to build on GNU/Hurd due to a name clash with OSX/Apple,
both are defining the __MACH__ keyword. This commit fixes the issue.
2015-02-11 15:59:58 +10:00
Craig Robbins
caf8d2a9d1
Increase MapBlock::actuallyUpdateDayNightDiff() performance by 2-8x. ok @celeron55
...
Before patch, function consumes up to ~8% of the main server loop. After, ~0% (below level of 2 places of significance)
2015-02-10 16:23:37 +01:00
Loic Blot
bb59a8543d
Replace getPlayer(playername) by getPlayer(peer_id) in some possible cases. ok @Zeno-
2015-02-10 16:03:16 +01:00
Loic Blot
368496b612
Craftdef.cpp: Improve loop and mathematics for CraftDefinitionShaped::check
2015-02-10 14:16:28 +01:00
ngosang
dd2bb950be
Fix Exit to OS button focus in Pause Menu
2015-02-10 21:23:16 +10:00
Loic Blot
a704c04f00
Network Layer 7 rework (Packet handling)
...
* Move networkcode to a dedicated directory
* Rename clientserver.h to network/networkprotocol.h (Better name) and sanitize some includes
* Create object NetworkPacket
* It stores command (opcode) and data separated
* It also stores peer_id
* Data reading can be done by using a streaming interface
* Change packet routing analysis
* Remove old conditional analysis
* Now uses function pointed analysis and add connection state ({Client,Server}::handlers)
* Connection state permit to categorize condition to handle before analyze packets
* Create a handler for depreciated messages, instead of duplicating code
2015-02-10 20:04:08 +10:00
kwolekr
15c037614f
Hud: Modify Y-positioning of health/breath starbars to prevent overlapping with Hotbar
2015-02-08 12:47:45 -05:00
gregorycu
a0535d286b
Fix rebase bug, make render loop use cache setting
2015-02-07 22:23:36 +10:00
Craig Robbins
0904884ad4
Fix warnings in CGUITTFont.cpp
2015-02-06 23:02:15 +10:00
ShadowNinja
1367e8ffff
Fix gettext
2015-02-05 11:49:14 -05:00
ShadowNinja
9e2a9b55e1
Reduce gettext wide/narrow and string/char* conversions
2015-02-05 03:24:22 -05:00
ShadowNinja
84c367bb46
Fix translation memory leak
2015-02-05 03:24:13 -05:00
ShadowNinja
8bbf106379
Fix translation finding of overlay messages
2015-02-05 03:24:00 -05:00
paramat
bec5d3ab22
Mgv7 mountains: Remove divide by zero code that creates vast walls
...
Conf.example: Add mgv7 cave1, cave2 noiseparams
Mgv7: Make skipping of mountain code relative to y=0 not water level
Mountain noise offset now -0.6 to compensate
Tune chance of large caves
2015-02-05 03:21:04 -05:00
Craig Robbins
9a0dd47057
Fix performance regression
2015-02-05 17:34:10 +10:00
SmallJoker
929e0b0ad8
Give full breath after death
2015-02-05 17:33:08 +10:00
gregorycu
5e075c3344
Fix dying of lava causes repeated death This is a bugfix for issue #81
2015-02-05 17:32:35 +10:00
ngosang
1b4aaa5f50
Suppress 4 gcc 4.9.2 warnings in CGUITTFont.cpp
2015-02-05 02:41:55 +10:00
sapier
d902bd31c4
Fix getCraftRecipe returing wrong reciep due to way to unspecific output matching
2015-02-02 21:32:23 +01:00
kwolekr
0118c111e8
Fix some MSVC-specific warnings and add debug path as an MSVC directory
2015-02-02 02:01:13 -05:00
kwolekr
43f102271d
Create minidump on fatal Win32 exceptions
...
Remove software exception translator function, simplifying exception handler
macros. FatalSystemExceptions are left unhandled.
2015-02-02 01:39:17 -05:00
kwolekr
48fa893abd
Randomly generate seed if field blank for any Settings instance
2015-02-01 02:05:39 -05:00
Kahrl
285655a878
Fix NDT_GLASSLIKE normals
...
Remove inventorycube() workaround for default:glass in minimal game
2015-01-31 03:06:34 +10:00
Craig Robbins
38561023b4
Fix local map saving when joining a local server from the server tab
...
Disables local map saving for all local server types
See: https://github.com/minetest/minetest/issues/2024
2015-01-31 00:42:08 +10:00
Kahrl
4d15d63134
Fix uninitialized variable m_database_delete in Database_SQLite3
...
This fixes issue #2219
2015-01-28 05:01:07 +01:00
kwolekr
ad690c46b1
Write common mapgen params to map_meta.txt on world initialization
2015-01-27 22:29:28 -05:00
Loic Blot
80a7408e4d
Fix a crash (assert) when client set serial version < 24 in INIT
...
When SER_FMT_VER_LOWEST is set to zero, then the test is stupid in INIT because all client works. In mapblock we check if client's serialization version is < 24, but if client sent serialization version < 24 (15 for example) the server set it and tried to send nodes, then BOOM
To resolve the problem:
* Create a different CLIENT_MIN_VERSION to handle this problem
* Remove the exception
* Use an assert in case of bad developer code
2015-01-27 16:55:25 +01:00
kwolekr
eeea454bff
Fix missing map_meta.txt error when creating new worlds
...
A missing map_meta.txt should be treated simply as if there were a blank file.
2015-01-27 02:10:04 -05:00
Craig Robbins
ca217d0416
Revert "Fix a crash (assert) when client set serial version < 24 in INIT command SER_FMT_VER_LOWEST is set to zero, then the test is stupid in INIT because all client works. In mapblock we check if client's serialization version is < 24, but if client sent serialization version < 24 (15 for example) the server set it and tried to send nodes, then BOOM"
...
nerzhul is (may?) be working on a new solution. For the moment this is reverted because old worlds cannot be loaded (see discussion on github for the commit).
This reverts commit 800d19270250bb13cc6b2d330199815bf8e96446.
2015-01-27 00:39:33 +10:00
gregorycu
5b55deb1eb
Suppress MSVC warning in chat.cpp
2015-01-25 16:09:23 +10:00
gregorycu
ed7c9c4cb8
Settings fixes Make the GameGlobalShaderConstantSetter use the settings callback (8% perf improvement in game loop) Ensure variable is set Ensure settings callback is threadsafe
2015-01-25 15:23:37 +10:00
Craig Robbins
2c4a5e1861
Revert "Make the GameGlobalShaderConstantSetter use the settings callback (8% perf improvement in game loop)"
...
This reverts commit a555e2d9b0ccee452996381a44677b8bec210036.
2015-01-25 01:19:40 +10:00
(@U-Exp)
800d192702
Fix a crash (assert) when client set serial version < 24 in INIT command SER_FMT_VER_LOWEST is set to zero, then the test is stupid in INIT because all client works. In mapblock we check if client's serialization version is < 24, but if client sent serialization version < 24 (15 for example) the server set it and tried to send nodes, then BOOM
2015-01-24 22:41:02 +10:00
Kahrl
f8bd1f3563
Fix uninitialized variable Server::m_next_sound_id
2015-01-24 06:44:41 +01:00
Craig Robbins
0ea843bbdb
Fix unitialised variable occassionally being used
2015-01-24 14:54:42 +10:00
gregorycu
a555e2d9b0
Make the GameGlobalShaderConstantSetter use the settings callback (8% perf improvement in game loop)
...
Amend the settings callback to support userdata
2015-01-23 21:27:51 -05:00
paramat
aafbbcd537
Mgv5: Skip calculation of filler, heat and humidity perlinmaps in underground mapchunks
2015-01-23 21:24:47 -05:00
ShadowNinja
a9f81b729b
Send real port to server list
2015-01-23 21:38:34 +10:00
paramat
1702c34b64
Mgv7 generateRidgeTerrain: Make river generation relative to water level
...
Remove widthn and make nridge zero underwater
2015-01-22 02:21:11 -05:00
paramat
70354ac20b
Mgv7: Speed optimise calculateNoise and generateRidgeTerrain
...
Remove unnecessary range limiting of persistmap
Skip calculation of filler, mountain, ridge, heat and humidity perlinmaps in underground mapchunks
Skip generateRidgeTerrain in underground mapchunks
2015-01-22 02:10:07 -05:00
paramat
408d9b72f0
Mgv7 generateRidgeTerrain: Enable rangelim of widthn to remove abysses, calculate widthn later in function
...
Reduce width to 0.2
Carve river channels in deeper waters
2015-01-22 02:06:33 -05:00
TriBlade9
db481e7232
Added ratio argument to colorize, removed the weird alpha-based ratio.
2015-01-20 22:56:20 +10:00
paramat
9b89f7aad7
Mapgen V5: Various improvements
...
Caves check for biome nodes, only excavate stone under water level
Unease caves noises, use MT0.3 parameters
Blobgen after cavegen
Biomegen: remove 'is replaceable content' bool
2015-01-18 23:38:15 -05:00
kwolekr
38bd9e93a2
Fix all warnings and remove -Wno-unused-but-set cflag
2015-01-18 23:29:19 -05:00
kwolekr
e36681101e
Add SemiDebug (-O1 with debug symbols) build mode and do not optimize Debug at all
...
Add -Wall to Debug modes for all compilers and -Wabi for non-MSVC
Use /Ox for MSVC Release mode (potentially higher optimization than /O2)
2015-01-18 22:30:11 -05:00
kwolekr
976d0b2caa
Reorganize supported video driver query mechanisms
2015-01-18 13:24:25 -05:00
kwolekr
6e9f287844
Revert "Fix bug in debug build"
...
This reverts commit 839c4a99cddcacdc19dee42286b7029c4c1e7800.
2015-01-18 13:19:28 -05:00
Craig Robbins
839c4a99cd
Fix bug in debug build
...
-O1 results in executables that are completely useless for actuall debugging
2015-01-19 00:26:59 +10:00
Kahrl
e80a044818
Fix use of uninit data in Sky and (potentially) GUIChatConsole constructors
...
Clean up nearby code a bit
As a small side effect, it is now possible to add a background texture
to the chat console by simply providing background_chat.jpg, it is no
longer necessary to also add "console_color =" to minetest.conf.
2015-01-18 13:16:01 +01:00
Craig Robbins
29514918f8
Fix particles causing unitialised data being used due to use of incorrect union member
2015-01-18 20:30:57 +10:00
gregorycu
db3466dbe8
Water fixes
...
Change must_reflow to a deque
Add overload for MapBlock::raiseModified that takes a const char*. This is a speed improvement.
Comment out unused variable
Optimisations to block offset calculations
2015-01-18 20:30:33 +10:00
Craig Robbins
805c8e51e5
Create empty default constructor for MapNode
2015-01-18 13:39:50 +10:00
paramat
2f0a8f1c3e
Mgv7: Replace small pseudorandom caves with 3D noise tunnels. Fewer large caves
2015-01-17 21:57:48 -05:00
sapier
a39c136e69
Fix NodeMetadataList loosing memory on deserialize due to invalid clear map call instead of clear
2015-01-17 19:14:36 +01:00
gregorycu
2959d6b3da
Fix entitiy WieldMeshSceneNode not freed due to additional grab
2015-01-17 19:13:08 +01:00
Craig Robbins
5481e38d0b
Make minor style change(unescape_string())
2015-01-16 21:05:44 +10:00
Loic Blot
e5b636712c
Fix missing return in Database_Dummy::deleteBlock
2015-01-16 21:00:11 +10:00
Craig Robbins
5e58a95491
Fix potential out-of-bounds array index
2015-01-16 14:35:57 +10:00
kwolekr
9736548720
Add ability to delete MapBlocks from map
...
Also add a Lua API and chatcommand for this
2015-01-15 16:48:56 -05:00
kwolekr
0330cec7ec
Initialize noise ptr on creation (fixes crash if OreVein deleted before use)
2015-01-15 16:23:04 -05:00
ShadowNinja
77e20a0c21
Fix unescape_string removing all backslashes
2015-01-15 16:16:41 -05:00
unknown
bd0d786590
Change UniqueQueue to use a queue and a set.
2015-01-15 21:08:35 +10:00
TriBlade9
e19dab2622
Added configurable ambient_occlusion_gamma. Default is 2.2 (same as previous hardcoded values).
2015-01-14 23:35:50 +10:00
Craig Robbins
57f2fa57cd
Fix use of uninitialized data
2015-01-14 15:43:33 +10:00
onkrot
0fd1ee0380
Performance fixes.
2015-01-13 23:48:56 +10:00
unknown
5d08ada224
Add VoxelArea::hasEmptyExtent
2015-01-13 23:24:32 +10:00
kwolekr
714a4f8507
Attempt to fix occasional issue of uninitialized MapBlock data
2015-01-12 22:31:08 -05:00
kwolekr
b0efb8f3b2
Prevent transform of noise3d result in getBlockSeed2
2015-01-12 15:46:04 -05:00
paramat
c367f7301a
Mapgen V5: Move cave generation from base terrain loop to optional function
...
This fixes biome surface in tunnels
2015-01-11 22:35:36 -05:00
sapier
aed70cb0b6
Disable sound and key binding settings in "pause" menu on android
2015-01-11 13:58:49 +01:00
sapier
2d9b311e7b
Fix invalid stepheight increase calculation on android
2015-01-11 13:57:26 +01:00
sapier
25235a4324
Increase stepheight on android by 0.5 to smoothen movement
2015-01-11 04:33:42 +01:00
Kahrl
b7c0e4b333
Fix clipping rectangle of GUITable row highlight
2015-01-10 19:56:14 +01:00
sfan5
3b16103ca6
Change default font sizes to 14(freetype) and 10(non-freetype)
2015-01-10 18:59:43 +01:00
sfan5
8089d89a51
Set default value for ENABLE_REDIS to 0
2015-01-10 15:28:25 +01:00
sapier
30334b6b22
Revert "Switch default scaling factor to 0.75 as most ppl seem to have 96dpi screens instead of previous assumed 72"
...
which ain't required any longer as fonts are no longer autoadjusted
This reverts commit 7ad17a25f4dfc81427df54d5c855b40b4472d517.
2015-01-09 19:07:55 +01:00
sapier
de3888ca09
Remove automatic consistent formspec size <-> font size (now has to be done manually)
...
Set builtin formspecs to autoscale in order to get consistent formspec look and feel
Uncouple label positioning from font size (May break some formspecs but is required to allow manual font adjustment)
2015-01-09 18:46:24 +01:00
Craig Robbins
3c8e372119
Removed superfluous facedir check in mapblock_mesh.cpp
2015-01-10 02:06:33 +10:00
Kahrl
2ab97a7821
Fix logic of checkbox formspec element validity checking
2015-01-09 16:57:54 +01:00
sapier
63867b1a37
Fix memory leaks due to messed up memory handling for particles as well as their spawners
2015-01-09 15:23:49 +01:00
sapier
e201620ee1
Split gui_scaling to gui_scaling + hud_scaling as those elements need different handling on some devices
2015-01-09 14:31:33 +01:00
Craig Robbins
d576235409
Fix facedir > 23 causes segfault in client
...
See issue #2017
Applied kahrl's gist
2015-01-09 15:42:03 +10:00
sapier
7ad17a25f4
Switch default scaling factor to 0.75 as most ppl seem to have 96dpi screens instead of previous assumed 72
2015-01-09 00:37:02 +01:00
ShadowNinja
a3db918f78
Remove included SQLite3
2015-01-08 16:34:42 -05:00
sfan5
d8cf64a202
Add SQLite3 libraries to buildbot
2015-01-08 16:34:42 -05:00
paramat
56a89fd265
Return step smoothing value to 23
2015-01-08 15:06:28 +10:00
kwolekr
4a57ef12a1
Mapgen V6: Re-enable liquid flowing
2015-01-07 19:27:09 -05:00
rubenwardy
2504da28af
Fix direction property of HUD
2015-01-07 20:51:47 +01:00
sapier
ef140eb7b0
Fix emerge thread not cleaning up emerge queue on shutdown
2015-01-07 12:19:48 +01:00
sapier
42f3515c0e
Fix andorid build error
2015-01-07 00:10:21 +01:00
sapier
0f1d33933d
Implement X11 dpi autodetection
2015-01-06 22:41:07 +01:00
sapier
083d19b3fc
Fixes for android
...
Copy only minetest_game to apk by default
Don't copy .git and .svn folders to apk
Fix bouncing asset copy scrollbar due to long filepaths
Reenable font scaling to fix broken menu on high dpi screens
Implement minetest loglevel to android loglevel mapping
Disable touch digging while moving around
2015-01-06 16:13:39 +01:00
Craig Robbins
beb6b3e593
Prevent client crashing if an NDT_AIRLIKE node is dropped
...
The player dropping the node can either be themselves or another player (i.e. without this fix you can crash other people's clients)
Thanks CWz for reporting the issue
2015-01-05 22:55:02 +10:00
kwolekr
2d849b0a19
Shorten ManualMapVoxelManipulator to MMVManip
2015-01-05 02:42:27 -05:00
kwolekr
7289d61e99
Optionally specify propagateSunlight area in calcLighting
...
This fixes the Mapgen V5 calcLighting segfault
2015-01-05 01:20:36 -05:00
kwolekr
3bdf3df223
Exclude vertical mapblock borders when setting light
2015-01-04 23:14:16 -05:00
kwolekr
091594e26e
NodeDef: Clear NodeResolver related entries too in clear()
2015-01-04 22:39:57 -05:00
kwolekr
bdcf03ae36
Add minetest.generate_ores() and minetest.generate_decorations()
2015-01-04 22:38:48 -05:00
kwolekr
cd4d213ae0
NodeResolver: Perform callback immediately if node registration phase finished
...
Also add NodeResolver callbacks on the client
2015-01-04 16:32:31 -05:00
kwolekr
6fdb32361a
Remove freezemelt (the remainder of proller nonsense)
2015-01-04 03:30:10 -05:00
kwolekr
8eb9cebdd0
Add warning about using deprecated fields in Mapgen API and update docs
2015-01-04 03:24:40 -05:00
kwolekr
ef8ed5d127
LuaVoxelManip: Error when given out-of-bounds area
2015-01-04 03:07:28 -05:00
kwolekr
7233a1228e
Lighting: Fix nearly all issues
...
The cause of a single light source seemingly being lit without spread
was due to its creation in the +Y mapblock boundary layer during map
generation, which was ignored as the overtop. This overtop explicitly
needs to be omitted during sunlight propagation, however. To accomplish
this, Mapgen::calcLighting() was split into separate functions taking
separate parameters.
Additionally, do not diminish light too early during spread. This fixes the
output inconsistency between Map::updateLighting and Mapgen::calcLighting.
2015-01-04 02:42:31 -05:00
Kahrl
060ae29eaf
Update bundled SQLite to 3.8.7.4
2015-01-04 05:21:59 +01:00
ShadowNinja
3c3887bb19
Deduplicate code and use stdlib in string functions
2015-01-03 14:50:16 -05:00
kwolekr
d91559b8f0
Fix crash if NodeResolver destroyed before pending any node resolutions
2015-01-03 11:05:31 -05:00
sapier
0db73bd83e
More consistent progress bar from 0-100 on startup
2015-01-02 17:53:42 +01:00
sapier
aaec558f85
Fix rounding error in font size making main menu and in game font sizes inconsistent
2015-01-02 16:52:02 +01:00
paramat
7452d5399b
MgV5/6/7: Generate dungeons above water level
...
Use/add stone_surface_max_y to speed-optimise/guide dungeon generation
MgV7: Don't let mountain terrain chop dungeons at mapchunk borders
Make mountain terrain update stone_surface_max_y for caves in mountains
2015-01-01 15:44:26 -05:00
paramat
938a3f2976
Mgv7: Remove range limits on mountain height to enable modification through .conf
2015-01-01 12:51:49 -05:00
kwolekr
a3d7203be5
Fix map parameter load order
2014-12-30 12:30:42 -05:00
Craig Robbins
3d29be24e0
Add display_gamma option for client
2014-12-31 02:44:31 +10:00
Dmitry Marakasov
2414580754
Fix endian.h include for FreeBSD
2014-12-30 23:00:01 +10:00
Craig Robbins
53bc56dc3c
Cleanup updateCameraDirection and fix random input not working
2014-12-30 22:59:55 +10:00
kwolekr
9b0d77a549
Replace instances of height_min/height_max with y_min/y_max to remove ambiguity
2014-12-30 01:48:20 -05:00
kwolekr
b589353d89
Decoration: Fix default parameter values
2014-12-30 00:52:40 -05:00
kwolekr
c6df2bc42c
Add support back for resolving group names in NodeResolver
2014-12-29 23:15:53 -05:00
kwolekr
f12118c38b
Fix some lingering code style issues
2014-12-29 22:04:47 -05:00
kwolekr
0974337804
Mapgen: Use getBlockSeed2() for blockseeds (much better uniformity)
2014-12-29 21:44:52 -05:00
kwolekr
ca89e63b27
Add core.get_mapgen_names() to Main Menu API (and use it)
...
Also rewrite mapgen registration for static initialization
2014-12-29 21:23:51 -05:00
kwolekr
5e2753c712
Expose mapgen parameters on scripting init
...
Add minetest.get_mapgen_params()
Deprecate minetest.register_on_mapgen_init()
2014-12-29 12:59:59 -05:00
Kodexky
a79a116ac8
Center status text for better visibility.
2014-12-30 00:30:28 +10:00
Kodexky
62feade05d
Add extra buttons to Android GUI. All icons are licensed by freepik.com under CC BY 3.0
2014-12-30 00:30:28 +10:00
Craig Robbins
3993102e88
Fix -Wtype-limits warnings and remove disabling of -Wtype-limits
2014-12-29 23:56:40 +10:00
kwolekr
5038b9aaec
Print unit test failures to dstream
2014-12-29 02:30:03 -05:00
kwolekr
9eb492229b
FontEngine: Don't use file extension to check font file compatibility
2014-12-29 01:46:13 -05:00
kwolekr
cc3ab5efa5
LuaVoxelManip: Remove blank allocator
2014-12-29 01:31:37 -05:00
kwolekr
3c637b4baf
LuaItemStack: Fix and document behavior of set_name, set_count, set_wear, set_metadata
2014-12-28 23:59:24 -05:00
sapier
acb3519502
Fix MSVC compiler warning about passing this pointer in initializer list
2014-12-28 23:40:44 -05:00
Christophe Piveteau
91c00d29a5
Skip further loading of client if there was an exit signal
2014-12-28 22:46:53 -05:00
kwolekr
863379a4c6
Decoration: Add height_min and height_max parameters
...
Also set default height_min/height_max to -31000 and 31000,
respectively, for ore and biomes
2014-12-28 22:37:27 -05:00
kwolekr
c5faa64405
Cavegen: Fix copy & paste error (solves #2020 )
2014-12-28 22:35:14 -05:00
paramat
570c2042b1
Biome API: Add shore top and shore filler nodes, underwater node, water top node. Add water top depth and shore height parameters. Remove water dust node
2014-12-28 21:37:43 -05:00
kwolekr
61dfa912f5
Ore: Add Vein ore type
2014-12-28 21:17:12 -05:00
kwolekr
900fa26965
Ore: Add Blob ore type
2014-12-28 03:11:00 -05:00
kwolekr
8c98f497d9
PseudoRandom: Expose constant PSEUDORANDOM_MAX
2014-12-28 03:09:32 -05:00
kwolekr
8334100fe1
LuaVoxelManip: Add option to allocate blank data
2014-12-27 23:09:36 -05:00
kwolekr
ae2721f2c8
VoxelManipulator: Remove unnecessary deallocation steps
2014-12-27 22:35:05 -05:00
kwolekr
08d259cf41
Set fallback content if resolving content vector requires everything
2014-12-27 22:20:04 -05:00
kwolekr
b67f37f27e
Redefine NodeResolver interface and replace with callback mechanism
2014-12-27 02:12:21 -05:00
ShadowNinja
33eed6eb84
Fix fs::GetRecursiveSubPaths trying to get directory lists for files
2014-12-24 17:23:07 -05:00
Craig Robbins
8621e6de5d
Large increase in performance
2014-12-24 23:13:24 +10:00
kwolekr
565959db86
Silence misc. warnings
2014-12-23 01:09:50 -05:00
Craig Robbins
7b93408884
Make limiting of the reflow liquids queue size optional
...
If liquid_queue_purge_time == 0 then disable the queue size limiting and make this the default setting
Additionally, liquid_loop_max now defaults to 100000
2014-12-23 15:47:06 +10:00
kwolekr
249749dd8c
Temporarily fix always bright wieldhand with shaders enabled
2014-12-22 22:37:11 -05:00
Kahrl
7109e8f9fd
Fix weird (and wrong) comment in test.cpp
2014-12-21 13:20:42 +01:00
paramat
173e1f6014
Re-add hacky fix for underwater grass, to fix mgv7 user's biomes
2014-12-20 14:50:13 -05:00
unknown
1e8e700ee6
Change TileSpec::frames to be std::vector not std::map
...
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2014-12-21 02:41:17 +10:00
Vanessa Ezekowitz
0d55f43977
Fix visual_scale for plantlike nodes (again)
...
fixes #1989
move the plant to the bottom of its node properly, without affecting its scale. See isue #1989
2014-12-19 12:25:32 +10:00
Craig Robbins
815876e709
Fix visual_scale for NDT_PLANTLIKE being set too small
2014-12-18 20:28:14 +10:00
Craig Robbins
f5211bbd59
Suppress compiler warning
2014-12-18 19:29:04 +10:00
kwolekr
67063ed59f
Remove manual biome noise translation
2014-12-17 16:28:28 -05:00
Craig Robbins
082256a9f8
Do not allow the m_transforming_liquid queue to increase until all RAM is consumed
2014-12-18 03:32:19 +10:00
Pavel Puchkin
3b902fd574
Fix OSX packaging finally
...
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2014-12-16 20:33:54 +10:00
kwolekr
8661b3587b
Set WM_CLASS window hint for Xorg
2014-12-15 13:52:10 -05:00
kwolekr
8fe1d3fc2e
Expose mapgen chunksize in on_mapgen_init callbacks
2014-12-14 18:46:46 -05:00
Pavel Puchkin
a0ac471c1a
Fixes #1687 by extra semaphore retval handle code for OSX
...
See https://github.com/minetest/minetest/issues/1687#issuecomment-56830173
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2014-12-15 02:12:39 +10:00
kwolekr
dcbf1b3ce5
Noise: Don't assume Noise is used for 2D unless gradientMap2D is actually called
2014-12-14 00:18:31 -05:00
Craig Robbins
b5e11e0e9a
Fix misleading error when exiting the client from the main menu
2014-12-14 00:07:44 +10:00
Craig Robbins
784a452ed5
Provide more info if a subgame is not valid/found
2014-12-13 23:01:16 +10:00
kwolekr
035e6bfc18
LuaPerlinNoiseMap: Fix 3d noise safety check
2014-12-12 22:58:44 -05:00
Kahrl
c4624639e6
Fix segfault when dragging mouse out of mainmenu window ( #1910 )
2014-12-13 00:39:07 +01:00
ShadowNinja
8af9d8b6ac
Fix missing call to std::ostringstream::str
2014-12-12 16:32:11 -05:00
SmallJoker
19ccc27d37
Fix MSVC compiling warnings and remove an unused texture
2014-12-12 16:09:34 -05:00
kwolekr
093b1b47d9
Log: Silence errorstream during unittests
2014-12-12 15:51:55 -05:00
Anton
10e0cf8b2c
Use std::string::empty() instead of size() where applicable
2014-12-12 15:16:24 -05:00
kwolekr
8066743a83
Settings: Fix invalid memory access when setting not found in working mem
2014-12-12 14:39:36 -05:00
kwolekr
2c9bbe2736
NodeResolver: Fix some comments and use const references for params
2014-12-12 14:21:41 -05:00
kwolekr
cf8213ea82
Add minetest.clear_registered_decorations() and clear_registered_ores()
2014-12-12 14:08:04 -05:00
MirceaKitsune
cec141adc1
Allow footstep sounds to play for liquid and ladder nodes, making swimming and climbing sounds possible
2014-12-12 16:47:47 +01:00
Kodexky
6ba50aa8f9
Responsive tooltip offset for Android.
...
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2014-12-13 00:43:37 +10:00
Craig Robbins
9f65fd6819
Fix typo in mapblock.h
2014-12-12 20:46:37 +10:00
kwolekr
4e5d17f666
LuaPerlinNoiseMap: Prevent invalid memory access when attempting to generate 3d noise with a buffer created for 2d
2014-12-12 02:46:52 -05:00
kwolekr
00fc0babe0
Mapgens: Rename m_emerge to prevent name collisions
2014-12-12 02:38:39 -05:00
kwolekr
2b8180a417
Add support for NoiseParams in minetest.get_perlin() and add docs on NoiseParams to lua_api.txt
2014-12-12 02:02:44 -05:00
kwolekr
d3dc88fe6b
Settings: Fail on invalid sequence and throw exception for LuaSettings
2014-12-12 00:44:17 -05:00
kwolekr
b0c4fd6d3f
Settings: Sanitize value for multiline terminator tokens
2014-12-11 23:26:13 -05:00
kwolekr
fb80a7c111
Clean up Noise macros
2014-12-11 02:53:10 -05:00
kwolekr
c07f15e910
NodeResolver: Fix cancelNode and cancelNodeList
2014-12-11 00:41:54 -05:00
kwolekr
16baed0467
Noise: Automatically transform noise maps if needed
2014-12-10 23:35:37 -05:00
kwolekr
dcc48976ce
Move get_schematic and read_schematic to l_mapgen.cpp
2014-12-10 01:49:57 -05:00
paramat
4cf8042b7c
Biome API: Reduce heat and humidity persistences to 0.5
2014-12-10 01:39:08 -05:00
kwolekr
a89f37bb65
Add support for lacunarity in legacy NoiseParams string format
2014-12-10 01:31:43 -05:00
Kahrl
daefd0ab36
Add paste command (Ctrl-V) in GUIChatConsole
2014-12-10 07:12:08 +01:00
kwolekr
cfba55ba0a
Remove get_noiseparams function. read_noiseparams should be used from now on
2014-12-10 00:56:44 -05:00
kwolekr
fb2bc956b1
Noise: Create a deep copy of NoiseParams
2014-12-10 00:37:09 -05:00
kwolekr
88c28414f4
Settings: Sanitize setting name everywhere, not just LuaSettings
2014-12-09 23:52:13 -05:00
kwolekr
d50878d608
Rename and repurpose minetest.set_noiseparam_defaults to set_noiseparams
2014-12-09 23:44:04 -05:00
kwolekr
f2c18511a4
Settings: Make setting entry group and values mutually exclusive
...
This greatly reduces the complexity of Settings code.
Additionally, several memory leaks were fixed.
2014-12-09 23:29:34 -05:00
SmallJoker
2f8fbdb9f5
Rewrite fs:GetDirListing(file) by kahrl
2014-12-10 02:59:10 +10:00
SmallJoker
5229a229a6
Ignore .name directories and files
...
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2014-12-10 02:49:02 +10:00
Craig Robbins
c5f6f9f77a
Increase performance of getLight() by at least 2x
...
Leads to the following increases:
getSmoothLight() approx. 40% increase
getTileInfo() approx. 25% increase
MapBlockMesh::MapBlockMesh() 25-30%
2014-12-10 00:52:02 +10:00
Pavel Puchkin
a1ea017b51
Fix builds failing on BSD-like (such as OSX) due to an irrlicht bug (temporary fix)
...
Details:
- https://sourceforge.net/p/irrlicht/bugs/433/
- https://github.com/minetest/minetest/issues/1687#issuecomment-61368769
- https://forum.minetest.net/viewtopic.php?f=42&t=9190&start=125#p159364
In case when "settings.h" is included from "emerge.cpp" or
"environment.cpp", u64 type has "unsigned long" length because
previously <stdint> was included. When "settings.h" is included from
"settings.cpp", u64 has "unsigned long long" length because no <stdint>
was included previously. This leads to different signatures of "setU64" method
and linker cannot find appropriate symbol.
The best fix of this bug should be done in the Irrlicht, but as hotfix I
think this is OK and better than types changing.
Previously this bug didn't appear because there was no "settings.cpp" file and
implementation of all methods was done in the header file.
2014-12-09 20:40:52 +10:00
kwolekr
941d000fc6
Noise: Update Noise::resizeNoiseBuf to account for lacunarity not equal to 2
2014-12-09 00:50:58 -05:00
kwolekr
29b413b376
Biomes: Make biome heat and humidity noise parameters user-configurable
2014-12-09 00:38:04 -05:00
Craig Robbins
7490368984
Fix compiler warning (signed vs. unsigned)
2014-12-08 23:00:49 +10:00
kwolekr
2a7c6d27b3
Optimize noise implementations
2014-12-08 03:26:29 -05:00
Kahrl
0183c05ee0
Fix struct vs. class in forward declarations
2014-12-08 09:06:31 +01:00
RealBadAngel
4f23778e53
Fix lighting artifacts (Issue #1887 ).
2014-12-08 08:53:31 +01:00
kwolekr
2fd3d52020
Add flags and lacunarity as new noise parameters
...
Add 'absolute value' option to noise map functions
Extend persistence modulation to 3D noise
Extend 'eased' option to noise2d_perlin* functions
Some noise.cpp formatting fixups
2014-12-07 21:59:32 -05:00
RealBadAngel
638f3a8454
Disable loading .mtl files. Theyre not used anyway.
2014-12-08 02:24:46 +01:00
MirceaKitsune
c5f6656f99
Make directional fog colors respect tonemap
2014-12-08 01:44:28 +01:00
Craig Robbins
5c55738276
Fix f6 debug/profiler display
...
After fonts were re-engineered the height of the f6 debug/profiler display would only display about 2-3 lines of text.
2014-12-08 00:01:22 +10:00
Calinou
bc2b8e9eef
Increase third person view distance
...
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2014-12-07 21:54:44 +10:00
Muhammad Rifqi Priyo Susanto
5ffddc94c0
Add space between client names in status text (client)
...
Before:
Server: version=0.4.10, uptime=190.5, max_lag=0.001, clients={user1,user2,user3,user4,user5,foobar,userplayedminetestthismorning}
After:
Server: version=0.4.10, uptime=190.5, max_lag=0.001, clients={user1, user2, user3, user4, user5, foobar, userplayedminetestthismorning}
2014-12-07 21:32:08 +10:00
RealBadAngel
535c473103
Restore finalColorBlend implementation in shaders.
2014-12-07 11:05:00 +01:00
Craig Robbins
500f691426
Fix regression (increase/decrease viewing range with +/- keys)
2014-12-07 18:32:30 +10:00
kwolekr
2f134ce24f
Mapgen V5: Fix use of uninitialized value in ctor
2014-12-07 01:19:42 -05:00
kwolekr
390c0cd691
Schematics: Fix minetest.place_schematic() when defined by a Lua table
2014-12-06 18:39:05 -05:00
kwolekr
60feb4ad25
Add minetest.clear_registered_biomes() api
2014-12-06 18:08:23 -05:00
Kahrl
f3abaec83b
Ignore some mouse events sent from scrollbar to GUITable
...
Fixes #1567 , #1806 .
2014-12-06 22:45:23 +01:00
SmallJoker
d75f0b0360
Close settings files and save them correctly
2014-12-06 14:08:01 -05:00
sfan5
4fcf9fb66a
Add workaround for failing clang build
2014-12-06 19:56:31 +01:00
kwolekr
5062b99cb0
Rewrite generate notification mechanism
...
Add support for notify-on-decoration
Clean up mapgen constructors
Clean up mapgen.cpp code style somewhat
Remove trailing whitespace from some files
2014-12-06 13:53:35 -05:00
Craig Robbins
2b119e1e19
Performance of main client loop up to 2x faster In places, up to 3 times faster
...
NOTE 1: This does not mean a 2x increase in framerate. Increase in fps may be up to 1-2fps
NOTE 2: This local 'caching' of settings is not optimal and an alternative solution will be worked on after 0.4.11 is released
2014-12-07 00:51:01 +10:00
Craig Robbins
0e78aa296e
Add name of node 'pointed at' to debug
...
This is "Add name of node pointed at to debug #1677 " by @rubenwardy updated to work with game.cpp after it was refactored.
2014-12-05 16:14:50 +10:00
SmallJoker
5da6896d51
Fix MSVC build
...
Note: The unit test was technically incorrect for all platforms but passes due to implicit casting
2014-12-05 16:09:53 +10:00
RealBadAngel
a648120d54
Recalculate normals for mesh #0 . Fix for issue #1902 .
2014-12-05 01:05:18 +01:00
Craig Robbins
f7f7fec497
(INTERIM) Make sizes of the font in formspecs consistent and not so large
...
Until a permanent fix can be developed
2014-12-05 02:35:21 +10:00
Craig Robbins
c16b1e2639
Optimise VoxelManipulator::copyFrom
...
~3-4x faster
This indirectly optimises MapBlock:copyTo() which in turn improves performance of MeshMakeData::fill()
2014-12-04 23:37:04 +10:00
Craig Robbins
f6912f4241
Right mouse button behaviour for craft/inventory If right mousebutton clicked once then don't drop single items into slots. If right mouse button has been clicked and held a second time, drop items as the mouse is moved. In the second case (automatically drop/place items as mouse is moved) only auto-drop into blank slots, or slots that contain the same item.
2014-12-04 23:30:53 +10:00
kwolekr
f0cd59034c
Settings: Various setting group fixes and enhancements
...
- Remove blank setting values when setting has a group
- Pair setting values with groups in file when possible
- Preserve user-set whitespace in setting objects
- Delete setting value when setting NoiseParams group
- Delete overwritten groups outside of lock
2014-12-04 03:20:07 -05:00
paramat
0a5373d400
Add definable node_stone to biome API, mgv5, mgv7. Reduce and correct depth of mgv7 biomes. l_mapgen.cpp: add '#include mapgen_v5.h' because '#include mapgen_v7' is there. Improve underwater grass hack
2014-12-03 19:45:29 -05:00
kwolekr
fcb1ea903f
Settings: Fix getNoiseParamsFromValue()
2014-12-02 21:09:16 -05:00
kwolekr
68c799bf99
Use setting groups for NoiseParams
...
Add format example to minetest.conf.example
Add Settings::setU16()
Throw exception on attempted access of NULL settings groups
2014-12-02 04:03:37 -05:00
sapier
93aab0362c
Fix settings callback "call" lost on rebase
2014-12-01 19:47:57 +01:00
Craig Robbins
691b18c41b
Fix node 0,0,0 being highlighted when enable_node_highlighting == false
...
Without this patch node 0,0,0 is highlighted when enable_node_highligting is false
There is a minor lighting issue remaining, however it seems to be related to a different bug (https://github.com/minetest/minetest/issues/1887 )
2014-12-01 22:13:21 +10:00
Craig Robbins
d4f42938a5
Fix build
...
Note: this does not fix the warnings generated by clang
2014-12-01 15:17:47 +10:00
kwolekr
360660947b
LuaSettings: Sanitize setting name strings
2014-11-30 19:01:54 -05:00
Kahrl
16781da4f9
Fix segfault at exit caused by non grabbed font
2014-11-30 23:21:14 +01:00
kwolekr
175b7a28e5
settings: Add setting groups and multiline entries
2014-11-30 16:11:21 -05:00
sapier
39162de15a
Make hud use fontengine too
...
Fix non coding style conforming glb_fontengine to g_fontengine
Fix fonts never been deleted due to grabbed to often
2014-11-30 18:06:54 +01:00
Zefram
d1d6a97b1c
Scale form elements consistently
...
The ratios between the sizes of form elements, including text, is now
fixed, aside from variations caused by rounding. This makes form layout
almost fully predictable, and particularly independent of player's
screen size. The proportions of non-text elements are the traditional
proportions.
For compatibility, the way in which element positions and sizes are
specified remains unchanged, in all its baroqueness, with one exception.
The exception is that the position of a label[] element is now defined
in terms of the vertically center of the first line of the label,
rather than the bottom of the first line of the label. This change
allows a label to be precisely aligned with button text or an edit box,
which are positioned in a centering manner. Label positioning remains
consistent with the previous system, just more precisely defined.
Make multi-line label[] elements work properly. Previously the code set
a bounding rectangle assuming that there would be only a single line,
and as a result a multi-line label would be cut somewhere in the middle
of the second line. Now multi-line labels not only work, but have
guaranteed line spacing relative to inventory slots, to aid alignment.
Incidentally fix tabheader[] elements which were being constrained to
the wrong width.
Given an unusually large form, in variable-size mode, the form rendering
system now chooses a scale that will fit the entire form on the screen,
if that doesn't make elements too small. Fixed-size forms, including the
main menu, are have their sizes fixed in inch terms. The fixed size for
fixed-size forms and the preferred and minimum sizes for variable-size
forms all scale according to the gui_scaling parameter.
2014-11-30 17:50:09 +01:00
sapier
dceb9f7d60
Implement proper font handling
2014-11-30 17:50:09 +01:00
kwolekr
25945dc539
noise: Throw exception on noise allocation failure
2014-11-29 16:52:45 -05:00
SmallJoker
a3e019c4f6
Fix MSVC compiling error (argc/argv not available to pass to init_gettext)
...
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2014-11-29 22:31:40 +10:00
Craig Robbins
edb125837c
Fix regression with command line --go option
2014-11-28 22:48:46 +10:00
Ciaran Gultnieks
77137a92cf
Don't corrupt stepheight when setting other properties
2014-11-26 20:02:48 +01:00
Kahrl
264d740c9d
Wield: always obey anisotropic_filter setting, not just for hi res textures
2014-11-26 19:54:04 +01:00
Kahrl
571ba5d9c5
EMF_USE_MIP_MAPS was introduced in Irrlicht 1.8, don't use in 1.7.3 or below
...
This is not optimal as it will cause minor graphical glitches for
Irrlicht 1.7 users, but at least it fixes the build.
2014-11-26 19:17:50 +01:00
Sokomine
9f9279008c
added enable_build_where_you_stand option
...
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2014-11-27 01:07:11 +10:00
Kahrl
ec5188a49a
Wieldmesh: don't force anisotropic filtering on, instead disable mipmaps
...
This should fix #1844 . Thanks to oleastre for making the first version
of this commit (#1848 ).
2014-11-26 15:17:17 +01:00
rubenwardy
8df8554fce
Only set the camera update keymap when using a debug build
...
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2014-11-26 21:53:01 +10:00
Kodexky
9aaf67ebe0
Fix Android main menu crash, and user data directory check.
...
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2014-11-26 18:11:08 +10:00
Calinou
1c9f05d792
Increase step smoothing to fit 1:1 stairs (works well on slabs too)
...
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2014-11-26 17:28:02 +10:00
Craig Robbins
26cf98ccfc
Fix client "double saving" simple singleplayer local maps
2014-11-26 00:49:54 +10:00
KodexKy
5413ed1195
Fixes for Android build errors. Enable sensor landscape rotation.
...
Fix typo in Android Makefile ndk path.
Fix touchscreen parts of game.cpp to work after Zeno's refactor.
Fix isdigit and isspace overload conflict with Android Irrlicht in string.h
Enable sensor landscape rotation in Android Manifiest.
Add mapgen v5 to Android build.
Fix Makefile not checking leveldb.
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2014-11-25 13:28:51 +10:00
RealBadAngel
0164483310
Port createForsythOptimizedMesh from Irrlicht 1.8
...
Mesh rotation helpers.
2014-11-23 00:51:08 +01:00
Craig Robbins
21464639b3
Fix regression with USE_REDIS (refactor_main)
2014-11-23 01:12:25 +10:00
Craig Robbins
d6cc0d8223
refactor main.cpp
2014-11-23 00:27:02 +10:00
Craig Robbins
cb2d467665
Fix smooth lighting (ambient occlusion)
...
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2014-11-22 21:58:00 +10:00
Pavel Puchkin
f7f24d1470
Fix compiling if no endian.h found
...
f7d6509 introduces error when no endian.h found in the system.
Since "CHECK_INCLUDE_FILE" returns empty string instead of "0", when
"cmake_config.h" is generated it has "#define CMAKE_HAVE_ENDIAN_H " line.
Later we have "#define HAVE_ENDIAN_H CMAKE_HAVE_ENDIAN_H" in the
"config.h", an thus "HAVE_ENDIAN_H" is also empty sting. Because of
this, "#if HAVE_ENDIAN_H" is incorrect preprocessor directive.
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2014-11-22 21:56:38 +10:00
Rafael Reilova
f7d65091f8
serialize.h: use machine native byte swapping if available, fall-back to previous generic method if not (supported for GCC using endian.h, detection done in cmake) write/readARGB8() - just write 32-bit color in one op, instead of 4 1-byte ops cleanup: removed unneeded buffer init for some serialize-out functions use a #define for the fixed point factor in read/writeF1000()
...
nodemetadata.cpp, nodetimer.cpp
optimzation: simpler deserialize node position method
staticobject.cpp:
cleanup: use util/serialize.h inlines instead of its own de/serialization
serialize.cpp:
minor optimization/cleanup: avoid generation of unneeded string temporary
CMakeLists.txt, cmake_config.h.in: detection of endian.h
config.h: added HAVE_ENDIAN_H
Commits due to feedback squashed
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2014-11-21 22:33:48 +10:00
Craig Robbins
d406ac994b
Optimise functions from CNodeDefManager and VoxelManipulator
...
CNodeDefManager::get()
VoxelManipulator::addArea()
2014-11-21 14:56:45 +10:00
Craig Robbins
ea404979e1
Optimise getTileInfo()
...
getTileInfo() ~1.5x faster
getSmoothLight ~2.0x faster
2014-11-21 14:56:45 +10:00
paramat
fcdb1a8fc2
Mgv5 1 up 1 down overgeneration for biome surface continuity
2014-11-20 23:13:09 -05:00
paramat
d39887dadd
Mgv5 get ground level at point function. Fast spawn player version
2014-11-20 21:07:20 -05:00
ShadowNinja
c4e393deea
Simplify loading of Android version of menu
2014-11-20 15:37:20 -05:00
Kodexky
b9bc8dadb2
Fix raillike bug (currently manifests itself on Android), and minor improvement to readability.
...
NB: Minor edits to patch made by Zeno- (int to short and minor formatting)
2014-11-20 15:41:59 +10:00
ShadowNinja
b1965ac209
Clean up rollback
2014-11-19 16:21:59 -05:00
ShadowNinja
da0f1e5497
Fix wallmounted mesh rotations
2014-11-19 16:17:54 -05:00
sfan5
9d69436052
Add (optional) client-side saving of server map to disk
2014-11-19 15:11:23 +01:00
Kahrl
55e4c35eaf
Remove unused rangelim function (the macro still exists)
2014-11-19 10:19:52 +01:00
Craig Robbins
f0a8f655c0
Fix double free bug when server is shut down
...
Thanks @oleastre
2014-11-15 22:33:52 +10:00
kwolekr
8831703428
Fix NoisePerlin3DEased return value
2014-11-14 21:19:46 -05:00
kwolekr
8d3a68f343
Fix warnings and other misc. minor changes
2014-11-14 03:07:12 -05:00
Craig Robbins
5b8855e83c
Remove most exceptions from getNode() (and variants)
2014-11-14 18:05:34 +10:00
SmallJoker
874109c520
Add option 'eased' to NoiseParams
...
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2014-11-13 23:06:38 +10:00
kwolekr
b57478b93b
Fix compilation under some Linux distributions
2014-11-13 00:16:37 -05:00
kwolekr
c3ad08708f
Mapgen v7: Fix uninitialized spflags
...
Mapgen v5: Fix minor style issue
2014-11-12 23:58:50 -05:00
kwolekr
fc9521874c
Add eased 3d point-value noise functions
2014-11-12 23:49:45 -05:00
kwolekr
7616537bc0
Add Generator Element Management framework
...
Add BiomeManager, OreManager, DecorationManager, and SchematicManager
2014-11-12 23:02:41 -05:00
RealBadAngel
f25cc0dbae
Wielded fixes. Add shaders support.
2014-11-13 03:51:04 +01:00
Craig Robbins
45ebaa3524
Fix profiler values not being updated (F6) and not being logged
2014-11-11 20:58:57 +10:00
Kahrl
0adadba218
Serverlist: announce mg_name from map_meta.txt instead of minetest.conf
2014-11-10 22:27:10 +01:00
Zeno-
a1e9732407
Merge pull request #1825 from Zeno-/control_key_cache
...
Create faster key cache for main game loop (client)
2014-11-10 19:12:25 +10:00
Craig Robbins
987e565eeb
Create faster key cache for main game loop (client)
2014-11-10 12:26:19 +10:00
paramat
10a47b7fee
Tune cave noise scales to 6. Fix blobs spflag, now enabled. Update conf.example
2014-11-09 20:21:39 -05:00
Kahrl
9b551d5cbc
Implement WieldMeshSceneNode which improves wield mesh rendering
...
- Don't create and cache an extruded mesh for every (non-node) item.
Instead use a single one per image resolution.
- For cubic nodes reuse a single wield mesh too
- Improve lighting of the wielded item
- Increase far value of wield mesh scene camera, fixes #1770
- Also includes some minor refactorings of Camera and GenericCAO.
2014-11-08 23:11:57 +01:00
Craig Robbins
cc8d7b8640
Stop inserting empty lines at end of minetest.conf file each time it is rewritten
...
See: https://github.com/minetest/minetest/issues/1790
2014-11-08 21:57:52 +01:00
Craig Robbins
1c21e391ed
Fix regressions and minor improvements in refactor_the_game
...
a) Fix double tap for jump and show_debug
b) Revert changes to limitFps()... there is no verification that the new method was an issue, but going back to old method just in case
b.2) limitFps() no longer calls device->run() and also no longer has to be called immediately after a call to device->run()
2014-11-08 21:40:11 +01:00
paramat
92981b2fee
Add mgv5. New noise code, uses biome API. Eased 3d noise for terrain, caves, blobs
2014-11-08 21:37:26 +01:00
RealBadAngel
d0be27415e
Speed up removing a node (less block mesh updates).
2014-11-08 21:04:30 +01:00
SmallJoker
c40e993ce4
Replace setting unlimited_player_transfer_distance with player_transfer_distance
2014-11-08 14:56:09 +01:00
Craig Robbins
96fcca4ea0
Address issues related to refactoring the_game
...
Fix time of day persistence
Fix wield item being updated every frame causing small performance hit
Rename some classes and variables
2014-11-03 13:57:56 +01:00
Kahrl
817e3a6c64
Fix regression: mouse wheel couldn't scroll from last hotbar item to first
2014-11-02 21:59:56 +01:00
Craig Robbins
43bf4324d5
Cleanup and (mostly) document util/string.h and (very) minor refactoring
...
Updated: Incorporated feedback from 'kahrl'
Updated: Moved MinetestApp::boolToCStr() from game.cpp into string.h renaming it bool_to_cstr()
2014-11-02 18:07:20 +01:00
Kahrl
8040806f22
Include mg_decoration.h, mg_ore.h from emerge.cpp to fix warnings
2014-11-02 17:52:30 +01:00
Craig Robbins
209c0dd1af
Fix unit tests failing if IPv6 not available
...
See:
https://github.com/minetest/minetest/issues/1526
https://github.com/minetest/minetest/issues/793
2014-11-02 02:27:26 -05:00
Craig Robbins
dfd15fd1d9
Modified dtime calculation method in limitFps()
2014-11-02 02:20:06 +01:00
Craig Robbins
429ecb2b94
Refactor the_game() to make it more understandable and maintainable.
...
The following is a record of 31 commits before squashing:
Revert "Remove m_ext_ptr in GUIFormSpecMenu, replaced by refcount mechanism"
This reverts commit b49e5cfc7013cef7e9af79d17e04f7e7e4c377d4.
Basic reformatting with astyle
-- additional formatting will be modified, manually, as the need for it is encountered
Start "outlining" what a MinetestApp class might look like
Add MinetestApp::shutdown()
Converted class member functions to camelCase and created protos for new functions
First stage of connect to server done
Add get itemdefs/nodedefs/media code
Init clouds, camera, sky, init GUI, HUD
Input handling
Client events, camera, sound, draw
Fix wield hand getting stuck digging and add debug text back
Fix FPS
Added profiler graph back
Fix FPS issue
Need to work out what went wrong and clean up the copy/paste stuff
Annotate
Various:
Rewrote limitFps()
Limited scope of some variables
Jitter calcs
Reduce scope of objects
Move some stuff out of ::run and minor formatting cleanup
Scope reduction
Function splits
Removed old (broken) limitFps()
Added exception handling back
Fixed some formatting
Reverted commented out unit tests (uncommented them)
Slow clouds down on loading and media screens so the behaviour is like the original the_game()
Formatting/style (no functional changes)
Manually reapply upstream b49e5cf: Remove m_ext_ptr in GUIFormSpecMenu, replaced by refcount mechanism
Fixed silly errors on my part
Minor formatting cleanups
Removed strange differentiation in FPS limiting when loading
FPS limiting was done differently if cloud_menu_background was true, which does not make sense
Cleaning up
Add some comments
2014-11-02 02:18:25 +01:00
kwolekr
9e811a92e7
Split up mapgen.cpp
2014-11-01 13:16:23 -04:00
kwolekr
db25f75337
Fix erroneous lua_pop parameter
2014-10-30 16:23:48 -04:00
kwolekr
f0ae2da89e
Fix uninitialized variable warning
2014-10-30 02:53:20 -04:00
kwolekr
6b4307791a
mapgen: Resolve nodes in ctor rather than makeChunk
2014-10-30 02:29:37 -04:00
kwolekr
03f3f958ed
Check minetest.hud_change() parameters on conversion ( Fix #1714 )
2014-10-30 00:12:12 -04:00
Craig Robbins
6c9bbb0360
Fix bug introduced by me (Zeno)
2014-10-29 08:54:16 +01:00
RealBadAngel
dd4c21c180
Add option to enable mesh caching, add wallmounted for meshes.
2014-10-29 08:37:33 +01:00
Craig Robbins
813c088c1c
Added names colours and refactored parseColorString()
2014-10-29 03:10:59 -04:00
kwolekr
1cb6ea6346
Refactor decoration-related code
...
Split up ModApiMapgen::l_register_decoration()
Define and make use of CONTAINS() and ARRLEN() macros
2014-10-29 01:56:37 -04:00
PenguinDad
7c6da2f384
Fix various indentation issues
2014-10-28 15:37:58 -04:00
Craig Robbins
6396712ec4
Fix #1733 : An unhandled exception occurred: GetPeer: Peer not found (possible timeout)
2014-10-28 13:39:23 -04:00
kwolekr
4a3592ff9a
Add NodeResolver documentation
...
Set content to fallback on AddNode failure
Consider node list requests with no results as failed
2014-10-28 02:23:45 -04:00
kwolekr
bc28ca0636
Prevent invalid memory access under failure conditions
2014-10-28 00:18:53 -04:00
kwolekr
6ddf458504
Change license of noise implementation to Simplified BSD
2014-10-27 21:17:07 -04:00
kwolekr
b994a7af13
Add support for eased 3d noise
2014-10-27 02:02:38 -04:00
kwolekr
d274cbfce6
Add NodeResolver and clean up node name -> content ID resolution system
2014-10-26 23:55:45 -04:00
Kahrl
b49e5cfc70
Remove m_ext_ptr in GUIFormSpecMenu, replaced by refcount mechanism
2014-10-24 21:14:48 +02:00
Pavel Puchkin
73bf791fe1
Remove remenants of mob code
...
Since minetest has no mobs within the core anymore, I suppose these
settings and code should go. Any mod that uses `minetest.setting_getbool`
will work with no problem since the default return value is `false`.
2014-10-23 20:54:33 -04:00
RealBadAngel
7e34621b1d
Fix broken plantlike drawtype.
2014-10-22 21:15:31 +02:00
David Thompson
fd5eaae2ba
Search for subgames using $MINETEST_SUBGAME_PATH.
2014-10-22 21:05:14 +02:00
RealBadAngel
d221917170
Recalculate normals for cached meshes.
...
Check if mesh is here before adding to meshcollector.
Fix deleting the meshes.
2014-10-21 18:43:29 +02:00
Kahrl
9029a34cc6
Fix some indentation in nodedef.cpp
2014-10-20 16:11:38 +02:00
Kahrl
ae375cc322
Fix memory leak caused by mesh nodes (and nodeboxes)
2014-10-20 16:11:00 +02:00
RealBadAngel
e5652cb75c
Custom collision boxes node property.
2014-10-19 20:48:21 +02:00
Craig Robbins
076c5ee223
Various uninitialised variable fixes
...
sky.cpp: m_bgcolor.getAlpha() was being used before initialised
mesh related: m_highlight_mesh_color was being used uninitialised
2014-10-19 15:33:08 +02:00
Craig Robbins
fe8ef1be59
Move buttons upwards to accommodate for new configure keys button in the
...
pause menu
2014-10-18 17:30:17 +02:00
RealBadAngel
0066bd77d2
Add meshnode drawtype.
2014-10-18 16:42:23 +02:00
Kahrl
d1ccc64e1e
Make sure PRECISION_SECONDS corresponds to the integer 0
2014-10-09 11:40:33 +02:00
Kahrl
26495da94a
Fix unit reported by TimeTaker (was always ms)
2014-10-09 11:15:03 +02:00
Craig Robbins
914f850d31
Fix use of unitialized variables in mouse button handling
2014-10-08 14:56:29 -04:00
Mushiden
7b548cd2b5
Add in-game key change menu
2014-10-07 17:24:09 -04:00
ShadowNinja
741df993ff
Fix object reference pushing functions when called from coroutines
2014-10-07 16:37:45 -04:00
BlockMen
28438bba27
Add [colorize modifier
2014-10-05 16:49:52 +02:00
kwolekr
173beeee65
Fix special tile backspace culling
2014-10-03 11:20:29 -04:00
RealBadAngel
b9cb196d49
Bugfix: dont highlight (0,0,0) when theres no node pointed.
2014-10-03 16:03:14 +02:00
RealBadAngel
0920f55eb4
Fix broken plantlike drawtype.
2014-10-03 15:33:32 +02:00
kwolekr
37d3c3d328
Fix misc. style issues
2014-10-03 03:49:06 -04:00
kwolekr
01ce57ade5
Clean up nodedef.cpp
2014-10-03 03:21:08 -04:00
BlockMen
f48f686930
Add optional framed glasslike drawtype
2014-10-02 11:35:15 +02:00
ShadowNinja
e9c9b66ae9
Make players check inventory modification properly
2014-10-01 18:44:36 -04:00
ShadowNinja
8b3135a643
Only set player dirty flag if values change
2014-10-01 18:44:36 -04:00
ShadowNinja
cd0df0d5e7
Simplify player modification checks
2014-10-01 18:44:36 -04:00
sapier
b37bff72f1
Fix android build using hardcoded path for data instead of using the one fetched by android api on init.
...
Fix android missing version information
2014-10-01 22:18:29 +02:00
BlockMen
61ed56f916
Standardize tooltip row detection
2014-09-28 10:10:43 +02:00
BlockMen
b75e7148c2
Fix multilined description in tooltips ( fixes #1688 )
2014-09-28 08:44:05 +02:00
sapier
121e8cc2a1
Fix totally messed up 3d modes interlaced/topbottom/sidebyside
2014-09-25 20:37:06 +02:00
sapier
15c7460eda
Fix chat lines not word wrapped correct
2014-09-25 19:54:02 +02:00
Kahrl
5ca5630a11
Fix command line parsing
...
Broken by 6bc4cad0eddd7a7cf593ca1471599e2d75727379, e.g.
minetest --worldname world
would be parsed as
minetest --worldname --worldname
2014-09-22 11:02:26 +02:00
ShadowNinja
56195dc2e4
Fix build with redis
...
Broken by 6bc4cad0eddd7a7cf593ca1471599e2d75727379 because database-redis.h
depended on settings.h to include filesys.h.
2014-09-21 21:02:49 -04:00
TriBlade9
9a685a4f2e
Add firelike drawtype
2014-09-21 15:50:27 -04:00
ShadowNinja
fb35cfb2dc
Fix GCC reorder warning
...
Caused by a020d1b653f94fbcaac06c15f9dbab4521fda355.
2014-09-21 15:23:36 -04:00
sruz25
f6321e277b
Add inventory right click drag and drop
2014-09-21 15:23:27 -04:00
ShadowNinja
c061bdd37f
Fix locking bugs and make inventory deserialization errors more specific
2014-09-21 14:39:36 -04:00
ShadowNinja
6bc4cad0ed
Split settings into seperate source and header files
...
This also cleans up settings a bit
2014-09-21 14:39:35 -04:00
ShadowNinja
2ae5d3f3ab
Fix Settings locking
2014-09-21 14:39:35 -04:00
ShadowNinja
cd64a92a8c
Use const references for Settings methods
...
Also check for (this == &other) before locking mutexes.
2014-09-21 14:39:35 -04:00
Craig Robbins
b97c9c6577
Make getters of the Settings class const
...
Also removed 2 unused functions.
2014-09-21 14:39:35 -04:00
BlockMen
a020d1b653
Allow taking screenshots of formspecs and move message to chat
2014-09-21 19:15:48 +02:00
ShadowNinja
406ed5efac
Add compression API
2014-09-20 14:02:54 -04:00
donat_b
c9cab6bcab
Make config compatible with C++11
2014-09-20 11:20:13 +02:00
ShadowNinja
8852333eb3
Use configured bind_address for HTTPFetch
2014-09-18 21:54:23 -04:00
ShadowNinja
86a3c8ce56
Reduce indentation of HTTPFetchOngoing
...
Also clean up some related things.
2014-09-18 21:54:22 -04:00
TriBlade9
18bfa1c785
Added configurable selectionbox width. Min width = 1, Max = 5
2014-09-19 03:28:46 +02:00
RealBadAngel
86a0f5603b
Bugfix: don't highlight air nodes.
2014-09-18 09:56:27 +02:00
RealBadAngel
58e6d25e03
Node highlighting.
2014-09-17 22:06:13 +02:00
Kahrl
206f076422
Fix typo in comment in chat.cpp
2014-09-14 15:37:27 +02:00
ShadowNinja
2f170a63c6
Simplify and optimize schematic replacements
2014-09-11 22:25:06 -04:00
sapier
62ea342ad1
Log unhandled exceptions in connectionthreads to errorstream
2014-09-06 18:22:27 +02:00
sapier
944e79d7a6
Fix access to invalid data on reception of packet with size 0
2014-09-06 17:42:34 +02:00
BlockMen
8948907431
Change screenshot colorformat properly
2014-09-03 19:41:29 +02:00
BlockMen
b2102bfe49
Don't save alpha channel in screenshots ( fixes #1451 )
2014-09-03 11:39:29 +02:00
kwolekr
f3eefeb794
Add LuaVoxelManip methods: get_node_at() and set_node_at()
2014-09-01 17:33:21 -04:00
kwolekr
9e4e7072da
Update Mapgen VoxelManipulator on buffer invalidation
2014-09-01 15:12:22 -04:00
kwolekr
3fa4f782d9
Save previously generated blocks on Mapgen blitback
2014-09-01 14:58:05 -04:00
sapier
e5b4748bb4
Fix only one texture being updated on window resize breaking sidebyside and topbottom 3d modes
2014-08-29 01:35:35 +02:00
sapier
fb2183b61d
Fix interlaced 3d mode second image being flipped on compiling against irrlicht >= 1.8
2014-08-29 00:54:46 +02:00
RealBadAngel
e66bb9b864
Allow use all 6 faces for special tiles.
...
Protocol version bump.
2014-08-25 12:47:06 +02:00
sapier
e09293b483
Add lua exception handling test code
...
Catch some error situations when mod used without thinking about it
2014-08-23 20:53:34 +02:00
Kahrl
3e267a6ece
Fix LuaJIT exception wrapper
2014-08-23 20:41:03 +02:00
Craig Robbins
f33d31693e
Fix seg fault if popping from empty stack (L-system trees)
...
See: https://github.com/minetest/minetest/issues/1525
Background
Wuzzy2: If you attempt to spawn a L-system tree with minetest.spawn_tree, you can make Minetest crash if it is attempted to pop an empty stack.
ShadowNinja: This shouldn't cause a segmentation fault, but it should throw a Lua error
Commit Description
This commit throws a Lua error instead of causing a segmentation fault. The server will still "crash" but will include a Lua backtrace.
L-Systems fix randomness
Unless a random seed is provided (via Lua treedef) seed the PRNG with a different seed for each tree
Resolves: https://github.com/minetest/minetest/issues/1469
Fix l-system crash when treedef random_level not set by Lua
2014-08-23 06:40:27 +02:00
sapier
996ea60642
Add video driver selection to settings menu (based uppon idea from webdesigner97)
2014-08-23 01:55:54 +02:00
sapier
7940a4264a
Fix chat messages capturing mouse interactions for menu/formspecs
2014-08-23 00:23:14 +02:00
SmallJoker
55c646c5c2
Use pause_fps_max also on multiplayer
2014-08-22 22:52:20 +02:00
sfan5
b19dd922ec
Add ^[mask texture modifier
2014-08-22 22:42:04 +02:00
SmallJoker
e4d570eafc
Reduce time of red screen when damaged
...
10 seconds in PvP is very long and annoying.
2014-08-22 22:19:07 +02:00
Selat
c58b9d8da3
ban.cpp refactoring
2014-08-22 22:03:08 +02:00
sapier
dec8c43de3
Fix to to too two times
2014-08-22 21:51:20 +02:00
sapier
d7d8aa1039
Add player name length checks
2014-08-22 21:18:43 +02:00
sapier
8e9d896f2d
Fix "ghost" blocks if block update is "on wire" while player digs nodes
2014-08-22 20:56:16 +02:00
sapier
247a1ebf23
Improve timeout calculation
...
gf
2014-08-22 20:56:16 +02:00
RealBadAngel
d9df592da8
Pass light sources in blue channel of vertex color instead of decoded light for all special drawtypes.
...
Plus some style fixes and optimizations.
2014-08-21 23:28:01 +02:00
sapier
2a5c88bde1
Don't call a player event without having player to do a event for
2014-08-21 17:29:26 +02:00
sapier
c24e0753fc
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
sapier
4caa00cc99
Make scrollbar scale according to DPI and scaling factor
2014-08-16 15:30:56 +02:00
RealBadAngel
bf91d623c8
Let lighting be done only CPU side. Remove finalColorBlend implementation from shaders.
2014-08-16 14:48:52 +02:00
sapier
0a57b5b553
Revert "Fix inventory items blinking on item preloading"
...
The fix didn't work on some systems sadly this wasn't detected prior merge,
as preload is disabled by default now there's not gonna be a fix for it.
2014-08-16 14:18:33 +02:00
sapier
ccf3985b7a
Fix inventory items blinking on item preloading
2014-08-16 13:00:37 +02:00
selat
5f1f1151d3
Remove temporary file at safeWriteToFile()
2014-08-16 12:46:48 +02:00
sapier
fa427d641b
Add sqlite3 backend hack for android
2014-08-16 12:28:07 +02:00
SmallJoker
6c5f79fee9
Fix the *CDP display
2014-08-15 21:46:04 +02:00
RealBadAngel
5e54bf1472
Make faces shading correct for all possible modes.
...
Skip shading for lightsources and top of the nodes.
Fixes liquid sources and flowing surfaces having different brightness.
2014-08-14 06:43:47 +02:00
Kahrl
587167e940
Move #includes from version.h to version.cpp
2014-08-10 01:03:52 +02:00
ShadowNinja
d7bcde6db4
Disable preload_item_visuals by default
...
This can delay connections by several minutes.
2014-08-05 14:54:33 -04:00
Craig Robbins
6929206bc2
Fix issue 1527
...
https://github.com/minetest/minetest/issues/1527
2014-07-29 22:39:39 -04:00
sfan5
17345404ba
Add ZLIBWAPI_DLL and LEVELDB_DLL CMake options Remove legacy MINGWM10_DLL CMake option Update 32-bit buildbot (OpenAL updated, zlib updated) Change build directory for buildbots to '_build' to prevent removal of Android build files Use -win64 suffix for 64-bit Windows builds Fixes #1476
2014-07-29 20:03:18 +02:00
sfan5
5884236046
Rework texture generating code, add texture grouping via ( ... )
2014-07-29 20:02:56 +02:00
sfan5
5357a17bac
Don't include cmake_config_githash.h into files that don't need it
2014-07-25 10:48:03 +02:00
RealBadAngel
8979a3dd99
Dont display interior of glasslike_framed node when its not defined.
...
Fixes https://github.com/minetest/minetest/issues/1514
2014-07-24 20:58:08 +02:00
RealBadAngel
3bf05f020c
Allow full circle rotation with 2degs step for plantlike drawtype.
2014-07-24 20:02:20 +02:00
RealBadAngel
9dc8901e32
Add rotation for plantlike drawtype.
2014-07-22 00:32:03 +02:00
RealBadAngel
70074800a2
Bugfix in makeCuboid - apply rotations to all faces when 1 tile is given.
2014-07-20 16:22:48 +02:00
RealBadAngel
f0db6c4423
Speedup mapblock_mesh
2014-07-17 22:28:14 +02:00
RealBadAngel
625489dff4
Fix texture glitches for plants with visual scale > 1.0 (jungle grass).
2014-07-17 14:10:23 +02:00
RealBadAngel
61088b16c9
Fix texture hack in fences.
2014-07-17 13:37:18 +02:00
sapier
d38f6ebb9b
Fix error handling on inconsistent client ready message
...
Fix android makefile to provide a correct dummy githash if detection fails
2014-07-16 20:01:00 +02:00
Zefram
7d72ac6a69
Make tooltip_show_delay=0 work
2014-07-16 18:06:31 +02:00
Zefram
07f444ed85
Permit non-integer sizes for item_image[]
2014-07-16 17:37:12 +02:00
sapier
9a016a6294
Fix flipped textures for drawtype "glasslike"
2014-07-16 16:37:41 +02:00
sapier
65b8b524c0
Add srollbar formspec element
2014-07-16 15:02:56 +02:00
sfan5
eec456be63
Move MapBlock (de)serializing code out of Database class
2014-07-12 17:38:17 +02:00
proller
2d90aca4ab
Remove indev mapgen
2014-07-12 18:21:54 +04:00
proller
7df83c2c67
Remove math mapgen
2014-07-12 18:15:55 +04:00
RealBadAngel
c9ba92c4ad
Faces shading fixes
2014-07-07 18:06:20 +02:00
kwolekr
a2e1b0fc7f
Don't copy back already generated blocks on map generation
2014-07-07 01:51:04 -04:00
kwolekr
8b3ed78e53
Don't unload blocks if save failed
...
Improve error handling in saveBlock()
2014-07-07 01:20:25 -04:00
sapier
e14c4cdd4c
Fix regression in leveldb backend
2014-07-07 00:06:06 +02:00
sapier
2e19af9919
Fix client crash on deletion of an object the clients localplayer is attached to
2014-07-06 22:11:21 +02:00
sapier
b459f53ac3
Switch android to leveldb as sqlite3 is broken and fails to save any mapblock there
2014-07-06 21:27:54 +02:00
sfan5
d020e0771d
Improve error reporting in leveldb backend
2014-07-06 21:20:40 +02:00
Perttu Ahola
9b44bbd0a6
Fix non-smooth non-shader node shading ( Fixes #1436 , regression by commit a0f78659f31abd)
2014-07-06 22:01:03 +03:00
sfan5
eadde1e741
Fix errors/warnings reported by valgrind
2014-07-06 16:33:02 +02:00
PilzAdam
6bd15247f9
Fix memory leak in EmergeManager
2014-07-06 15:41:59 +02:00
sfan5
37b7f094e3
Fix warnings reported by clang
2014-07-06 13:19:21 +02:00
Perttu Ahola
2fee2baf98
Remove FPS from being next to the version string
2014-07-05 11:55:13 +03:00
sapier
b8343cd11c
Fix memory leaks in GenericCAO, ShaderSource and Player classes
2014-07-02 23:33:18 +02:00
Novatux
3d6d66b181
Fix inversion of full_punch_interval
2014-07-02 16:48:11 +02:00
sapier
bfaba2c12a
Fix regression in light calculation
2014-06-30 22:56:08 +02:00
ShadowNinja
9afeb97fc6
Fix serverlist code style, const-correctness, and types
2014-06-30 13:26:02 -04:00
ShadowNinja
b4c2e79ea4
Fix server list boolean typing and alignment
2014-06-30 13:25:09 -04:00
ShadowNinja
b2dfde8c8c
Add support for multipart/form-data to HTTPFetch for server announcing
2014-06-30 13:23:09 -04:00
sapier
c39992e429
Copy zlib and freetype dll to windows package too
2014-06-29 19:36:51 +02:00
sapier
1cc40c0a7c
Add support for Android 2.3+
...
There have been plenty of ppl involved in creating this version.
I don't wanna mention names as I'm sure I'd forget someone so I
just tell where help has been done:
- The partial android versions done by various ppl
- Testing on different android devices
- reviewing code (especially the in core changes)
- testing controls
- reviewing texts
A big thank you to everyone helping this to be completed!
2014-06-29 18:17:56 +02:00
sapier
ff36071d93
Don't spam server console on player/playersao error but just drop the affected client
2014-06-29 17:55:21 +02:00
RealBadAngel
ea6c3835de
Glasslike_framed drawtype rework.
2014-06-29 17:50:37 +02:00
Martin Doege
c410e9182d
OS X compatibility fixes
2014-06-29 17:27:33 +02:00
sapier
ee7af21e41
Fix msvc2012 build
2014-06-29 16:57:50 +02:00
sapier
ebf7ea5019
Add formspec api versioning
2014-06-29 12:13:55 +02:00
sapier
1367895ae2
Make sure none of the irrlicht member objects of GenericCAO are deleted prior deletion of GenericCAO
2014-06-29 11:57:01 +02:00
SmallJoker
3c5df42a17
Make player files saving again
2014-06-29 00:45:04 +02:00
kwolekr
c91f8b1d25
Add prefixes to enum values and fix style issues
2014-06-28 02:02:38 -04:00
Kahrl
6ee0db6fec
Make GUITable mouse wheel scrolling faster
2014-06-27 23:55:01 +02:00
sapier
f383766dbf
Fix GenericCAO fails to grabing member animated mesh node to prevent it do be deleted to early
2014-06-27 20:42:20 +02:00
RealBadAngel
ed2c8ba9c5
Fix wrong status text rectangle. Fix for #1412
2014-06-27 20:16:37 +02:00
sapier
13517fb726
Add separate download timeout to allow download of bigger files or on low bandwidth lines
2014-06-26 20:57:17 +02:00
sapier
24face5249
Fix statement not set NULL on deletion
...
Make local only variables static
2014-06-25 20:01:29 +02:00
RealBadAngel
09ba047c01
Add setting for tooltips show delay.
2014-06-25 16:23:05 +02:00
RealBadAngel
27538ecef5
Tooltips rework.
...
Separate element for tooltips. Delayed showing,
use global color or given ones.
2014-06-24 22:11:47 +02:00
Kahrl
d1ee708db2
Handle missing tablecolumns[], fixes bug #1187
2014-06-24 02:00:29 +02:00
Kahrl
a578f34db5
GUITable typo fixes in comments
2014-06-24 01:06:24 +02:00
ShadowNinja
089fc010ab
Store the maximum player file tries in a constant
2014-06-23 15:55:47 -04:00
ShadowNinja
e491f8cd48
Only try to load from possible player files
2014-06-23 15:45:59 -04:00
ShadowNinja
7e6db1b803
Only keep players loaded while they're connected
2014-06-23 15:45:59 -04:00
ShadowNinja
50127510e7
Remove confusing code block from SQLite3 database
2014-06-23 15:36:45 -04:00
ShadowNinja
d9de29fa50
Clear inventory before setting lists
2014-06-23 15:28:48 -04:00
sfan5
5fb8778e28
Fix Windows build
2014-06-23 14:50:00 +02:00
sapier
f6fc39e69a
Fix race condition on accessing m_time_of_day_speed causing day night race on some architectures
2014-06-23 00:26:57 +02:00
sapier
b3a2ef1a91
Remove MapVoxelManipulator not really used by anyone
2014-06-23 00:13:41 +02:00
sapier
8ad83767cf
Remove emerge and speedup addArea by using memcopy instead of one by one assignment
2014-06-23 00:13:41 +02:00
sapier
d5de0cbf71
Minor fix in check order
2014-06-23 00:13:41 +02:00
sapier
fcfd53aed1
Don't keep temporary images in RAM
2014-06-23 00:13:41 +02:00
sapier
334ec4bb1b
Avoid doing a full material compare if not even first texture does match
2014-06-23 00:13:41 +02:00
sapier
35ec3855f6
Speedup attachement handling by replacing vector search by direct array access and secondary child lookup vector
2014-06-23 00:13:41 +02:00
sapier
56bf867874
Use memset for flag initialization (compiler optimization is way better)
...
use temp variables instead of recalculating array index
2014-06-23 00:13:41 +02:00
sapier
496cb115b1
Speedup getTileInfo by up to 30%
2014-06-23 00:13:41 +02:00
sapier
5d06bdf8ac
Speedup getBlockNodeIdMapping by up to factor 4 by using a fixed size mapping array
2014-06-23 00:13:41 +02:00
sapier
9056c163a7
Fix sqlite3 map shutdown fails due to missing to finalize list statement
...
Add error output on fail to shutdown sqlite3 map db
Implement shutdown of sqlite3 rollback db
2014-06-22 13:38:51 +02:00
sapier
d4245e6cac
Support for scalable font and gui elements
...
Fix positioning of tabheader in order to be usable for scaling GUIs
WARNING: this changes position of current tabheaders, mods have to adjust!
2014-06-22 00:08:55 +02:00
sapier
a0097c6bfa
Fix uncought deserialization error on receiving data
2014-06-22 00:05:41 +02:00
sapier
f8522d50e7
Fix server assert in case of invalid message from client, just kick that client.
2014-06-21 23:56:46 +02:00
sapier
2b9beead38
Don't handle lack of IPv6 as fatal in unit tests
2014-06-20 22:35:50 +02:00
RealBadAngel
c86b78c9b7
Fix labels and vertlabels on some systems.
2014-06-20 21:30:48 +02:00
sapier
e81454fb38
Fix small memory leaks on shutdown
2014-06-20 19:50:47 +02:00
Matthew Bekkema
ef8cdd890c
Fix build on big endian architectures.
2014-06-20 18:40:06 +02:00
sapier
2dd69a85e7
Fix chat overlaying full screen, now it's gonna overlay only up to length of longest line
2014-06-20 15:18:45 +02:00
sapier
3a9cf21664
Fix newline not handled to to interpreting it as invisible char
2014-06-19 23:02:09 +02:00
sapier
8af44f8163
Remove ugly curl struct pointer from jsonFetchValue signature
2014-06-19 21:24:53 +02:00
sapier
9a39848ba9
Remove a lot of superfluous ifndef USE_CURL checks
2014-06-19 19:05:37 +02:00
sapier
99f565e8f2
Add support for directly starting a world by name from command line
2014-06-19 14:34:43 +02:00
RealBadAngel
04fbf47744
Add tooltips for button, imagebutton and checkbox.
2014-06-19 00:22:03 +02:00
sapier
65a4630f31
Fix bounding rect for formspec elements label vertlabel and checkboxes
2014-06-18 22:38:29 +02:00
sapier
2a09b7e84f
Make dropdown formspec elements send their value same style as buttons on change
2014-06-18 18:47:41 +02:00
RealBadAngel
c380563a12
Fix issue #1275 - one more missing check.
2014-06-18 14:53:43 +02:00
sapier
c0e4551249
Remove not really used guiTextInputMenu
2014-06-17 21:27:40 +02:00
RealBadAngel
cb3b42efe4
Fix issue #1275 - wielded index greater than inv size.
2014-06-17 14:17:53 +02:00
RealBadAngel
a0f78659f3
Improved faces shading with and without shaders.
2014-06-17 00:56:17 +02:00
RealBadAngel
9f46cb6745
L-systems treegen code tweaks.
2014-06-17 00:55:04 +02:00
sapier
9d57413af0
Minor stability improvements in block emerge handling
2014-06-15 18:18:57 +02:00
RealBadAngel
6c98fd6658
Unite nodes shaders.
...
Pass drawtype and material type to shaders.
Move shaders generation to startup only.
Allow assign shaders per tile.
Initial code to support water surface shader.
2014-06-15 05:40:33 +02:00
sapier
7b3602bab3
Fix regression dirt texture not beeing default in non cloud menu
2014-06-14 20:51:57 +02:00
sapier
c78aa7cf24
Fix HUD not visible if below ground blacked out
2014-06-12 23:38:34 +02:00
Megaf
d7986da58c
Changed Time Out message from ERROR to INFO.
...
Changed Time Out message from ERROR to INFO.
2014-06-12 23:18:26 +02:00
sapier
003634e049
Add support for exiting formspecs by doubleclicking outside
2014-06-12 23:15:05 +02:00
sapier
763a511ca5
Improve performance by removing some temporary objects
...
Fix some coding style issues
2014-06-12 20:10:29 +02:00
Novatux
e17d29ccd6
Fix #1358 (disappearing clouds)
2014-06-09 08:18:33 +02:00
Perttu Ahola
1cea2f1b49
Fix switch from "skybox" to other sky types as triggered by player:set_sky()
2014-06-08 12:33:16 +03:00
BlockMen
a7d49da217
Codestyle cleanup (main.cpp)
2014-06-01 15:49:34 +02:00
sapier
32ab6c2a32
Revert "Add daemon support for linux like operating systems"
...
Remove daemon support due to delayed popular vote (part 2)
2014-06-01 14:54:21 +02:00
sapier
75ddf4d221
Revert "Redirect stdin/stderr/stdout to /dev/null in daemon mode"
...
Remove daemon support due to delayed popular vote (part 1)
2014-06-01 14:51:46 +02:00
sapier
c5f00c38da
Redirect stdin/stderr/stdout to /dev/null in daemon mode
2014-06-01 00:41:48 +02:00
sapier
34904a0744
Add daemon support for linux like operating systems
2014-05-31 23:48:06 +02:00
sapier
d76b8c6e7c
Small cleanup of hud add/remove code
2014-05-31 22:32:44 +02:00
ShadowNinja
5bd2aea663
Fix over-poping and only push the core once
2014-05-30 19:38:11 -04:00
sapier
ab75b1b923
Fix misplaced selection box in some situations
2014-05-26 22:47:40 +02:00
ShadowNinja
31f9912e9e
Fix setThreadName support for BSD
2014-05-26 15:20:06 -04:00
sapier
7fba341dbb
Works for debian and a few other distributions but fails for even more so back to old order
...
Revert "Fix library link order"
This reverts commit b743dcb942eb1a88bce2968c08b114058738758b.
2014-05-25 01:14:47 +02:00
sapier
660e636887
Hide pause menu prior drawing "shutting down..." message
2014-05-24 13:45:05 +02:00
sapier
c1e297a90a
Reduce log level for non npot2 texture warning message
2014-05-24 13:42:52 +02:00
sapier
b743dcb942
Fix library link order
2014-05-24 13:39:27 +02:00
sapier
3939ab6c9d
Remove settings not used any longer
2014-05-24 12:17:15 +02:00
sapier
6b37529bd6
Fix disable hud disabling drawing of full gui
2014-05-24 12:15:11 +02:00
Jakub Vaněk
6922807fd5
fixed typo std::encl in src/gettext.cpp
2014-05-24 11:20:21 +02:00
sfan5
94dba66c16
Fix memory leak in redis backend, fixes #1325
2014-05-23 13:30:58 +02:00
sapier
73e5bc9c01
Add joining player to printed player list
2014-05-20 18:09:32 +02:00
sapier
09970b7b6d
Add support for interlaced polarized 3d screens
...
Add (experimental) support for topbottom as well as sidebyside 3d mode
2014-05-18 01:08:13 +02:00
sapier
d9f6f9e7a8
Split declaration of GenericCAO from implementation
2014-05-17 23:19:31 +02:00
ShadowNinja
34d872628d
Make print() NUL-safe
2014-05-15 19:09:47 -04:00
RealBadAngel
c8a99404e8
Map irrlicht log level to minetest. Allow write them to debug file.
2014-05-14 19:30:39 +02:00
sapier
6c37e89f08
Fix old client showing duplicated health bar on new server
...
Fix client not showing hearts and bubbles on connecting to old server
Fix server not remembering hud flags correctly
2014-05-11 22:34:44 +02:00
sapier
167df02e3d
Send max number of characters instead of asserting in case of too long chat messages
2014-05-11 15:39:38 +02:00
sapier
5c6cf630de
Fix invalid cast fix resulting in chat messages beeing limited to 256 bytes
2014-05-11 15:32:15 +02:00
sapier
b16cbba21a
Fix incorrect scaling of customized hud item selection marker
2014-05-11 13:26:23 +02:00
sapier
90f0859128
Fix error messages beeing shown on pressing cursor keys in various menus
2014-05-11 02:57:47 +02:00
sapier
f76b9d724b
Fix possible deadlock in error conditions
2014-05-11 00:14:57 +02:00
ShadowNinja
c4359ff65c
Use "core" namespace internally
2014-05-08 13:02:04 -04:00
ShadowNinja
1cd512913e
Organize builtin into subdirectories
2014-05-07 17:14:23 -04:00
ShadowNinja
fef2729fd0
Add write_json() to the async API
2014-05-07 17:05:44 -04:00
ShadowNinja
e17f140be0
Add a limit to node meta data resolving recursion
2014-05-07 17:05:44 -04:00
sapier
d3ee617f37
Fix heart + bubble bar size on different texture packs
...
Add DPI support for statbar
Move heart+bubble bar to Lua HUD
Add statbar size (based upon an idea by blue42u)
Add support for customizing breath and statbar
2014-05-07 21:46:27 +02:00
RealBadAngel
c80d67f48e
Move message about missing normal maps to infostream instead of errorstream.
2014-05-05 19:25:18 +02:00
RealBadAngel
6f511b1d05
Bugfix: make waypoints respect camera offset
2014-05-05 09:03:37 +02:00
sapier
09e8bbea03
Fix numeric underflow on calculating window size adjustment
2014-05-04 02:43:01 +02:00
BlockMen
cfb26629bf
Fix player:set_animation() in third person view
2014-05-03 10:50:49 +02:00
sapier
9370f5657a
Add hack to avoid 2s startup delay on local games
2014-05-02 00:18:25 +02:00
sapier
b5acec0a3c
Add proper lua api deprecated handling
2014-04-29 22:49:04 +02:00
sapier
c03d7dc8a7
Add download rate to media progress bar (non http mode only!)
...
Minor coding style fixes
2014-04-29 20:45:16 +02:00
ShadowNinja
088b18da3d
Make debug text adjust it's border to the screensize and fix a border update bug
2014-04-27 18:45:04 -04:00
sapier
65016c880c
Fix rounding issue of hud dpi on some machines
2014-04-27 22:44:37 +02:00
ShadowNinja
f2b93b7bae
Fix code style of async API
2014-04-27 16:15:53 -04:00
ShadowNinja
6ab3b4c838
Remove dependency on marshal and many other async changes
...
This makes a number of changes:
* Remove the dependency on marshal by using string.dump and loadstring.
* Use lua_tolstring rather than having Lua functions pass string lengths to C++.
* Move lua_api/l_async_events.* to cpp_api/s_async.*, where it belongs.
* Make AsyncWorkerThread a child of ScriptApiBase, this removes some duplicate functionality.
* Don't wait for async threads to shut down. (Is this safe? Might result in corruption if the thread is writing to a file.)
* Pop more unused items from the stack
* Code style fixes
* Other misc changes
2014-04-27 16:15:53 -04:00
ShadowNinja
db4ea4658c
Only push the Lua error handler once
2014-04-27 16:15:53 -04:00
sapier
1838a3fd69
Add support for dpi based HUD scaling
...
Add support for (configurable) multiline hotbar
Improved screensize handling
Add userdefined gui scale by BlockMen
2014-04-27 21:53:13 +02:00
Perttu Ahola
8d31534710
Client: Don't crash if trying to draw too many items from inventory in HUD
2014-04-27 09:49:19 +03:00
BlockMen
c5324015bc
Fix directional fog color in front view
2014-04-25 10:35:45 +02:00
sapier
885e93df44
Fix lost pause support in singleplayer
2014-04-24 19:47:17 +02:00
FessWolf
9b142157b0
Fix argument type of the RaiseException() function
2014-04-23 15:39:33 -04:00
ShadowNinja
41bc24477b
Revert binary database block position encoding
...
This reverts commits a2003b0d553c7223a61c75e5dad79ea68e058ba2 and 54ffe2e5de9ce44129f84f4748743f893b75fda7.
These weren't correct. Add a black magic warning instead.
2014-04-23 15:39:33 -04:00
MetaDucky
9ec281c712
Fixed wrong node texture rotation for facedirs 5 and 7
2014-04-23 12:11:56 +02:00
sapier
127f354e7a
Fix formspec replacement handling for in game formspecs
2014-04-22 20:59:01 +02:00
RealBadAngel
e7ef4f07cb
make formspec textarea wordwrap
...
Thats updated #795
2014-04-22 19:57:32 +02:00
sapier
555dc86343
Add missing ip address to player join log entry
2014-04-21 22:28:52 +02:00
RealBadAngel
f20267862f
Textureable sun and moon.
2014-04-21 22:00:16 +02:00
sapier
da3c5c743f
Fix red background missing in deathscreen
2014-04-21 20:10:23 +02:00
sapier
5b1bd2fb47
Fix chat console not working anymore
2014-04-20 10:55:08 +02:00
sapier
fec1fa51e0
Fix macro ARRAYSIZE name collision on windows
2014-04-20 02:47:02 +02:00
sapier
a0dd2d89f3
Reduce log level for incoming crap packets
...
Add log entry for peer timeout
2014-04-19 22:12:01 +02:00
sapier
8745935a06
Fix win32 build (typo in jthread lock cleanup)
2014-04-19 14:09:01 +02:00
sapier
0d93119040
Replace deathscreen by formspec variant
2014-04-19 12:21:27 +02:00
sapier
eda9214f81
Bunch of small fixes (coding style, very unlikely errors, warning messages)
2014-04-19 11:56:19 +02:00
sapier
a230e1e736
Use narrow_to_wide in gettext instead of os dependent conversion fct
2014-04-19 11:33:57 +02:00
sapier
ea0df3e4cb
jthread remove locks that aren't absolutely required
...
add c++11 atomic support (optional)
2014-04-19 10:05:23 +02:00
ShadowNinja
c00ed9dac3
Add support for threadnames on BSD, Windows (MSVC-only), and OSX
2014-04-19 02:02:11 -04:00
proller
4977b736e3
Fix warnings
2014-04-19 02:24:45 +04:00
proller
0279f32db7
Remove liquid_finite and weather
2014-04-18 21:56:48 +04:00
Sfan5
674be38fc2
Add redis database backend
2014-04-16 22:05:06 +02:00
ShadowNinja
a2003b0d55
Use bit shifts rather than multiplication in block position encoding
2014-04-15 16:25:46 -04:00
ShadowNinja
54ffe2e5de
Use binary operators rather than "Python modulo" in decoding block positions
2014-04-15 16:09:15 -04:00
Sfan5
118e2ae865
Fix all warnings reported by clang
2014-04-15 21:34:53 +02:00
Sfan5
d436502fa4
Fix problem with newer MinGW runtimes
2014-04-14 20:09:42 +02:00
ShadowNinja
b04872d96b
Reorder initialization of member variables to make GCC happy
2014-04-13 17:47:58 -04:00
BlockMen
8b02a015eb
Use integers instead of float values
2014-04-12 20:04:12 +02:00
BlockMen
c0ab09af74
Add player:set_eye_offset() by @MirceaKitsune and clean up
2014-04-12 17:44:20 +02:00
BlockMen
a1db9242ec
Add third person view
2014-04-12 17:44:15 +02:00
BlockMen
e149d1ad9a
Fix write and read S32 vectors
2014-04-12 17:39:51 +02:00
BlockMen
7cdbb805d9
Fix MSVC build
2014-04-12 17:36:40 +02:00
sapier
960d731587
Fix broken Ipv4 serialization on win32
2014-04-11 22:51:10 +02:00
sapier
8bb8602c25
Fix broken win32+bsd build
2014-04-11 21:45:30 +02:00
Kahrl
6090e95cdc
Infer ipv6_server from bind_address; fix client connect to IN(6)ADDR_ANY
2014-04-10 22:03:42 +02:00
sapier
edcad09dee
Add support for named threads (atm linux only)
2014-04-09 21:32:21 +02:00
sapier
d22621efc1
Make config honor build system specified config defines
2014-04-09 20:47:21 +02:00
sapier
a88c685f02
Minor fixes for file/modlist download in mainmenu
2014-04-09 20:22:21 +02:00
sapier
142e2d3b74
Cleanup client init states by bumping protocol version
...
Don't use TOSERVER_RECEIVED_MEDIA but TOSERVER_CLIENT_READY as indicatio for client ready
Handle clients with protocol version < 23 (almost) same way as before
Make client tell server about it's version
Add client state to not send bogus player position updates prior init complete
Add access to statistics information (peer connction time,rtt,version)
Fix clients standing stalled in world while preloading item visuals (new clients only)
Add get_player_information to read client specific information from lua
2014-04-08 21:12:20 +02:00
sapier
556bdc260a
Pass pointer to nodedef directly to avoid recalculation in quite often called function
2014-04-06 10:32:57 +02:00
sapier
28854495b1
Performance optimized button to button mask evaluation
2014-04-03 20:26:26 +02:00
sapier
af01a9577e
Fix lost change password button
2014-04-01 22:38:34 +02:00
Perttu Ahola
65d1cb8321
Fix bug in RemoteClient::GetNextBlocks
2014-03-26 18:58:39 +02:00
Ciaran Gultnieks
564e11fc2f
Fix merge mistake when rebasing for PR #1169
2014-03-24 19:56:36 +01:00
sapier
5bd9c236d5
Fix double sending of chat messages
2014-03-23 19:15:38 +01:00
ShadowNinja
5fefc4bbf6
Fix serializing of signed numbers in serializeStructToString
2014-03-21 05:22:21 -04:00
RealBadAngel
0dc1aec509
Normal maps generation on the fly.
...
Parallax mapping with slope information.
Overriding normal maps.
2014-03-21 01:32:00 +01:00
ShadowNinja
f3d83a4516
Add more informative error messages for inventory and item method errors
2014-03-15 17:20:52 -04:00
ShadowNinja
31fe72dbac
Remove lua_State parameter from LuaError::LuaError
2014-03-15 16:28:59 -04:00
ShadowNinja
f8b7555558
Revert "Make sure we get a stacktrace for as many lua errors as possible"
...
This reverts commit 362ef5f6ced862daa4733034810d0b07e2ad5d89.
Stack tracebacks couldn't be generated in LuaError::LuaError anyway and this
caused a second, empty traceback in most cases. In cases where there wasn't
annother traceback the stack had already unwound and the traceback was empty.
2014-03-15 16:01:06 -04:00
ShadowNinja
23be6450a1
Make serializeStructToString use an ostringstream
2014-03-15 15:13:02 -04:00
Novatux
93729b09d5
Fix sound not being played at the correct place.
2014-03-15 16:25:34 +01:00
Sfan5
362ef5f6ce
Make sure we get a stacktrace for as many lua errors as possible
2014-03-15 14:51:00 +01:00
ShadowNinja
d753d352f1
Revert "Use fixed-width format specifiers in serializeStructToString"
...
This reverts commit 875f1327a47f78d783c3abc7f7acc3977dc286ec.
Fixed width format specifiers are only officially availale in C99 and C++11.
2014-03-14 12:13:30 -04:00
ShadowNinja
875f1327a4
Use fixed-width format specifiers in serializeStructToString
2014-03-13 17:30:15 -04:00
BlockMen
e4d1970abf
Fix game pause in singleplayer
2014-03-13 14:06:18 +01:00
BlockMen
03297acbf4
Fix special characters in pause and message menu
2014-03-13 14:00:10 +01:00
ShadowNinja
18577f2527
Replace usage of long long with u64/s64
2014-03-12 19:37:19 -04:00
Selat
7cac34c807
Pass arguments by reference
2014-03-12 17:34:48 -04:00
Selat
2bc2ce3bd1
Remove goto from Environment::removePlayer
2014-03-12 17:02:52 -04:00
Sfan5
859287b027
Fix generating winresource.o with build dir != source dir
2014-03-11 17:48:34 +01:00
Ciaran Gultnieks
5ce3f8f7b7
Correct misleading detached inventory error message
...
Looks like a bit of hasty copying and pasting from s_item.cpp.
2014-03-09 11:16:09 +01:00
Ciaran Gultnieks
0643cef09a
Update ABM object counts when triggers add objects
...
Also fixes long-standing accuracy issue due to unknown wider
object count not being incremented.
2014-03-09 11:13:44 +01:00
sapier
16a028dd6b
Fix race condition on exit to menu
2014-03-09 11:01:13 +01:00
kwolekr
28d6326bd4
Update set_mapgen_params and set_gen_notify Lua API to use new flag format
2014-03-08 11:35:04 -05:00
Ciaran Gultnieks
db98ef6b45
Stop wasting time in abm - performance improvement
...
Unless I'm mistaken, the chunk of code I'm moving there is potentially
executed hundreds of times inside the loop to get the exact same result
every time
2014-03-06 19:18:36 +01:00
sapier
a4e2198e41
Replace pause and message menu by formspec ones
2014-03-05 18:44:14 +01:00
Novatux
062de11b4c
Fix rendering glitches when far from the center of the map
2014-03-04 20:12:10 +01:00
sapier
3e52dd5c68
Improved win32 file version information
2014-03-02 23:49:19 +01:00
Ciaran Gultnieks
baee91bf78
Fix for unloaded but active block problem
2014-03-02 20:39:28 +01:00
ShadowNinja
9a3b7715e2
Remove "Server -!- " prefix from player messages
2014-02-27 00:00:22 -05:00
BlockMen
18fd913e69
Fix MSVC build
2014-02-26 14:21:38 +01:00
Sfan5
f6232d71b6
Fix test for broken LuaJIT versions, solves #1152
2014-02-23 18:30:45 +01:00
Sfan5
d9d06ad920
Fix g_settings not being included
2014-02-16 08:25:53 +01:00
Sfan5
4585fba98b
Fix broken cross-compiling
2014-02-16 08:07:57 +01:00
kwolekr
c163859057
Schematic: Add force_placement parameter to minetest.place_structure API
2014-02-15 19:46:57 -05:00
kwolekr
3570f3e396
Add minetest.set_noiseparam_defaults() Lua API
2014-02-15 19:13:14 -05:00
Kahrl
c873164878
Accept any error response code for missing index.mth
2014-02-15 02:19:49 +01:00
sapier
31ec14afe2
Add check to avoid usage of broken LuaJIT < 2.0.0beta8
2014-02-13 23:28:01 +01:00
sapier
ded5f8b1a6
Fix possible missing unlock of env_lock
2014-02-12 19:47:27 +01:00
kwolekr
89f7dc1efd
ServerEnvironment: Remove direct dependency on EmergeManager
2014-02-09 16:36:30 -05:00
kwolekr
a0683b811c
Define strlcpy on platforms that do not have it
2014-02-09 13:57:29 -05:00
kwolekr
2a01050a0c
Add capability to read table flag fields from Lua API
2014-02-09 12:44:31 -05:00
kwolekr
57710520dc
Tune block emerge and sending parameters to more aggressive values
2014-02-08 18:32:12 -05:00
kwolekr
83bafbe08b
Make flag strings clear specified flag with 'no' prefix
...
Remove flagmask field from set_mapgen_params table
Add small bits of needed documentation
2014-02-08 17:50:59 -05:00
sapier
f4f98c9550
Remove lots of dead code
...
Add check for datatype overflows
use native datatype indices instead of fixed 16bit/32bit ones
2014-02-07 21:39:45 +01:00
sapier
3670f5a37b
Fix invalid check for fread error on extracting zip
2014-02-07 21:29:31 +01:00
Selat
6715c422ae
Fix memory leak in database migration
2014-02-07 20:43:12 +01:00
BlockMen
bc0bbffa14
Add missing header
2014-02-06 21:55:12 +01:00
ShadowNinja
85fe75d1cb
Add the option to bind to a specific address
2014-02-05 21:24:46 +01:00
kwolekr
7f743178db
Remove blank default values for emergequeue_limit_* settings
...
Add checks for invalid user input for important settings
Rename Settings::tryGet* to Settings::get*NoEx for consistency
2014-02-05 00:17:53 -05:00
kwolekr
c6c5edd73a
Revert "Fix settings to honor numeric conversion errors"
...
This reverts commit 3f376a092e1c16429fb52f24736e9da98aff4cd5.
2014-02-05 00:05:58 -05:00
Ilya Zhuravlev
7859e57f6c
Fix another heap-use-after-free in pause menu.
2014-02-04 22:17:02 -05:00
Ilya Zhuravlev
2d16ebf57c
Fix unexpected preprocessor directive in gettext.cpp
2014-02-04 22:16:51 -05:00
sapier
3f376a092e
Fix settings to honor numeric conversion errors
...
Rename try* non exceptioning functions to *NoEx
2014-02-04 22:14:13 -05:00
kwolekr
5a34f40d80
Huge overhaul of the entire MapgenParams system
...
MapgenParams is no longer a polymorphic class, eliminating the need for messy and bug-prone reallocations.
Separation between the common and mapgen-specific parameters is now strongly defined.
Mapgen parameters objects are now properly encapsulated within the proper subsystems.
2014-02-03 22:50:14 -05:00
kwolekr
a439343844
Settings: Add no-exception variants of each get method
2014-02-03 22:47:40 -05:00
ShadowNinja
458045d49f
Fix crash when a error occurs in a globalstep callback
2014-02-03 18:15:03 -05:00
sapier
857a49e081
Add minetest.kick_player(name, reason)
2014-02-03 17:33:59 -05:00
sapier
ea0def381d
Remove noisy error messages, prepend "pathfinder: " to pathfinder messages
2014-02-03 20:13:31 +01:00
sapier
284fc0b885
Add missing "-" to list of allowed chars in media filenames
2014-02-02 15:34:33 +01:00
sapier
e7c2e61b19
Add additional check to avoid broadcasting private messages in error conditions
2014-02-02 01:55:24 +01:00
Perttu Ahola
6a3fa9df12
Add player:override_day_night_ratio() for arbitrarily controlling sunlight brightness
2014-02-01 18:38:21 +01:00
Perttu Ahola
86a6cca3cf
Add player:set_sky() with simple skybox support
2014-02-01 18:34:26 +01:00
sapier
e258675eab
Add propper client initialization
...
-add client states to avoid server sending data to uninitialized clients
-don't show uninitialized clients to other players
-propper client disconnect handling
Minor comment fixes in server
Minor bugfixes in connection
-improved peer id calculation
-honor NDEBUG flag
-improved disconnect handling
-increased initial send window
Remove some dead code
2014-01-31 18:44:43 +01:00
RealBadAngel
21f1bec724
New HUD element - waypoint.
2014-01-26 21:31:59 +01:00
sapier
3f0ee5d680
Fix bug only half of unreliable queue handled per step in worst case
2014-01-26 17:40:59 +01:00
kwolekr
9b978db0c2
Fix use of previously deallocated EmergeManager
2014-01-26 01:12:18 -05:00
ShadowNinja
76d4396fa1
Pass pointed_thing to on_punch and minetest.register_on_punchnode callbacks
2014-01-23 19:21:56 -05:00
Sfan5
cd7e8372f3
Include system info in the HTTP user agent on Windows
2014-01-23 22:27:13 +01:00
kwolekr
057858ddda
Connection: Stop processing malformed packet when encountered
2014-01-21 09:33:54 -05:00
Sfan5
3875a77bf8
Fix curl dll not getting installed when sound is disabled
2014-01-21 13:35:26 +01:00
kwolekr
bafc4ac6a1
LuaVoxelManip: Add get_param2_data and set_param2_data
2014-01-19 02:55:59 -05:00
kwolekr
21c96249fa
Schematic: Read slice probability table from schematic descriptors
2014-01-19 02:44:45 -05:00
ShadowNinja
b11b48ec07
Deindent HTTPFetchRequest::HTTPFetchRequest()
2014-01-16 20:14:55 -05:00
BlockMen
64c0e40605
Prevent player jumping into nodes from below
...
Fixes camera glitch and cheating at drowning
2014-01-16 15:46:55 +01:00
BlockMen
1b4908bf56
Prevent placing node when player would be inside new node
2014-01-15 21:26:54 +01:00
sapier
4896d4b829
Fix win32 reading semaphore count not working (broke all queues)
2014-01-15 20:03:11 +01:00
ShadowNinja
f42f01758c
Make default User-agent follow RFC 2616
2014-01-15 12:10:53 -05:00
Sfan5
a5287b6777
Fix building with MinGW
2014-01-15 17:35:00 +01:00
BlockMen
84bbe1ec6e
Fix building under MSVC
2014-01-14 16:14:56 +01:00
Kahrl
8966c16ad2
Add formspec table
2014-01-13 18:11:08 -05:00
khonkhortisan
2b1eff7725
Allow vertical axis particle rotation constraint
...
Use tables for adding particles, deprecate former way.
separate particles(pawner) definition, add default values, work with no
arguments
2014-01-13 17:34:56 -05:00
Ilya Zhuravlev
a4c5f10ecf
Fix some errors reported by clang static analyzer.
2014-01-13 03:29:12 +04:00
kwolekr
a358c040f2
Mapgen V6: Add flag to stop mud flow
2014-01-12 18:21:28 -05:00
ShadowNinja
a3586cd18d
Add maximum recursion depth to read_json_value
2014-01-11 14:08:02 -05:00
ShadowNinja
a9df87ede0
Rename get_json_value to read_json_value
2014-01-11 13:52:26 -05:00
ShadowNinja
bd8ddf1a52
Add InvRef::get/set_lists()
2014-01-11 13:52:26 -05:00
Kahrl
6f6f289db4
Compare values instead of pointers in Inventory::operator==
2014-01-11 19:47:16 +01:00
Kahrl
51e6feb17c
Add operator!= to Inventory(List), make operator== a const method
2014-01-11 19:46:37 +01:00
Novatux
84b94eb198
Add forceloading
2014-01-11 17:54:00 +01:00
sapier
3bbd280336
Fix check for max_fd == -1 should actually be max_fd != -1
2014-01-10 19:19:16 +01:00
sapier
9edb91da57
Fixed minetest reliable udp implementation (compatible to old clients)
2014-01-10 10:10:45 +01:00
sapier
8b0b857eaa
Make MutexQueue use jsemaphore for signaling
2014-01-10 10:10:45 +01:00
Perttu Ahola
10fdbf7375
Set locale properly when built without gettext support
2014-01-09 14:46:02 +01:00
sapier
6f661f77a6
Don't lookup node texts in a endless recursion loop
2014-01-07 11:15:24 +01:00
ShadowNinja
0fd5c61c00
Revert "Improve (re)spawn, add cache_block_before_spawn and max_spawn_height settings"
...
The commit didn't work because the blocks weren't loaded yet.
This reverts commit 22dbbf0a6fc9547f0dbdb7f6076337b8c6acd48b.
Conflicts:
minetest.conf.example
2014-01-06 21:25:10 -05:00
proller
78f7f9eca8
Fix wrong named masterserver announce variable
2014-01-07 03:11:18 +04:00
proller
c62bab010f
Send long announce as POST, show OS in useragent
...
Add lag reporting to masterserver (average dtime)
StyledWriter -> FastWriter in masterserver announce
2014-01-07 02:50:45 +04:00
Perttu Ahola
92aa38bdfc
Actually pause singleplayer game in pause menu and use lower maximum FPS in it
2014-01-06 17:39:44 +02:00
sapier
6833e04bc5
Add function to deregister a profiler from profiler list
2014-01-06 15:26:24 +01:00
Perttu Ahola
d76957ee22
Create new instance of mesh every time it's required (Solves #703 )
2014-01-06 13:24:31 +02:00
hasufell
10eea107ed
BUILD: fix cmake list parsing
...
because cmake is unable to parse it's own lists properly
2014-01-05 20:58:40 +04:00
hasufell
cb7bb736c7
BUILD: prefer pkg-config for freetype2 detection
...
This can solve numerous problems such as:
http://www.cmake.org/Bug/view.php?id=13959
http://www.cmake.org/Bug/view.php?id=14601
If pkg-config or freetype2.pc is not found, then fall back to the
FindFreetype.cmake module logic.
Restrict to UNIX since I only tested it here.
2014-01-05 20:58:40 +04:00
Sfan5
160e2b7b7d
Add option to link to OpenGL ES, fixes #1051
2014-01-05 20:50:55 +04:00
Ilya Zhuravlev
b8c3221d55
Fix absence of images when compiled with RUN_IN_PLACE=0.
2014-01-05 12:43:40 +02:00
Novatux
91923806a9
Fix objects being selected behind a node
2014-01-02 14:26:21 +01:00
kwolekr
25b1cca415
Fix exception caused by destroying sockets on Server shutdown
2013-12-31 15:00:49 -05:00
kaeza
767b2e7b17
Fix enum element name in Lua HUD code (position vs. pos)
2013-12-31 06:13:54 +01:00
ShadowNinja
2902a29c2d
Initialize world before creating BanManager and RollbackManager
2013-12-30 14:29:33 -05:00
ShadowNinja
829426c714
Fix InventoryList reading order
...
Lua does not guarantee that the indexes of a table will be in numerical order.
2013-12-30 14:00:05 -05:00
PilzAdam
4b31a38ae9
Remove FPS from window title
...
This doubles performance on some window managers (WTF?!)
2013-12-25 03:52:44 +01:00
Kahrl
bf9f50bc0e
Make SHA1::addBytes(..., 0) a no-op instead of an assertion failure
2013-12-25 00:29:00 +01:00
Kahrl
3aa28bc7a2
Use sleep_ms instead of select in httpfetch when max_fd == -1, fixes WSAEINVAL
2013-12-24 19:28:09 +01:00
Kahrl
a5377251e2
Fix particle code ignoring return value of std::vector::erase(). Wat.
2013-12-23 15:11:53 +01:00
RealBadAngel
7ae0b90ff7
Bugfix to get_all_craft_recipes.
...
Indexes for empty slots shall not be skipped.
2013-12-21 23:03:51 +01:00
Kahrl
a50db0e824
Check for denied access in itemdef/nodedef/media fetch loop
2013-12-19 21:47:08 +01:00
ShadowNinja
e1f9ba435f
Don't throw a error when writing JSON fails
2013-12-18 18:18:43 -05:00
Kahrl
ba8fa0bd42
Log guilty node name when allow_metadata_inventory_move/put/take fails
2013-12-18 23:04:13 +01:00
ShadowNinja
1ed90c90c3
Add 'minetest.write_json'
2013-12-18 16:46:53 -05:00
ShadowNinja
49cec3f782
Handle LuaErrors in Lua -> C++ calls on LuaJIT
2013-12-18 16:35:55 -05:00
BlockMen
38d112033b
Fix formspec field labels
2013-12-17 01:13:16 +01:00
sapier
54dbd78f90
Fix broken httpfetch due to SimpleThread removal
2013-12-16 23:31:56 +01:00
BlockMen
c9ac9992c7
Fix MSVC compiling issue
2013-12-16 01:13:08 +01:00
sapier
3946d2a504
Reduce cloud coloring for colored fog and cloud mode
2013-12-16 00:16:06 +01:00
PilzAdam
5fd92d67d5
Remove an unused function and include from client.cpp
2013-12-15 19:57:08 +01:00
sapier
c120ea57c9
Add setting to disable direction dependent fog and sky colors
2013-12-15 15:30:02 +01:00
MirceaKitsune
848f80b2e5
Directional fog + horizon colors, based on sun & moon positions at sunrise / sunset
2013-12-15 14:28:50 +01:00
sapier
e9e9fd7c3f
Replace SimpleThread by JThread now implementing same features
2013-12-15 13:39:42 +01:00
BlockMen
9772322613
Add alpha setting to font shadow
2013-12-14 21:11:38 +01:00
kwolekr
7a4c1e7327
Update mapgen params in ServerMap after Mapgen init
2013-12-14 10:49:20 -05:00
kwolekr
15c316765d
Handle Lua errors in on_generate callbacks instead of throwing SIGABRT
2013-12-14 01:59:16 -05:00
kwolekr
c3708b456e
Add map feature generation notify Lua API
2013-12-14 01:52:24 -05:00
ShadowNinja
83853ccd41
Remove support for optdepends.txt
2013-12-13 13:10:24 -05:00
Kahrl
e275b7099a
Don't call curl_global_init twice
2013-12-13 18:08:53 +01:00
sapier
0d990bd189
Replace any direct curl usage by httpfetch
2013-12-13 18:05:46 +01:00
Kahrl
b03135548b
Use httpfetch_async in serverlist announce code
2013-12-13 18:05:39 +01:00
Kahrl
0a903e69fb
Implement urlencode and urldecode
2013-12-13 18:05:35 +01:00
Kahrl
0404bbf671
Rewrite client media download and support hash-based remote download
...
Move most of the media-related code in client.cpp into a new class
ClientMediaDownloader (clientmedia.cpp, clientmedia.h). Among other
things, this class does the following things:
- Download [remote_server][sha1] instead of [remote_server][name]. This
is to support servers that provide the same file name with different
contents.
- Initially fetch [remote_server]index.mth. This file should follow the
Minetest Hashset format (currently version 1) and contain a list of SHA1
hashes that exist on the server.
- The list of needed SHA1s is uploaded (via HTTP POST) when index.mth is
requested, so servers can optionally narrow down the list to the needs
of the client.
- If index.mth is missing (HTTP response code 404), we enter compat mode,
fetching [remote_server][name] as before this commit.
- remote_server can now contain multiple servers, separated by commas.
The downloader code attempts to split requests between the different
servers, as permitted by each server's index.mth. If one server claims
to have a file but actually doesn't (or something fails), we ask a
different server that also claims to have it.
- As before, when none of the remote servers provide a particular
file, we download it via the conventional method, i.e. using
the minetest protocol: TOSERVER_REQUEST_MEDIA / TOCLIENT_MEDIA.
- Bugfix: Every downloaded file's SHA1 is now verified against the SHA1
announced by the minetest server (before loading it and inserting it
into the file cache).
- Bugfix: Only send TOSERVER_RECEIVED_MEDIA when we actually have all
media. This should fix #863 .
2013-12-13 18:05:20 +01:00
Kahrl
0ea3e6dbe2
Implement httpfetch module and initialize it from main()
...
Add curl_parallel_limit setting that will replace media_fetch_threads in
a later commit.
Fix a typo in MutexedQueue::pop_back() that made it impossible to compile
code that used this function. (Noticed this while implementing httpfetch.)
2013-12-13 18:05:10 +01:00
Ilya Zhuravlev
67bf7130ce
Fix a bug in GenericCAO GENERIC_CMD_UPDATE_POSITION parsing.
2013-12-13 13:18:00 +04:00
stujones11
d9ef072305
Make line_of_sight return blocking node position
2013-12-12 16:11:00 -05:00
kaeza
33de69a173
Add 'on_prejoinplayer' callback
2013-12-12 13:42:14 -05:00
Ilya Zhuravlev
76036abdb0
Add configurable font shadow.
2013-12-12 21:47:54 +04:00
sapier
4ccaa6d0af
Implement search tab and version picker
2013-12-11 23:07:38 +01:00
PilzAdam
6c4a8766ab
Check if width, height or start index of a list[] is negative
2013-12-09 22:39:24 +01:00
RealBadAngel
dae03382bf
Optimize shaders code. Add settings at compile time.
2013-12-09 13:28:50 +01:00
kwolekr
50b0e9f7a4
Mapgen Indev: Fix segfault in cave generation due to uninitialized variable
2013-12-08 22:13:05 -05:00
Novatux
206565d965
Fix shaders on some GPUs
2013-12-08 08:01:20 +01:00
kwolekr
3cc45fd8ad
Fix leak and possible segfault in minetest.set_mapgen_params
2013-12-08 01:37:41 -05:00
kwolekr
83cc882335
EmergeManager: Fix Lua mapgen override param handling
2013-12-08 01:31:06 -05:00
kwolekr
bbae8eb751
Dungeongen: Create dungeon gen tuneables; add desert temples for Mapgen V6
2013-12-07 22:45:26 -05:00
ShadowNinja
a0dce51af6
Move script_run_callbacks to Lua
2013-12-07 22:03:07 -05:00
ShadowNinja
96f753a108
Fix paralax occlusion setting
2013-12-06 22:42:09 -05:00
sapier
35f88ac67c
Fix win32 jthread implementation
2013-12-06 17:49:10 +01:00
sweetbomber
22dbbf0a6f
Improve (re)spawn, add cache_block_before_spawn and max_spawn_height settings
2013-12-05 16:09:02 -05:00
PilzAdam
e51ad5337f
Use a table in set_physics_override()
2013-12-03 23:20:00 +01:00
PilzAdam
15be2659ea
Add sneak and sneak_glitch to set_physics_override()
2013-12-03 23:20:00 +01:00
Sfan5
d9de9f23d9
Fix LevelDB maps
2013-12-03 20:03:20 +01:00
RealBadAngel
2330267d22
Shaders rework.
2013-12-03 18:55:25 +01:00
PilzAdam
60113bde74
Dont move item back when not clicking on a slot
2013-12-03 18:05:36 +01:00
proller
1309e52198
Rename names -> can_see_far_names in announce
2013-12-03 20:14:06 +04:00
sapier
5004f31575
Fix broken async locking in release build
2013-12-03 17:50:00 +02:00
proller
6cbd1b8bf7
Remove link to #, add unlimited_player_transfer_distance to announce
2013-12-03 19:48:43 +04:00
Sfan5
6fa3892a71
Fix MinGW build
2013-12-01 20:58:46 +01:00
sapier
04e9a9d541
Cleanup jthread and fix win32 build
2013-12-01 16:25:46 +01:00
kwolekr
f3439c40d8
Cavegen: Fix possible out-of-bounds heightmap access
2013-12-01 08:57:35 -05:00
kwolekr
20e3d550fa
Decoration: Add schematic Y-slice probability support
2013-12-01 01:24:59 -05:00
sapier
de0cdbc01c
Fix log threadname lookup handling not beeing threadsafe
2013-11-30 21:22:15 +01:00
ShadowNinja
4696c59a5f
Add error handler to async step
2013-11-30 13:05:13 -05:00
ShadowNinja
4594ba6522
Optimize table creation
2013-11-30 13:05:13 -05:00
Novatux
d879a539cd
Add minetest.swap_node
2013-11-30 18:37:56 +01:00
Ilya Zhuravlev
752e11e114
Fix MSVC build.
2013-11-30 21:00:18 +04:00
kwolekr
ff7d7080e3
LuaVoxelManip: Add area parameters back to calc_lighting and set_lighting, made optional this time; also fixed a slight bug with night values being ignored
2013-11-30 00:27:39 -05:00
kwolekr
769b2d7c05
LuaVoxelManip: Add get_light_data() and set_light_data()
2013-11-30 00:01:43 -05:00
MetaDucky
5be786c804
Fixed potential NULL pointer and leak when setting node metadata
2013-11-29 23:35:16 -05:00
kwolekr
747bc40840
Cavegen: Respect is_ground_content MapNode setting; fix some code formatting issues
2013-11-29 20:54:04 -05:00
sapier
d19a69cd0d
Fix broken thread stop handling
2013-11-30 02:15:31 +01:00
sapier
d02ce1cf4d
Fix old gcc build
2013-11-29 23:36:18 +01:00
sapier
2e66aca357
Fix modstore/favourites hang by adding asynchronous lua job support
2013-11-29 22:09:14 +01:00
sapier
b08d7558de
Split server/client port setting to avoid port number clashes in mainmenu
2013-11-28 21:43:06 +01:00
ShadowNinja
ff25218374
Don't use variable length arrays
2013-11-28 11:22:41 -05:00
ShadowNinja
7433d65d3e
Rollback fixes and get_node_actions
2013-11-27 18:13:06 -05:00
Mario Barrera
1fd9a11e30
SQLite rollback
2013-11-27 18:13:06 -05:00
sapier
4f246f0e22
Fix line_of_sight (AGAIN)
2013-11-25 00:04:05 +01:00
kwolekr
068dd796f5
Don't continue trying to deserialize blank block data
2013-11-24 02:10:15 -05:00
Kahrl
ab601e8710
Fix invalid escape sequence in database migration code
2013-11-23 16:09:38 +01:00
Kahrl
6f851c9692
Fix crash when pressing Enter key in formspec menu
2013-11-23 00:37:32 +01:00
kwolekr
5323d800cc
Fix possible implicit conversion of NULL to std::string
2013-11-21 00:49:32 -05:00
kwolekr
98e4e2b373
LuaVoxelManip: Update parameter index of set_lighting()
2013-11-21 00:45:17 -05:00
kwolekr
b38afc9311
Mapgen V6: Respect water_level setting
2013-11-21 00:43:27 -05:00
MetaDucky
0930911efa
fix gettext compile issues under win32
2013-11-18 21:11:52 -05:00
kwolekr
86ef7147b6
Fix issue #1009 (minetest.get_connected_players() returns non-existing players)
2013-11-17 15:15:59 -05:00
PilzAdam
a55c073ce9
Increase liquid_loop_max to 10000 again
2013-11-17 21:05:14 +01:00
Perttu Ahola
21789ccc5f
Revert patch 58f036ad1 that causes object duplication (which tried to fix objects getting hidden from client) and fix the original problem correctly. This fixes the second distinct object duplication bug.
2013-11-17 14:46:01 -05:00
sapier
b2d9205796
Fix Result of processed Request was written to invalid (non existent) ResultQueue if requesting thread timed out before
2013-11-17 12:46:54 -05:00
sapier
eadc943159
Add missing RequestQueue doc
2013-11-17 12:46:43 -05:00
sapier
dc407e219f
Fix multicaller support in RequestQueue
2013-11-17 12:45:58 -05:00
kwolekr
d419e4cbb6
Do the same for LevelDB interface
2013-11-17 11:26:34 -05:00
kwolekr
aa172bdda4
Handle blank blocks in database
...
Fix screwed-up indentation
2013-11-17 10:57:45 -05:00
kwolekr
a439aea9ba
Revert "Don't use msvc libs for mingw build"
...
This reverts commit 3985c01ad71159b888677d0fe2019d7a05debeed.
2013-11-17 10:33:58 -05:00
kwolekr
a92fc3563c
Prevent shaders from being created when disabled
2013-11-17 02:46:05 -05:00
sapier
3985c01ad7
Don't use msvc libs for mingw build
2013-11-17 02:27:00 -05:00
kwolekr
cca4f09ba1
Decoration: Stop DecoSimple::resolveNodeNames from complaining about no node name if decolist is used
...
Fix warning message for spawnby nodes
Prevent type-punning warning caused by casting enum to int
2013-11-17 02:22:24 -05:00
kwolekr
e396fb2984
Actually fix weather
...
The real problem was that MapBlocks were not activated before getting sent to the client
2013-11-17 01:59:04 -05:00
sapier
90e7832408
Fix invalid listname and listsize not handled correctly in set_size
2013-11-16 15:52:41 +01:00
MetaDucky
35606cfb67
fixed array limit check when reading Lua specialtiles table
2013-11-16 15:31:17 +01:00
ShadowNinja
371b39a09a
Pass a errfunc to lua_pcall to get a traceback
2013-11-15 14:13:31 -05:00
BlockMen
3f519eb729
Fix formspec background padding when clipped
2013-11-14 19:03:55 +01:00
proller
9a750450ed
Improved default settings for floatland perlin noise 1. Larger, more detailed floatlands.
2013-11-14 15:38:32 +04:00
Sfan5
5094a39f05
Fix compiling with 32bit MinGW
2013-11-12 15:18:20 +01:00
sapier
a935d81053
Fix invalid usage of temporary object in mainmenu json conversion
2013-11-11 23:23:58 +01:00
sapier
bb54e2cf1d
Disable localization workaround in server
2013-11-11 19:56:49 +01:00
sapier
22a59b3912
Fix win32/msvc i18n (quite UGLY version, blame Microsoft)
2013-11-11 19:56:49 +01:00
sapier
0f9440fa61
Fix "TODO read modinfo" in modmanager to improve ui usability
2013-11-10 19:37:45 +01:00
proller
d75b1718f8
Fix spaces float islands code
2013-11-10 18:46:57 +04:00
0gb.us
a92e90f684
FIxed floating isle generation at chunk boundaries
...
A mapgen fix authored by paramat, as mentioned here: https://github.com/minetest/minetest/issues/989
2013-11-10 18:45:14 +04:00
kwolekr
b401e58c0d
Weather: Fix uninitialized weather_update_time (sorry proller)
2013-11-09 15:29:22 -05:00
proller
8903c68460
Correct useragent in http queries
...
Net struct init
2013-11-06 00:50:32 +04:00
kwolekr
e46c527733
Accept hexadecimal and string values for seeds
2013-11-04 23:59:26 -05:00
sapier
1a96987d0f
Fix invalid use of pointer to temporary object in json2lua conversion
2013-11-04 19:11:11 +01:00
proller
4a8a50a2a2
Masterserver show privs and js autoload
2013-11-04 04:56:39 +04:00
sapier
68bbdf1b2c
Fix invalid usage of texture->getSize() where actually texture->getOriginalSize() was meant
2013-11-03 23:00:54 +01:00
BlockMen
5fbc39a76c
Fix typo
2013-11-03 22:33:06 +01:00
BlockMen
25edae00ea
Reworked formspecs and kahrl's hexcolor parser
2013-11-03 22:14:37 +01:00
Novatux
0b78889289
Send a on_receive_fields event when formspec is closed, with fields.quit = "true"
2013-11-03 11:53:59 +01:00
Aaron Suen
2636c92075
Portability fixes for OpenBSD (and possibly NetBSD and others).
2013-11-02 13:41:26 -04:00
PilzAdam
0d35350b69
Fix liquid_range
...
* Prevent graphical glitches on old servers
* Fix flowing of liquids with viscosity != 1 and range != 8
* Fix range = 0, no flowing nodes will appear
2013-11-02 15:47:44 +01:00
Novatux
69a59f1e41
Move the sapling growing and grass adding/removing ABMs to Lua
2013-11-02 10:50:11 +01:00
Novatux
bd6d4666ab
Add a callback: minetest.register_on_craft(itemstack, player,
...
old_craft_grid, craft_inv) and
minetest.register_craft_predict(itemstack, player, old_craft_grid,
craft_inv)
2013-11-01 15:55:34 +01:00
ShadowNinja
8bc68645cb
Raise the maximum node limit to 0x7fff
...
As agreed to by kahrl
2013-11-01 10:27:23 -04:00
proller
a924409bd1
Masterserver update
2013-10-18 01:32:49 +04:00
Perttu Ahola
b3591019ad
Fix object duplication bug (at least in the most reproducible UFO case)
2013-10-17 00:10:16 +03:00
Sokomine
19742d8d98
Add support for parameter 'visual_scale' for drawtypes 'signlike' and 'torchlike' like used for drawtype 'plantlike'
2013-10-14 21:38:56 +03:00
RealBadAngel
5598f3c81b
FIx wrong error message on invalid use of the formspec element image_button
2013-10-07 22:50:26 +02:00
0gb.us
afb27329fc
Remove mapgen_air alias ( #935 )
2013-10-05 18:42:31 +02:00
Kahrl
2134316c80
Pass VERSION_EXTRA to GenerateVersion.cmake
2013-09-29 16:05:09 +02:00
PilzAdam
a9c0961e0c
Add set_name(), set_count(), set_wear() and set_metadata() to Lua ItemStack
2013-09-28 23:46:48 +02:00
Kahrl
5dce44ec5e
Add --version option
2013-09-28 21:30:17 +02:00
Kahrl
8bc7ea61b9
Show git hash in version string at top left corner of window
2013-09-28 21:30:17 +02:00
ShadowNinja
372d638ec1
Lower the default max_users from 100 to 15
2013-09-28 21:09:52 +02:00
PilzAdam
4ea0e4f606
Add curl, freetype and luaJIT to CMAKE_BUILD_INFO
2013-09-28 15:41:37 +02:00
kwolekr
fb6a789991
Re-fix hud_change stat argument retrieval
...
Conflicts:
src/script/lua_api/l_object.cpp
2013-09-26 04:39:10 +02:00
BlockMen
9e6bdc377f
Fix compiling issue of MSVC
2013-09-23 11:51:14 +02:00
BlockMen
27947d85f7
Add option to scale image to percentage values
2013-09-20 20:03:58 +02:00
proller
f7ee5da4c1
Fix null dereference in weather update functions
2013-09-18 01:37:47 +04:00
kwolekr
c0398224ef
Fix some warnings and other minor details
2013-09-16 23:52:42 -04:00
kwolekr
9bccd75e34
Weather: Clean up getHeat/getHumidity somewhat
2013-09-16 23:33:53 -04:00
proller
cfe6eaa66b
Use cached "weather" setting
2013-09-17 02:57:36 +04:00
proller
62bc5331aa
Fog depend on humidity
2013-09-17 02:43:24 +04:00
proller
4c704fe306
Add configurable PRAGMA synchronous =
2013-09-17 02:11:30 +04:00
kwolekr
d308352dbd
Always use builtin JThread library
2013-09-15 23:00:01 -04:00
Kahrl
3c4734d69a
Change mainmenu texture handling + small misc changes
...
Texture names must now be escaped in formspec elements image[],
background[], image_button[], image_button_exit[].
Instead of special-case handling of texture loading (and unloading
which was missing) in guiFormSpecMenu.cpp, use the newly created
ISimpleTextureSource interface which is a minimal subset of
ITextureSource. There is an implementation of this interface
used by GUIEngine (MenuTextureSource).
Fix an off-by-one bug in unescape_string; it caused requests for a
texture called "\0".
2013-09-11 00:08:56 +02:00
BlockMen
da9fe64851
Fix hotbar padding at bottom
2013-09-10 23:39:38 +02:00
PilzAdam
4feea0ac68
Add offset to automatic_face_movement_dir
2013-09-10 23:31:44 +02:00
PilzAdam
dd5c451e03
Allow non-string arguments for minetest.is_yes()
2013-09-10 21:38:44 +02:00
PilzAdam
d820a6bfd8
Add Settings interface for Lua
2013-09-10 18:31:38 +02:00
Kahrl
10a38a3005
Handle --migrate even when compiled without leveldb support
2013-09-10 18:29:51 +02:00
Kahrl
c6e3797c1a
Remove assert warning in leveldb wonderland
2013-09-10 18:28:26 +02:00
Kahrl
168fa2ffe0
Fix loading leveldb worlds
2013-09-10 18:16:36 +02:00
Kahrl
6fb4a78d71
Fix broken build due to missing mapsector.h include
2013-09-10 17:49:53 +02:00
Kahrl
95e4a93b1b
Add license headers and remove useless includes
2013-09-10 16:09:30 +02:00
Sfan5
3725179736
Use system-wide LevelDB instead of bundled one
2013-09-09 22:50:51 +02:00
Sfan5
49a75b1894
Make --migrate update world.mt too
2013-09-09 22:50:51 +02:00
Sfan5
321ac66558
Add note about --migrate only working with minetestserver or --server
2013-09-09 22:50:51 +02:00
Sfan5
d423a8fc20
Fix 'Unknown map backend' error when using Configure menu right after creating world
2013-09-09 22:50:51 +02:00
Sfan5
f1e4a671dc
Use STL containers instead of irr::core::list
2013-09-09 22:50:51 +02:00
Sfan5
1cc1c56234
Add message that LevelDB is not supported on Windows
2013-09-09 22:50:51 +02:00
Sfan5
7e44c2ace1
Make it compile
2013-09-09 22:50:50 +02:00
Ilya Zhuravlev
58841ef12f
Add dummy and LevelDB database backends
2013-09-09 22:50:50 +02:00
Ilya Zhuravlev
6de16bb438
Add fallback font support for some languages.
2013-09-08 15:16:19 +04:00
Novatux
6291fd1cbb
Add minetest.get_gametime() API function, that returns the number of seconds since the world was created.
2013-09-08 11:09:50 +02:00
0gb.us
211b372e26
Standardized method of getting node info in dungeon mapgen.
2013-09-06 21:42:01 +02:00
sapier
7935044820
Fix selectionbox not honoring anaglyph mode 3d distortion
2013-09-05 00:57:09 +02:00
sapier
e8b9467905
Fix crash on lua exception
2013-09-05 00:45:00 +02:00
PilzAdam
7860097eda
Use player:set_hotbar_image() instead of hardcoded hotbar.png
2013-09-05 00:21:16 +02:00
Kahrl
af490330e7
Fix remnants of s32 enable_shaders
2013-09-04 00:16:33 +02:00
Kahrl
1ad9365d34
Fix enable_fog = false not having any effect when shaders are enabled
2013-09-03 13:23:30 +02:00
Ilya
e61b1773c9
Server::ProcessData(): call getBanName once instead of twice ( #639 )
2013-09-03 07:34:43 +02:00
Kahrl
1ecf51a13f
Add minetest.parse_json, engine.parse_json
2013-09-02 02:20:08 +02:00
PilzAdam
71a6ffa762
Use wstring for vertlabels
2013-08-31 21:07:53 +02:00
sapier
5d0f19fd7d
Fix bug in pathfinder causing endless loop in some situations
2013-08-31 21:26:51 +04:00
proller
902d5927f0
Normalized heat and adjusted humidity
2013-08-30 00:42:53 +04:00
BlockMen
439079cad8
Add support for using textures in hotbar
2013-08-25 18:49:10 +02:00
Kahrl
fead7a27ca
Fix aliases not working in shapeless crafting recipes
2013-08-25 18:14:26 +02:00
Ilya Zhuravlev
d05b15df77
Add a setting for HighPrecisionFPU ( fixes #763 ).
2013-08-25 18:25:01 +04:00
BlockMen
78ea818aaf
Fix umlauts/special character issue in lua gettext
2013-08-19 22:23:41 +02:00
BlockMen
deaa8dc287
Fix gettext for tabs (windows)
2013-08-19 15:59:09 +02:00
Kahrl
ade70fe4b9
Allow SIGINT to kill mainmenu again
2013-08-19 15:49:36 +02:00
Kahrl
8548bb75b6
GUIFormSpecMenu focus fixes
2013-08-19 15:49:36 +02:00
BlockMen
72b9b0fe3a
Reenable image scaling in formspecs
2013-08-18 15:52:04 +02:00
sapier
09a50d0458
Add translation for main menu
...
Add engine.gettext() and remove gettext() calls in guiFormspecMenu.cpp
2013-08-17 16:01:43 +02:00
PilzAdam
787b43b218
Send player damage to all clients and apply [brighten
2013-08-17 01:23:25 +02:00
Kahrl
3ee8098708
Diagonal liquid animation
2013-08-17 01:00:36 +02:00
PilzAdam
75a139e62c
Use errorstream instead of std::cout in pathfinder.cpp
2013-08-16 17:42:12 +02:00
PilzAdam
1e4e64f831
Remove debug output
2013-08-16 02:48:50 +02:00
PilzAdam
d52185c43e
Add ability to activate mods with doubleclick (remove old_style_mod_selection)
2013-08-16 01:04:37 +02:00
Kahrl
5e312dc40d
Don't automatically scroll listbox when selecting an item in the middle
2013-08-16 00:58:03 +02:00
Kahrl
d8337034b5
Formspec textlist: Black Irrlicht magic to detect fake doubleclicks
2013-08-16 00:08:19 +02:00
Novatux
7921fe2cd1
Fix formspec escaping, add escaping to info.txt for texture packs.
2013-08-15 22:12:51 +02:00
Kahrl
58beca005c
Add virtual destructor to IBackgroundBlockEmerger to silence warning
2013-08-15 01:16:34 +02:00
Kahrl
4e1f50035e
Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenu
2013-08-14 21:03:33 +02:00
PilzAdam
fc72d7fbb6
Fix typos
2013-08-14 00:50:03 +02:00
sapier
fc571ad46d
Add support for entities to automatic face movement direction
2013-08-13 23:48:47 +02:00
PilzAdam
d718b0b34e
Dont write directly to files but rather write and copy a tmp file
2013-08-13 22:05:45 +02:00
Kahrl
c8930850e3
Remove farmesh
2013-08-13 09:25:13 +02:00
kwolekr
c06caa14c3
Decoration: Fix schematic probability mess with new MTS file version
2013-08-11 15:34:49 -04:00
PilzAdam
56b9377c1c
Dont crash if facedir > 23
2013-08-10 16:26:02 +02:00
Perttu Ahola
35c5ccfad3
Don't freak out when a client sends multiple TOSERVER_INIT packets; also log one thing more.
2013-08-08 06:11:43 +03:00
Kahrl
2ed3067bbe
Fix various memory access problems detected by valgrind
2013-08-07 19:48:31 +02:00
PilzAdam
218f82f798
Fix path of mono font in defaultsettings.cpp
2013-08-07 13:41:00 +02:00
Kahrl
7294f28c3a
Fix uninitialized irr::SEvent fields in guiFormSpecMenu.cpp
2013-08-07 01:36:19 +02:00
Kahrl
7fbc8152bf
Fix full crack texture being shown when releasing dig button
2013-08-06 18:15:40 +02:00
BlockMen
7b13d119ed
Add support for different drowning damage and allow drowning in other nodetypes
2013-08-06 17:49:39 +02:00
Perttu Ahola
53bf62bb83
Rename LagPool's member variables to avoid MSVC freaking up due to it's #define max
2013-08-06 18:17:58 +03:00
Perttu Ahola
61f240946a
Clean up server's log messages and give a better error to client when its player is in use
2013-08-06 18:13:11 +03:00
Kahrl
96c34d369e
Fix crack overlay for animated textures
2013-08-05 01:52:09 +02:00
proller
714a8cef38
Freeze-melt adjust
2013-08-04 23:31:01 +04:00
BlockMen
be4670fecf
Fix formspec label issues in win builds (MSVC)
2013-08-04 20:49:23 +02:00
PilzAdam
2af5864534
Make freetype usage configureable by a setting
2013-08-04 20:35:14 +02:00
Novatux
383153419b
Add texture pack selection to main menu
2013-08-04 16:52:30 +02:00
Novatux
fe1fe1b1e4
Change large amount of objects to be configurable via a setting in minetest.conf (max_objects_per_block).
2013-08-04 15:28:01 +03:00
Perttu Ahola
e6687be493
Fix server getting completely choked up on even a little of DoS
...
* If client count is unbearable, immediately delete denied clients
* Re-prioritize the checking order of things about incoming clients
* Remove a huge CPU-wasting exception in ReliablePacketBuffer
2013-08-04 10:44:37 +03:00
Perttu Ahola
8831669505
Allow mods to listen to cheat detections using minetest.register_on_cheat()
2013-08-04 00:45:49 +03:00
Perttu Ahola
742614180c
Fix anticheat
2013-08-03 23:16:37 +03:00
Perttu Ahola
bc5db9b027
Lessen the sky color glitch when quickly turning to look up after looking at ground that contains caves
2013-08-03 19:04:16 +03:00
Perttu Ahola
c50c9a10f1
Fix and improve view range tuner
2013-08-03 18:46:18 +03:00
PilzAdam
45589fae58
Add replacements to schematics
2013-08-03 03:22:14 +02:00
proller
5e433fa913
More info in serverlist
2013-08-03 03:02:59 +04:00
PilzAdam
0b77588e87
Allow multiple 'wherein' nodes in oredef
2013-08-02 00:55:16 +02:00
proller
06cdce1e12
Weather backward compatibility
2013-08-02 00:51:36 +04:00
proller
0e89bca173
Leveled nodebox backward compatibility
2013-08-02 00:50:58 +04:00
Esteban I. Ruiz Moreno
c6cb97e693
Make bumpmapping compatible with irrlicht 1.8
2013-07-31 19:35:28 +02:00
sapier
251e3e01c7
Add support for setting stepheight for entities
2013-07-30 19:48:02 +02:00
PilzAdam
ff7c380d0e
Fix warnings in mapblock.cpp
2013-07-28 23:34:58 +02:00
PilzAdam
4fb4efd8ed
Play sounds/main_menu.ogg in menu
2013-07-28 23:29:03 +02:00
proller
174285f298
Warnings fix
2013-07-29 00:11:33 +04:00
proller
037e84d377
Better snow fall, finite liquid transform, leveled nodes api
2013-07-28 17:14:31 +04:00
proller
3aedfac968
Weather support
2013-07-27 23:21:48 +04:00
proller
e65d8ad655
Dont announce server in singleplayer
2013-07-27 17:51:34 +04:00
BlockMen
a59f85c1a0
Add support of pressed_texture of image_button
...
Fix params number
Add pressed texture name
Fix string def
Fix syntax error
2013-07-24 01:02:43 +02:00
BlockMen
8e2467c393
Add gettext translation for image_button
2013-07-24 01:01:56 +02:00
proller
3629a90c2e
Cosmetic player info changes
2013-07-24 02:41:03 +04:00
PilzAdam
0b4b9e7f3a
Fix modstore URLs
2013-07-22 22:26:48 +02:00
PilzAdam
a38f8d9900
Disable gamemanager by default
2013-07-22 18:16:36 +02:00
sapier
b3db44f801
Fix bug in world creation
...
Add old style mod selection in worldconfig dialog
2013-07-22 18:10:00 +02:00
sapier
07fb257c04
Use user folder for gamemanager too
2013-07-22 18:10:00 +02:00
sapier
8beb0f19d1
Enable mod and gamemanager by default
2013-07-22 18:10:00 +02:00
sapier
32001d1e2b
merge mainmenu_helper.lua to misc_helpers.lua
2013-07-22 18:10:00 +02:00
sapier
5160be91ae
Add configurable curl timeout
2013-07-22 18:09:59 +02:00
sapier
d6c052038f
Add playernumber to favorites list
2013-07-22 18:09:59 +02:00
sapier
5c7ecdb7c5
Add support for modstore screenshots
...
Add error output on invalid mmdb entries
2013-07-22 18:09:59 +02:00
RealBadAngel
0850d3fcf8
Fix light issue in 6d facedir.
2013-07-21 14:06:18 +02:00
PilzAdam
46d1d70e4c
Bump protocol version
2013-07-20 21:25:21 +02:00
PilzAdam
8cae659786
Add an option to disable object <-> object collision for Lua entities
2013-07-20 20:43:11 +02:00
PilzAdam
413f0d0353
Add liquid_range to nodedef
2013-07-20 20:41:17 +02:00
PilzAdam
cba90d4441
Make range of tools configureable
2013-07-20 20:37:59 +02:00
RealBadAngel
d19c8b815d
Add set_breath and get_breath to lua API.
2013-07-20 20:34:11 +02:00
PilzAdam
ab145c8827
Randomly choose singleplayer port
2013-07-16 02:02:56 +02:00
PilzAdam
ecb024af64
Fix lighting bug caused by disappearing lava
2013-07-16 01:51:04 +02:00
PilzAdam
4e5a45952a
Remove support for common mods
2013-07-16 01:46:59 +02:00
Kahrl
112dbba7c4
Change ContentFeatures array to a vector
2013-07-14 23:06:31 +02:00
proller
9733dd5b5e
Leveled nodebox
2013-07-13 22:13:24 +04:00
sapier
494fa0c81a
Remove lots of debug output from modmgr
...
Fix RUN_IN_PLACE=0 mod install (now mods are saved in user folder in that case)
Fix text of field element not unescaped correctly
2013-07-12 22:46:27 +02:00
proller
ac7a44792c
Masterserver mods announse, ipv6, better curl errors
2013-07-13 00:19:05 +04:00
kwolekr
fc6725f14e
Clean up bumpmap code a bit
2013-07-12 00:11:46 -04:00
PilzAdam
320a00e7c6
Disallow the name 'singleplayer' in a multiplayer server
2013-07-12 02:15:09 +02:00
stujones11
e8f201cefa
Fix multiple texture support for animated meshnodes
2013-07-10 00:22:21 +02:00
sapier
1c7c5d571d
Fix serverlist
2013-07-09 22:55:39 +02:00
PilzAdam
c8bd2ae11c
Dont play digging sound if not digging
2013-07-09 02:42:05 +02:00
kwolekr
e1a13608d8
Revert "Fix serverlist not beeing escaped correctly"
...
This reverts commit 39d03148e5d98ef5f9a31b131a79ff2bbd71a877.
2013-07-08 20:21:09 -04:00
sapier
39d03148e5
Fix serverlist not beeing escaped correctly
...
Always use address for server
Fix first (empty) element beeing selected after deleting last world
2013-07-08 19:58:17 -04:00
sapier
f419f66546
fix crash on play/start with empty world list
...
make enter button work in create world dialog
2013-07-08 19:58:03 -04:00
kwolekr
fca4610f11
Fix wallmounted rotations along Y axis for 90 and 270 degree cases
2013-07-08 18:50:29 -04:00
kwolekr
ce955f37ba
Decoration: Handle facedir and wallmounted param2types with schematic rotation
2013-07-08 15:19:48 -04:00
PilzAdam
6bc3a43d52
Settings: everything != 0 equals true; remove .asm shaders
2013-07-08 01:58:49 +02:00
sapier
88d43af276
Fix many formspec menu bugs
2013-07-07 19:49:52 -04:00
Sfan5
7e73b7cae9
Fix parseColor, change remaining colorkeys to new format, fix Contributor list
2013-07-07 19:59:18 +02:00
Kahrl
b3001bcd6e
When server sends late media, log to errorstream instead of crashing.
...
Do a check for valid num_files before doing
assert(!m_mesh_update_thread.IsRunning());
In particular, don't execute the assertion if all media has already
been received.
2013-07-07 08:35:25 +02:00
Vincent Heuken
39ab22070e
include mathconstants.h in numerics.cpp
2013-07-07 01:52:43 -04:00
kwolekr
d22baa88ed
BiomeDefManager: Fully initialize default biome
2013-07-06 15:28:59 -04:00
kwolekr
65874c25db
Mapgen V7: Fix out-of-bounds array access
2013-07-06 15:22:51 -04:00
kwolekr
06266abd6e
LuaVoxelManip: Allow liquid updates in non-mapgen VoxelManip objects
2013-07-06 15:12:40 -04:00
kwolekr
55ecde665d
Decoration: Remove usage of multi-character constants
2013-07-06 15:03:54 -04:00
Sfan5
307c57dcc4
Use hexadecimal RRGGBB instead of colorkeys, rename getColor to parseColor
2013-07-06 10:32:58 +02:00
kwolekr
18d7bc7fa1
Mapgen V7: Huge rewrite, also tweaks to cavegen et al.
2013-07-06 02:21:54 -04:00
Kahrl
3607fae75a
Fix possible NULL dereference in createExtrudedMesh
2013-07-06 06:16:51 +02:00
Kahrl
922a30ee47
Don't rebuild the dummy shader (less SourceShaderCache warning spam)
...
Also write something about rebuilding shaders to infostream in
Client::afterContentReceived()
2013-07-05 04:24:05 +02:00
proller
92833a07d1
Improve finite liquid distribution, fix small bug
2013-07-05 00:11:11 +04:00
Kahrl
a013f762c4
Throw exception instead of assert on nested reliable packets
...
Fixes a denial of service vulnerability, issue #784
2013-07-04 06:18:50 +02:00
RealBadAngel
3f6f327cb9
Add texture bumpmapping feature.
2013-07-04 02:36:32 +02:00
Kahrl
b850f0f038
Whoever called a function parameter m_device is fired without notice.
2013-07-03 20:33:54 +02:00
kwolekr
a225efaec5
Lua main menu: Fix crash on init lua error, mapgen dropdown index, and new worlds not saving index
2013-07-03 01:25:26 -04:00
kwolekr
ad4c065344
Change debug optimization level back to -O1
2013-07-02 21:48:18 -04:00
Kahrl
8f1d5d34a6
Move generateTextureFromMesh to TextureSource to fix a texture leak
...
TextureSource has a list of textures to delete (m_texture_trash) so this
provides a proper, non-hacky way to delete RTT textures. Also, the prior,
hacky way of deleting them seems to be broken (see pull request #803 ).
To avoid header file clutter by repeating the same long list of
arguments over and over again, store the arguments of
generateTextureFromMesh in a struct called TextureFromMeshParams.
Also fix issue #782 (Only use bilinear (and others) on item textures
when settings allow it).
2013-07-03 03:24:28 +02:00
sapier
b1ef850877
Fix possible 0 pointer access
2013-07-02 20:01:48 -04:00
sapier
967121a34b
Replace C++ mainmenu by formspec powered one
2013-07-02 19:58:20 -04:00
kwolekr
fe4ce03d52
Cavegen: Prevent caves from occuring above ground level, and superfluous mixing of lava and water in caves
2013-07-01 21:20:03 -04:00
Kahrl
8161ab573f
Remove texture atlas / AtlasPointer, rename getTextureRaw to getTexture
2013-07-02 03:03:10 +02:00
arsdragonfly
4bbb78a99b
Fix i18n of some strings.
2013-07-02 00:13:50 +00:00
kwolekr
dd6d1afd8e
Decoration: Add schematic rotation support
2013-07-01 18:04:51 -04:00
proller
131eb56f52
Disable collision fix, its broke unit tests
2013-07-01 00:26:54 +04:00
proller
37ca8854f7
Fix sand, gravel falling stuck
2013-06-30 22:48:51 +04:00
kwolekr
067888d549
LuaVoxelManip: Fix minor bug with set_lighting, remove coordinate params for light and liquid updates
2013-06-29 22:23:00 -04:00
proller
848c3fe51a
Optimize liquid queue on generate map for liquid_finite
2013-06-30 01:29:21 +04:00
kwolekr
9126823c7e
Make generated water a shade darker to match up with older versions
2013-06-28 22:22:44 -04:00
PilzAdam
280946ba83
Dont write player files all the time
2013-06-28 14:15:48 +00:00
kwolekr
9e100bc42b
Apply various fixes to several things
2013-06-27 22:35:35 -04:00
kwolekr
6b3169e4d0
LuaVoxelManip: Separate VoxelManip data get/set from emerging/blitting data back to map
2013-06-27 22:35:35 -04:00
kwolekr
2e292b67a0
Add Lua on_mapgen_init callback, and minetest.set_mapgen_params API
2013-06-27 22:35:35 -04:00
kwolekr
18882a4d26
Add Lua PerlinNoiseMap:get#dMap_flat API
2013-06-27 22:35:35 -04:00
kwolekr
8aa930f28e
Add minetest.get_mapgen_object to API
2013-06-27 22:35:35 -04:00
kwolekr
2c0b51795e
Fix issue of VManip occasionally not blitting back blocks, and pitch black lighting bug
2013-06-27 22:35:35 -04:00
kwolekr
d6ac3d8d9a
Add LuaVoxelManip
2013-06-27 22:35:35 -04:00
proller
e47f6fdfe9
Fix ipv6 on windows
2013-06-24 20:13:56 +04:00
kwolekr
30d6d4c733
Cavegen: fix division by 0 with abnormal max tunnel diameter sizes
2013-06-23 15:16:52 -04:00
proller
f764297be2
Math mapgen fix, ip show on connect, pathfinder segfault fix
2013-06-23 20:35:16 +04:00
proller
75b8c13b00
New math mapgen with fractal based worlds
2013-06-23 18:07:10 +04:00
proller
f960c3be31
Add support for IPv6
...
Two new configuration options are added:
- "enable_ipv6" to enable/disable the overall use of IPv6
- "ipv6_server" to enable/disable the use of IPv6 sockets when running
a server (when "enable_ipv6" is enabled)
2013-06-23 11:31:22 +04:00
kwolekr
309c5f3641
Decoration: Add support for zero probability, fix breakage from last commit
2013-06-22 20:49:01 -04:00
PilzAdam
130464c268
Print playername when failing to read playerfile and ignore files starting with .
2013-06-22 21:39:47 +00:00
kwolekr
4d77781ce7
A handful of minor fixes to various things
2013-06-22 17:27:48 -04:00
kwolekr
c1b829077a
Decoration: Add Schematic decoration type
2013-06-22 01:11:52 -04:00
PilzAdam
b1ebd9f79c
Add a setting for max loop count per step in liquid update
2013-06-20 22:31:46 +00:00
Kahrl
c2cdaceed0
Make minetest.debug accept multiple parameters; convert them to string
2013-06-21 00:04:18 +02:00
PilzAdam
81c8b404e7
Play placing sound only if place prediction was successful
2013-06-19 21:42:12 +00:00
PilzAdam
9b6f1d647c
Dont dig or place nodes if interact priv is missing (clientside)
2013-06-19 21:42:12 +00:00
PilzAdam
53066024f6
Add drowning
2013-06-19 15:47:00 +00:00
kwolekr
f18b4872ea
Decoration: Place decorations in mgv6, check if air or cignore before placement
2013-06-17 21:59:57 -04:00
Kahrl
261f559339
Show number of objects in client environment in profiler (F6)
2013-06-18 01:49:06 +02:00
Kahrl
d74c377337
Formspec: Don't perform black magic if selected item fits the guess
2013-06-18 01:32:11 +02:00
Kahrl
c8ed61b281
Fix calculation of selected item (for not drawing it) in formspec
...
The previous code did not work when the list did not start at index 0
of the inventory list (issue #779 ).
2013-06-18 01:18:54 +02:00
Esteban I. Ruiz Moreno
816ffa99ba
Remove useless recalculation of bounding box (mapblock_mesh)
2013-06-18 01:11:46 +02:00
kwolekr
0b20768a24
Decoration, Ore: Resolve node names on Mapgen init
2013-06-17 18:51:29 -04:00
kwolekr
56093b6614
Decoration: Change divlen to sidelen
2013-06-17 18:23:31 -04:00
kwolekr
0a8519a26f
Add initial Decoration support, many misc. improvements & modifications
2013-06-17 03:21:36 -04:00
Kahrl
eccd1fdbed
Extend a delay in TestConnection from 50 to 100 milliseconds.
...
The 50 ms delay causes frequent test failures on certain systems with
slow network stacks, these failures go away with the 100 ms variant.
2013-06-17 02:09:50 +02:00
Kahrl
b5918760fb
Tweak IDropAction restriction handling in server.cpp
2013-06-16 17:01:21 +02:00
Kahrl
4405310184
Lazy sunday typo fixing. s/unban_player_of_ip/unban_player_or_ip/g
2013-06-16 14:07:12 +02:00
sweetbomber
0413f8ad9d
Removed a redundant step which degraded performance
2013-06-15 21:41:30 +04:00
Esteban I. Ruiz Moreno
93dfc3ec70
Add basic unicode support to the console (linux workaround)
2013-06-15 15:09:11 +00:00
PilzAdam
7a58c1d4ca
Reset dig_time when switching to a tool that cant dig the current node
2013-06-13 13:34:48 +00:00
Kahrl
21d6b39fd7
Enable word wrapping in profiler IGUIStaticText (freetype needs this)
2013-06-13 14:32:53 +02:00
PilzAdam
2cdf0ff4ab
Play player_damage.ogg when recieving damage and additionally play player_falling_damage.ogg when recieving falling damage
2013-06-12 20:27:06 +00:00
Kahrl
773471750d
Fix class/struct forward declaration inconsistencies (good on ya, MSVC)
2013-06-06 22:57:38 +02:00
PilzAdam
bfa608b85e
Revert "Fix multiple texture support for animated meshnodes." (broke existing models)
...
This reverts commit 649dca4d16786ed4e5b74878f56b86dea4f02542.
2013-06-06 17:13:41 +00:00
Esteban I. Ruiz Moreno
7cb5217255
Close console when it loses focus but it is still on screen
2013-06-05 21:14:14 +02:00
Kahrl
4f6bec19bc
Only add ^[forcesingle to get raw texture if atlas is used
2013-06-04 07:44:19 +02:00
stujones11
649dca4d16
Fix multiple texture support for animated meshnodes.
2013-06-03 23:31:08 +02:00
sweetbomber
601ab85226
Corrected segfault when registering new biomes.
2013-06-03 20:35:51 +02:00
Kahrl
e988df0fbd
Add and implement setting max_clearobjects_extra_loaded_blocks.
...
Now Environment::clearAllObjects() unloads unused blocks in an interval
defined by max_clearobjects_extra_loaded_blocks (default 4096).
2013-06-03 20:09:32 +02:00
Kahrl
b89c79e905
Delay deleting replaced textures (m_texture_trash)
2013-06-03 15:50:14 +02:00
Kahrl
9fe74a34ea
Call m_menumgr->deletingMenu from quitMenu in addition to destructor
...
This fixes the bug where noMenuActive() keeps returning false after
closing a menu until the mouse is moved, rendering the keyboard
unusable (the_game calls input->clear() every frame when
noMenuActive() is false).
2013-06-03 15:25:48 +02:00
sapier
c25102a4f7
Fix missing find_path and line_of_sight
2013-06-01 15:07:43 +02:00
MetaDucky
c893958bb1
Fix some nullptr exceptions when handling invalid node inventories
2013-06-01 14:45:43 +02:00
MetaDucky
64627817fc
Fix minetest.get_inventory(loc) always returning nil for "node" type loc
2013-06-01 12:15:11 +02:00
MetaDucky
a61aa6690b
Fix editbox default text being pre-selected in some cases
2013-06-01 01:59:48 +02:00
Kahrl
7721948a2f
Generate debug HUD text with ostringstream instead of snprintf.
...
This should fix #730 .
2013-06-01 01:50:08 +02:00
proller
6b2c46c431
Liquid adjusting: continue to drop
2013-05-31 22:59:09 +04:00
sapier
efc75db764
Bugfix: Update formname on showing new formspec while already one shown
2013-05-26 01:45:46 +02:00
MetaDucky
f62ddf9022
Fixed wrongly named invref:get_location() table members for nodes.
...
Makes the result compatible with the minetest.get_inventory(location) param.
2013-05-26 00:35:11 +02:00
Kahrl
96fe1de832
Add ObjectRef.hud_set_hotbar_itemcount and add TOCLIENT_HUD_SET_PARAM
2013-05-26 00:23:33 +02:00
sapier
e464f19356
Fix itemstack:add item not working correct
2013-05-25 19:23:10 +02:00
sapier
ab43377577
Move scriptapi to separate folder (by 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)
2013-05-25 00:51:02 +02:00
PilzAdam
865f380c91
Predict param2 of facedir nodes and attachment of attached_node nodes
2013-05-24 02:10:03 +02:00
Jeija
3abbe7efd1
Make raillike nodes connect to any other raillike nodes if both are in the group connect_to_raillike
2013-05-22 15:08:24 +02:00
PilzAdam
7f6e9e9540
Fix disappearing of wielditem
2013-05-21 20:16:22 +02:00
Kahrl
4a9fe1a1d5
Log non-fatal mod name conflict to actionstream instead of errorstream
2013-05-21 14:56:43 +02:00
PilzAdam
e57dc4ef18
Dont animate changing wielditem from hand to hand
2013-05-20 20:31:38 +02:00
MetaDucky
5e80df46b8
Fix typo in particle spawning
2013-05-20 16:24:07 +02:00
elagin
c135e9c7d4
Save settings after dropping main menu
2013-05-20 16:03:48 +02:00
ShadowNinja
127c488355
Use the group "soil" for nodes that saplings grow on
2013-05-20 13:43:13 +02:00
kwolekr
981c6c9bf2
Fix lava damage on player's upper body
2013-05-19 21:29:49 -04:00
kwolekr
d00e8bd31a
Fix nearly all warnings
2013-05-19 21:26:56 -04:00
sapier
55a97f4605
Allow nil as puncher e.g. to do damage by tnt
2013-05-20 01:18:45 +02:00
PilzAdam
3e2efdf18a
Add a little animation when changing the wielded item
2013-05-20 01:09:41 +02:00
PilzAdam
bc66f46323
Dont teleport back if holding sneak when detaching/turn freemove off
2013-05-19 20:56:58 +02:00
Kahrl
cc92e45b78
Fix EmergeThread names in log
...
Concatenate the thread id as string instead of adding it to the pointer
2013-05-19 19:58:01 +02:00
PilzAdam
b2253e5b42
Write mods that are not in world.mt into it at world startup
2013-05-19 19:52:29 +02:00
PilzAdam
dcd0b63f64
Dont load mods that have no entry in world.mt
2013-05-19 19:46:50 +02:00
kwolekr
93474c4218
Remove no virtual dtor warnings, make MapgenParams contain actual NoiseParams
2013-05-19 12:22:20 -04:00
kwolekr
f577facf79
Fix regression of world loading caused by 81c863ac
2013-05-19 12:07:00 -04:00
PilzAdam
45fcc9de29
New modsystem
...
Mods are placed in $path_<user/share>/mods
They can be enabled per world in world.mt or the configure world window
2013-05-19 02:15:36 +02:00
PilzAdam
714ecc5e27
Only create SoundManager in main menu if USE_SOUND is true
2013-05-18 13:01:47 +02:00
PilzAdam
9397b5de08
Fix memory leak in MeshUpdateThread
2013-05-18 01:52:18 +02:00
Aaron Suen
1369503aba
Fix math for isBlockInSight. Fixes #718 (client-side).
2013-05-18 00:13:01 +02:00
PilzAdam
fedf644635
Move kahrl to core devs in credits tab
2013-05-17 23:15:10 +02:00
PilzAdam
587e7b299b
Dont drop fonts with ENABLE_FREETYPE=0
2013-05-16 02:20:10 +02:00
PilzAdam
d5ca3b721e
Fix memory leak in run_tests()
2013-05-14 12:29:30 +02:00
Esteban I. Ruiz Moreno
822723c246
Add mouse_sensitivity option
2013-05-13 17:39:16 +02:00
Zeg9
bda62bd3bf
Add progress bar to item visuals preloading
2013-05-13 17:08:51 +02:00
PilzAdam
efc9329033
Only use game filter in singleplayer tab; use menu_{background, overlay, header, footer}.png for other tabs
2013-05-13 17:06:08 +02:00
Kahrl
2c09e8a84c
Fix double free in createExtrudedMesh, reported by ptitSeb
2013-05-12 06:28:33 +02:00
RealBadAngel
9575b0a2a8
Add code to play main_menu.ogg in main menu
2013-05-11 15:39:38 +02:00
Aaron Suen
6911a7d279
Clear custom player HUDs when emerging players. Fixes #711 .
2013-05-10 19:25:50 -04:00
PilzAdam
5068cb40ce
Fix memory leak: remove InventoryAction after sending and applying
2013-05-11 00:12:14 +02:00
PilzAdam
e5781b5e34
Fix memory leaks: delete font in main and GUIChatConsole
2013-05-10 22:35:17 +02:00
PilzAdam
782d06be46
Fix memory leak by dropping sky
2013-05-10 19:12:24 +02:00
Zeg9
81c863ac4d
Add clouds to all loading screens and better progress handling
2013-05-10 15:04:21 +02:00
sapier
d859ad7ed7
Fix gettext memory leaks
2013-05-10 11:31:00 +02:00
sapier
ee1155fe6d
Really fix itemdef memory leak
2013-05-09 17:08:23 +02:00
Kahrl
3b1c3ac678
Add --videomodes option to show available video modes
2013-05-09 16:30:04 +02:00
Kahrl
3332f606ed
Drop IrrlichtDevice when running --speedtests
2013-05-09 16:18:26 +02:00
Kahrl
f00cee75c1
Fix world selection a bit (also fixes a main menu segfault)
2013-05-08 20:54:03 +02:00
Zeg9
0913287578
Add progress bar and clouds to loading screen
2013-05-08 20:26:43 +02:00
PilzAdam
7b41f54411
Update default controls in README and pause menu
2013-05-07 14:48:20 +02:00
Brent Hull
03ab6aa24c
Fix shader license headers to be LGPL
2013-05-06 19:09:08 +02:00
Kahrl
9a559eb8cf
Remove 'Meshbuffer ran out of indices' limitation
2013-05-06 19:06:18 +02:00
sapier
58f036ad1d
fix static data not beeing stored correctly on deactivation
2013-05-06 19:05:44 +02:00
Perttu Ahola
a888b232fe
Add header.png and footer.png support for games, and support texture packs via <gameid>_menu_<background/overlay/header/footer>.png
2013-05-04 10:05:12 +03:00
Sfan5
b88aa81da7
Fix favorite Server List on Windows
2013-05-04 07:31:22 +02:00
PilzAdam
8d5b400d09
Fix documentation for HUD commands in protocol
2013-05-04 01:04:09 +02:00
Kahrl
969d2b3eb1
Optional dependencies and properly handle mod name conflicts again
2013-05-03 23:58:22 +02:00
ShadowNinja
a031a15487
Don't predict placement of nodes if they would replace a non buildable_to node
2013-05-03 17:03:25 +02:00
Kahrl
777ac58f85
Predict wallmounted param2 during node placement prediction.
...
Also clean up the_game a bit: move node placement prediction to a
separate function.
2013-05-03 17:03:25 +02:00
Kahrl
be4cc306a5
Server: force block send of pointed_pos_under after predicted node place
2013-05-03 17:03:25 +02:00
PilzAdam
0deb68d81c
Use DIR_DELIM instead of / in file paths
2013-05-02 23:08:59 +02:00
PilzAdam
b75505e6b2
Show game name instead of game ID of selected game
2013-05-02 20:05:07 +02:00
Perttu Ahola
ee8067f7cf
Switch menu to game selected in world creation dialog
2013-05-02 20:59:52 +03:00
Perttu Ahola
2cf76f6f1b
Pre-select current game in world creation dialog
2013-05-02 19:43:47 +03:00
Perttu Ahola
2708482f1b
Filter worlds by selected game
2013-05-02 19:43:47 +03:00
Perttu Ahola
084be3599a
Get menu background image from selected game
2013-05-02 19:43:47 +03:00
PilzAdam
d07000ed1d
Move sfan5 to core devs
2013-05-01 15:47:14 +02:00
kwolekr
c824abd7b2
Fix itemdef drop on NULL texture
2013-04-28 21:07:09 -04:00
kwolekr
8767c78169
Enhance caves for mgv7, add ravines
2013-04-27 22:40:52 -04:00
kwolekr
0fb9567f13
Minor hud.cpp cleanup
2013-04-25 20:56:12 -04:00
Esteban I. Ruiz Moreno
43a388ec53
Ability to change the crosshair using textures
2013-04-25 20:07:46 -04:00
kwolekr
d3f0ce6224
Generalize hud_builtin_enable into hud_set_flags
2013-04-25 19:37:36 -04:00
proller
d83602d98e
Tune finite liquids, indev huge caves
2013-04-25 22:59:32 +04:00
Zeg9
c33b993397
Fix serverlist on -DRUN_IN_PLACE=0 (use path_user instead of path_share)
2013-04-25 19:49:28 +02:00
sapier
88ffb3f73b
Move player collisionbox to player class
2013-04-25 18:53:50 +02:00
PilzAdam
386108f982
kahrl is back
2013-04-25 18:32:49 +02:00
Perttu Ahola
bc3072b35e
Fix compatibility of RBA's NDT_GLASSLIKE_FRAMED
2013-04-25 11:51:28 +03:00
sapier
e9a4e98cb9
Improve getFree*ActiveObjectId to reduce common case cpu usage drasticaly
2013-04-24 21:59:09 -04:00
RealBadAngel
625a4c2e66
Add new drawtype GLASSLIKE_FRAMED
2013-04-24 21:45:18 -04:00
Diego Martínez
e703c5b81f
Added support to disable built-in HUD elements
2013-04-24 17:28:00 +03:00
Diego Martínez
33dd267fd9
Fixes possible crash when using hud_change with "align" or "offset"
2013-04-23 23:18:05 -04:00
RealBadAngel
a699bdb7a1
Fix to: addUpdateMeshTaskWithEdge
...
Check in all 6 directions instead of just 3.
2013-04-23 22:30:09 -04:00
kwolekr
770305e28d
Add option to use texture alpha channel
2013-04-23 22:15:51 -04:00
Perttu Ahola
36747794ab
Disable fall bobbing by default; enable using fall_bobbing_amount = 1.0
2013-04-23 23:19:36 +03:00
PilzAdam
c03c296dc7
Grow dirt_with_snow instead of dirt_with_grass if snow is above it
2013-04-23 19:02:41 +02:00
ShadowNinja
4a9b8aae5e
Add minetest.get_player_ip()
2013-04-23 09:57:45 +03:00
ShadowNinja
3d4d0cb574
Add option to not prepend "Server -!- " to messages sent with minetest.chat_send_player()
2013-04-23 09:47:08 +03:00
Diego Martínez
9894167bbf
Added offset support for HUD items
2013-04-23 09:34:11 +03:00
Diego Martínez
7c37b1891a
Added support for alignment in HUD items
2013-04-23 09:34:10 +03:00
kwolekr
37e6d1356b
mgv7: Implement getGroundLevelAtPoint(), fix layer of topnodes at chunk Y boundaries, remove growGrass()
2013-04-21 15:47:13 -04:00
kwolekr
daddd37706
Fix findSpawnPos()
2013-04-21 15:39:34 -04:00
kwolekr
14ba94ad6a
Fix hud_change stat argument retrieval
2013-04-21 12:55:46 -04:00
kwolekr
03868ff8e1
Class-ify caves & move to cavegen.cpp, fix cave regression, add caves to Mapgen V7
2013-04-21 01:06:19 -04:00
kwolekr
527deb947c
Add direction parameter to statbars in HUD API
...
Fix health bar overlap when a larger texture is used
2013-04-20 00:22:12 -04:00
kwolekr
666aae3593
Split HUD code off to hud.cpp, make into a class, extensive Lua HUD modification
2013-04-18 02:19:31 -04:00
Jonathon Anderson
49f6e347f0
Lua HUD
2013-04-18 02:14:33 -04:00
kwolekr
ce901f4c4c
Fix double free, null texture drop
2013-04-12 17:20:05 -04:00
MirceaKitsune
7cd5eb4c77
Swing the camera down when the player lands on the ground, based on the velocity the surface is hit with.
2013-04-11 19:42:47 -04:00
RealBadAngel
e7f5cdf9d4
Bugfixes to get_craft_recipe and get_all_craft_recipes.
...
Improvements to get_all_craft_recipes (see api doc)
2013-04-10 22:33:59 -04:00
sapier
dda2071cc0
fix bug in scriptapi line_of_sight
...
fix warnings for pathfinder debug traces
2013-04-10 16:50:24 -04:00
sapier
6e4fdf37ba
fix objects colliding with its own collision boxes
2013-04-09 23:16:13 +02:00
sapier
7d002b60ff
fix emergemanager memory leaks
2013-04-09 02:34:11 -04:00
sapier
04c3b17c78
fix various memory leaks
2013-04-09 02:23:07 -04:00
sapier
58fd39de35
fix extruded items texture leak
2013-04-09 02:14:52 -04:00
RealBadAngel
9449026839
Use system wide LuaJIT if aviable.
2013-04-08 22:10:00 +02:00
sapier
e7247c1a66
fix memory leak on sound shutdown
2013-04-07 23:43:34 -04:00
sapier
0d26bb36af
fix memory leak in loadMedia
2013-04-07 23:40:33 -04:00
sapier
10502b59bc
addon extended resource accounting
2013-04-07 23:38:22 -04:00
sapier
abe74ea5ea
fix inventory image texture leak
2013-04-07 22:54:00 -04:00
sapier
98182f6097
fix memory leaks introduced by invalid gettext usage
2013-04-07 22:50:53 -04:00
sapier
cd27c8ef5d
replace Server smart pointer with conventional one to gain control over dtor call order
2013-04-07 22:42:36 -04:00
sapier
2bdff11d54
fix memory leak on shader shutdown
2013-04-07 22:30:29 -04:00
sapier
7a32698312
fix memory leak in itemdef
...
cleanup useless code
2013-04-07 22:20:01 -04:00
sapier
5743ef4e64
fix huge texture leak in tiledef
...
fix minor glitches too
2013-04-07 22:17:58 -04:00
sapier
3b684d306c
fix 3d model mesh leak
2013-04-07 21:51:35 -04:00
sapier
e1146396bc
fix mesh leak in camera class
2013-04-07 21:49:55 -04:00
kwolekr
7c0e707cf1
Add param2 field for ores, some minor fixes and misc. code cleanup
2013-04-07 21:21:54 -04:00
kwolekr
96e2931c5c
Fix black tree leaves, reduce above-ground cave shadows
2013-04-07 02:26:46 -04:00
kwolekr
5961106f9f
Fix crash on creating map with invalid mg_name
2013-04-07 01:50:20 -04:00
kwolekr
fbf76184f0
Revert "Fix to be able to build from dir different than source dir"
...
This commit broke RUN_IN_PLACE
2013-04-07 01:30:06 -04:00
kwolekr
8ec3fc35c6
Add Mapgen V7, reorganize biomes
2013-04-07 00:50:21 -04:00
proller
d50b2ede92
Adjusting water removing above unloaded blocks
2013-04-07 00:05:39 +04:00
kwolekr
453d79e3a2
Don't re-write entire map_meta.txt if a setting is missing
2013-04-06 13:36:51 -04:00
Diego Martínez
046534e14b
Fix to be able to build from dir different than source dir
2013-04-06 12:31:12 -04:00
proller
120f02e20b
Don't flow finite liquid into an unloaded chunk
2013-04-06 12:09:59 -04:00
sapier
becd8c03fd
fix memory leak
2013-04-06 12:00:36 -04:00
sapier
69367aa799
Add Dijkstra A* and A* without prefetching pathfind algorithms
2013-04-06 11:24:03 -04:00
khonkhortisan
1586cdac53
unkn own block -> unkn own node
2013-04-05 15:57:39 +02:00
MirceaKitsune
e38d65f8d1
Dont allow fast move in water or ladder when aux1_descend is true
2013-04-05 14:58:35 +02:00
PilzAdam
b0e6806077
Fix nick completion
2013-04-05 02:31:58 +02:00
MirceaKitsune
c5a8448c41
Allow modifying movement speed, jump height and gravity per-player via the Lua API.
2013-04-05 02:00:59 +02:00
ShadowNinja
2a0badf2d5
Check if the address field is empty when hitting enter on the multiplayer tab
2013-04-03 23:33:17 +02:00
Esteban I. Ruiz Moreno
6b8435cf8c
Limit speed in collisionMoveResult for avoiding hangs
2013-04-03 23:29:51 +02:00
Zeg9
c1bf6f9f7a
Fix camera "jumping" when attached and the parent goes too fast
2013-04-03 23:22:40 +02:00
kwolekr
8d4b768297
Add Ore generation flags, implement ore absolute height
2013-03-31 20:02:03 -04:00
kwolekr
35ed5198fe
Increase value range of Ore::clust_scarcity
2013-03-31 12:26:25 -04:00
ShadowNinja
7d3b3890b5
Add a small optimization to the menu splash and remove a old comment
2013-03-30 22:02:46 -04:00
khonkhortisan
96387ee88a
Don't load menu textures every frame
2013-03-30 21:52:13 -04:00
kwolekr
c517215bcf
Fix MapgenV6::generateCaves possible division by 0 and misc. cosmetic fixes
2013-03-30 21:24:37 -04:00
kwolekr
414f0275cf
Optimize CNodeDefManager::getIds
2013-03-30 19:14:42 -04:00
PilzAdam
1aa50b1362
Make the textbox for serverlist title wider
2013-03-30 18:56:29 +01:00
PilzAdam
e17ae475cf
GUI: Make singleplayer default tab, store selected serverlist, show title of serverlist
2013-03-30 18:34:36 +01:00
kwolekr
6cf581e360
Fix build on Linux with some glibcs
2013-03-29 21:12:14 -04:00
proller
16c11eb4a3
Masterserver: report gameid, uptime, cosmetic fixes on server web page
2013-03-30 02:03:24 +04:00
kwolekr
df49b93877
Add varying levels of precision to TimeTaker
2013-03-29 16:53:15 -04:00
PilzAdam
5e7e0347cd
Add different place sound for nodes
2013-03-29 20:14:18 +01:00
PilzAdam
7d9329ecfe
New damage system, add damageGroups to ToolCapabilities, bump protocol version
2013-03-29 20:14:09 +01:00